Guest1706 has quit [Killed (asimov.freenode.net (Nickname regained by services))]
bigoldrock has quit [Ping timeout: 272 seconds]
<Spooner_>
Implies it is probably the proc/block/lambda doing it. Methods never do that, as someone pointed out.
havenwood has quit [Ping timeout: 256 seconds]
andersbr has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest43995
Guest43995 has quit [Killed (verne.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<mouse-_>
Eiam: they multiply like .. small furry rodent like mammal creatures
<mouse-_>
lol
<fir_ed>
hanmac: yes. removing the gil doesn't affect the behaviour of single threaded apps
<fir_ed>
hanmac: i also hate jruby.
baroquebobcat has quit [Read error: Operation timed out]
Xeago_ has joined #ruby
Xeago is now known as Guest22309
Guest22309 has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<headius>
fir_ed: why's that?
tealmage has joined #ruby
<fir_ed>
shevy, It must be removed because it limits native threading powers, which is a pretty essential language feature(combined with forking)
Xeago_ has joined #ruby
Xeago has quit [Killed (gibson.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<fir_ed>
headius, you mean why I hate jruby?
mikepack has quit [Remote host closed the connection]
<Spooner_>
I believe it is there else every C extension would fall on its arse.
<banisterfiend>
headius: what do you think (if anything) about donglegate? :)
sambao21 has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest84815
Guest84815 has quit [Killed (sendak.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<headius>
banisterfiend: overreaction after overreaction
<fir_ed>
Spooner_, Maybe if we removed the GIL, created a JIT interpreter, we wouldn't need to rely on c extensions for speed
cantonic has quit [Quit: cantonic]
<headius>
fir_ed: yes
daniel_- has quit [Quit: WeeChat 0.4.0]
<Spooner_>
fir_ed, You mean used Rubinius?
Xeago_ has joined #ruby
Xeago is now known as Guest14492
Guest14492 has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<fir_ed>
headius, I believe in MRI/CRuby just like most pythoners believe in Cpython
<headius>
fir_ed: hate is a strong word
<fir_ed>
headius, maybe not hate, dislike.
<headius>
I believe in MRI too
<fir_ed>
I dislike the jvm
<headius>
for any specific reason?
<Spooner_>
CRuby works better on Windows than any other version. That matters, even if you don't use Windows (unless you only want cross-platform stuff to be ported from Windows, not to Windows :D).
<banisterfiend>
headius: yeah, i think it's safer to stay at home than attend conferences these days..
Xeago_ has joined #ruby
Xeago has quit [Killed (hobana.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<fir_ed>
Spooner_, Rubinius is an option, but we should be focused on improving the standard ruby implementation
<headius>
Spooner_: I'd be very surprised if that were true
<Spooner_>
fir_ed, Yes, but that is what they'd say they are doing.
<headius>
Spooner_: we've had numerous users that could *only* get their apps running on Windows by using JRuby
<Spooner_>
headius, What, that CRuby works best on Windows?
Xeago is now known as Guest57881
Xeago_ has joined #ruby
Guest57881 has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<willbradley>
hokay
<headius>
not to mention the megahassle of C exts on Windows when gem authors don't prebuild
<Spooner_>
headius, JRuby pretty much doesn't support C extensions therefore is mostly useless.
<willbradley>
let's see if you can repeat your amazing success that makes me love you
Xeago_ has joined #ruby
Xeago is now known as Guest35832
Xeago_ is now known as Xeago
Guest35832 has quit [Killed (verne.freenode.net (Nickname regained by services))]
<headius>
Spooner_: useless if you need C extensions
<willbradley>
i've got a hash: {"show"=>{"type"=>"Type"}}
<fir_ed>
headius, really? Cruby has a god damn installer for windows.
<headius>
fir_ed: now try to get your favorite database driver working
<willbradley>
right now i'm iterating with hash.each_pair but it dies on the "Type" string
<fir_ed>
are these users boneheads?
<Spooner_>
headius, Not too bad as long as you don't need external libs. RubyInstaller + devkit works for most binary gems fine.
<headius>
fir_ed: or any C exts that aren't already build for Windows
Xeago_ has joined #ruby
Xeago is now known as Guest68359
Guest68359 has quit [Killed (calvino.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<headius>
Spooner_: that's assuming the gems even work on Windows
<willbradley>
i'm basically trying to output the hash tree recursively, with increasing indents, yaml style
<headius>
how many C ext developers do you know that test on Windows, eh?
<fir_ed>
headius, have you heard of the devkit? it works fine.
<fir_ed>
and very simple.
<Spooner_>
headius, Yes, a few don't work. I said that CRuby works massively better than JRuby (et al). Not that it is perfect.
<Spooner_>
headius, Me.
aytch has quit [Remote host closed the connection]
<headius>
Spooner_: well, that's one :-)
nfisher has joined #ruby
<Spooner_>
headius, And my exts work better on Windows - segfault here on Linux because it is more picky :D
<headius>
and if C ext is your only reason to use MRI, great
<headius>
C ext API is the #1 thing holding Ruby back
Neandre has quit [Remote host closed the connection]
<Spooner_>
JRuby is fine if you only want access to Java stuff, not Ruby C stuff.
nfisher has quit [Client Quit]
Xeago_ has joined #ruby
Xeago has quit [Killed (gibson.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<headius>
you can use FFI on any platform to bind C libs
jblack has quit [Quit: Lost terminal]
<headius>
you just don't get the MRI C API
tealmage has quit [Ping timeout: 245 seconds]
nfisher has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (adams.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<Spooner_>
You can, but that doesn't allow for building C extensions directly. I've done both and actually, the FFI doesn't work great on Windows :D
<Spooner_>
Keep meaning to re-write that FFI'ed dll as a C ext so it works :D
Xeago_ has joined #ruby
Xeago is now known as Guest73341
Guest73341 has quit [Killed (card.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
adkron has joined #ruby
tealmage has joined #ruby
<Spooner_>
Don't get me wrong. I'd much prefer to use another version than CRuby.
<headius>
FFI should work fine on Windows
<fir_ed>
I brought this up to rally support *for* CRuby
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Xeago is now known as Guest55073
Guest55073 has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
<fir_ed>
it needs to be improved.
<headius>
if it doesn't, report an issue to us
<headius>
and the FFI for MRI *is* a C ext
Sicp has quit [Ping timeout: 252 seconds]
otherj has quit []
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
xardas has quit [Ping timeout: 255 seconds]
bean has joined #ruby
<headius>
fir_ed: rallying support for one project by saying you hate another is not the greatest way to start
thisirs has quit [Remote host closed the connection]
<fir_ed>
ahaha true that.
subbyyy has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<fir_ed>
Jruby seems so pointless though.
<fir_ed>
That's why.
samuelkadolph has quit [Quit: Quitting]
d2dchat has quit [Remote host closed the connection]
<banisterfiend>
fir_ed: you say silly things
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Xeago has quit [Killed (asimov.freenode.net (Nickname regained by services))]
samuelkadolph has joined #ruby
havenn has joined #ruby
<headius>
fir_ed: except that it's faster, has a better GC, doesn't require native deps or a compiler, doesn't have a GIL
<fir_ed>
banisterfiend, Why's that? If all ruby devs/supporters concentrated their efforts on one implementation, that one implementation would be so much better
<headius>
that doesn't seem pointless to me
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
havenn is now known as havenwood
binaryplease has quit [Quit: WeeChat 0.4.0]
sambao21 has quit [Ping timeout: 260 seconds]
<fir_ed>
There's something wrong with Ruby if the reference implementation isn't the best.
Xeago_ has joined #ruby
Xeago has quit [Killed (adams.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
julian-delphiki has quit [Ping timeout: 272 seconds]
Xeago_ has joined #ruby
Xeago is now known as Guest26508
Guest26508 has quit [Killed (asimov.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
sambao21 has joined #ruby
<headius>
fir_ed: the best at what?
<headius>
it has the best startup time…satisfied? :-)
<havenwood>
fir_ed: Best at some things, not best at others seems fine to me? Having multiple top quality implementations seems like a 'problem' tons of languages would love to have!
<havenwood>
headius: best fork!
Xeago_ has joined #ruby
Xeago is now known as Guest46419
Xeago_ is now known as Xeago
Guest46419 has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
tish has joined #ruby
<headius>
havenwood: that's fair too!
freeayu has quit [Read error: Connection reset by peer]
<banisterfiend>
headius: i wouldn't even bother with him, he doesn't seem well-informed enough. #ruby has a lot of beginners with strong views, give them 3 months or so and they become more reasonable. :)
Xeago_ has joined #ruby
Xeago is now known as Guest12376
Guest12376 has quit [Killed (sendak.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<headius>
banisterfiend: yeah, I'm just passing the time :-)
<fir_ed>
Thanks for the responses. I'll now go furiously fap hoping that my fapping will increase Cruby's power.
<fir_ed>
Brb.
<headius>
sweet, and he's 12 too
Xeago_ has joined #ruby
Xeago has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<fir_ed>
Fyi banisterfiend: I've been a rubyist since 1.9.2(more than 3 months).
<willbradley>
trying to use .to_yaml -- what's up with all these exclamation marks?
<Spooner_>
willbradley, Can you give a bit more context?
<willbradley>
trying to generate rails yml configs, never seen the ! syntax before
mockra has quit [Remote host closed the connection]
Xeago_ has joined #ruby
Xeago has quit [Killed (gibson.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<willbradley>
google just mentions it exists but nothing very helpful
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Xeago has quit [Killed (niven.freenode.net (Nickname regained by services))]
brianpWins has quit [Quit: brianpWins]
<willbradley>
oh interesting, when i take quotes out it disappears
<willbradley>
subnets:
<willbradley>
subnet: Subnet
<willbradley>
show:
<willbradley>
location: Location
* willbradley
sighs
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
<dopie>
hey all is there a web app where a person takes a photo posts it on instagram or tumblr or another service then i can get that photo they posted and put it on my website?
atno has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
Xeago is now known as Guest39628
Guest39628 has quit [Killed (calvino.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
johndju has quit [Quit: Page closed]
<Spooner_>
willbradley, ! is the prefix for a local data type, but I don't see why those strings are considered thus.
<willbradley>
same here
<willbradley>
i guess i fixed it by removing those characters
<Spooner_>
I'd expect strings to be quoted if they contained odd characters that might otherwise be interpreted by YAML.
emmanuelux has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (wright.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
atno has joined #ruby
kirun has quit [Quit: Client exiting]
<Spooner_>
willbradley, Just sweep it under the carpet and forget about it then :P
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Xeago has quit [Killed (zelazny.freenode.net (Nickname regained by services))]
* willbradley
sighs
backjlack has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Xeago_ has joined #ruby
Xeago has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Xeago has quit [Killed (zelazny.freenode.net (Nickname regained by services))]
slainer68 has quit [Remote host closed the connection]
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Xeago_ has joined #ruby
Xeago is now known as Guest38113
Guest38113 has quit [Killed (sendak.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
heliumsocket has quit [Quit: heliumsocket]
backjlack has joined #ruby
nobuoka has joined #ruby
Xeago is now known as Guest30705
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Guest30705 has quit [Killed (asimov.freenode.net (Nickname regained by services))]
nari has quit [Ping timeout: 264 seconds]
Xeago_ has joined #ruby
Xeago is now known as Guest77973
Guest77973 has quit [Killed (card.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
angusiguess has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby
havenwood has quit [Remote host closed the connection]
emmanuelux has quit [Quit: emmanuelux]
jdunck has quit [Quit: Computer has gone to sleep.]
Xeago_ has joined #ruby
Xeago is now known as Guest68794
Guest68794 has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
havenwood has joined #ruby
yshh has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
Xeago_ has joined #ruby
Xeago has quit [Killed (verne.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
rabidpraxis has quit [Remote host closed the connection]
rabidpraxis has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest47788
Guest47788 has quit [Killed (sendak.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Xeago is now known as Guest55565
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Guest55565 has quit [Killed (asimov.freenode.net (Nickname regained by services))]
Xeago_ has joined #ruby
Xeago has quit [Killed (hobana.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Xeago_ has joined #ruby
Xeago has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
urbanmonk has joined #ruby
nfisher has quit [Quit: Well past bed time in the UK...]
Xeago_ has joined #ruby
Xeago is now known as Guest41984
Guest41984 has quit [Killed (verne.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
ffranz has quit [Quit: Leaving]
adkron has quit [Ping timeout: 276 seconds]
Xeago_ has joined #ruby
Xeago has quit [Killed (niven.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
tvw has quit []
rabidpraxis has quit [Ping timeout: 252 seconds]
osvico has quit [Ping timeout: 256 seconds]
<urbanmonk>
I want to save a block to a variable so that I can reuse it in multiple calls to map/collect .. I have the following snippet but it doesn't work ... https://gist.github.com/rvelasquez/5218070
Xeago_ has joined #ruby
Xeago is now known as Guest41177
Guest41177 has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<urbanmonk>
complains about number of arguments
haxrbyte has quit [Remote host closed the connection]
<dopie>
eeee
Giorgio has quit [Read error: Operation timed out]
dopie has quit [Quit: Page closed]
Xeago_ has joined #ruby
Xeago is now known as Guest6349
Guest6349 has quit [Killed (calvino.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
haxrbyte has joined #ruby
icole has joined #ruby
Virunga has quit [Remote host closed the connection]
Kirotan has quit [Ping timeout: 256 seconds]
Xeago_ has joined #ruby
Xeago has quit [Killed (cameron.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest92919
Guest92919 has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Xeago_ has joined #ruby
Xeago is now known as Guest84240
Xeago_ is now known as Xeago
Guest84240 has quit [Killed (card.freenode.net (Nickname regained by services))]
huoxito has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest10602
Guest10602 has quit [Killed (sendak.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
rabidpraxis has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest13091
Guest13091 has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
predator217 has joined #ruby
_maes_ has joined #ruby
icole has quit [Ping timeout: 256 seconds]
djcp has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
Xeago_ has joined #ruby
Xeago has quit [Killed (gibson.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
rabidpraxis has joined #ruby
Xeago is now known as Guest4240
Xeago_ has joined #ruby
Guest4240 has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Xeago_ has joined #ruby
Xeago has quit [Killed (verne.freenode.net (Nickname regained by services))]
<dallasm_>
object.class.name works, so string comparison is cool but not class comparison?
<dallasm_>
it seems to be related to the case statement or something
<dallasm_>
Time == Time.now.class # true
dhruvasagar has joined #ruby
kofno has quit [Remote host closed the connection]
astegman has joined #ruby
rabidpraxis has joined #ruby
etcetera has joined #ruby
ilyam has joined #ruby
bradleyprice has quit [Remote host closed the connection]
justsee has quit [Quit: Leaving...]
etcetera has quit [Client Quit]
andersbr has quit [Quit: andersbr]
tish has quit [Quit: Leaving.]
Kirotan has joined #ruby
<Nom->
dallasm_: you probably want instance_of?
astegman has quit [Ping timeout: 256 seconds]
<Nom->
if foo is_a?(Time)
<Nom->
actually, let me irb that ... it might be a method
<dallasm_>
.kind_of? works
<Nom->
Yep, .kind_of? works
dhruvasagar has quit [Read error: Connection reset by peer]
<Nom->
is_a? should be a synonum of that too
<Nom->
*synonym
<dallasm_>
but i usually like to use case statements for these kinds of methods
chrishough has joined #ruby
<dallasm_>
i was surprised that this didn't work
<banister`sleep>
kind_of? and is_a? are aliases yeah
<banister`sleep>
instance_of? is different tho
brhelwig has quit [Read error: Connection reset by peer]
brhelwig has joined #ruby
andersbr has joined #ruby
jurassic_ has joined #ruby
xpen has joined #ruby
<Nom->
If this is a test case, you probably want to be using other methods to ensure it's returning what you expect
mikurubeam has joined #ruby
pepper_chico has joined #ruby
crackfu has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 260 seconds]
rezzack has joined #ruby
<Nom->
In rspec, there's a is_a() matcher
<Nom->
describe 'test' do it { Time.now.should be_a(Time) } end
osvico has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
TMM has joined #ruby
rezzack has quit [Ping timeout: 252 seconds]
rabidpraxis has quit [Remote host closed the connection]
rabidpraxis has joined #ruby
cyong has joined #ruby
_cheney2 has joined #ruby
verysoftoiletppr has quit []
angusiguess has quit [Ping timeout: 240 seconds]
rabidpraxis has quit [Ping timeout: 255 seconds]
BSaboia has joined #ruby
elux has quit [Quit: Leaving...]
forced_request has quit [Read error: Connection reset by peer]
w|t has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
vagmi has joined #ruby
havenwood has joined #ruby
w|t has joined #ruby
freezey has quit [Remote host closed the connection]
jpcamara has quit [Quit: jpcamara]
_hemanth is now known as hemanth
presto53 has joined #ruby
<hemanth>
using hash is a better way of avoiding parameter coupling?
rabidpraxis has joined #ruby
vagmi has quit [Quit: vagmi]
BSaboia has quit [Ping timeout: 256 seconds]
<bean>
in 2.0 there are keywork argument
<bean>
s
havenwood has quit [Ping timeout: 256 seconds]
<hemanth>
bean, ya, but is that a good way? Even though it's a single parameter, it will have many entities ...
tish has joined #ruby
<bean>
I guess I don't know what you mean by parameter coupling
<bnagy>
I think he means ordering
<shevy>
hemanth using a hash has one huge advantage - it's dead simple
etcetera has joined #ruby
<shevy>
if hash.has_key?(:cat)
<hemanth>
shevy, oki :) felt so, but wanted to see how others are solving it
kofno has quit [Remote host closed the connection]
<shevy>
dunno yet, I dont have any real experience with 2.0, but I am reluctant to change to something until I know that the new way is totally kick ass
<shevy>
and, I forget the syntax...
<hemanth>
bean, lesser number of args => less coupling
<hemanth>
shevy, syntax can be looked up anytime :) ?
mattbl has quit [Quit: This computer has gone to sleep]
<shevy>
one day when I figure out how to add documentation, I'll add +20 more gems at least
shock_one has quit [Read error: Operation timed out]
Axsuul has quit [Ping timeout: 264 seconds]
<otters>
now I'm trying to figure out how to composite text with rmagick :(
mattbl has joined #ruby
<shevy>
hehe
<shevy>
imagemagick is cool
<otters>
i guess
<shevy>
you can create complete pictures
<shevy>
and font manipulation too
<shevy>
without having to use gimp
brhelwig_ has quit [Remote host closed the connection]
Gooder has joined #ruby
sandGorgon has joined #ruby
rabidpraxis has joined #ruby
havenwood has quit [Remote host closed the connection]
<shevy>
exec('ls')
<shevy>
hahaha
<shevy>
that kinda quits irb
krainboltgreene has joined #ruby
rabidpraxis has quit [Ping timeout: 245 seconds]
uris has quit [Read error: Operation timed out]
vandemar has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
tekacs has quit [Quit: Disappearing... *poof*]
tekacs has joined #ruby
vlad_starkov has joined #ruby
cyong has quit [Quit: Leaving.]
carraroj has joined #ruby
a_a_g has joined #ruby
bradleyprice has quit [Remote host closed the connection]
lancepantz_ is now known as lancepantz
vandemar has joined #ruby
c0rn has joined #ruby
thinkclay has quit [Quit: Leaving.]
<riginding>
/win next
mikepack has quit [Remote host closed the connection]
uris has joined #ruby
mockra has quit [Remote host closed the connection]
backjlack has joined #ruby
<hemanth>
Heya Hanmac
jonahR has quit [Quit: jonahR]
sambio has quit []
icole has joined #ruby
NightCreature has quit [Remote host closed the connection]
aganov has joined #ruby
tyro89 has joined #ruby
brhelwig has joined #ruby
icole has quit [Ping timeout: 260 seconds]
kuzushi has quit [Ping timeout: 260 seconds]
andersbr has joined #ruby
generalissimo has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 252 seconds]
daniel_hinojosa has quit [Ping timeout: 272 seconds]
BizarreCake has quit [Read error: Connection reset by peer]
Hanmac has quit [Quit: Leaving.]
rubarLion has quit [Ping timeout: 252 seconds]
brhelwig has quit [Ping timeout: 264 seconds]
rubarLion has joined #ruby
tagrudev has joined #ruby
a_a_g has quit [Quit: Leaving.]
<willbradley>
thanks for the help earlier; contributing back: willbradley.name/2013/03/rails_localization_i18n_tools/
codecop has joined #ruby
tyro89 has quit [Quit: leaving]
kuzushi has joined #ruby
hamakn has quit [Remote host closed the connection]
workmad3 has joined #ruby
matayam has joined #ruby
osvico has quit [Ping timeout: 256 seconds]
hamakn has joined #ruby
rubarLion has quit [Ping timeout: 240 seconds]
ukd1_ has joined #ruby
rubarLion has joined #ruby
brhelwig has joined #ruby
security has quit [Ping timeout: 246 seconds]
ukd1 has quit [Ping timeout: 252 seconds]
thebastl has joined #ruby
razibog has quit [Ping timeout: 252 seconds]
ukd1_ has quit [Remote host closed the connection]
backjlack has quit [Ping timeout: 255 seconds]
rubarLion has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
coderhs has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Ping timeout: 245 seconds]
Tricon has quit [Quit: Leaving...]
vagmi has quit [Quit: vagmi]
workmad3 has quit [Ping timeout: 256 seconds]
vagmi has joined #ruby
ilyam has quit [Quit: ilyam]
DrShoggoth has quit [Quit: Leaving]
haxrbyte has quit [Remote host closed the connection]
rubarLion has joined #ruby
lctgb has joined #ruby
tjbiddle has joined #ruby
apeiros_ has joined #ruby
haxrbyte has joined #ruby
ukd1 has joined #ruby
lctgb has left #ruby [#ruby]
Vainoharhainen has joined #ruby
security has joined #ruby
averiso has joined #ruby
tish has quit [Quit: Leaving.]
sleetdro_ has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
dsferreira has joined #ruby
matayam has quit [Remote host closed the connection]
JLT has joined #ruby
<JLT>
if ( @listenTo.include? $1 || $1 == @master ) - how come this doesn't seem to work. @listenTo does not have my nickname, but @master is my nickname so the if statement should return true... right?
sleetdrop has quit [Ping timeout: 264 seconds]
sleetdro_ is now known as sleetdrop
Hanmac has joined #ruby
chussenot has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
lancepantz is now known as lancepantz_
Morkel has joined #ruby
vagmi has quit [Read error: Connection reset by peer]
<JLT>
It appears my || is breaking it...
<JLT>
if ( @listenTo.include? $1 || $1 == @master ) ... I individually tested each one and it works, but together in an || it wont...
vagmi has joined #ruby
<Hanmac>
JLT if you not use () you need or , not ||
<Hanmac>
or swap it: $1 == @master || @listenTo.include? $1
andikr has joined #ruby
<JLT>
if ( (@listenTo.include? $1) || ($1 == $master) ) or if ( @listenTo.include?($1) || $1 == @master )
<JLT>
?
ukd1 has quit [Remote host closed the connection]
dEPy has joined #ruby
ilyam has joined #ruby
pkordel has joined #ruby
pkordel has left #ruby [#ruby]
haxrbyte has joined #ruby
slainer68 has joined #ruby
mockra has joined #ruby
coderhs has quit [Ping timeout: 245 seconds]
tjbiddle has quit [Quit: tjbiddle]
zigomir has joined #ruby
dr_bob has joined #ruby
<Hanmac>
JLT or my last line
tish has joined #ruby
marcdel has quit []
io_syl has joined #ruby
bluOxigen has joined #ruby
mockra has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
thebastl has quit [Remote host closed the connection]
<Hanmac>
wf2f if you are crazy enough you could design it as FiniteStateMachine :D
razibog has joined #ruby
<wf2f>
lol
<wf2f>
no
rubarLion has quit [Read error: Connection reset by peer]
wf2f has left #ruby [#ruby]
apod has joined #ruby
leo2007 has joined #ruby
rabidpraxis has joined #ruby
<leo2007>
folks, could you help me with the following questions? 1. what is the best repl? 2. what is the best static analysis tool 3. What is the best debugger? 4. any other tools one should miss for modern ruby development?
<leo2007>
thanks you for your answers.
rubarLion has joined #ruby
keymone has joined #ruby
jimeh has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
<Hanmac>
leo2007 1) irb or pry, 4) rake should not be missed
samuel02 has quit [Remote host closed the connection]
pi3r has joined #ruby
threesome has joined #ruby
icole has joined #ruby
mpfundstein has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
<leo2007>
Hanmac: I think so.
timonv has joined #ruby
robscomputer has joined #ruby
ferdev has joined #ruby
hasimo-t has quit [Remote host closed the connection]
rubarLion has quit [Ping timeout: 264 seconds]
mootpointer has quit [Quit: Computer has gone to sleep.]
rubarLion has joined #ruby
icole has quit [Ping timeout: 260 seconds]
kuzushi has quit [Ping timeout: 260 seconds]
shock_one has joined #ruby
chussenot has quit [Quit: chussenot]
threesome has quit [Ping timeout: 256 seconds]
hasimo-t has joined #ruby
samuel02 has joined #ruby
pkordel has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
francisfish has joined #ruby
pepper_chico has quit [Quit: Computer has gone to sleep.]
tish has quit [Quit: Leaving.]
blacktulip has joined #ruby
jmeeuwen has joined #ruby
threesome has joined #ruby
awestroke has joined #ruby
tewlz has quit [Ping timeout: 264 seconds]
toekutr has quit [Remote host closed the connection]
<awestroke>
What is it called when you "alias" some methods to go through an object, like so: "proxy_method :to_a, to: :an_internal_object
timonv has quit [Remote host closed the connection]
<Mon_Ouie>
Delegating
tewlz has joined #ruby
marr has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
<Mon_Ouie>
Or forwarding, as there's the Forwardable module in stdlib that allows it
<Hanmac>
awestroke you could use the delegate stuff from the stdlib
predator217 has quit [Ping timeout: 240 seconds]
predator117 has joined #ruby
<awestroke>
looked at the delegate class, but I don't want it to automatically create the object
browndawg has joined #ruby
<awestroke>
forwardable looks great!
timmow has joined #ruby
yekta has joined #ruby
hasimo-t has quit [Remote host closed the connection]
timmow has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
timmow has joined #ruby
adambeynon has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
threesome has quit [Read error: Operation timed out]
apod has quit []
elaptics`away is now known as elaptics
haxrbyte has joined #ruby
hmarr has joined #ruby
Matip has joined #ruby
hamed_r has joined #ruby
mikurubeam has joined #ruby
Gooder has quit [Read error: Connection reset by peer]
ilyam has quit [Quit: ilyam]
Mattx has quit [Ping timeout: 260 seconds]
rabidpraxis has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
charliesome has joined #ruby
andersbr has quit [Quit: andersbr]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
rabidpraxis has quit [Ping timeout: 256 seconds]
aeden has joined #ruby
aeden has left #ruby [#ruby]
duosrx has joined #ruby
mootpointer has joined #ruby
mootpointer has quit [Client Quit]
pskosinski has joined #ruby
apod has joined #ruby
chussenot has joined #ruby
jsaak has joined #ruby
tish has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Read error: Operation timed out]
haxrbyte has joined #ruby
yekta has quit [Quit: yekta]
threesome has joined #ruby
s00pcan has quit [Quit: Lost terminal]
s00pcan has joined #ruby
rubarLion has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 256 seconds]
girija__ has quit [Read error: Connection reset by peer]
girija__ has joined #ruby
pcarrier_ has quit [Read error: Operation timed out]
timonv has joined #ruby
decoponio has quit [Quit: Take to stop a load on my PC]
predator117 has joined #ruby
yacks has quit [Ping timeout: 256 seconds]
agarie has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 256 seconds]
sleetdrop has quit [Ping timeout: 240 seconds]
icole has joined #ruby
buscon has joined #ruby
JonnieCache has quit [Quit: leaving]
apod has quit []
apod has joined #ruby
sleetdrop has joined #ruby
nari has quit [Ping timeout: 245 seconds]
verysoftoiletppr has joined #ruby
icole has quit [Ping timeout: 256 seconds]
danslo has joined #ruby
hashmal has joined #ruby
Amnesthesia has joined #ruby
yacks has joined #ruby
girija__ has quit [Read error: Connection reset by peer]
girija__ has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
sandGorgon has quit [Ping timeout: 264 seconds]
fermion has joined #ruby
gyre007 has joined #ruby
gyre007 has quit [Max SendQ exceeded]
io_syl has quit [Quit: Computer has gone to sleep.]
gyre007 has joined #ruby
gyre007 has quit [Max SendQ exceeded]
gyre007 has joined #ruby
sleetdrop has quit [Ping timeout: 260 seconds]
gyre007 has quit [Max SendQ exceeded]
BizarreCake has joined #ruby
gyre007 has joined #ruby
gyre007 has quit [Max SendQ exceeded]
gyre007 has joined #ruby
gyre007 has quit [Max SendQ exceeded]
girija__ has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
gyre007 has quit [Max SendQ exceeded]
gyre007 has joined #ruby
gyre007 has quit [Max SendQ exceeded]
girija__ has joined #ruby
gyre007 has joined #ruby
krainboltgreene has quit []
Es0teric has joined #ruby
leo2007 has quit [Ping timeout: 256 seconds]
girija__ has quit [Read error: Connection reset by peer]
girija__ has joined #ruby
pcarrier_ has joined #ruby
Es0teric has quit [Client Quit]
Vert has joined #ruby
KirSo has joined #ruby
sleetdrop has joined #ruby
jimeh has quit [Ping timeout: 252 seconds]
KirSo has quit [Client Quit]
leo2007 has joined #ruby
zigidias has quit [Ping timeout: 245 seconds]
sandGorgon has joined #ruby
jimeh has joined #ruby
madb055 has joined #ruby
binaryplease has joined #ruby
zigidias has joined #ruby
girija__ has quit [Read error: Connection reset by peer]
girija__ has joined #ruby
Arafangion has joined #ruby
<Arafangion>
What's a good unzip library for rake?
hamed_r has quit [Quit: Leaving]
<Arafangion>
I want to unpack a particular .zip file to a particular directory.
<Arafangion>
But... I also want it to be portable.
eka has joined #ruby
cantonic has joined #ruby
cantonic has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
* Arafangion
gives rubyzip a go.
mikewintermute has quit [Quit: mikewintermute]
nari has joined #ruby
kristofers has joined #ruby
BadDesign has joined #ruby
tvw has joined #ruby
beiter has joined #ruby
rickmasta has joined #ruby
rabidpraxis has joined #ruby
stef_204 has joined #ruby
stef_204 has quit [Client Quit]
stef_204 has joined #ruby
jgrevich has quit [Remote host closed the connection]
rabidpraxis has quit [Ping timeout: 256 seconds]
duosrx has quit [Ping timeout: 264 seconds]
justsee has joined #ruby
xcv has quit [Remote host closed the connection]
timmow has quit [Remote host closed the connection]
duosrx has joined #ruby
freeayu3 has joined #ruby
xcv has joined #ruby
girija__ has quit [Read error: Connection reset by peer]
tish has quit [Quit: Leaving.]
girija__ has joined #ruby
BSaboia has joined #ruby
freeayu__ has quit [Ping timeout: 240 seconds]
sandGorgon has quit [Ping timeout: 240 seconds]
BadDesign has quit [Read error: Connection reset by peer]
BadDesign has joined #ruby
BadDesign has quit [Changing host]
BadDesign has joined #ruby
sandGorgon has joined #ruby
maxmanders has joined #ruby
timmow has joined #ruby
vlad_starkov has joined #ruby
timmow has quit [Remote host closed the connection]
timmow has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
<Arafangion>
Hmm. Is this the right place to ask about rake?
<Arafangion>
If I have a file task that generates a file, and incidentally, also generates other files which are dependencies...
<Arafangion>
Eg: file 'foo.c' => 'foo.zip' do sh "unpack foo.zip" end
<Arafangion>
But foo.zip contains other source files.
jetblack has quit [Ping timeout: 255 seconds]
<Arafangion>
What might be a good wayt o manage that?
browndawg has left #ruby [#ruby]
Matip has quit [Quit: Leaving]
Domon has quit [Remote host closed the connection]
gokul has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<Arafangion>
Also, how do I avoid writing: require 'rubygems' in ruby 1.8?
<Hanmac>
Arafangion: with uninstalling ruby1.8
<hackeron>
is there some library for Ruby to fork say 100 processes and monitor them and restart if needed? -- I tried God and Bluepill but they had no dependencies (starting 1 process only if another is started) and weren't really suited for more than a few processes (very high CPU load with more than 20 or so).
<Arafangion>
Hanmac: touche.
gstudent2 is now known as germanstudent
sonda has joined #ruby
nomenkun has joined #ruby
Virunga has joined #ruby
JonnieCache has joined #ruby
philipd has joined #ruby
k610 has joined #ruby
mootpointer has joined #ruby
tgunr has quit [Ping timeout: 256 seconds]
freeayu3 has quit [Ping timeout: 260 seconds]
nomenkun has quit [Remote host closed the connection]
tcopp has joined #ruby
Quebert has joined #ruby
davetherat has quit [Remote host closed the connection]
nomenkun has joined #ruby
davetherat has joined #ruby
maxmanders has joined #ruby
rocket has joined #ruby
hasimo-t has joined #ruby
vff has joined #ruby
Quebert has quit [Ping timeout: 264 seconds]
hemanth has quit [Quit: Leaving]
shellox has joined #ruby
<shellox>
hi
hasimo-t_ has joined #ruby
freeayu has joined #ruby
vff has quit []
<shellox>
can anyone help me with a regex please. I want to match all the text between --- and ---
mootpointer has quit [Quit: Computer has gone to sleep.]
pac1 has quit [Quit: I got it one line of code at a time]
freeayu has joined #ruby
Qwak has joined #ruby
ksinkar has joined #ruby
wodKa has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
_JamieD_ has joined #ruby
rabidpraxis has joined #ruby
Targen has quit [Ping timeout: 245 seconds]
hasimo-t has joined #ruby
mhn23 has joined #ruby
<mhn23>
good day everybody.
<Arafangion>
mhn23: G'day.
<mhn23>
i'm new to web development. so i read about there is php, which is well known, and ruby, asp etc. what is ruby? when do i use it? should i learn it?
freeayu has quit [Ping timeout: 264 seconds]
<Arafangion>
mhn23: Ruby is a language, as is php.
<mhn23>
yeah i figured that
hasimo-t_ has quit [Ping timeout: 245 seconds]
<mhn23>
so when do i use it? should i learn it? are the capabilities the same as php?
sepp2k has joined #ruby
rickmasta has quit [Quit: Leaving...]
92AAB9ME3 has quit [Quit: 92AAB9ME3]
rabidpraxis has quit [Ping timeout: 264 seconds]
<mhn23>
i see people often use php for sql work
ksinkar has quit [Quit: Konversation terminated!]
<mhn23>
so i thought. well if ruby is "better" should i learn it rather than php?
nkr has joined #ruby
awestroke has quit [Remote host closed the connection]
Xeago_ has joined #ruby
Xeago is now known as Guest33632
Guest33632 has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<Arafangion>
mhn23: It is a question of which suits the job. There are usually other requiremetns that dictate the language and framework you choose.
kofno has joined #ruby
<Arafangion>
mhn23: Pick one. Learn it. Get fed up with it. Pick something else.
Xeago_ has joined #ruby
Xeago has quit [Killed (cameron.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Xeago_ has joined #ruby
Xeago is now known as Guest34943
Guest34943 has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<mhn23>
mh i see
chussenot has quit [Quit: chussenot]
Xeago_ has joined #ruby
Xeago has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Xeago_ has joined #ruby
Xeago has quit [Killed (card.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
miso1337 has quit [Quit: afk]
<JonnieCache>
mhn23: sinatra is a good choice
Xeago_ has joined #ruby
Xeago is now known as Guest93666
<JonnieCache>
so is rails
Guest93666 has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<JonnieCache>
learning rails, getting sick of it and then applying its ideas to sinatra is a proven pathway
Xeago_ has joined #ruby
Xeago has quit [Killed (asimov.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Xeago_ has joined #ruby
Xeago has quit [Killed (niven.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
slainer68 has quit [Remote host closed the connection]
Xeago is now known as Guest24612
Xeago_ has joined #ruby
Guest24612 has quit [Killed (calvino.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<mhn23>
hahaha alright thx for suggestion
grayson has joined #ruby
<Arafangion>
mhn23: Do note the humour used.
* Hanmac
is now also known as Xeago :P
Xeago_ has joined #ruby
Xeago has quit [Killed (card.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
BSaboia has joined #ruby
skattyadz has joined #ruby
<mhn23>
noted: get into sinatra
<Arafangion>
Hanmac: Spammer, you're filling up my scrollback with attempted nick changes. :)
Xeago_ has joined #ruby
Xeago is now known as Guest70955
Guest70955 has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
gokul has quit [Quit: Leaving]
mikurubeam has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
<JonnieCache>
mhn23: the point is there is a lot to learn from rails. but as you use it more and more it becomes constricting
Xeago_ has joined #ruby
Xeago is now known as Guest6037
Guest6037 has quit [Killed (adams.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
gokul has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (cameron.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Xeago_ has joined #ruby
Xeago is now known as Guest38446
Xeago_ is now known as Xeago
Guest38446 has quit [Killed (hobana.freenode.net (Nickname regained by services))]
<Hanmac>
mhn23 i suggest if you really want to learn Rails, please learn Ruby first
Kirotan has quit [Ping timeout: 256 seconds]
<Arafangion>
mhn23: Are you working in a team by any chance?
sleetdrop has quit [Quit: Computer has gone to sleep.]
<mhn23>
no just by interest
aharoni has quit [Remote host closed the connection]
* Hanmac
is also in a team, with myself, me, and me-nions :P
Xeago_ has joined #ruby
Xeago is now known as Guest61994
Guest61994 has quit [Killed (verne.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<mhn23>
>implying it was funny
RonScagz has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
philipd has quit [Quit: Computer has gone to sleep.]
Xeago_ has joined #ruby
Xeago has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
kpshek has joined #ruby
<mhn23>
i do webdesign by myself and some js/jQuery but i got some interest getting into php or an alternative
Kirotan has joined #ruby
<Hanmac>
apeiros_: can you do something with Xeago?
Xeago_ has joined #ruby
Xeago has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
kirun has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (cameron.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
maxmanders has quit [Quit: Computer has gone to sleep.]
<mhn23>
why the fuck are you spamming
Xeago_ has joined #ruby
Xeago is now known as Guest62525
Guest62525 has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<shellox>
mhn23:looks a bit like a bot
urbanmonk has quit [Quit: Bye!]
luizk has joined #ruby
hasimo-t has quit [Remote host closed the connection]
Xeago_ has joined #ruby
Xeago has quit [Killed (asimov.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
luizk has left #ruby [#ruby]
jgrau has quit [Remote host closed the connection]
maxmanders has joined #ruby
jgrau has joined #ruby
thufir_ has quit [Quit: Leaving.]
Xeago_ has joined #ruby
Xeago has quit [Killed (adams.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
ArchBeOS has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (card.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
jgrau has quit [Remote host closed the connection]
jgrau has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
s1n4 has joined #ruby
nfisher has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
Xeago_ has joined #ruby
Xeago is now known as Guest93240
Guest93240 has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
jgrau has quit [Remote host closed the connection]
kpshek has quit []
jgrau has joined #ruby
gokul has quit [Quit: Leaving]
Xeago_ has joined #ruby
<mhn23>
good that this chan doesn't have an op then...
Xeago is now known as Guest2333
Guest2333 has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
eka has joined #ruby
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
Xeago has quit [Killed (niven.freenode.net (Nickname regained by services))]
verysoftoiletppr has quit []
maxmanders has quit [Client Quit]
Xeago_ has joined #ruby
Xeago_ is now known as Xeago
<JonnieCache>
it does have ops they just dont wear the @ all the time
<JonnieCache>
banister`sleep: we need your powers
verysoftoiletppr has joined #ruby
<JonnieCache>
apparently
Xeago_ has joined #ruby
Xeago is now known as Guest94368
Guest94368 has quit [Killed (wright.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
* JonnieCache
has most of those messages turned off
Xeago_ has joined #ruby
Xeago is now known as Guest41026
Guest41026 has quit [Killed (sendak.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Hanmac has joined #ruby
Naeblis has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (verne.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
BRMatt has joined #ruby
jgrau has quit [Remote host closed the connection]
jgrau has joined #ruby
<Naeblis>
Hi. I need something like SML Pattern matching in Ruby. I want to check if a subarray ["foo", 10] exists in an array, only, the second element can be any integer. I tried regex, but it's not working.
Xeago_ has joined #ruby
Xeago is now known as Guest39475
Guest39475 has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
Xeago_ has joined #ruby
Xeago has quit [Killed (calvino.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<Naeblis>
(won't work, since regex won't match with Fixnums, I imagine)
vlad_starkov has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (cameron.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<JonnieCache>
interesting
<JonnieCache>
you could iterate with each_slice but it would depend on the nature of the data in the array, does it always come in pairs?
emergion has joined #ruby
Xeago has quit [Remote host closed the connection]
<JonnieCache>
each_slice would be for when the arrays arent nested
<Xeago>
does anyone know the incantation to NickServ to not kick off a second authenticated connection?
<k610>
how can i run then install "rvm requirements" before failling installing ruby using rvm.io oneliner ?
<Naeblis>
cool
<Naeblis>
thanks guys!
Wigflip has quit [Quit: Computer has gone to sleep.]
Giorgio has joined #ruby
ExxKA has joined #ruby
<JonnieCache>
k610: try #rvm
sleetdrop has quit [Client Quit]
hogeo has quit [Remote host closed the connection]
<k610>
JonnieCache, it ain't installed yet
mootpointer has joined #ruby
freeayu has joined #ruby
<hackeron>
hey, I want to create a log method for every severity, so say log.info('asd') and log.emerg('asd') - right now, I'm doing [:emerg, :alert, ...].each do |method| and then I do eval where I def #{method}(msg) -- is there a cleaner way?
ArchBeOS has left #ruby ["Leaving"]
mootpointer has quit [Client Quit]
freeayu has quit [Remote host closed the connection]
<k610>
JonnieCache, sry i see u ment the channel
<JonnieCache>
hackeron: you can just do `def` inside the loop i think
<JonnieCache>
hackeron: or you can call define_method with a block
nomenkun has quit [Remote host closed the connection]
<JonnieCache>
no you need the second one, def wont take a variable like that
browndawg has joined #ruby
ferdev has quit [Ping timeout: 252 seconds]
<JonnieCache>
you need `def method_name do |*args|`
maxmanders has joined #ruby
slainer68 has joined #ruby
cheez0r has quit [Read error: Operation timed out]
jonahR has joined #ruby
<hackeron>
JonnieCache: yeh, so how do I do that? - define_method(logger[0], *args) { log(logger[0], args) }?
jonahR has quit [Client Quit]
enriclluelles has joined #ruby
Naeblis has left #ruby [#ruby]
angusiguess has joined #ruby
hbpoison has joined #ruby
ferdev has joined #ruby
divout has quit [Quit: Leaving.]
<JonnieCache>
yep, except logger[0] would be the block variable from your each call, and you need to splat the args variable again when you pass it into log
tommyvyo has joined #ruby
moos3 has joined #ruby
pyrac has joined #ruby
maxmanders has quit [Ping timeout: 256 seconds]
<hackeron>
JonnieCache: I don't believe that works, I found an example online that looks like this: define_method method.to_sym, ->(*args) { log(method.to_sym, *args) }
mark_locklear has joined #ruby
hasimo-t has joined #ruby
<JonnieCache>
thats basically the same thing
otherj has joined #ruby
<JonnieCache>
except youre passing a lambda instead of using the block syntax
xpen has quit [Remote host closed the connection]
<JonnieCache>
oh no the missing bit before was the block param
<JonnieCache>
it will be neater to just make sure that method is already a symbol, by just puting symbols in your array
slainer68 has quit [Ping timeout: 245 seconds]
sonda has quit [Remote host closed the connection]
<hackeron>
JonnieCache: true, thanks :) - trying
tommyvyo has quit [Quit:]
ExxKA has quit [Quit: This computer has gone to sleep]
freeayu has joined #ruby
philipd has joined #ruby
philipd has quit [Max SendQ exceeded]
<apeiros_>
Hanmac: sorry, was afk. but it seems to have resolved itself
philipd has joined #ruby
philipd has quit [Max SendQ exceeded]
<hackeron>
JonnieCache: hmm, I just see logs like [debug]: #{s_prefix}#{msg} -- looks like the *args are not passed correctly
philipd has joined #ruby
philipd has quit [Max SendQ exceeded]
nomenkun has joined #ruby
dhruvasagar has joined #ruby
philipd has joined #ruby
cjs226 has quit []
<apeiros_>
Xeago: seems I had noob luck. The pc did not explode after building it together. I'm *probably* available from 20.00 on for HOTS :D
madb055 has quit [Ping timeout: 246 seconds]
verysoftoiletppr has quit []
sonda has joined #ruby
AlStanforth has joined #ruby
lkba has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Faris has joined #ruby
rabidpraxis has joined #ruby
lessless has joined #ruby
girija has quit [Ping timeout: 264 seconds]
rabidpraxis has quit [Ping timeout: 245 seconds]
Tricon has joined #ruby
girija has joined #ruby
maxmanders has quit [Ping timeout: 252 seconds]
jayz12 has joined #ruby
<jayz12>
question: rdoc's executable "rdoc" conflicts with /usr/local/bin/rdoc - what to do?
<jayz12>
I am trying to set up redmine what for I need ruby.
<jayz12>
I am a total newb to ruby
ferdev has quit [Read error: Connection reset by peer]
subbyyy has joined #ruby
maxmanders has joined #ruby
jetblack has joined #ruby
BadDesign has left #ruby [#ruby]
girija has quit [Ping timeout: 260 seconds]
otherj has quit []
irocksu has joined #ruby
<irocksu>
Hi
<irocksu>
when i try to irb i get always the following error
<irocksu>
custom_require.rb:36:in `require':LoadError: cannot load such file -- irb/completition
AlStanforth has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 276 seconds]
mikewintermute has joined #ruby
<irocksu>
i figured that this might be due to readline
jonathanwallace has quit [Ping timeout: 246 seconds]
invisime has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
<irocksu>
but somehow i cannot fix this problem
ferdev has joined #ruby
<irocksu>
i am on mac mountain lion with rbenv
ferdev has quit [Read error: Connection reset by peer]
<Hanmac>
irocksu: does »require "readline"« works?
<irocksu>
false
<irocksu>
it seems it does not work
<irocksu>
i used this command to install my ruby CONFIGURE_OPTS="--with-readline-dir=/usr/local --with-openssl-dir=/usr/local" rbenv install 1.9.3-p392
xkickflip has quit [Read error: Connection reset by peer]
<Hanmac>
irocksu: when require returns false it already worked ..
xkickflip has joined #ruby
<irocksu>
oh, then its something else
coderhs has quit [Read error: Connection reset by peer]
madb055 has joined #ruby
bakingbread has joined #ruby
hasimo-t has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
bakingbread has left #ruby ["WeeChat 0.4.0"]
moos3 has quit [Quit: Computer has gone to sleep.]
<julian-delphiki>
shevy, I wish I had some cool ruby projects, I'm just an opinionated DevOps guy.
<MrZYX>
lessless: include makes attribute an instance method, you're calling it as a class method
anonymuse has joined #ruby
maxmanders has joined #ruby
<lessless>
ah, ok :D
ner0x has joined #ruby
<julian-delphiki>
PseudoModuel::attribute would likely work :P but i imagine thats not what you want
riginding has quit [Quit: Changing server]
binaryplease has quit [Ping timeout: 264 seconds]
josefrichter_ has joined #ruby
<Hanmac>
julian-delphiki i dont think so
<julian-delphiki>
probably not
<julian-delphiki>
i haven't had my coffee yet
<julian-delphiki>
:)
sailias has joined #ruby
* Arafangion
pities julian-delphiki.
<julian-delphiki>
meh, not even 8am yet, warming up my car, getting coffee, heading to work :)
<lessless>
I have a restriction to use include in my task, so I'm curious if is it possible or it is a trap? :)
carloslopes has joined #ruby
<MrZYX>
I'd say both
<julian-delphiki>
lessless what is this for?
<Hanmac>
julian: its homework i think
dustint has joined #ruby
<lessless>
not really, it's an application for a job
<Hanmac>
lessless singleton_class.send(:include) are nearly equal to extend
<Spooner>
lessless, name.to_s +'=' would normally be: "#{name}=" (though helping with a job application seems the most pointless thing to do because you'll fall down on the interview :D).
<Hanmac>
lessless: OR: PseudoModel does have: def self.included(mod);mod.extend(self);end
<ner0x>
Using rvm how do I installed --current with the source as well? I've looked at the website but didn't see anything ruby-head installs the dev.
m8 has joined #ruby
mklappstuhl has joined #ruby
<lessless>
thanks, guys, I'll dig everything out
<julian-delphiki>
ner0x, what are you attempting to accomplush
<Hanmac>
ner0x: #rvm
tmiller has joined #ruby
<ner0x>
Ah! Didn't know they had their own channel. Thanks. :)
<lessless>
Spooner, I love programming so do not want to delegate a fun, just asking what I do not know or in doubt :)
<ner0x>
julian-delphiki: And a stable install with -dev source.
buscon has quit [Quit: Leaving]
Zai00_ has joined #ruby
<julian-delphiki>
lessless, just wondering, what is the question for the interview?
<julian-delphiki>
ner0x, not sure why you'd need the source though?
<lessless>
julian-delphiki, no, it's a test assignment
akashj87 has joined #ruby
<julian-delphiki>
lessless, ah, okay
<ner0x>
julian-delphiki: gem needs it for some reason.
ananthakumaran has quit [Quit: Leaving.]
<julian-delphiki>
ner0x, what gem?
wallerdev has joined #ruby
hasimo-t has quit [Remote host closed the connection]
Zai00 has quit [Ping timeout: 252 seconds]
Zai00_ is now known as Zai00
hasimo-t has joined #ruby
nfisher has quit [Read error: Operation timed out]
mmitchell has quit [Remote host closed the connection]
yashshah has joined #ruby
lolzie has joined #ruby
<johnmilton>
what does?: mean in a regex
postmodern has quit [Quit: Leaving]
chussenot has quit [Quit: chussenot]
<Arafangion>
johnmilton: What context?
timmow has quit [Remote host closed the connection]
chessguy has joined #ruby
<lolzie>
Hey guys. In the case of an IRC server, say - you've got a Channel, a couple of Users. If one user is to kick another, would you arrange it as in channel.kick(kicker, kickee), or kicker.kick(channel, kickee) ?
maxmanders has quit [Quit: Computer has gone to sleep.]
cjs226 has joined #ruby
<lolzie>
Actively speaking it seems like the kicking method would be part of a User, but something at the back of my mind tells me it's more Channel-oriented. Hmm.
<Xeago>
lolzie: in IRC RAW messages I think it is user kick channel kickee
<Xeago>
look at the irc protocol, and stick close to that imo
cmarques has joined #ruby
<Arafangion>
johnmilton: Introduces a group without using a name.
<johnmilton>
ah
<Arafangion>
johnmilton: A non-capturing group, so to speak.
<johnmilton>
makes sense
<johnmilton>
thank you
maxmanders has joined #ruby
<lessless>
juarlex, but if I extend won't attribute be a class method?
<Arafangion>
johnmilton: But do read the documentation. ALmost every single regex engine does things differently with respect to at least one aspect of regex.
<lessless>
julian-delphiki, but if I extend won't attribute be a class method?
<lolzie>
Xeago: I see. Though I'm trying to learn the more general lesson from this; assuming I didn't have a raw protocol message to read - how would I best decide?
<Arafangion>
The worst being vim.
duosrx has quit [Remote host closed the connection]
<johnmilton>
yea i was referencing oniguruma's cheat sheet
<johnmilton>
didn't see an explanation for that one
browndawg has quit [Quit: Leaving.]
<Arafangion>
johnmilton: Use the actual documentation.
<Arafangion>
johnmilton: It's terse as it is, you can't get much more terse without actually removing stuff.
jlast has joined #ruby
<johnmilton>
ok ill check it out
<lessless>
sorry, I mean methods defined in 'attribute' will be a class methods
maxmanders has quit [Client Quit]
jgarvey has joined #ruby
jgrau has quit [Remote host closed the connection]
rabidpraxis has joined #ruby
johnmilton has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
chussenot has joined #ruby
<lolzie>
If anybody active wouldn't mind contributing to my little question above concerning how best to work out which class would be best to put a 'kick' method in, it would be much appreciated! :)
<lolzie>
(Like I say, I'd love to know the general way to do that, using the raw irc protocol as a crux is cheating, hehe :)
enriclluelles has quit [Remote host closed the connection]
chussenot has joined #ruby
kpshek has quit [Ping timeout: 272 seconds]
mockra has joined #ruby
Guest53923 has quit [Ping timeout: 258 seconds]
sambao21 has joined #ruby
fmcgeough has joined #ruby
workmad3 has joined #ruby
pitzips has joined #ruby
chrishough has joined #ruby
<seme>
hi guys is there any example of how to build a client app (not rails) that uses omniauth? I'm trying to find something and everything I find requires rails
<seme>
I appreciate any guidance you guys may have :)
Evixion has joined #ruby
alx- has joined #ruby
averiso has joined #ruby
_JamieD_ has quit [Quit: _JamieD_]
browndawg1 has joined #ruby
browndawg has quit [Read error: Operation timed out]
fire has joined #ruby
jonathanwallace has quit [Ping timeout: 276 seconds]
robscomputer has quit [Remote host closed the connection]
<Gowie>
Is there any callback when an object is killed in memory? I am forking a process and if program runs into an error then that child process sticks around and needs to be killed manually (kill -9 (pid)).
blueOxigen has quit [Ping timeout: 256 seconds]
VinceThePrince has joined #ruby
tomzx_mac has joined #ruby
jrajav has joined #ruby
andersbr has quit [Quit: andersbr]
apeiros_ has quit [Remote host closed the connection]
coderhs has joined #ruby
timmow has joined #ruby
cheez0r_ has joined #ruby
rabidpraxis has joined #ruby
notjohn has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has joined #ruby
tcstar has joined #ruby
Davey has joined #ruby
tcstar has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
rabidpraxis has quit [Ping timeout: 260 seconds]
_maes_ has joined #ruby
jonathanwallace has joined #ruby
aganov has quit [Quit: aganov]
Xeago has joined #ruby
Seventoes has joined #ruby
Seventoes has left #ruby [#ruby]
notjohn has quit [Quit: notjohn]
kpshek has joined #ruby
notjohn has joined #ruby
cgore has joined #ruby
lessless has quit [Ping timeout: 264 seconds]
tagrudev has quit [Remote host closed the connection]
jurassic_ has joined #ruby
j^2 has joined #ruby
marcdel has joined #ruby
Qwak has quit []
MrSamuel has joined #ruby
pyrac has quit [Ping timeout: 240 seconds]
zigomir has quit [Quit: zigomir]
timmow has quit [Remote host closed the connection]
markalanevans has joined #ruby
<markalanevans>
Hey Guys, quick question about classes:
<MrZYX>
Sinatra::Aplication keeps track of it's subclasses
breakingthings has quit [Ping timeout: 240 seconds]
MrSamuel has quit [Ping timeout: 255 seconds]
jjbohn has joined #ruby
<MrZYX>
(I'd say that's it, maybe it just keeps track of all defined routes globally)
nomenkun has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
<markalanevans>
MrZYX: but its just an include, should it by nature just override before Sinatra has a chance do to anything with it?
<MrZYX>
where's an include?
MrSamuel has joined #ruby
nomenkun has quit [Remote host closed the connection]
<banister`sleep>
MrZYX: its* :P
<markalanevans>
*sorry require
<markalanevans>
They are require_relatives
breakingthings has joined #ruby
<markalanevans>
I just figured that the ruby language would through a fit before allowing multiple declarations of the same class name, or just assume it should take the last one.
<MrZYX>
oh I skipped that they use the same constant, so yeah that's how it works in ruby, you can reopen any class at any given time, even the core ones: class String; def my_method; magic_stuff; end; end; "foo".my_method
v1n has quit [Quit: WeeChat 0.4.0]
v0n has joined #ruby
axl_ has quit [Quit: axl_]
<markalanevans>
I'm not following
<markalanevans>
ReOpen?
v0n has quit [Client Quit]
blacktulip has quit [Ping timeout: 252 seconds]
v0n has joined #ruby
w400z has joined #ruby
<MrZYX>
class Foo; can be called "opening a new class" less "defining it"
madb055 has quit [Ping timeout: 272 seconds]
<markalanevans>
Ok.
mockra has quit [Remote host closed the connection]
<markalanevans>
So basically if you do that multiple times it litterlay is just "adding" to the last definition of it
<MrZYX>
yep
<markalanevans>
Interesting.
Voodoofish430 has joined #ruby
<MrZYX>
you can overide methods too: class Foo; def bar; stuff; end; end; class Foo; def bar; super; other_stuff; end; end;
Catbuntu has joined #ruby
<bean>
class String; def to_awesome; self.gsub /(?!^)..?/, &:capitalize;end;end "lol this string is awesome".to_awesome;
<bean>
>> class String; def to_awesome; self.gsub /(?!^)..?/, &:capitalize;end;end "lol this string is awesome".to_awesome;
<dankest>
'p I just can't get Ruby to interact with it in any way but as a string
sayan_ has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
sayan_ has quit [Read error: Connection reset by peer]
fedza has quit [Ping timeout: 260 seconds]
banjara has joined #ruby
<`p>
lemme open up the link again and take a look again one sec
<silur>
Q: 'x' is undefined. x=1 if false ---> makes 'x' == nil. Shouldn't it remain undefined in a strict sense?
filipe_ has joined #ruby
arietis has joined #ruby
<dankest>
'p thanks!
<apeiros_>
silur: ruby has no "undefined", hence no
dhruvasagar has joined #ruby
andersbr has quit [Quit: andersbr]
<apeiros_>
silur: the moment an lvar is known to the parser it exists. whether the specific branch where it is being assigned is actually executed is irrelevant
peteyg has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
<silur>
apeiros_, thanks. I guesss ruby console confused me with: "NameError: undefined local variable or method ..."
etcetera has quit []
tgunr has joined #ruby
andersbr has joined #ruby
mockra has quit [Remote host closed the connection]
Mattix has joined #ruby
elux has joined #ruby
maletor has joined #ruby
silur has quit []
BizarreCake has quit [Ping timeout: 260 seconds]
sayan has joined #ruby
brianpWins has joined #ruby
hamakn has joined #ruby
etcetera has joined #ruby
ExxKA has joined #ruby
hashmal has quit [Ping timeout: 252 seconds]
yshh has quit [Read error: Connection reset by peer]
cearls has quit [Remote host closed the connection]
ph^ has joined #ruby
yshh has joined #ruby
Ingo2 has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
mockra has joined #ruby
Astralum has joined #ruby
mikepack has quit [Remote host closed the connection]
hashmal has joined #ruby
whitedawg1 has joined #ruby
<Ingo2>
Hi, i am Ruby newbie and i´d like to know if someone knows this book and tell me if its any good to enter the Rails world: http://t.co/2MYahDru7m
<dankest>
'p IT'S A PHP SERIALIZED STRING
<dankest>
Stupid fucking thing
Gowie has quit [Quit: Lost terminal]
newUser1234 has quit [Ping timeout: 255 seconds]
whitedawg has quit [Ping timeout: 260 seconds]
jjbohn is now known as jjbohn|afk
filipe_ has quit [Ping timeout: 272 seconds]
Davey has joined #ruby
rupee has joined #ruby
atyz has joined #ruby
tils has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
jcheng has joined #ruby
timonv has quit [Remote host closed the connection]
jjbohn|afk is now known as jjbohn
xpen_ has quit [Remote host closed the connection]
robscomputer has quit [Read error: Connection reset by peer]
mmaatthheeww has joined #ruby
BizarreCake has joined #ruby
robscomputer has joined #ruby
theRoUS has joined #ruby
jgrevich has joined #ruby
newUser1234 has joined #ruby
tjbiddle has joined #ruby
Sicp has joined #ruby
sambao21 has joined #ruby
kirun has joined #ruby
notjohn has joined #ruby
brhelwig has quit [Remote host closed the connection]
tyro89 has joined #ruby
jgrevich has quit [Ping timeout: 260 seconds]
jgrevich has joined #ruby
<markalanevans>
Hey folks, any of you using DataMapper
<markalanevans>
I wanted to start using it, and i'm trying to set my primary key to be a UUID
<markalanevans>
Am i missing something? DataMapper doesn't support UUID? WTF?
dayepa has quit [Quit: dayepa]
dayepa has joined #ruby
s00pcan_ has quit [Client Quit]
tgunr has joined #ruby
w400z has quit []
nignaztic has quit [Read error: No route to host]
rupee has quit [Quit: Leaving]
chussenot has quit [Quit: chussenot]
cheese1756 has joined #ruby
sepp2k1 has joined #ruby
bricker`LA has quit [Ping timeout: 276 seconds]
sepp2k has quit [Ping timeout: 272 seconds]
slainer68 has joined #ruby
daniel_hinojosa has joined #ruby
chussenot has joined #ruby
breakingthings has quit []
tommyvyo has joined #ruby
daniel_- has quit [Ping timeout: 258 seconds]
jjbohn is now known as jjbohn|afk
piotr has joined #ruby
chrishough has quit [Quit: chrishough]
arturaz has quit [Remote host closed the connection]
tyro89 has left #ruby [#ruby]
ninjanoise has joined #ruby
breakingthings has joined #ruby
stef_204 has quit [Quit: quitting]
slainer68 has quit [Ping timeout: 256 seconds]
ndboost has joined #ruby
workmad3 has joined #ruby
br4ndon has joined #ruby
skogis_ has quit [Ping timeout: 260 seconds]
skogis has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
Ontolog has joined #ruby
marcdel has joined #ruby
cupakromer has left #ruby [#ruby]
braoru has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
rabidpraxis has joined #ruby
andersbr has quit [Quit: andersbr]
mengu has quit [Quit: Konversation terminated!]
mattbl has joined #ruby
mengu has joined #ruby
heliumsocket has joined #ruby
braoru has quit [Read error: Connection reset by peer]
ExxKA has quit [Quit: Leaving]
carlyle has joined #ruby
braoru has joined #ruby
braoru has quit [Read error: Connection reset by peer]
tvw has quit []
sandGorgon has joined #ruby
tylersmith has joined #ruby
danman has joined #ruby
rabidpraxis has quit [Ping timeout: 258 seconds]
<shevy>
Hanmac2 hahah yeah... the movies were kidified
braoru has joined #ruby
swex has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
braoru has quit [Client Quit]
Mon_Ouie has joined #ruby
mahmoudimus has joined #ruby
carloslopes has quit [Remote host closed the connection]
chussenot has quit [Ping timeout: 252 seconds]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith_ has joined #ruby
averiso has quit [Quit: Computer has gone to sleep.]
dr_bob has left #ruby [#ruby]
svend has joined #ruby
ferdev has quit [Quit: ferdev]
swex_ has quit [Ping timeout: 272 seconds]
<svend>
Is there a standard way to process file names passed to a ruby script? For each file, process each line. If no file names passed or filename is - use stdin.
lkba has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
<svend>
Something like Python's fileinput.
brhelwig has joined #ruby
i42n has joined #ruby
<i42n>
Does anyone know why this causes a syntax error?
AlStanforth has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
repnop has joined #ruby
<Washu>
Hi, does anyone know of any good visual programming software? (easy description is visual basic for other languages)
repnop has left #ruby [#ruby]
Faris has joined #ruby
grotr has joined #ruby
nik_-_ has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
BRMatt has quit [Quit: Leaving]
ryanf has quit [Quit: leaving]
grotr has left #ruby [#ruby]
rdark has quit [Quit: leaving]
etcetera has quit []
baroquebobcat has joined #ruby
shirokuro11 has quit [Remote host closed the connection]
mrsolo has joined #ruby
s00pcan has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
Faris has quit [Ping timeout: 245 seconds]
idkazuma has quit [Remote host closed the connection]
Faris has joined #ruby
jjbohn is now known as jjbohn|afk
jon_w is now known as counter_terroris
yashshah has quit [Read error: Connection reset by peer]
counter_terroris is now known as counterterrorist
yashshah has joined #ruby
nfisher has quit [Ping timeout: 240 seconds]
jonathanwallace has joined #ruby
jpcamara has quit [Quit: jpcamara]
presto53 has quit [Ping timeout: 260 seconds]
ninjanoise has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
<shevy>
Washu hmm dont think so, most are probably dead. perhaps smalltalk with squeak is semi-visual?
pi3r has quit [Quit: Leaving]
duosrx has quit [Remote host closed the connection]
lolzie has joined #ruby
Faris has quit [Ping timeout: 256 seconds]
notjohn has quit [Quit: notjohn]
<Washu>
shevy: :<
<lolzie>
Hi, how can I best have Hash raise another particular exception instead of KeyError upon a failed fetch()?
Faris has joined #ruby
Zai00 has joined #ruby
<Hanmac>
Washu what do you specialy mean with "visual programming software"?
<havenwood>
lolzie: Why do you want to raise a different exception? You could rescue KeyError then raise your preferred exception. Or monkey patch Hash. >.>
chussenot has joined #ruby
rabidpraxis has joined #ruby
<lolzie>
havenwood: I could rescue, but that'd mean rescuing and proxying that error in multiple places. Every time I get a KeyError I'm going to want the other exception.
<Hanmac>
lolzie why?
jonahR has joined #ruby
<lolzie>
Hanmac: I have a series of Hashes - I'm fetching from each (in various points of the program) - I have the fetches encased in one rescue
<mikewintermute>
Using ruby -rdebug. I put a breakpoint in at a line but when I try and output a variable using "p" the debugger says I'm in a different file and I get: debug.rb:130:in `eval':undefined local variable or method `query' for #<Net::BufferedIO io=#<TCPSocket
_maes_ has quit [Read error: Connection reset by peer]
<lolzie>
one begin/rescue block I mean.
<Washu>
Hanmac: putting the gui together with drag and drop and just writing functions for it
<mikewintermute>
banister`sleep: k. why not use -rdebug?
<banister`sleep>
mikewintermute: it's shit.
<havenwood>
mikewintermute: +1 Pry
<banister`sleep>
and unmaintained
<lolzie>
Hanmac: I feel like it'd be a bit redundant doing that for every single time though. Is it so bad to monkey patch Hash.fetch?
rabidpraxis has quit [Ping timeout: 260 seconds]
<banister`sleep>
'debugger' isn't bad tho
<Hanmac>
lolzie for your use? yes
<lolzie>
Hanmac: just to try and understand the rationale - why is it preferable to use { raise YetAnotherException } in many parts of the program rather than the one single patch?
<lolzie>
I can't help but feel that the problem is still somewhat unsolved, the redundancy feels dirty
<Hanmac>
lolzie i think the problem is deeper in your programm
mpfundstein has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
_maes_ has joined #ruby
chichou has quit [Remote host closed the connection]
gyre007 has quit [Quit: Computer has gone to sleep.]
notwen has joined #ruby
alvaro_o has joined #ruby
Targen has joined #ruby
philipd has quit [Quit: Computer has gone to sleep.]
jjbohn|afk is now known as jjbohn
etcetera has joined #ruby
v0n has quit [Read error: Connection reset by peer]
etcetera has quit [Client Quit]
v0n has joined #ruby
Beoran_ has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
shock_one has joined #ruby
cearls has quit [Remote host closed the connection]
carlyle has quit [Read error: Connection reset by peer]
<Hanmac>
"cannot load such file -- multi_json"
Tricon has quit [Quit: Leaving...]
osvico has quit [Read error: Connection reset by peer]
<preyalone>
Hanmac: gem install multi_json, then run it.
<preyalone>
It crashes Ruby in Windows, but not Mac or Linux.
<crazed>
has anyone done sinatra-like + websockets? i see reel which uses celluiod-io, but not sure which framework seems to be most used
<Hanmac>
i still not get it why i should install it
eldariof has joined #ruby
cearls has joined #ruby
hmarr has quit []
maxmanders has quit [Client Quit]
freezey has joined #ruby
notjohn has joined #ruby
Tricon has joined #ruby
<andrew12>
preyalone: that segfaults ruby on my mac
<andrew12>
Hanmac: because it's a bug
blueOxigen has joined #ruby
breakingthings has joined #ruby
<andrew12>
good find, preyalone
<preyalone>
andrew12: :)
Hanmac has quit [Quit: Leaving.]
tenmilestereo has joined #ruby
chichou has joined #ruby
mljsimone has joined #ruby
<mikewintermute>
Hmm - pry isn't doing command line completion on the commands.
<banister`sleep>
mikewintermute: it should do, try 'gem install bond' to get an enhanced (optional) completion too
<banister`sleep>
mikewintermute: what commands are you trying to complete?
Washu has quit [Quit: Leaving.]
bluOxigen has quit [Ping timeout: 246 seconds]
<mikewintermute>
aha - just realised. following a screencast and they autocompletes gist-method. but looking in help this command doesn't seem to exist. perhaps its been deprecated.
jgrevich has quit [Ping timeout: 260 seconds]
<banister`sleep>
mikewintermute: yeah it's just called 'gist' now
spider-mario has joined #ruby
<mikewintermute>
other commands auto completing fine.
<banister`sleep>
mikewintermute: type 'help' to get a list of commands
<mikewintermute>
thanks
br4ndon has quit [Ping timeout: 248 seconds]
osvico has joined #ruby
fugetsu has joined #ruby
jgrevich has joined #ruby
fugetsu has quit [Client Quit]
Beoran has joined #ruby
kirun has quit [Ping timeout: 246 seconds]
<preyalone>
If you get a crash for ruby -e "require 'multi_json'; puts MultiJson.load nil", or you don't get a crash, either way, it adds information for the debugging team. https://github.com/intridea/multi_json/issues/106
<banister`sleep>
mikewintermute: do you enjoy it?
Gues_____ has joined #ruby
danslo has joined #ruby
<mikewintermute>
banister`sleep: pry? awesome!
Gues_____ is now known as Guest123
<banister`sleep>
mikewintermute: cool :)
chrishough has quit [Quit: chrishough]
<peteyg>
I have an array with ostruct elements with the property 'id'. Is there an shorthand way of saying "find me the element in this array with propery id = 3" in ruby?
<banister`sleep>
peteyg: it's called 'find' :)
newUser1_ has quit [Ping timeout: 264 seconds]
freezey has quit [Remote host closed the connection]
jgrevich has quit [Read error: Operation timed out]
newUser1234 has joined #ruby
bluOxigen has joined #ruby
rezzack has joined #ruby
<peteyg>
banister`sleep: Okay, thanks! I did stumble upon the find method, but didn't know how to use it before (I was trying things like array.find(id:1) and array.find(&:id==1) to no avail)
marcdel has quit []
<banister`sleep>
haha
jgrevich has joined #ruby
<banister`sleep>
peteyg: yeah &: syntax doesn't quite work like that :)
jerius has quit [Ping timeout: 255 seconds]
jerius_ is now known as jerius
sandGorgon has joined #ruby
mercwithamouth has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.0]
pyrac has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
blueOxigen has quit [Ping timeout: 260 seconds]
macmartine has joined #ruby
tmiller has quit [Ping timeout: 240 seconds]
BadDesign has quit [Read error: Connection reset by peer]
sayan has quit [Read error: Connection reset by peer]
mattbl has joined #ruby
markalanevans has quit [Quit: markalanevans]
<macmartine>
Can I make this only return files in subdirectories of 'analyzer', and not files that are at the root of 'analyzer'? Dir["lib/analyzers/**/*.rb"]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
tmiller has joined #ruby
alex__c2022_ has joined #ruby
br4ndon has joined #ruby
chessguy has quit [Read error: Connection reset by peer]
amacleod has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
chessguy has joined #ruby
BizarreCake has quit [Ping timeout: 256 seconds]
alex__c2022 has quit [Ping timeout: 260 seconds]
alex__c2022_ is now known as alex__c2022
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
arietis has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
toekutr has joined #ruby
Zai00 has quit [Quit: Zai00]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
josefrichter_ has quit [Quit: josefrichter_]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
generalissimo has quit [Remote host closed the connection]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
keymone has joined #ruby
senayar has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
preyalone has quit [Quit: Page closed]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
arturaz has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
lolzie has quit [Quit: Page closed]
pepper_chico has joined #ruby
stkowski has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
r4um has joined #ruby
Wigflip has quit [Quit: Computer has gone to sleep.]
j^2 has quit [Quit: for i in `/names` ; do adios $i; done]
sandGorgon has quit [Ping timeout: 260 seconds]
phantasm66 has quit [Quit: *poof*]
j^2 has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<aedorn>
So to add a step to pyAnaconda I just have to edit 8 files, add 3 new ones, and then it all works. Nope... not convoluted at all.
pepper_chico has joined #ruby
kofno has quit [Remote host closed the connection]
pepper_chico has quit [Max SendQ exceeded]
moscownights has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
kofno has joined #ruby
pepper_chico has joined #ruby
brunoro has joined #ruby
<moscownights>
geve all, i sort of know my way around python but now I need to write some ruby because the window manager im using is written in ruby. Im having some trouble understanding how to import/require modules from of what i think of as rubies equivalent of pythons site-packages
kuzushi has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
mpfundstein is now known as g4mm4
brunoro is now known as wreckimnaked
<moscownights>
the module im trying to import is in my path in vendor-ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<moscownights>
should i be able to import those modules from anywhere or is there something else I need to do?
chussenot has quit [Quit: chussenot]
ryanf has joined #ruby
pepper_chico has joined #ruby
<moscownights>
and if anyone has a good read about main differences /pitfalls for people coming from python
<moscownights>
tia!
pepper_chico has quit [Max SendQ exceeded]
tenmilestereo has quit [Quit: Leaving]
wyhaines has joined #ruby
sambao21 has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
Kirotan has quit [Ping timeout: 245 seconds]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<aedorn>
wait, there's a window manager written in Ruby? For X or something else?
rabidpraxis has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
generalissimo has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<moscownights>
yeap, like it a lot
<moscownights>
subtle
Goles has quit [Quit: Computer has gone to sleep.]
<moscownights>
ill get you the link, sec
Zolo has joined #ruby
<aedorn>
subtle.sourceforge.org ?
Zolo has quit [Read error: Connection reset by peer]
<moscownights>
give it a shot id say, its surprisingly stable, fast and highly customizable
skattyadz has quit [Quit: skattyadz]
<moscownights>
(if you know ruby)
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
skattyadz has joined #ruby
mikepack has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
rabidpraxis has quit [Ping timeout: 245 seconds]
maxmanders has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
Washu has joined #ruby
pepper_chico has joined #ruby
<aedorn>
hmmmm might have to see if I can use it instead of fluxbox
graft has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
maxmanders has quit [Client Quit]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<aedorn>
anyway, if this is in /usr/lib/ruby/vendor_ruby you can just require 'file' (don't need the .rb)
<aedorn>
If it's in a subdirectory, like with what I see with subtle, then it's: require 'subtle/file'
<Washu>
Hi, I have a problem whenever I try use any language with gtk, tk, wxwidgets which is the files can never be included, I'm on mac os x 10.6 and the programs are installed, I'm using some simple code from wikipedia
jekotia has joined #ruby
pepper_chico has joined #ruby
mmaatthheeww has quit [Quit: mmaatthheeww has no reason]
<aedorn>
moscownights: what's the full path of the file and the filename?
keymone has quit [Quit: keymone]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
Coolhand has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
cpruitt has joined #ruby
<moscownights>
works now aedorn, i tried directly importing subtle, which apparently doesnt work because apparently ruby is not python
<moscownights>
:d
keymone has joined #ruby
<moscownights>
thanks for the help though
keymone has quit [Client Quit]
pepper_chico has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
pepper_chico has quit [Max SendQ exceeded]
br4ndon has joined #ruby
adkron_ has quit [Ping timeout: 240 seconds]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<aedorn>
mkay
jimeh has quit [Ping timeout: 256 seconds]
pepper_chico has joined #ruby
brhelwig has quit [Remote host closed the connection]
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby
eldariof has quit [Remote host closed the connection]
pepper_chico has quit [Max SendQ exceeded]
<moscownights>
is there a dir equivalent in ruby? eg, after import an module finding out what methods and attributes it has?
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<banister`sleep>
moscownights: in pry you can use "ls"
jimeh has joined #ruby
<banister`sleep>
moscownights: i.e: ls -M MyModule
<banister`sleep>
to show methods
<banister`sleep>
ls -i MyModule to show ivars
X-Jester_ has quit [Remote host closed the connection]
<banister`sleep>
type ls -h for a full list of options to ls
pepper_chico has joined #ruby
<moscownights>
cool, thanks banister`sleep
kirun has quit [Ping timeout: 256 seconds]
mljsimone has quit [Remote host closed the connection]
<MrZYX>
the relation between the module/class name and file name is just convention though, my_file.rb can define abitrary modules/classes/methods
brhelwig has joined #ruby
<banister`sleep>
moscownights: but you'll need to install pry: http://pryrepl.org
<moscownights>
installed it 5 minutes ago when i was looking for something like ipython :)
<banister`sleep>
moscownights: btw how does it compare to ipython?
<moscownights>
MrZYX: yea, what i said didnt make sense, i think modules are in that sense a bit like python modules?
marcdel has joined #ruby
<MrZYX>
well python modules are defined by the filenames, ruby modules by the module keyword
<moscownights>
well, im at line 10 now so maybe a bit early to say, Ipython is pretty awesome though
yacks has quit [Quit: Leaving]
eldariof has joined #ruby
<banister`sleep>
moscownights: what features do you use mostly in ipython ?
thufir_ has joined #ruby
<moscownights>
i dont know if you ever tried ipython notebook?
NihilistDandy has joined #ruby
<moscownights>
thats more for scientific/educational, i mainly use the terminal, it has lots of features, an excellent debugger, auto imports, auto reloading after file changes, history
<moscownights>
and much much more
jimeh has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
eldariof has quit [Client Quit]
<moscownights>
ah I see MrZYX, and I guess all Modules when you use them need to be capitalized? since you import modules in lower case
<banister`sleep>
moscownights: ah ok, i'd be interested what you think is missing in pry, let me know :)
<moscownights>
heh banister`sleep, if you're on github ill make sure to leave some comments
<MrZYX>
again you do not import modules, you load files in ruby. modules usually are assigned to constants, so they need to start with an uppcase letter
<banister`sleep>
moscownights: be sure to install some plugins too, in particular pry-stack_explorer, pry-rescue, pry-debugger
luckyruby has quit [Remote host closed the connection]
nessib has quit []
<moscownights>
MrZYX: so that means in ruby you dont need to work with a hardcoded path/sys.path.append.. stuff
danslo has quit [Quit: danslo]
Hanmac has joined #ruby
rismoney has joined #ruby
twoism has quit [Read error: Connection reset by peer]
twoism has joined #ruby
eldariof has joined #ruby
toekutr has quit [Remote host closed the connection]
three18ti has quit [Ping timeout: 245 seconds]
toekutr has joined #ruby
<MrZYX>
you could give require absolute and relative paths, but especially the later is discouraged. Have a look at $LOAD_PATH (inside ruby) to see where ruby searches for files, if you do require 'foo/bar' ruby appends that to each item in $LOAD_PATH and also adds .rb if there's no file extension given to require and tries to load that file
<MrZYX>
also try starting pry/ruby/irb with -Isomedir and compare $LOAD_PATH afterwards
three18ti has joined #ruby
mjolk is now known as Guest8070
wmoxam has quit [Quit: leaving]
whitedawg has quit [Quit: Leaving.]
timmow has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
carraroj has joined #ruby
timmow has joined #ruby
swingha has quit [Quit: WeeChat 0.4.0]
Washu has left #ruby [#ruby]
cmarques_ has joined #ruby
chussenot has joined #ruby
cmarques has quit [Ping timeout: 256 seconds]
s0ber_ has joined #ruby
nomenkun has joined #ruby
Guest8070 has quit [Quit: Leaving]
Sicp has quit [Ping timeout: 252 seconds]
cmarques_ is now known as cmarques
yashshah has quit [Read error: Connection reset by peer]
xkickflip has joined #ruby
osvico has quit [Ping timeout: 256 seconds]
timmow has quit [Ping timeout: 252 seconds]
yashshah has joined #ruby
svend has quit [Ping timeout: 264 seconds]
timmow has joined #ruby
s0ber has quit [Ping timeout: 264 seconds]
s0ber_ is now known as s0ber
jlebrech has joined #ruby
eldariof has quit []
stkowski has quit [Quit: stkowski]
verysoftoiletppr has quit []
postmodern has joined #ruby
swingha has joined #ruby
verysoftoiletppr has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
nonotza has joined #ruby
Mattix has quit [Quit: Leaving]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
<bean>
ah, damn, banister`sleep, I somehow didn't realize that you made Pry. I use it quite often and refuse to even use IRB these days.
<banister`sleep>
cool
dankest has quit [Ping timeout: 245 seconds]
<banister`sleep>
bean: how did you find out i was involved in it, anyway? :)
<bean>
when you linked your github up there ;)
<bean>
and then looking at pry/pry
rabidpraxis has joined #ruby
<bean>
and seeing the same name
<banister`sleep>
oh ok
Zolo has joined #ruby
moscownights has quit [Quit: WeeChat 0.4.0]
eldariof has joined #ruby
<banister`sleep>
cool
razibog has joined #ruby
hbpoison has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
wreckimnaked has quit [Ping timeout: 255 seconds]
thinkclay1 has joined #ruby
krawchyk_ has joined #ruby
wmoxam has joined #ruby
Sicp has joined #ruby
skattyadz has quit [Quit: skattyadz]
whitedawg has joined #ruby
whitedawg has quit [Client Quit]
rabidpraxis has quit [Ping timeout: 245 seconds]
chussenot has quit [Quit: chussenot]
thinkclay has quit [Ping timeout: 256 seconds]
razibog has quit [Ping timeout: 245 seconds]
krawchyk has quit [Ping timeout: 260 seconds]
jacktrick has joined #ruby
huoxito has quit [Quit: Leaving]
<Paradox>
hey banister`sleep. i guess you're asleep
<banister`sleep>
no
banister`sleep is now known as banisterfiend
<Paradox>
oh yay
<banisterfiend>
:)
<Paradox>
binding_of_caller
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<Paradox>
wasnt that going to be a part of ruby 2 at some point
<Paradox>
i remember reading that
<Paradox>
not sure if it was on your readme or on the better_errors page
br4ndon has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
nomenkun has quit [Remote host closed the connection]
<banisterfiend>
Paradox: it is part of ruby 2 BUT it's not exposed to Ruby, it's part of the C API. I released a gem (debug_inspector) that exposes that API to Ruby, but the API is a bit weird, so i wrapped it again in binding_of_caller so the same api works across all supported ruby versions
<Paradox>
ah, cool
<Paradox>
mind if i quote you?
<banisterfiend>
so probably best to just use binding_of_caller
<banisterfiend>
Paradox: no problem, but who are you sharing it with out of interest?
newUser1234 has quit [Read error: Connection reset by peer]
Netfeed has left #ruby ["WeeChat 0.3.0"]
RoomieGunns has joined #ruby
wyhaines has quit [Remote host closed the connection]
pkrnj has joined #ruby
<RoomieGunns>
Hey Folks, I'm using mod_ruby And I'm trying to create a directory on the filesystem based on POST input. I keep getting "Insecure operation - mkdir (SecurityError)" errors (which I understand), but untaint-ing the input doesn't solve the issue like I understand it should. Can somebody point me in the right direction?
yashshah has quit [Read error: Connection reset by peer]
adam12 has joined #ruby
Atrophius has quit [Read error: Connection reset by peer]
brhelwig has quit [Remote host closed the connection]
Atrophius has joined #ruby
nomenkun has joined #ruby
failshell has quit [Remote host closed the connection]
<apeiros_>
RoomieGunns: mod_ruby? that's been unmaintained for years.
<apeiros_>
I'd strongly suggest using a rack based solution. e.g. passenger.
seejohnrun has left #ruby [#ruby]
Faris6 has quit [Ping timeout: 252 seconds]
<RoomieGunns>
apeiros_: good times. will do.
Faris6 has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
ThePicard has quit [Quit: Engage]
Zolo_ has joined #ruby
Zolo_ has quit [Read error: Connection reset by peer]
ThePicard has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
nomenkun has quit [Ping timeout: 258 seconds]
indigenous has joined #ruby
nateberkopec has quit [Quit: Leaving...]
cjs226 has joined #ruby
pyrac has quit [Quit: pyrac]
chrishough has quit [Read error: Connection reset by peer]
chrishough_ has joined #ruby
Wigflip has joined #ruby
Wigflip has quit [Client Quit]
RoomieGunns has left #ruby [#ruby]
notjohn has quit [Quit: notjohn]
mmitchell has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
a_a_g has quit [Quit: Leaving.]
jonathanwallace has joined #ruby
BadDesign has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
Nisstyre-laptop has joined #ruby
Zolo has joined #ruby
dfried has quit [Quit: dfried]
tmiller has quit [Remote host closed the connection]
Zolo has quit [Read error: No route to host]
blacktulip has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 264 seconds]
danman has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
RagingDave has quit [Quit: Ex-Chat]
a_a_g has joined #ruby
mengu has joined #ruby
breakingthings has quit []
a_a_g1 has joined #ruby
hbpoison has quit [Ping timeout: 246 seconds]
brhelwig has joined #ruby
cmarques has quit [Ping timeout: 252 seconds]
codespectator has joined #ruby
hbpoison has joined #ruby
codespectator has quit [Excess Flood]
a_a_g has quit [Ping timeout: 256 seconds]
codespectator has joined #ruby
codespectator has quit [Max SendQ exceeded]
cmarques has joined #ruby
codespectator has joined #ruby
codespectator has quit [Excess Flood]
Giorgio has joined #ruby
codespectator has joined #ruby
codespectator has quit [Max SendQ exceeded]
codecop has quit [Remote host closed the connection]
tylersmith has joined #ruby
zeade has quit [Quit: Leaving.]
d2dchat has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 245 seconds]
codespectator has joined #ruby
codespectator has quit [Client Quit]
tylersmith has quit [Client Quit]
codespectator has joined #ruby
m8 has joined #ruby
aajjbb has joined #ruby
chongyu123 has quit [Read error: Connection reset by peer]
daniel_- has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
thufir_ has quit [Quit: Leaving.]
razibog has joined #ruby
invisime has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
SCommette has quit [Quit: SCommette]
rabidpraxis has joined #ruby
danman has quit [Quit: danman]
wmoxam has quit [Ping timeout: 276 seconds]
jerius has quit []
freeayu has joined #ruby
DrShoggoth has joined #ruby
invisime has joined #ruby
arturaz has quit [Remote host closed the connection]
newUser1_ has quit [Remote host closed the connection]
backjlack has quit [Remote host closed the connection]
aajjbb has quit [Ping timeout: 252 seconds]
a_a_g1 has quit [Quit: Leaving.]
jgarvey has quit [Quit: Leaving]
Zolo has joined #ruby
generalissimo has quit [Remote host closed the connection]
Zolo has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
axl__ has joined #ruby
axl_ has quit [Ping timeout: 272 seconds]
axl__ is now known as axl_
mr-rich has joined #ruby
nik_-_ has quit [Quit: nik_-_]
brianpWins has quit [Quit: brianpWins]
nazty has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
<A124>
Hey. Could anyone recommend any article/page, etc. for multithreaded programming? (green threads or real threads, or even multiprocess, I could use all)
philipd has quit [Quit: Computer has gone to sleep.]
ArchBeOS has left #ruby [#ruby]
nateberkopec has joined #ruby
marr has joined #ruby
osvico has joined #ruby
s1n4 has joined #ruby
nateberkopec has quit [Client Quit]
mityaz has quit [Quit: See ya!]
s1n4 has left #ruby [#ruby]
cearls has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
pepper_chico has quit [Quit: Computer has gone to sleep.]
brhelwig has quit [Remote host closed the connection]
brhelwig has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
<A124>
gf3: Love you. Thank you very much. .. I once wrote pretty efficient and simple routine (I/O waiting) But that was 1.8.6 and now it's incompatible.
rabidpraxis has joined #ruby
adkron_ has joined #ruby
<gf3>
A124: *womp womp*
<gf3>
A124: Celluloid + JRuby is really nice
yfeldblum has joined #ruby
jcrawford has quit [K-Lined]
kirun has quit [Quit: Client exiting]
<A124>
julian-delphiki: I missed that one, or "my" google did. Thanks.
<A124>
gf3: I'm running MRI
<gf3>
A124: It still works great with MRI
<A124>
Celluloid IO seems nice
<A124>
As I'm building distributed data architecture
<A124>
Fancy, but not huge.
motto has joined #ruby
generalissimo has joined #ruby
m8 has quit [Ping timeout: 248 seconds]
BadDesign has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
brhelwig has quit [Ping timeout: 264 seconds]
rabidpraxis has quit [Ping timeout: 256 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
jcrawford has joined #ruby
emocakes_ has joined #ruby
Zolo has joined #ruby
emocakes_ is now known as emocakes
Zolo has quit [Read error: Connection reset by peer]
fixl has joined #ruby
daniel_- has quit [Ping timeout: 264 seconds]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
jtharris has quit [Quit: WeeChat 0.4.0]
Liquid-- has quit [Quit: Computer has gone to sleep.]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
ffranz has quit [Quit: Leaving]
tvw has quit []
alanp_ has joined #ruby
benwoody has quit [Ping timeout: 248 seconds]
alanp has quit [Read error: Connection reset by peer]
rabidpraxis has joined #ruby
rabidpraxis has quit [Read error: Connection reset by peer]
nonotza has quit [Quit: nonotza]
tylersmith has joined #ruby
tylersmith has quit [Client Quit]
rabidpraxis has joined #ruby
madb055 has joined #ruby
benwoody has joined #ruby
philipd has joined #ruby
philipd has quit [Max SendQ exceeded]
madb055 has quit [Read error: No route to host]
madb055 has joined #ruby
philipd has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 255 seconds]
bluOxigen has quit [Ping timeout: 255 seconds]
Zolo has joined #ruby
rabidpraxis has quit [Ping timeout: 248 seconds]
Zolo has quit [Read error: Connection reset by peer]
Targen has quit [Ping timeout: 256 seconds]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
jcheng has quit [Quit: Computer has gone to sleep.]
tmiller has joined #ruby
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
alx- has joined #ruby
fire has quit [Ping timeout: 246 seconds]
dustint-away has joined #ruby
brhelwig has joined #ruby
emergion has joined #ruby
tmiller has quit [Ping timeout: 258 seconds]
anonymuse has quit [Quit: Leaving...]
mhn23 has quit [Quit: Goodbye.]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
samuel02 has quit [Remote host closed the connection]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
pkrnj has joined #ruby
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]
mrsolo has quit [Quit: Leaving]
g4mm4 has quit [Remote host closed the connection]
kristofers has quit []
aedorn has quit [Quit: Leaving]
ckrailo has quit [Quit: Computer has gone to sleep.]
rabidpraxis has joined #ruby
awarner has quit [Remote host closed the connection]
Zolo has joined #ruby
Zolo has quit [Read error: Connection reset by peer]