ryanf has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby
_br_ has joined #ruby
ryanf has joined #ruby
<banister`sleep>
IceDragon: i would probably decorate methods after the fact, not using method_added
<IceDragon>
> catch definition > grab Method object > undefine original > define new function with alerting code > hook original method
<IceDragon>
O: example?
backjlack has quit [Remote host closed the connection]
Jon30 has joined #ruby
l3ck has quit [Quit: Bye!]
<banister`sleep>
IceDragon: like this: class Blah; def blah; end; def foo; end; end; Blah.before_methods(:blah, :foo) { puts "do this before you run the methods!" }
anonymuse has quit [Remote host closed the connection]
<Jon30>
I am looking for a cross platform ruby gui, something that doesn't use jruby and well supported (constant bug fixes, documentation etc...)
<lewellyn>
searching for green shoes got me zappos ;)
danielpcox has quit [Ping timeout: 252 seconds]
<lewellyn>
that still requires gtk :(
kofno has joined #ruby
<lewellyn>
too bad there isn't something that can do like raw opengl stuff
<ShellFu>
Is there a better way to handle this sort of scenario: >if condition then puts "error message" exit end< Should that be take care of with begin/rescue blocks?
jimeh has quit [Quit: Computer has gone to sleep.]
<IceDragon>
I use rescue when I'm unsure what is going to happen
<_br_>
ShellFu: Do you mean something like raise ArgumentError, "Blahbla" if( foobar )
mikalv has quit [Ping timeout: 245 seconds]
<IceDragon>
I use a normal condition if I'm dead sure something should happen
<ShellFu>
I think so _br_ . Basically checking arguments or checking results from searches out of mongodb etc.
<_br_>
IceDragon: Well, rescue without anything raises StandardError. So all errors of it and derived ones are matched.
<lewellyn>
i mean, something like FXRuby would be nice if maintained :(
<ShellFu>
In shell scripting I typically do what I first stated. If condition print error exit(code)
<Jon30>
_br_: what happens if I wanted to package my script into an executable. would it still require for users to install gtk?
<ShellFu>
is raise the proper "ruby" way
<_br_>
Btw. never ever ever do rescue Exception => e ... or someone will stab you
BadLarry has quit [Ping timeout: 252 seconds]
gabrielrotbart has quit [Remote host closed the connection]
<_br_>
Jon30: I think you might want to check out jruby and its possilbities via the java packages instead of pure ruby.
<IceDragon>
_br_ I do that for my game PROBLEM? # it opens my sublime to the error script :D
jimeh has joined #ruby
nateberkopec has joined #ruby
<Jon30>
_br_: I already looked into it, but it limits me to only certain gems. for example I cannot use sqlite
beneggett has joined #ruby
<_br_>
IceDragon: It catches everything also ctrl+c etc. well you get the gist of it
gyre008 has joined #ruby
ryanh has joined #ruby
ryanh has quit [Max SendQ exceeded]
<IceDragon>
nah I handled interrupts and exits seperatley
atyz has quit [Quit: Leaving...]
DuoSRX has quit [Remote host closed the connection]
mikepack has quit [Read error: Connection reset by peer]
nateberkopec has quit [Client Quit]
<_br_>
Jon30: Hm, well probably gtk or qt is most often drawn in as dependencies. I know many people dislike it but there is also wide support for tcl/tk based windowing which might not be so sleek but is an option
mikepack has joined #ruby
gabrielrotbart has joined #ruby
awarner has joined #ruby
<Jon30>
hmm how about wxruby?
<_br_>
IceDragon: It catches also SyntaxError, LoadError and a hole bunch of other stuff. It is bad practice. Dont do it.
maxmanders has quit [Ping timeout: 256 seconds]
<IceDragon>
_br_ also all handled
<_br_>
Jon30: never tried that, but if it rolls your dice why not
<IceDragon>
The rescue block isn't done until 'all' the Game's scripts have been loaded
dv_ has quit [Read error: Connection reset by peer]
ryanh has joined #ruby
nari has quit [Ping timeout: 256 seconds]
* _br_
rolls eyes
* IceDragon
noms a cookie
invisime has quit [Quit: Leaving.]
dv_ has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
awarner_ has quit [Ping timeout: 256 seconds]
predator217 has joined #ruby
nilobject has quit [Quit: leaving]
nilobject has joined #ruby
forced_request has joined #ruby
Criztian has quit [Remote host closed the connection]
ryanh has quit [Ping timeout: 252 seconds]
skattyadz has quit [Quit: skattyadz]
predator117 has quit [Ping timeout: 248 seconds]
huoxito has quit [Ping timeout: 244 seconds]
jgarvey has quit [Quit: Leaving]
axl_ has quit [Quit: axl_]
skattyadz has joined #ruby
* shevy
rolls _br_
lethjakman_lapto has quit [Ping timeout: 252 seconds]
slainer68 has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
karupanerura has joined #ruby
mmitchell has quit [Remote host closed the connection]
<_br_>
shevy: haha, you wish ! :)
martin_work has joined #ruby
icole has joined #ruby
bigkm has joined #ruby
huoxito has joined #ruby
nilobject has quit [Quit: leaving]
nilobject has joined #ruby
ephemerian has quit [Quit: Leaving.]
main has quit [Ping timeout: 255 seconds]
Criztian has joined #ruby
icole has quit [Read error: Connection reset by peer]
bttf has quit [Ping timeout: 256 seconds]
icole_ has joined #ruby
swex_ has quit [Read error: Operation timed out]
swex has joined #ruby
icole has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
biff_tannen has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
idkazuma has quit [Remote host closed the connection]
QKO has joined #ruby
icole_ has quit [Ping timeout: 248 seconds]
icole has quit [Remote host closed the connection]
QKO_ has quit [Ping timeout: 252 seconds]
atyz has joined #ruby
dougireton has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
stkowski has quit [Quit: stkowski]
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
gyre008 has quit [Remote host closed the connection]
freakazoid0223 has quit [Quit: Leaving]
davidd12 has joined #ruby
poikon has joined #ruby
mercwith1mouth has joined #ruby
Konboi has quit [Quit: Leaving...]
davidd12 has quit [Remote host closed the connection]
Konboi has joined #ruby
mrsolo has quit [Quit: Leaving]
Criztian has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 255 seconds]
atyz has quit [Ping timeout: 260 seconds]
ryanf has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
hbpoison has quit [Ping timeout: 252 seconds]
banister`sleep has quit [Read error: Connection reset by peer]
banister`sleep has joined #ruby
hbpoison has joined #ruby
yshh has joined #ruby
etcetera has quit []
nilobject has quit [Quit: leaving]
dougireton has quit [Ping timeout: 240 seconds]
nilobject has joined #ruby
angusiguess has joined #ruby
djwonk has joined #ruby
digifiv5e_ has quit [Ping timeout: 260 seconds]
poikon has quit [Ping timeout: 260 seconds]
cableray has quit [Quit: cableray]
workmad3 has quit [Ping timeout: 260 seconds]
dmerrick has quit [Quit: dmerrick]
<Es0teric>
ok so i installed ruby on my linux box and i get this -> Readline was unable to be required, if you need completion or history install readline then reinstall the ruby.
<tjbiddle>
Es0teric: If that doesn't work, give gem install rb-readline a try
billiam has joined #ruby
<Quadlex>
I believe it ... will?
<tjbiddle>
Es0teric: Nevermind - You don't have ruby installed, lol.
<Quadlex>
Because magic
djwonk has joined #ruby
SeanLazer has joined #ruby
<tjbiddle>
Quadlex: I like magic.
<lewellyn>
you mean magnets.
piotr__ has quit [Ping timeout: 256 seconds]
<tjbiddle>
Quadlex: The first implementation will work as well? I haven't tried the code - just assuming it would.
<Quadlex>
lewellyn: stalker
<lewellyn>
Quadlex: i bet i'm doing eviler things to ruby than you are. so meh. ;)
<Es0teric>
tjbiddle i just have to reinstall ruby for it to recognize readline
<Quadlex>
tjbiddle: I'm not sure, but it's something I'm intrigured about
bricker has joined #ruby
<Es0teric>
and thats what i am doing
<tjbiddle>
Quadlex: But I believe Ruby would just ignore all of the whitespace anyhow. IIRC when you override a setter you do something like `def myvar=`
<Quadlex>
lewellyn: I'm just encouraging people to integration test their webapps
<Quadlex>
So most likely
<tjbiddle>
Quadlex: I shall give it a try and report back :)
Xeago_ has joined #ruby
Xeago is now known as Guest93077
Guest93077 has quit [Killed (verne.freenode.net (Nickname regained by services))]
<tjbiddle>
Es0teric: Hm? Are you saying that the readline package won't go through until ruby does?
djwonk has quit [Read error: Connection reset by peer]
<lewellyn>
Quadlex: pfft. that's not anything special. ;)
<tjbiddle>
If that's the case, you installed a ruby system package - and not RVM. And that's what's crapping out.
<tjbiddle>
Otherwise aptitude shouldn't be complaining about it
<Es0teric>
tjbiddle well rvm tells me that if i recently installed it to just reinstall ruby
jimeh has quit [Quit: Computer has gone to sleep.]
<tjbiddle>
Es0teric: rvm reinstall ruby1.9.3 (I think that would be the correct command)
<Es0teric>
yeah, tjbiddle i did that already
<Es0teric>
its compiling
<Es0teric>
wtf? i am just installing ruby and i already got a threshold warning on my server?
bricker_ has quit [Ping timeout: 260 seconds]
<Quadlex>
That's what I said
taoru has joined #ruby
joofsh has joined #ruby
<Quadlex>
Sigh.
<Quadlex>
I'm an Opera user
<Quadlex>
today makes me sad
<Es0teric>
yeah, tjbiddle
<Es0teric>
that did the trick, man
<Es0teric>
thanks
<tjbiddle>
Quadlex: Works! I did switch the if/elsif though (So if it ends with = that will get called, otherwise it will always be skipped due to matching the other regex as well)
<tjbiddle>
Es0teric: Np, have fun!
<Quadlex>
tjbiddle: Sweet
stopbit has quit [Quit: Leaving]
marr has quit [Ping timeout: 256 seconds]
<tjbiddle>
Quadlex: Gotta love metaprogramming :-) Just cut out a crap load of code that I was about to write lol
<Quadlex>
My BF is a Ruby developer
gabrielrotbart has joined #ruby
<Quadlex>
Hewas talking about monkeypatching a few years ago
<Quadlex>
And didn't quite get why I was complaining about how horrible it was that that was seen as a good practice
<lewellyn>
Quadlex: i gave up on opera when they gave up on my platforms of choice.
<Quadlex>
Then everyone stopped doing it:P
<Quadlex>
lewellyn: a *nix?
<lewellyn>
Quadlex: i say this as someone who paid for opera in the early days
<lewellyn>
yes.
<Quadlex>
Sad, I didn't realize
<Quadlex>
I bought it also
BeLucid_ has joined #ruby
<tjbiddle>
Quadlex: Heh. Cool nonetheless. I'm actually purposefully implementing a way to monkey patch easily in this project (Writing an internal CLI tool and want the users to be able to add new commands on a per project basis)
<lewellyn>
it may not have been the best browser on win3.1, but i was happier to pay for it than netscape.
DrCode has quit [Remote host closed the connection]
mercwith1mouth has quit [Quit: Lost terminal]
<lewellyn>
(i bought netscape too, yes.)
<Es0teric>
ewww netscape...
<Es0teric>
that is so... 1998
<Es0teric>
lol
<lewellyn>
Es0teric: go back to 1995 and say ew ;)
<Es0teric>
man... netscape was the first web browser i used
<Es0teric>
i was like what? 10 or 12?
<martin_work>
anyone know why this is not sorting? puts foo.to_yaml( :UseHeader => false, :SortKeys => true)
freakazoid0223 has joined #ruby
mercwith1mouth has joined #ruby
hmarr has quit [Ping timeout: 255 seconds]
<martin_work>
actually it might be sorting just not sorting numerically
<Quadlex>
tjbiddle: Oh, it's a powerful feature
<lewellyn>
Es0teric: internet explorer (version 1, but 1 wasn't versioned) wasn't really that usable. it really was just a souped up mosaic. :)
<Quadlex>
I just think that the way it was encouraged was somewhat terrible
mercwith1mouth has quit [Client Quit]
nari has joined #ruby
<lewellyn>
now. coffee.
BeLucid has quit [Ping timeout: 248 seconds]
mercwith1mouth has joined #ruby
<tjbiddle>
Quadlex: Yeah, haha. I wouldn't particularly encourage it - But nice to have.
Guest82793 has quit [Quit: Computer has gone to sleep.]
<tjbiddle>
Heading out. Later.
blaxter has quit [Quit: foo]
mercwith1mouth has quit [Client Quit]
mercwith1mouth has joined #ruby
tjbiddle_ has joined #ruby
<Quadlex>
So what do you do tjbiddle?
goraxe has quit [Read error: Connection reset by peer]
tcstar has joined #ruby
Virunga has quit [Remote host closed the connection]
lusory has quit [Remote host closed the connection]
MattRB has quit [Quit: This computer has gone to sleep]
nomenkun has quit [Ping timeout: 255 seconds]
joeycarmello has joined #ruby
chendo_ has joined #ruby
one has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
Targen has joined #ruby
<aedornm>
hmmmm.. I do believe Google's data calculator is wrong
io_syl has joined #ruby
nazty has quit [Ping timeout: 244 seconds]
hashmal has quit [Quit: Computer has gone to sleep.]
kstephens has quit [Read error: Connection reset by peer]
caleb_io has joined #ruby
agarie_ has quit [Remote host closed the connection]
AlSquire has joined #ruby
mattbl has joined #ruby
SeanLazer has quit [Quit: SeanLazer]
kstephens has joined #ruby
<kenneth>
ugh i'm confused
<kenneth>
what does it take to call define_method in the main scope of a script
elico has quit [Ping timeout: 252 seconds]
<kenneth>
i'm trying to figure define a method with a lambda that captures a variable from the script (without making it a $global)
hbpoison has joined #ruby
elico has joined #ruby
<aedornm>
yup.. it's using 10^(3,6,9...) instead of 1024. Do not approve.
<kenneth>
i think i figured it out…
<kenneth>
class Object; class << self; public :define_method; end; def def_with_lambda(*a); self.class.define_method(*a); end; end
<kenneth>
not nasty at all…
pothibo has quit [Quit: pothibo]
AlSquirrel has joined #ruby
c0rn has joined #ruby
<Jonah11_>
say i have types of class A and class B, and I want to define (a - b) and (b-a) where "a" is an "A" and "b" is a "B". Do I have to define the "-" operator on A (taking an arg of B) and on B (taking an arg of A) or is there a better way?
chendo_ has quit [Ping timeout: 260 seconds]
LouisRoR has joined #ruby
AlSquire has quit [Ping timeout: 245 seconds]
agarie has joined #ruby
yacks has quit [Quit: Leaving]
chendo_ has joined #ruby
AlSquirrel has quit [Read error: Operation timed out]
kenneth has quit [Quit: kenneth]
SCommette has joined #ruby
cparen has joined #ruby
elico has quit [Read error: Connection reset by peer]
elico has joined #ruby
caleb_io has quit [Quit: caleb_io]
etcetera has joined #ruby
aaronmacy has joined #ruby
AlSquire has joined #ruby
vikhyat has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
nat_home has joined #ruby
generalissimo has quit [Remote host closed the connection]
AlSquire has quit [Read error: Connection reset by peer]
icole has quit [Remote host closed the connection]
nilobject has quit [Quit: nilobject]
nilobject has joined #ruby
<aedornm>
I see. They are using kibi/begi/gibibytes, but not specified, and it's inconsistent. Thanks Big G.
apok has joined #ruby
AlSquire has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
otherj has joined #ruby
zeade has quit [Quit: Leaving.]
icole has joined #ruby
<aedornm>
been here trying to verify a test worked for the past hour, and the data conversion from Google was wrong. Always check your terms and math, people!
nshbrown has quit [Quit: nshbrown]
apok has quit [Quit: apok]
blooberr has joined #ruby
dayepa_ has joined #ruby
yacks has joined #ruby
dayepa has joined #ruby
kenneth has joined #ruby
<Quadlex>
aedornm: Meh, I'll just google it
thone has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
angusiguess has joined #ruby
<aedornm>
Quadlex: ...
QKO has joined #ruby
jonahR has quit [Quit: jonahR]
aaronmacy has quit [Quit: Leaving.]
aaronmacy has joined #ruby
Jon30 has quit [Ping timeout: 260 seconds]
thone_ has quit [Ping timeout: 255 seconds]
mikepack has joined #ruby
QKO_ has quit [Ping timeout: 256 seconds]
a_a_g has quit [Quit: Leaving.]
angusiguess has quit [Ping timeout: 252 seconds]
hbpoison has quit [Read error: Connection reset by peer]
cparen has quit [Quit: cparen]
hbpoison has joined #ruby
octoberry has joined #ruby
Monie has joined #ruby
<aedornm>
mmm ice wine
mrdtt has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
mrdtt has joined #ruby
dmiller2 has quit [Ping timeout: 245 seconds]
SCommette has quit [Quit: SCommette]
joeycarmello has quit [Remote host closed the connection]
shock_one has joined #ruby
mahmoudimus has joined #ruby
divout has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
cparen has joined #ruby
hbpoison has joined #ruby
chendo_ has quit [Ping timeout: 248 seconds]
elico has quit [Remote host closed the connection]
chendo_ has joined #ruby
cyong has joined #ruby
rippa has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
ryanf has quit [Ping timeout: 264 seconds]
gabrielr_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
icole has quit [Remote host closed the connection]
mlr_ has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
one has quit []
braoru has joined #ruby
mattbl has joined #ruby
JohnBat26 has joined #ruby
mattbl has quit [Client Quit]
carraroj has joined #ruby
AlSquirrel has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
AlSquirrel has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
yshh has quit [Remote host closed the connection]
Loaft has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
gosshedd has quit [Quit: Lost terminal]
danieldocki has joined #ruby
mengu has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
banister`sleep has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
banister`sleep has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
binaryplease has quit [Ping timeout: 276 seconds]
gosshedd has joined #ruby
monkegjinni has joined #ruby
tealmage has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
adman65 has quit [Read error: Connection reset by peer]
embs_ has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
tealmage has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
staafl has quit [Quit: Leaving]
Paraxial has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Paraxial has left #ruby [#ruby]
monkegjinni has joined #ruby
tealmage has joined #ruby
monkegjinni has quit [Read error: No route to host]
dmonjo__ has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 244 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
banister`sleep has quit [Remote host closed the connection]
banister`sleep has joined #ruby
bradleyprice has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
samphippen has joined #ruby
jsmonkey has joined #ruby
<jsmonkey>
Hi, I have a regexp, ^[0-31]{1,2}[0-12]{1,2}[0-9999]{1,4}$ I want to match DDMMYYYY but it won't work if I do 14022013 but everything below 12 for the first 2 numbers. I am bad a regexp, can anyone tell me why?
chimmy has joined #ruby
danneu1 has quit [Ping timeout: 255 seconds]
alup has quit [Read error: Connection reset by peer]
puppeh has quit [Read error: Connection reset by peer]
ozgura has quit [Remote host closed the connection]
QKO has quit [Read error: Operation timed out]
alup has joined #ruby
QKO has joined #ruby
puppeh has joined #ruby
evenix has joined #ruby
poikon_ has joined #ruby
dmonjo__ has joined #ruby
embs_ has joined #ruby
icco has joined #ruby
wf2f has quit [Ping timeout: 248 seconds]
<shevy>
no idea, I hate regexes
<shevy>
my brain can not parse them easily
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
<shevy>
I understand that ^ means the beginning of a regex
dmonjo__ has quit [Client Quit]
<shevy>
wtf is [0-31], is that a character class matching from 0 (one character) to 31 (two characters)... would that even work?
BeLucid has joined #ruby
<shevy>
then I guess {} is used for repetitions
<shevy>
no idea what 1,2 means here, I always thought the repetition only wants one number
<Zelest>
1,2 is the range
<Zelest>
(length)
adman65 has joined #ruby
goganchic has quit []
a_a_g1 has quit [Read error: Connection reset by peer]
Gajanan1 has quit [Read error: Connection reset by peer]
<Zelest>
e.g, [a-z]{1,2} means any char between a and z.. and 1 to 2 characters long
radq_ has quit [Remote host closed the connection]
a_a_g has joined #ruby
<Zelest>
no idea what [0-31] .. as far as I know, ranges doesn't work like that :o
<Zelest>
but then again, i'm clueless :)
Gajanan has joined #ruby
BeLucid_ has quit [Ping timeout: 260 seconds]
jibi has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
chussenot has quit [Quit: chussenot]
radq has joined #ruby
krz has quit [Ping timeout: 244 seconds]
<shevy>
ah I see
<shevy>
so {1,2} is a bit like a mini ruby-range
<shevy>
in a regex
bricker has quit [Ping timeout: 252 seconds]
<shevy>
(1..2).class # => Range
<shevy>
see jsmonkey? we started sherlock holmes your regex!
nari has joined #ruby
<shevy>
aha
yacks has quit [Remote host closed the connection]
<shevy>
x = "1234"; x =~ /[0-31]{1,2}/; $1
<shevy>
jsmonkey seems your [0-31]{1,2} is not matching anything at all
kofno has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
<fuzai>
is there a limit to how long a line in a ruby script can be?
kofno has joined #ruby
hmarr has quit [Quit: Computer has gone to sleep.]
browndawg has joined #ruby
<jsmonkey>
shevy: I solved it thanks
<jsmonkey>
I suck at regexp!
irving_ has quit [Ping timeout: 252 seconds]
daniel_- has quit [Ping timeout: 252 seconds]
<shevy>
jsmonkey yippie \o/
hbpoison has joined #ruby
nazty has joined #ruby
hmarr has joined #ruby
Stilo has joined #ruby
carraroj has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
bluOxigen has joined #ruby
divout has quit [Read error: Connection reset by peer]
<atmosx>
fuzai: no. Of course not.
irving has joined #ruby
bricker has joined #ruby
<atmosx>
fuzai: but if a script is "long enough" and uses classes it's not considered a "script".
<fuzai>
a line in a script, not it itself
Konboi has quit [Remote host closed the connection]
<atmosx>
fuzai: again, no. Out of curiosity how long is that line?
hybris has joined #ruby
<fuzai>
well right now it's four when statements
<fuzai>
but i figured i could combine all of those into one if ()||()||()||()
<fuzai>
but each () is about 80 characters
<atmosx>
I've used strings a long as 4.000.000 characters
<atmosx>
...
yshh has joined #ruby
<atmosx>
they are processed extremely fast even if you need to iterated through them in 2011 hardware (i5 1.7 Ghz/SSD HD)
segv- has joined #ruby
<fuzai>
is there an easy way to figure out how much memory ruby is using?
<fuzai>
i mean i see some things with ps
sailias has joined #ruby
<fuzai>
but is there an easy way to get a hard number?
m3pow has quit [Read error: Connection reset by peer]
cousine has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<atmosx>
fuzai: what system are you on?
<fuzai>
open shift red hat linux setup
<fuzai>
that is secured pretty tight
<fuzai>
i've basically made a little robot
cousine has quit [Remote host closed the connection]
<fuzai>
and were going to try and fire 10 here soon with the idea of scaling 100+, i'm just curious what i'm going to see for real world memory usage
<fuzai>
right now i think i'm reading about 27mb used per ruby process
<atmosx>
top will tell you in real time
<fuzai>
yea that's where i'm getting my numbers
<atmosx>
however, macosx has DTrace for very accurate measurements.
<fuzai>
i'm just wondering if it's 30mb per ruby process or they are all using the same libraries that oppupy 30mb?
angusiguess has joined #ruby
<atmosx>
don't know.
<atmosx>
launch two of them in a 2 screens and see
<atmosx>
again with top
<fuzai>
i remember a long time ago reading that processes with the same libraries share the same so in memory so they don't have to be duplicated in memory
<atmosx>
might be, but since I'm not sure, I can't tell :-)
maycon has quit [Read error: Connection reset by peer]
<atmosx>
there's an awesome tool in MacOSX called "instruments" which runs dtrace scripts. It's a guy, pretty slick for mem measurements
<fuzai>
but that isn't the platform i'm deploying on
geekbri has joined #ruby
<fuzai>
thats like measuring a boat in a bathtub when i wanna know how it does in the lake
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
<fuzai>
and i doubt osx does it's libraries the same say
<fuzai>
:)
<fuzai>
but other then that i haven't tried ruby on osx yet
monkegjinni has quit [Read error: Connection reset by peer]
muro has joined #ruby
muro has left #ruby [#ruby]
monkegjinni has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
danneu1 has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
robustus has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
willob has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
chimmy has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<sthulbourn>
Hey, I'm using sessions in Sinatra, but the session_id is *always* different, any idea how to make it generate consistent ids?
monkegjinni has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
monkegjinni has joined #ruby
subbyyy has joined #ruby
hashmal has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<JonnieCa1he>
theres also something on osx called "dtruss" which is like halfway between raw dtrace and instruments.app
<JonnieCa1he>
its a command line tool still, just friendlier than dtrace, with shortcuts for common tasks
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
DrCode has quit [Ping timeout: 276 seconds]
<JonnieCa1he>
ive probably defined it wrongly there but whatever, its damn useful
monkegjinni has quit [Read error: Connection reset by peer]
kold has quit [Remote host closed the connection]
monkegjinni has joined #ruby
jonathanwallace has quit [Ping timeout: 256 seconds]
<csmrfx>
sthulbourn: session id's are SUPPOSED to be changing
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx>
in fact, should be hard to forge
browndawg has quit [Ping timeout: 255 seconds]
monkegjinni has joined #ruby
<sthulbourn>
csmrfx: should they change for one user on every request?
jjbohn has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<csmrfx>
sthulbourn: depends
DrCode has joined #ruby
m3pow has joined #ruby
<csmrfx>
sthulbourn: supposedly you'd have one for each session, right
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx>
but you might have a running reference to that session id on the client side to keep it secret
chussenot has quit [Quit: chussenot]
monkegjinni has joined #ruby
bricker has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx>
"running reference" meaning a reference that does change on every http request
<sthulbourn>
csmrfx: I know the session id is meant to be different for each user/browser, but when I visit my app, I get a different session id every request
<sthulbourn>
and it drops my defined keys
tealmage has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<csmrfx>
well, your problem description is too vague to make anything of it
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
carraroj has quit [Ping timeout: 252 seconds]
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
whitedawg has joined #ruby
monkegjinni has joined #ruby
whitedawg has quit [Max SendQ exceeded]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
xemu has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
monkegjinni has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
AlSquirrel has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 240 seconds]
megha has joined #ruby
QKO has joined #ruby
radq has quit [Read error: Connection reset by peer]
angusiguess has joined #ruby
inokenty has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
whitedawg has joined #ruby
QKO_ has quit [Ping timeout: 252 seconds]
a_a_g has joined #ruby
whitedawg has quit [Max SendQ exceeded]
jjbohn has quit [Quit: Leaving...]
a_a_g1 has joined #ruby
chussenot has quit [Quit: chussenot]
jjbohn has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
<Nom->
Evening... hopefully someone can point me in the right direction here... I've got a really simple extension which I want to break up into multiple files, but it's complaining about symbols not being defined when linking... is there something special I need to do so that the C files are linked correctly?
<Nom->
Using 'mkmf' i probably should have mentioned
chussenot has joined #ruby
Proshot is now known as statarb3
fteem has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
fuzai has quit [Quit: fuzai]
subbyyy has quit [Ping timeout: 260 seconds]
a_a_g has quit [Ping timeout: 256 seconds]
tommyvyo has joined #ruby
a_a_g has joined #ruby
cupakromer has joined #ruby
jaimef has quit [Ping timeout: 245 seconds]
AlSquire has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
poikon_ has quit [Ping timeout: 260 seconds]
a_a_g2 has joined #ruby
jjbohn has quit [Quit: Leaving...]
a_a_g1 has quit [Ping timeout: 256 seconds]
mklappstuhl has joined #ruby
emocakes has quit [Quit: emocakes]
otherj has quit []
subbyyy has joined #ruby
otherj has joined #ruby
a_a_g has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
<mklappstuhl>
Having a conditional callback (changed? must be true) how would I test that it is only called when the condition is true?
<mklappstuhl>
stubbing .changed? and then what?
noop has quit [Remote host closed the connection]
gtc has joined #ruby
<mklappstuhl>
How do I do something like "must receive function call xy on save" ?
jjbohn has joined #ruby
<mklappstuhl>
Do I need to mock the object to do that?
AlSquirrel has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
Jackneill has joined #ruby
poikon_ has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
Jackneill has quit [Max SendQ exceeded]
hbpoison has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<Qwak>
mklappstuhl i dont understand what you need :(
banisterfiend has joined #ruby
monkegjinni has joined #ruby
<cupakromer>
mklappstuhl possibly either verify the assertion that the callback makes or if it's calling external services, verify those calls are made
krawchyk has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
AlSquire has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tomzx_mac has joined #ruby
mlr has joined #ruby
Squarepy has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<cupakromer>
mklappstuhl i.e. verify the expected state or expected message passing
Squarepy has quit [Changing host]
Squarepy has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Virunga has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
emocakes has joined #ruby
monkegjinni has joined #ruby
mlr has quit [Ping timeout: 244 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
pyrac has joined #ruby
Jackneill has joined #ruby
<mklappstuhl>
cupakromer: I thought about testing that the methods within the callback function but that seems to be clutter. I just want to make sure that the function is only called in a certain case not what the function actually does
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
monkegjinni has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
banisterfiend has quit [Remote host closed the connection]
monkegjinni has joined #ruby
davetherat has quit [Remote host closed the connection]
chussenot__ has joined #ruby
chussenot has quit [Read error: No route to host]
davetherat has joined #ruby
<cupakromer>
mklappstuhl it can clutter, it just depends on your setup. internal vs external messages. what do you own, etc.
chussenot__ is now known as chussenot
SeanLazer has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
willob has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
Guest92767 has quit [Changing host]
Guest92767 has joined #ruby
Guest92767 is now known as guyz
monkegjinni has quit [Read error: Connection reset by peer]
Uranio has joined #ruby
Lubinski has joined #ruby
Lubinski has quit [Changing host]
Lubinski has joined #ruby
monkegjinni has joined #ruby
<mklappstuhl>
cupakromer: did you take a look at the gist?
monkegjinni has quit [Read error: Connection reset by peer]
<cupakromer>
mklappstuhl yes, that's the test. not the callback
invisime1 has joined #ruby
monkegjinni has joined #ruby
<cupakromer>
mklappstuhl without knowing details about the callback and what you own, it's hard to make a general recommendation
<cupakromer>
the test looks ok
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
zerba has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<mklappstuhl>
cupakromer: except that there is no such thing as "must_receive". me and my coworker are really confused how to test this apparently simple thing
monkegjinni has quit [Read error: Connection reset by peer]
jlast has joined #ruby
monkegjinni has joined #ruby
Mohan has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Marco has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
arya has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<csmrfx>
OK monkegjinni
shorts has quit [Quit: shorts]
monkegjinni has quit [Read error: Connection reset by peer]
DavidLevin has joined #ruby
DavidLevin has quit [Max SendQ exceeded]
hbpoison has joined #ruby
monkegjinni has joined #ruby
shorts has joined #ruby
<csmrfx>
get your conn working or autojoin off, monkegjinni
snuglepuss has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
plotter has quit [Remote host closed the connection]
dmiller2 has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
jpfuentes2 has joined #ruby
monkegjinni has joined #ruby
<Hanmac_>
https://tools.ietf.org/html/rfc6592 << "The Null Packet cannot have the Evil Bit ("E") [RFC3514] set, by definition (see Section 2.1). Consequently, it is rather clear and undeniable that theNull Packet is harmless, having no evil intent."
monkegjinni has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tommyvyo has quit [Read error: No route to host]
tommyvyo has joined #ruby
joofsh has quit [Remote host closed the connection]
wyhaines has quit [Read error: Operation timed out]
lethjakman has quit [Ping timeout: 252 seconds]
breakingthings has joined #ruby
monkegjinni has joined #ruby
Marco has quit [Ping timeout: 248 seconds]
fmcgeough has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
nga4 has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
arya has joined #ruby
wyhaines has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx>
https://tools.ietf.org/html/rfc5841 RFC 5841 TCP Option to Denote Packet Mood 1 April 2010 4.9. Angry Packets Packets that are retransmitted SHOULD be marked as angry.
megha has joined #ruby
monkegjinni has joined #ruby
<csmrfx>
ARRRR
browndawg has left #ruby [#ruby]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
inao has quit [Quit: Leaving...]
monkegjinni has quit [Read error: Connection reset by peer]
EvanR has joined #ruby
peregrine81 has joined #ruby
monkegjinni has joined #ruby
EvanR is now known as Guest54578
monkegjinni has quit [Read error: Connection reset by peer]
<mklappstuhl>
cupakromer: do you think this is clear to understand?
hbpoison has quit [Read error: Connection reset by peer]
joshman_ has joined #ruby
d1zzYLuLz has joined #ruby
monkegjinni has joined #ruby
hbpoison has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
poikon_ has quit [Remote host closed the connection]
monkegji_ has quit [Read error: Connection reset by peer]
joofsh has joined #ruby
spaceships has joined #ruby
monkegjinni has joined #ruby
miskander has joined #ruby
monkegji_ has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
monkegji_ has quit [Read error: Connection reset by peer]
Monie has joined #ruby
monkegji_ has joined #ruby
JohnBat26 has quit [Read error: Operation timed out]
monkegji_ has quit [Read error: Connection reset by peer]
bean has joined #ruby
jonahR has joined #ruby
GreekFreak has joined #ruby
<GreekFreak>
hi all
<GreekFreak>
I have 2 transactions, the one nested in the other. However, when the inner transaction raises an exception, the outer one still commits. That's not what I want. But I still want the inner transaction so that I can see the caught errors.
monkegji_ has joined #ruby
interactionjaxsn has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<Hanmac_>
GreekFreak: is this an rails question? if yes #rubyonrails
monkegji_ has joined #ruby
wargasm1 has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Ping timeout: 248 seconds]
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
monkegjinni has joined #ruby
Fraeon has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
braoru has quit [Remote host closed the connection]
monkegjinni has joined #ruby
megha has quit [Quit: WeeChat 0.4.0]
oposomme has joined #ruby
carraroj has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<oposomme>
hi, I would like to know how do I get the first 2 lines of a string?
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx>
oposome str.spl("\n")[0..1] perhaps
snuglepuss has quit [Remote host closed the connection]
shock_one has joined #ruby
monkegjinni has joined #ruby
* csmrfx
ARRR tears couple strings into two with his bare hands
adambeynon has quit [Quit: Computer has gone to sleep.]
tcstar has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
AndChat| has quit [Ping timeout: 260 seconds]
<oposomme>
csmrfx: ok thx
monkegjinni has joined #ruby
arturas_ has quit [Ping timeout: 260 seconds]
tagrudev has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
puppeh has quit [Remote host closed the connection]
monkegjinni has joined #ruby
jjbohn has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<GreekFreak>
Hanmac, I am developing in Rails, but I was under the impression that Transactions were part of Ruby classes
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<csmrfx>
nope
io_syl has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
<Hanmac_>
GreekFreak not in the ruby core or ruby stdlib ... DatabaseTransactions are 3rd party stuff
<csmrfx>
well, not ruby core anyway
decoponio has quit [Read error: Connection reset by peer]
<GreekFreak>
Hanmac, thank you
monkegjinni has quit [Read error: Connection reset by peer]
mattbl has joined #ruby
monkegjinni has joined #ruby
decoponio has joined #ruby
<jacobw>
hi, i have a problem in a script that i don't have in irb
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
sayan has joined #ruby
baroquebobcat has joined #ruby
monkegjinni has joined #ruby
generalissimo has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
erlingur has quit [Quit: Computer has gone to sleep.]
<jacobw>
in irb, i can do this just fine, when i try to do this from a file it returns the undefined method for nil:NilClass
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
renanoronfle has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
jprovazn has quit [Quit: Leaving]
anonymuse has joined #ruby
nidhimj22 has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
arya has joined #ruby
casheew has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
DavidLevin has joined #ruby
DavidLevin has quit [Max SendQ exceeded]
tacey has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tacey has quit [Max SendQ exceeded]
casheew has joined #ruby
monkegjinni has joined #ruby
angusiguess has quit [Read error: Connection reset by peer]
plotter has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
nidhimj22 has left #ruby [#ruby]
monkegjinni has joined #ruby
casheew has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
JonnieCa1he has quit [Quit: Reconnecting]
monkegjinni has quit [Read error: Connection reset by peer]
JonnieCache has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
spider-mario has joined #ruby
ZoffixWeb has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
angusiguess has joined #ruby
d2dchat has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<d1zzYLuLz>
I know that ruby is a "high-level" language..but how low level could one get with ruby? I need to do data destruction and verify that it is destroyed w/ a qc process...I am doing this now with a bash script and writing to files but am running into some conflicts...I think it'd be a lot easier and beneficial if I could write them to a database and put a web front end to it for the warehouse employees that will be using it (they're not SUPE
<d1zzYLuLz>
or that would be good to read all the bytes on a drive and look for things that are not-zero?
monkegjinni has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
carloslopes has joined #ruby
gouthamvel has joined #ruby
monkegjinni has joined #ruby
pavilionXP has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
casheew has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
<Hanmac_>
dlzzYLulz with FFI/DL/ or bindings you can call C functions ... (i have sawn a script where you can manipulate the internal structure of rubyvalues itself :D)
ZoffixWeb has quit [Client Quit]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
miskander has quit [Quit: miskander]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
casheew has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<csmrfx>
you probably want to use dd anyway
<csmrfx>
d1zzYLuLz:
<Hanmac_>
d1zzyLulz how does your bash script looks like? normaly ruby should can do nearly anything as bash can do (File manipulation for sample)
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
miskander has joined #ruby
BadLarry has joined #ruby
<csmrfx>
or bleachbit, or wipe, etc
<d1zzYLuLz>
my bash script is ugly lol
hackeron has quit [Ping timeout: 255 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
<d1zzYLuLz>
csmrfx: we're using ATA's Secure Erase
mmitchell has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
<d1zzYLuLz>
not something like dban that just overwrites w/ 0s
jgrevich has joined #ruby
<csmrfx>
which OS is that?
<d1zzYLuLz>
secure erase is an on-board call that is wayyy faster
monkegjinni has joined #ruby
<d1zzYLuLz>
windows has an exe, hdderase..linux uses hdparm
wargasm has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<JonnieCache>
just as long as youre not doing that 7 writes "NSA spec" nonsense
<d1zzYLuLz>
i have it written in bash but the logging portion is ugly and i think i'm going to run into issues once it goes into full use-mode
<JonnieCache>
in os x (and i guess bsd) one can just do rm -P
<JonnieCache>
little known fact
monkegjinni has quit [Read error: Connection reset by peer]
hackeron has joined #ruby
monkegjinni has joined #ruby
<d1zzYLuLz>
what does -P do?
<JonnieCache>
"Overwrite regular files before deleting them. Files are overwritten three times, first with the byte pattern 0xff, then 0x00, and then 0xff again, before they are deleted."
monkegjinni has quit [Read error: Connection reset by peer]
<d1zzYLuLz>
oh, yeah
<d1zzYLuLz>
similar to shred
monkegjinni has joined #ruby
<d1zzYLuLz>
like i said though, this isn't just overwriting...
<Hanmac_>
you could also use dd to copy from zero or random to sda directly :P
pdamer has joined #ruby
<d1zzYLuLz>
secure erase is a firmware command
razibog has quit [Ping timeout: 256 seconds]
SCommette has joined #ruby
<d1zzYLuLz>
i can do a 500GB drive in a little over 90min
monkegjinni has quit [Read error: Connection reset by peer]
miskander has quit [Client Quit]
monkegjinni has joined #ruby
<shevy>
hmm
<shevy>
can I do:
gouthamvel has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
<shevy>
begin require 'extension_that_may_not_exist' rescue LoadError end
<shevy>
in one line, without any ; ?
<shevy>
or is there another way
<JonnieCache>
yeah just remove the rescue/end
<shevy>
basically, I want to just require something and continue, with as little effort
<JonnieCache>
and that should work fine
monkegjinni has joined #ruby
<shevy>
JonnieCache hmm oh you mean
<shevy>
hmm no that would fail I think, if it is not installed
miskander has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<Hanmac_>
shevy did you tested named parameters in ruby2? :P
<shevy>
rescue(require 'foo') that would be cool haha
samphippen has joined #ruby
monkegjinni has joined #ruby
<shevy>
Hanmac hmm no, I dont have ruby2 yet, I will wait until it is heavily tested
<JonnieCache>
shevy: youre right it doesnt work with require
<d1zzYLuLz>
anyway, i was just thinking storing the data we want to store for logging would be best done in a database rather than just writing command output to files..it gets ugly..especially when we have multiple machines running and doing 10+ drives at a time..
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<JonnieCache>
d1zzYLuLz: you definitely want a log server
<shevy>
JonnieCache hmm well it is ok to begin/rescue, I just wondered if there was a shorter way
<d1zzYLuLz>
i know how to write and read code and throw things together to ge tthings done if i'm on a pentest or soemthing but i'm not a developer ..
monkegjinni has quit [Read error: Connection reset by peer]
<shevy>
I just add a real tiny gem to a big script, and it is ok if this gem does not work, it is very unimportant and does only a small task
<shevy>
only continue is important
monkegjinni has joined #ruby
<shevy>
d1zzYLuLz I dont think it has much to do with a developer, you only have to "think" within a specific problem domain
monkegjinni has quit [Read error: Connection reset by peer]
gosshedd has quit [Ping timeout: 256 seconds]
<shevy>
one pattern I love very much is to simplify things as much as possible
mattaf123 has joined #ruby
<shevy>
ok JonnieCache
monkegjinni has joined #ruby
<Hanmac_>
shevy so you can do: def func(a,b=2,*vargs,**kargs) in ruby2 :P imo its very fun
<shevy>
yeah
monkegjinni has quit [Read error: Connection reset by peer]
<shevy>
you give feedback to the user here JonnieCache. I do that sometimes too, but with this tiny gem, I am fine with silent rescues
<shevy>
Hanmac_ can kargs be a hash?
aaronmacy has joined #ruby
<mattaf123>
ok say i have an array "a" that has tons of data in it (say 100,000 hashes or something). my ram usages goes up to 300 mb for the ruby process. if i then run "a = []", when will garbage collection run and lessen the ram usage for the ruby process? or does ruby just hold on to the memory until the os wants it back?
Dreamer3 has quit [Quit: Leaving...]
<d1zzYLuLz>
to be honest, i think a db would be better too for research purposes...for example, secure erase is supposed to be so effective that a qc process isn't needed (according to NIST standards)...we've found NUMEROUS drives that fail the secure erase process that shouldn't according to NIST standards and their are a ton of companies out there using this technologya dn not QCing...i'm wondering how many drives are going back out into production
monkegjinni has joined #ruby
etcetera has joined #ruby
<JonnieCache>
mattaf123: GC doesnt run right away but yes that should happen
<d1zzYLuLz>
a lot of industries require 3rd party verification that data is destroyed, adn this data is probably leaving there because they're not Qc
Hypn has quit [Remote host closed the connection]
<d1zzYLuLz>
and if i could find a pattern to which drives, that'd be a great white paper...
buibex has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
<JonnieCache>
mattaf123: even when its run your OS might not immediately report that the memory usage has changed though. modern OS memory management algorithms are incredibly complex
<csmrfx>
mattaf123: you wont know when
monkegjinni has joined #ruby
<csmrfx>
!g ruby gc fire
monkegjinni has quit [Read error: Connection reset by peer]
<shevy>
mattaf123 there is not much control you have over the GC
monkegjinni has joined #ruby
<JonnieCache>
you can fire it manually with GC.run! or something like that, but you shouldnt
<csmrfx>
d1zzYLuLz: pardon my directness, but to me it sounds like you have no way of knowing what fails: your code, it's components, the OS, or the drive.
monkegjinni has quit [Read error: Connection reset by peer]
<Hanmac_>
shevy kargs is ALWAYS a hash :P
<JonnieCache>
youre in a dynamic interpreted language dude. let the OS and the interpreter manage memory, and be thankful for it
<csmrfx>
JonnieCache: that depends on ruby implementation
monkegjinni has joined #ruby
<JonnieCache>
csmrfx: exactly :D
monkegjinni has quit [Read error: Connection reset by peer]
roflmaus has quit [Read error: Connection reset by peer]
<shevy>
you get about as much control as
<shevy>
GC.enable
<shevy>
GC.disable
<shevy>
hahaha :D
monkegjinni has quit [Read error: Connection reset by peer]
<mattaf123>
shevy: awesome, thanks - hadn't seen that
* Hanmac_
wishs there where a way so you could get the info if you should store something in memory or if you should store it in a tmp file ... (wich is often in memory too) ...
monkegjinni has joined #ruby
QKO_ has joined #ruby
<shock_one>
shevy, can I delete the object manually, like in Python?
<shevy>
Hanmac_ perhaps in ruby 3.0
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<shevy>
shock_one hmm I dont think so... I have seen people try to do: a = []; a = nil ... but I think the GC runs when it wants to, and not when a nil is assigned to a variable
fteem has quit [Ping timeout: 252 seconds]
Umren has joined #ruby
<shevy>
shock_one perhaps via yarv or what the name was... this bytecode thingy in ruby
lethjakman has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<JonnieCache>
why on earth would you want to tear a hole through a carefully assigned abstraction
<shock_one>
shevy, yeah, every nil assignment definitely doesn't run GC.
<shevy>
RubyVM::InstructionSequence.disasm proc { |x| y = x + 2; puts y }
<JonnieCache>
if you want to do this kind of thing, use C or golang
main has quit [Read error: Operation timed out]
monkegjinni has joined #ruby
CreativeEmbassy has joined #ruby
<shevy>
I havent understood RubyVM yet
<JonnieCache>
s/assigned/designed
<shevy>
I am not even sure when to use it :\
monkegjinni has quit [Read error: Connection reset by peer]
<d1zzYLuLz>
csmrfx: well before i implemented the logging part, i know it wasn't code..it was a simple for loop to execute one command on each device /dev/sd[a-z] then i would run through the hex and look for anything that was not a zero, if itw asn't a zero, it failed
<d1zzYLuLz>
the logging is the part i'm confused on
<Hanmac_>
JonnieCache for sample you cant turn an an proc into an compiled InstructionSequence ... and bad that you can dump it or create it an Sequence object from an Array if sequences ...
maxmanders has joined #ruby
adambeynon has joined #ruby
aganov has quit [Quit: aganov]
<Hanmac_>
shock_one that does not work on anonymous classes like rails use often
<Hanmac_>
GreekFreak: on ruby classes not need a "name" in the meaning of a asigned constant ...
<JonnieCache>
rking: you should also point out in your spam that banisterfiend's github username is just "banister"
<shock_one>
Hanmac_, well, you can't get the *name* of *anonymous* class, that makes sense.
<GreekFreak>
shock_one, that gives me the name of the error's class, not the name of the class that threw the error
aedornm has quit [Quit: Leaving]
tcstar has quit [Quit: Leaving]
tcstar has joined #ruby
d_roge has left #ruby [#ruby]
weox has joined #ruby
<JonnieCache>
rking: oh you did put that in, sorry
<shock_one>
GreekFreak, classes don't raise exceptions, bad code fragments do.
benlieb has joined #ruby
mlr_ has quit [Client Quit]
<GreekFreak>
ok. what I mean is this. I get this error. How do I get which class it refers to? I get this error : #<NameError: undefined local variable or method `create_transation' for #<Class:0x007f48e8058bf0>> I want to know which Class it refers to
tcstar has quit [Read error: Connection reset by peer]
<shock_one>
GreekFreak, it would be much easier if you gist the code.
mlr_ has joined #ruby
havenwood has joined #ruby
chrishunt has quit [Quit: zZzZzZ...]
<GreekFreak>
shock_one, I know where the error is. I'm trying to create a generic error handler cause I do a lot of stuff in transactions. Which is why I don't have code
<Hanmac_>
GreekFreak i think this is a rails question again ..
tcstar has joined #ruby
d_roge has joined #ruby
<GreekFreak>
Hanmac, I'm asking there too. My problem is that I don't know what is rails and what is ruby, so I ask both in the hopes of a more complete answer.
mlr_ is now known as mlr
<GreekFreak>
Thanks for trying guys
hashpuppy has joined #ruby
chrishunt has joined #ruby
BrianJ has joined #ruby
chrishunt has quit [Client Quit]
<shock_one>
GreekFreak, you can change the error string in the place, where you throw it (method_missing), or you can monkey patch NameError.
jgrevich_ has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
weox has quit [Quit: Leaving]
<shock_one>
throw -> raise
a_a_g has joined #ruby
<GreekFreak>
let me try that
<GreekFreak>
thanks
<shock_one>
GreekFreak, no problem
mercwith1mouth has joined #ruby
mercwithamouth has joined #ruby
jgrevich has quit [Ping timeout: 248 seconds]
jgrevich_ is now known as jgrevich
<Hanmac_>
shevy when a umethod shows #<UnboundMethod: C(B)#bla_init(init)> do you know that the four parts mean? :P
<Hanmac_>
and yes this is a difference to 1.9
Targen has quit [Ping timeout: 245 seconds]
jimeh has joined #ruby
d_roge has quit [Remote host closed the connection]
katherinem13 has quit [Ping timeout: 255 seconds]
warreng has joined #ruby
nateberkopec has joined #ruby
maxmanders has joined #ruby
danneu1 has joined #ruby
cupakromer has quit []
mattaf123 has quit [Quit: mattaf123]
Yakko has quit [Remote host closed the connection]
Yakko has joined #ruby
katherinem13 has joined #ruby
eroc has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
BRMatt has joined #ruby
mahmoudimus has joined #ruby
banisterfiend has joined #ruby
failshell has joined #ruby
arya_ has quit [Ping timeout: 245 seconds]
graft_ has quit [Read error: Connection reset by peer]
arya has joined #ruby
Qwak has quit [Ping timeout: 256 seconds]
Dwarf has quit [Quit: By the way; I love Universe.. :) *DON'T TELL HIM!*]
workmad3 has quit [Ping timeout: 260 seconds]
zorbyte has joined #ruby
wargasm has joined #ruby
fteem has joined #ruby
ahokaomaeha has joined #ruby
danneu1 has quit [Quit: WeeChat 0.3.8]
<shevy>
Hanmac_ what
<shevy>
I dont even know what means anything in this
paolooo has joined #ruby
<shevy>
why is there even a #
<Hanmac_>
the method is defined in B but requested from C
graft_ has joined #ruby
<shevy>
aha
<Hanmac_>
the method orginal name was init, but it was aliased as bla_int
Yakko has quit [Remote host closed the connection]
cparen has joined #ruby
<Hanmac_>
http://bugs.ruby-lang.org/issues/7806 << there is a bugticket from a user you know about that #inspect and #name on method objects does Differ
Fraeon has joined #ruby
Targen has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
RurouniJones has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 252 seconds]
cparen has quit [Client Quit]
[[johnonymous]] has joined #ruby
daniel_hinojosa has joined #ruby
nomenkun has quit [Remote host closed the connection]
Qwak has joined #ruby
mattaf123 has joined #ruby
andikr has quit [Remote host closed the connection]
oposomme has quit [Quit: Leaving...]
<Hanmac_>
shevy did you get it?
Xeago has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
<nat_home>
Hi, I'm not sure how to do my thing exactly, here is the code http://pastie.org/6165609 basically I'm building an array with the output of the command executed, the problem is that inside my block, the array looks (line 17) good but as soon as I'm out of that channel.exec(command) I'm losing the elements
<nat_home>
how do I make that work ?
joofsh_ has joined #ruby
wargasm has joined #ruby
krz has quit [Quit: krz]
luckyruby has quit [Remote host closed the connection]
QKO_ has quit [Read error: Operation timed out]
dmerrick has joined #ruby
<shevy>
Hanmac_ hmmm
<shevy>
I am confused
Banistergalaxy has joined #ruby
<shevy>
so we have:
dallasm has joined #ruby
<shevy>
class A; def xyz; end; alias ver xyz; end
joofsh has quit [Ping timeout: 256 seconds]
<shevy>
so A.new.xyz() should behave like A.new.ver()
workmad3 has joined #ruby
<shock_one>
nat_home, so, on line 36 it's empty?
etcetera has joined #ruby
graft_ has quit [Read error: Connection reset by peer]
<robert_>
shevy: hai. :D
<Hanmac_>
>> class A; def xyz; end; alias ver xyz; end; p A.instance_method(:ver), A.instance_method(:ver).name
<shock_one>
nat_home, try to inspect the ret near the end of the method. Maybe it's some scope issue.
end_guy has joined #ruby
ananthakumaran has joined #ruby
Targen has quit [Ping timeout: 256 seconds]
mattaf123 has quit [Quit: mattaf123]
<shevy>
"encoding is the nigger of the world"
<JonnieCache>
hahahahahahaha
<JonnieCache>
nice reference
<shevy>
I am making a stab here at the old song from john lennon, "woman is the nigger of the world"
ananthakumaran has quit [Client Quit]
gosshedd has joined #ruby
<shevy>
well
<JonnieCache>
it was originally a quote from some famous feminist. she got in trouble for it
<shevy>
at least encoding leads to so many problems... I'd wish we would all use only one language :(
D4T has quit [Quit: Computer has gone to sleep.]
<shevy>
JonnieCache ah, I did not know that
<JonnieCache>
as you can imagine there was a certain section of the population that wasnt happy with the comparison
<Hanmac_>
shevy yeah, let us use latin :P
<shevy>
thought john lennon originated it... now it sounds as if he "reused" the idea of someone else hehe
<nat_home>
shock_one: as soon as I'm out of that bloc the content of my array disappear
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
<JonnieCache>
oh apparently yoko ono said it. makes sense
ozgura has quit [Remote host closed the connection]
<shock_one>
nat_home, which block, channel.on_data?
<shevy>
JonnieCache, yeah, well I guess it must have been correct in the 1970s too, that people try to provoke with bold statements and theories, and in doing so gain attention
alvaro_o has joined #ruby
<shevy>
yoko ono was so ugly :P
<JonnieCache>
yoko OH NOES
<shevy>
Hanmac_ actually, I would be in favour of eliminating german umlauts
<nat_home>
shock_one: yes
<JonnieCache>
i used to have a t shirt that said that. it had an upside down picture of her face on it
<shevy>
I think that written english is superior to written german
<shevy>
some german dialects are cool though
noxoc has quit [Ping timeout: 256 seconds]
<shevy>
JonnieCache hehehe
<shevy>
perhaps I should get a t shirt with matz on it
<shevy>
99.99% of the people here would never have a chance to know who that man would be
<shock_one>
nat_home, which ruby version?
<shevy>
without ruby on rails, I think noone would even know ruby here
oposomme has joined #ruby
<nat_home>
shock_one: 1.9.3
<shevy>
nat_home in which line does it disappear?
<shock_one>
shevy, looks like on line 16 new local variable ret is created
<shevy>
Hanmac, with .instance_method() I can create an UnboundMethod object?
<Hanmac_>
shevy the german ones are not the worst ... while this is possible in UTF ụ̣̣̈̄ọ̈̄ạ̈̄ụ̈̌
maxmanders has quit [Quit: Computer has gone to sleep.]
daniel_- has quit [Ping timeout: 252 seconds]
timmow has quit [Ping timeout: 252 seconds]
<shevy>
gf3 not sure yet... I did not find the functional languages very elegant :(
<shevy>
and haskell is unfortunately not understandable for everyone
nuba has joined #ruby
ni291187 has left #ruby [#ruby]
ngoldman has joined #ruby
<shevy>
aedorn my ancient room when I was a kid was full with lego!
<gf3>
shevy: Say whaaaaaat
chrishunt has joined #ruby
<gf3>
shevy: Perhaps it's just my preference, but most that I've tried I've found to be extremely elegant due to their simplicity
<shevy>
gf3 hmm what language?
actcoolordie has joined #ruby
<aedorn>
you should try Go ... I don't know why, but it does seem awfully trendy.
<shevy>
I dont have much experience with them
pu22l3r has joined #ruby
<shevy>
dunno, why should one not use C instead of Go?
<gf3>
shevy: The lisps especially (also schemes)
actcoolordie has left #ruby [#ruby]
<nat_home>
shock_one: thanks, that's exactly my problem (I reread the doc about net-ssh) … I think I have to find a better way to do my thing
Vert has joined #ruby
<shock_one>
nat_home, no problem
danneu has joined #ruby
Yakko_ has joined #ruby
<aedorn>
shevy: Don't have to worry (too much) about memory management, it's cross platform by default, it's decently quick, it pulls libs into your executable from outside sources so you don't have to have them on the systems you distribute to...
Yakko has quit [Ping timeout: 255 seconds]
Yakko_ is now known as Yakko
DaltonUS has quit [Quit: DaltonUS]
<Mortchek>
I have a list of lists. Is there a standard function that concats this list's elements together?
<shock_one>
shevy, the main advantage of functional languages is data immutability. Because of it programs can be paralelled automatically and they have much less errors.
<shock_one>
parallelized
heyitsdave has joined #ruby
mikepack has joined #ruby
eldariof has joined #ruby
<shock_one>
shevy, true higher order functions (with currying and shit) are also very cool
<shevy>
aedorn yeah, memory management is the single one thing I hate the most about C
mephux has quit [Excess Flood]
<shock_one>
shevy, use stack :)
<shevy>
Mortchek you could .flatten it always. btw I think you mean array rather than a list?
<shevy>
shock_one hmm but one needs a pointer for this or? I never understood them completely :(
etcetera has quit []
mephux has joined #ruby
<shock_one>
for using stack?
<Mortchek>
shevy, okay, array. But I don't want to do this to the arrays contained by the arrays contained by that array.
breakingthings has quit []
<shevy>
shock_one I think so?
<Mortchek>
Oh, never mind, it has an argument that seems to make it do what I want.
sn0wb1rd has joined #ruby
<Mortchek>
Thanks.
<shevy>
there are so cool things you can do with C, like http://paco.sourceforge.net/doc/README ... I wanted to use that from pure ruby too, and have a package manager that way
<shevy>
but C is over my head still
<shevy>
Mortchek how many arrays do you have :P like those babuschka dolls
asobrasil has joined #ruby
<shock_one>
shevy, no, if you create, say, int i = 2; it will be deallocated automatically. You only need to free (delete) the objects you have created with alloc (new)
<Mortchek>
shevy, I am working with arrays of arrays of arrays of fixnums.
<shevy>
shock_one ah ok
sn0wb1rd has quit [Remote host closed the connection]
<aedorn>
meh, C is actually rather easy. It's keeping up with all the external libraries you could use is when it begins to get difficult.. artificial difficulty.
tjbiddle has quit [Remote host closed the connection]
Vainoharhainen has quit [Quit: Leaving...]
<shock_one>
aedorn, what is the standard practice to avoid name clashes in C?
locriani has quit [Read error: Connection reset by peer]
clooth has quit [Quit: clooth]
locriani has joined #ruby
<Mortchek>
As an example, [[[1, 2], [2, 1]], [[0, 0]], [[3, 2], [4, 2]]]
<Mortchek>
The innermost arrays are always two Fixnums (I wasn't sure if there was a more appropriate type for this already)
<shock_one>
shevy, babuschka is grandma in Russian :)
<shevy>
hehe
<Mortchek>
And since they represent coordinates, it's very important that they not be splayed apart :P
<shevy>
now I know two words
<shevy>
druschba... and babuschka
<banisterfiend>
Mortchek: Point = Struct.new(:x, :y)
<shevy>
ah... and vodka or voda or however you write this in latin chars
mikepack has quit [Read error: Connection reset by peer]
QKO_ has joined #ruby
<shock_one>
shevy, I can teach you how to say to someone to fuck off
<Mortchek>
banisterfiend, thanks.
<shevy>
shock_one cool! how?
caleb_io has joined #ruby
<shevy>
I can say "four" in russian... tschetiri
twoism has joined #ruby
mikepack has joined #ruby
<shevy>
youtube really is awesome for learning simple things :P
<shock_one>
shevy, idi nahuj. I'm not sure how do you pronounce it, though.
nat_home has quit [Quit: Leaving.]
benlieb has quit [Quit: benlieb]
kenneth has quit [Quit: kenneth]
<shevy>
hmm... "idi" seems simple... nahuj... is that "nahutsch" or "nahujjj", j... like in jaja or yes
joofsh has joined #ruby
<shevy>
"nahui"
QKO has quit [Ping timeout: 244 seconds]
monkegjinni has joined #ruby
jankly has joined #ruby
zeade has joined #ruby
<shock_one>
nakhui
_nitti_ has joined #ruby
<aedorn>
shock_one: No idea.. it's been X years where X is greater than 15. At least I hope you aren't asking for the wonders that are underscore prefixing ... something must have changed since then
emocakes has quit [Quit: emocakes]
c0rn has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
brianpWins has joined #ruby
<shock_one>
aedorn, there are still no namespaces, right?
_nitti has quit [Ping timeout: 256 seconds]
<shevy>
shock_one ok
<shevy>
shock_one I try to remember the full phrase i one go, seems easier
miskander has joined #ruby
cdt has quit [Remote host closed the connection]
<aedorn>
shock_one: Unless they decided to implement one from C++ ... functions in structs will get you close...ish.
joofsh has quit [Read error: Connection reset by peer]
mephux has quit [Excess Flood]
QKO has joined #ruby
Yakko_ has joined #ruby
QKO_ has quit [Ping timeout: 248 seconds]
oposomme|away has quit [Read error: Connection reset by peer]
elux has joined #ruby
mephux has joined #ruby
Yakko has quit [Ping timeout: 255 seconds]
rupee has joined #ruby
ozgura has joined #ruby
eroc has quit [Quit: eroc]
Yakko has joined #ruby
monkegjinni has quit [Remote host closed the connection]
joofsh has joined #ruby
<aedorn>
After all these years, the most annoying thing about building servers/desktops is still the case ... now there's an industry that could benefit from some social interaction.
sayan has quit [Ping timeout: 248 seconds]
anderse has quit [Quit: anderse]
AlSquire has quit [Ping timeout: 255 seconds]
sandGorgon has joined #ruby
Yakko_ has quit [Ping timeout: 252 seconds]
rdark has quit [Ping timeout: 252 seconds]
pyrac has joined #ruby
muminz has quit [Remote host closed the connection]
mityaz has joined #ruby
muminz has joined #ruby
<shevy>
shock_one cool... that is very difficult to pronounce... I can hear that the speaker emphasizes it very differently from how I can speak that
elaptics is now known as elaptics`away
_nitti_ has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
AlSquire has joined #ruby
<shevy>
aedorn what is the most annoying thing?
<shevy>
compiling? :)
<shock_one>
shevy, if you only know how hard for me it is to pronounce this fucking english.
kirun has joined #ruby
<shevy>
shock_one haha :D yeah... english is sometimes strange. the word "decay", I used to pronounce it "deee-say". then a professor said "deee-kay"
<shevy>
but "decent", you speak "deeee-seeeeend"
<shock_one>
shevy, the most difficult is the phonems that we don't have. Like th and r (or, er...),
carlyle has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
<shevy>
cool
<shevy>
the french are especially funny, when they must pronounce "h"
nat_home has joined #ruby
daniel_-_ has quit [Quit: WeeChat 0.3.9.2]
kenneth has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
graft_ has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
teod has joined #ruby
<aedorn>
shevy: no, no just the case. For instance, this one has welded motherboard stands. Unfortunately there's some that don't actually get used, and since they can't be removed they're basically sitting on an electrical pathway. The power supply is in an awkward position, so to route the 24pin connector you have to either go straight over the CPU, or route it around the PCIE slots, which means you won't be able to use them. So then y
<aedorn>
ou have to buy an extension, just so you can route it around the front of the case, then bind it to the base so you don't block the air flow, and back over to the 24 pin slot. The only expansion slots are 5.25", and no adapter included for 3.5 or 2.5" drives. So you have to order one of those, then mount it, but then the holes aren't properly aligned, so you have to bend it back in order to mount said adapter.... the list goes on
slainer68 has quit [Remote host closed the connection]
<shock_one>
aedorn, is it some metaphor about C?
<aedorn>
The worst part is, when you find a case that you love to work with, it tends to go out of production. Then you gotta start the search all over again, and since none are perfect, you just get decide what annoying thing you want to live with!
<aedorn>
shock_one: no, but I guess it could apply haha
ananthakumaran has joined #ruby
chrisnicola has joined #ruby
chrisnicola has quit [Client Quit]
chrisnicola_ has joined #ruby
zeade has quit [Quit: Leaving.]
chrisnicola_ has left #ruby [#ruby]
chrisnicola has joined #ruby
<shevy>
aedorn hehe sounds like a nightmare
dallasm has joined #ruby
<aedorn>
I really am just ranting about PC/server cases, but I guess some languages could feel the same. Oh, like Ruby and GUI libraries
<shevy>
aedorn I hope that we will all have 3D printers one day, printing everything for us
DuoSRX has quit [Remote host closed the connection]
<shock_one>
shevy, I would print a 3D printer
<shevy>
then we will have a corrupt elite forbidding it due to trademark and copyright issues
<shevy>
shock_one hahaha yeah
<aedorn>
shevy: they're already using 3d printers to print drugs, rockets, cars, and even 3d printers... so soon.
<shevy>
in biology, we'd have a "printer"... a cell can copy itself to generate a new cell...
<aedorn>
Oh, and food
sayan has joined #ruby
<aedorn>
That one company is using 3d printers for food
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
<aedorn>
and kidneys (and other organs)
Yakko_ has joined #ruby
Yakko_ has quit [Remote host closed the connection]
<Drewch>
Does anyone know why Ruby Logger gives this: `log shifting failed. comparison of Fixnum with String failed` --- I seem to see online that it might be related to timezone, but I can't find any good details
<shevy>
aedorn hehe I think people in the future will solve that one day
workmad3 has joined #ruby
sn0wb1rd has joined #ruby
<shock_one>
Can't wait to see 3D printers print Terminators and stuff.
<shevy>
Drewch not very specific without more info... for instance, where does it fail, how does it fail
himsin has joined #ruby
<Drewch>
Sorry about that
<shevy>
all I know how to reproduce that would be ... perhaps a .sort
<Drewch>
It prints that message everytime I do logger.error or logger.info
<shevy>
ok but where is the "comparison of Fixnum with String"
<Drewch>
I've created logger like such: @logger = Logger.new "test.log", 14, "daily")
<Drewch>
so perhaps the 14 might be my error actually
<shevy>
puts 'test' if 5 == '5' # this works
<shevy>
hmm
<shevy>
if you make it "14" what error will you get
<Drewch>
I saw that you can have the consturction: logname, days to keep, max file size
<shock_one>
aedorn, this one can't take my clothes, boots and motorcycle
<Drewch>
I just assumed you could also put the daily/weekly part in there too
nobitanobi has joined #ruby
<shevy>
Drewch, I show you how to cause that error in pure ruby
<shevy>
array = [1,'2',3] # => [1, "2", 3]
<aedorn>
lol
<shevy>
array.sort # ArgumentError: comparison of Fixnum with String failed
<shevy>
Drewch if nothing else helps, you could try to grep for ".sort" in the codebase of Logger
<shevy>
or perhaps just "sort" alone
<workmad3>
or grep for '<=>
<workmad3>
'
<shevy>
ah yeah good point
<workmad3>
as that's what sort uses in the default sort method, and is what ultimately causes the invalid comparison error
enroxorz-work has joined #ruby
<Drewch>
shevy it works when its a string
<aedorn>
Drewch: name, age, size ... you seem to have name, age, and ... age...
<shevy>
workmad3 I see
<Drewch>
but what I'm looking to do is make a logger that creates a new log everyday, and only keeps logs for 14 days
<workmad3>
>> [1, '2', 3].sort
<eval-in>
workmad3: Output: "/tmp/execpad-d10359245fce/source-d10359245fce:1:in `sort': comparison of Fixnum with String failed (ArgumentError)\n\tfrom /tmp/execpad-d10359245fce/source-d10359245fce:1:in `<main>'\n" (http://eval.in/9863)
<workmad3>
:)
<shevy>
wow 869 people here
<shevy>
have there always been that many?
interactionjaxsn has quit [Remote host closed the connection]
<workmad3>
it's always pretty high in here
N4sh_ has joined #ruby
<shevy>
I always thought we are around 600-700 hehe... but now we would not be that far away from 1000, the magic number!
nomenkun has joined #ruby
timonv_ has joined #ruby
<shevy>
#php is at around 570, #perl at around 689,
hbpoison has quit [Read error: Connection reset by peer]
<shevy>
and #python at around 1186
timonv has quit [Read error: Connection reset by peer]
<shevy>
damn snakes
hbpoison has joined #ruby
<aedorn>
Drewch: Unless you're using a different logger than the one in the standard lib, you aren't going to get that. It's number of logs to keep OR the rotation timeframe, and if it's a count like you have (14), it's expecting a size to know when to shift. Thus you're getting an error
osama has joined #ruby
skattyadz has joined #ruby
<Drewch>
Yup aedorn thakns I took a look at the constructor more closely
<osama>
hey guys i need some support i'm novel here ,
dmonjo has joined #ruby
<shevy>
osama let me read your mind...
* shevy
concentrates silently.
<shevy>
ok...
<shevy>
osama you need more chocolate
sayan has quit [Read error: Connection reset by peer]
<shevy>
I send you a package
Monie has joined #ruby
d_roge has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
jlast_ has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
sn0wb1rd has quit [Remote host closed the connection]
cableray has joined #ruby
sn0wb1rd has joined #ruby
<osama>
i recently web programmer but using .net and i need to switch to open source using ruby how should be the beginning ؟ :(
jlast has quit [Ping timeout: 244 seconds]
<danneu>
osama: install it. :) what OS?
<danneu>
shevy: i'm new to irc (about a year, came here for #rubyonrails when i was learning) but i love the
<danneu>
async nature of irc.
<shevy>
osama start with small tasks in ruby. (1) how to create files and directories in ruby (2) how to read in a file (3) how to use Array String Hash
<danneu>
everyone's just sorta chillin going about their day. pop in every once in a while to share a morsel of wisdom
<shevy>
danneu you came here because of #rubyonrails? I mean, on IRC?
<shevy>
I cant even remember why I came to use freenode IRC
thillux has joined #ruby
<shevy>
I remember I started with galaxynet IRC because other people were using it for an ancient browsergame
apok has joined #ruby
<Voodoofish430>
freenode is a popular irc hub
<shevy>
mIRC as client :)
<danneu>
yeah, i never used irc much before. but the ror channel was really active and friendly so i decided it was something i'd like to keep on in the background
<aedorn>
I came here specifically for #ruby and #ruby-lang, because I knew of nobody locally that used Ruby. Those were sad times.
<shevy>
mIRC taught me how to use colours
<Voodoofish430>
and default on pigeon client
decoponio has quit [Quit: Leaving...]
Astralum has joined #ruby
<danneu>
i use a terminal irc client called Weechat (similar to irssi). it looks really cool and irc-y.
<shevy>
danneu cool, can I ask how old you are roughly? like 15-20 or 20-25 or something like that?
icole has joined #ruby
<danneu>
yeah, 24
<shevy>
cool :)
etcetera has quit []
Squarepy has quit [Quit: Leaving]
Hanmac_ has joined #ruby
_nitti has joined #ruby
<shevy>
hmm I think I was around 22 or 23 too when I started to use IRC
<danneu>
prob has more to do with me learning programming late and not being in any real tech community in my life
danieldocki has joined #ruby
<shevy>
same here danneu
chichou has quit [Remote host closed the connection]
<shevy>
I can only learn when something is either fun, or interesting (and not too difficult at the same time, I gave up on haskell after a few tries)
heimark has joined #ruby
otherj has joined #ruby
Rizzle has quit [Read error: Connection reset by peer]
poikon has quit [Remote host closed the connection]
hbpoison has joined #ruby
predator117 has joined #ruby
jromine has joined #ruby
stkowski has joined #ruby
vierja has joined #ruby
vierja has quit [Excess Flood]
nga4 has quit [Ping timeout: 255 seconds]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
otherj has quit []
_nitti has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
etcetera has quit []
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
predator117 has quit [Ping timeout: 244 seconds]
Catbuntu has quit [Quit: Auf wiedersehen]
<tjbiddle>
Can I unpack a gem I write, into another gem's folder? Trying to think of how to write a gem that can be extensible - Was thinking of having a plugins/ directory that the gem would include any files in there, but afaik I wouldn't be able to install the plugins via a gem, I would have to copy the file(s) to that directory manually to 'install' them.
danielpcox has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
Catbuntu has joined #ruby
predator117 has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
<dmonjo>
BIN = "\000\001\002\003\004\005\006\007\010\011"
<dmonjo>
<dmonjo>
why cant we use 008 009
<dmonjo>
is it utf?
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
havenwood has joined #ruby
tvw has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
<canton7>
dmonjo, without context that question's impossible to even begin to answer
<dmonjo>
canton7: i am trying to create an ascii to bin conversion
<dmonjo>
ascii = ".123456789"|
<danneu>
tjbiddle: what about `gem 'mygem', path 'vendor/mygem'` in the host gem's Gemfile?
<dmonjo>
somehow inthe book i am reading the author jumps from 007 to 010
<zastern>
If I define a class - classname - and then later do something like classname.new - am I just creating a new instance of that class? I'm reading the docs and it's just not clicking for me. (learning ruby, first language)
<zastern>
canton7: i haven't really done *programming* before.
<zastern>
i'm on lesson 37 of LRTHW though
<shock_one>
danneu, you're cruel
<zastern>
hahaa
<canton7>
zastern, object-orientated programming is a whole mindset that revolves around the definition and creation of objects. there isn't a simple "answer" or "point", really
<IceDragon>
;-; Catabalism
mklappstuhl has quit [Ping timeout: 260 seconds]
<canton7>
and almost every example you see is going to be a bit contrived. it's only when the problems start getting more complex that OO starts to shine
<IceDragon>
think in blocks!
<zastern>
so yourcat becomes an instance of the class?
<shock_one>
zastern, think of classes as of fabrics that make things
<danneu>
zastern: both of our cats are Cat instances. they each have their own variables and stuff.
<zastern>
shock_one: Yeah, I sort of understand waht classes are, I just don't totally get what just doing classname.new achieves.
<zastern>
danneu: and I can call yourcat as a class?
<canton7>
each instance of the class has its own state
<zastern>
so after the yourcat = cat.new; I could do yourcat()?
<zastern>
Ok, so just doing classname.new is basically useless
<canton7>
yeah
<zastern>
but foo = classname.new
<zastern>
ok
<shock_one>
zastern, class is a blueprint of a house, object is an actual house. Makes sense?
<zastern>
I get it!
<canton7>
mylogger = Logger.new('path/to/log/to'); mylogger.log('something to say') # => could write to 'path/to/log/to'
<zastern>
shock_one: yes, maybe :). I think I get it enough to proceed with this anyway
<zastern>
thanks folks!
<zastern>
I'm just a dumb sysadmin, but I need to start automating things
<danneu>
zastern: the Cat class is like the factory that makes cats. Cat.new is like a lever you pull that pumps out a new cat bred from the Cat class cookiecutter.
Rizzle has joined #ruby
<zastern>
danneu: that makes sense
<danneu>
tldr you sysadmin workflow needs more Cat.new
freakazoid0223 has quit [Quit: Leaving]
<oz>
what about updating the topic? ruby 2.0's rc2 has been out for a while now
<zastern>
hahaha
<canton7>
oz, it isn't the latest stable, though
<zastern>
danneu: I think what it needs is more catabalisjm
<zastern>
catabalism*
<oz>
canton7: what do you mean?
<canton7>
cataclism? catajism? hmm?
fmcgeough has quit [Read error: Connection reset by peer]
_nitti has quit [Remote host closed the connection]
<canton7>
and $these_are_globals
<zastern>
ah i see thanks
<IceDragon>
@@these_are_class_variables
<canton7>
^^ try not to use
emmanuelux has joined #ruby
<zastern>
The problem I'm having also is that some of these things are hard to google
<zastern>
e.g. ".new"
<workmad3>
IceDragon: don't you mean @@thes_are_never_used :P
<IceDragon>
I use em
_nitti has joined #ruby
<zastern>
but im trying to search ruby-dolc
<zastern>
doc
<IceDragon>
P: They have their uses
<canton7>
zastern, that's why a good book is important :P
<dmonjo>
BIN = "\008" print BIN is returning 0 "\009" is returning 56 what is this enumeration?
<canton7>
ruby-doc.org is amazing
<banisterfiend>
workmad3: JS question: how do i list the functions defined on an object?
<zastern>
canton7: heh, yeah, that's why I'm using LRTHW but it lets you figure out quite a bit on your own. But I'm mostly getting it so far. Like I said I'm up to exercize 37
Catbuntu has quit [Ping timeout: 256 seconds]
Asher has joined #ruby
<zastern>
Thank god for a job that lets me do this at work
<canton7>
nice
<workmad3>
banisterfiend: iterate over the properties on the object checking to see if they are functions
<danneu>
;)
etcetera has quit [Ping timeout: 255 seconds]
etcetera_ is now known as etcetera
shevy has quit [Ping timeout: 245 seconds]
<zastern>
as long as I have no pressing tasks
<workmad3>
IceDragon: I've yet to find a use myself for @@class_variables as opposed to class instance variables
_nitti_ has joined #ruby
<IceDragon>
A in class Cache
<IceDragon>
"in class"
skattyadz has quit [Quit: skattyadz]
<dmonjo>
any difference between s.tr and s.tr! methods?
<IceDragon>
destructive
Mattix has quit [Ping timeout: 256 seconds]
<dmonjo>
?
axl_ has quit [Quit: axl_]
erlingur has joined #ruby
<IceDragon>
bang (!) tend to operate on the current object
krawchyk_ has joined #ruby
<IceDragon>
And will make permanent changes
mklappstuhl has joined #ruby
<IceDragon>
Those without the bang will return a clone/duplicate of the object with the changes
Uranio has quit [Quit: while you reading this, a kitty dies]
D4T has joined #ruby
N4sh_ has quit [Quit: leaving]
<dmonjo>
so the original string is not changed in this example s
<dmonjo>
can you still reference the old string if not using the ! bang
<IceDragon>
yes
cableray has quit [Quit: cableray]
<dmonjo>
how?
krawchyk_ has quit [Remote host closed the connection]
<Hanmac_>
dmonjo some ! methods does return nil when they change nothing , so beware
_nitti has quit [Ping timeout: 252 seconds]
otherj has quit []
<IceDragon>
a = "Your Old String"; puts a.gsub("Old", "New"), a #=> ["Your New String", "Your Old String"]
<zastern>
Is it possible to have a def ... end function access a variable outside it's own scope, e.g. something I set for my whole .rb file, that I don't have to pass as function(the, vars, go, here)? silly questions i know
krawchyk_ has joined #ruby
<dmonjo>
ok
squidBits has joined #ruby
<Hanmac_>
but this can be cool in an condition
<IceDragon>
zastern in that case, you could use a Global Variable
cableray has joined #ruby
alup_ has joined #ruby
<dmonjo>
IceDragon: thats a powerful feature
<IceDragon>
adding to what Hanmac_ said: gsub! does that for instance
<dmonjo>
non existent in java/perl as far as i know
icole has joined #ruby
krawchyk has quit [Ping timeout: 252 seconds]
jjbohn is now known as jjbohn|afk
<IceDragon>
It could be done in Java and Perl probably... (never tried em)
bean has joined #ruby
<banisterfiend>
workmad3: thanks
ahokaomaeha is now known as lolcathost|afk
tjbiddle_ has joined #ruby
<danneu>
.gsub returns a mutated copy of the receiver, .gsub! mutates the receiver.
<banisterfiend>
workmad3: is this right? for(v in object) { if(typeof(v) == "function") { console.log("v"); } }
<banisterfiend>
err without quoting v
<IceDragon>
._. that looks weird
cableray has quit [Client Quit]
monkegjinni has joined #ruby
carraroj has joined #ruby
lolcathost|afk has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
tjbiddle has quit [Ping timeout: 255 seconds]
tjbiddle_ is now known as tjbiddle
<workmad3>
IceDragon: banisterfiend I think so
<dmonjo>
how can i know if a method is built in for example .respond_to? ri ::.respond_to?
francisfish has quit [Remote host closed the connection]
<banisterfiend>
dmonjo: very hard to know
<banisterfiend>
dmonjo: impossible actually
QKO_ has joined #ruby
<dmonjo>
since i am importing modules i want to know the method belongs to what and if it actually exist
<dmonjo>
i see in some code example lines.respond_to? :join
<shock_one>
banisterfiend, does it iterate only over own properties?
tjbiddle has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
QKO has quit [Ping timeout: 248 seconds]
brospin is now known as Catbuntu
tjbiddle_ has joined #ruby
shevy has joined #ruby
martin_work has joined #ruby
slainer68 has quit [Remote host closed the connection]
Mattix has joined #ruby
<Hanmac_>
dmonjo you can do something like that Enumerator.instance_method(:to_a).owner #=> Enumerable
<banisterfiend>
shock_one: i think it goes over all inherited properties too
<shock_one>
banisterfiend, I don't remember how, but there is a way to return a name of the file (with a path) of method definition. He could use it to check if the method is built in
<banisterfiend>
Hanmac_: that doesnt tell you if they're built in :)
ryanf has quit [Read error: Connection reset by peer]
<banisterfiend>
Hanmac_: monkeypatches, etc
ryanf has joined #ruby
<banisterfiend>
shock_one: it returns nil for C-backed methods though, so not much use
<IceDragon>
Hanmac_: I must tell you, everytime you write something, I'm amazed O: thank you!
<shock_one>
banisterfiend, I don't think so. I may include prototype reference, but nothing more.
<shock_one>
banisterfiend, well, if respond_to & !definition_path then built in
GreekFreak has quit [Quit: Leaving]
<banisterfiend>
shock_one: no
<banisterfiend>
shock_one: anyone can write a c-backed method :)
<Hanmac_>
hm you could ask about .source_location but it does not work on compiled functions
<shock_one>
banisterfiend, right.
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
<dmonjo>
.respond_to? :join is a know one ? :)
<dmonjo>
knwon|*
<banisterfiend>
shock_one: so how do you tell the difference between Enumerable#map and Enumerable#babble if babble is also C-backed ?
<banisterfiend>
shock_one: i mean how do you know which one is built in?
goganchic has joined #ruby
<shock_one>
banisterfiend, you're right.
<Xeago>
does anyone know if you can git-add interactively with diff-settings like word-diff=color?
a_a_g has quit [Quit: Leaving.]
<Xeago>
or if you can get diffs like googlecode shows them (combination of normal block diff and word-diff=color)
niklasb has quit [Ping timeout: 264 seconds]
spinagon has quit [Ping timeout: 240 seconds]
Monie has quit [Quit: Quit]
Mattix has quit [Ping timeout: 260 seconds]
<Hanmac_>
banisterfiend: hm can you ask RDoc & RI ?
<Hanmac_>
i currrently searching the modules but i dont find an function that returns something usefull for me ...
bricker has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Catbuntu is now known as Camel`
helvete has joined #ruby
Stilo has joined #ruby
Mattix has joined #ruby
akl_ has joined #ruby
jonahR has quit [Quit: jonahR]
pothibo has quit [Quit: pothibo]
jonahR has joined #ruby
atyz has quit [Ping timeout: 244 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
rupee has quit [Quit: Leaving]
josh_keith has quit [Read error: Operation timed out]
jromine has quit [Remote host closed the connection]
svandiepen has quit [Read error: Operation timed out]
stormetrooper has quit [Quit: Lunch bitches]
arya_ has quit [Ping timeout: 244 seconds]
jromine has joined #ruby
t0rc has joined #ruby
jromine has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
interactionjaxsn has quit [Read error: Connection reset by peer]
bricker has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
d_roge has quit [Remote host closed the connection]
jromine has joined #ruby
Konboi_ has joined #ruby
erlingur has quit [Quit: Computer has gone to sleep.]
interactionjaxsn has joined #ruby
erlingur has joined #ruby
_bart has joined #ruby
arya_ has joined #ruby
philcrissman has quit [Remote host closed the connection]
Konboi has quit [Ping timeout: 252 seconds]
etcetera has quit []
jacktrick has joined #ruby
fredzy has joined #ruby
<fredzy>
hi, how do we read this line please: lines.respond_to? :join what is :join? a parameter?
<shock_one>
fredzy, a method
<fredzy>
:join is a method?
<shock_one>
lines.join
svandiepen has joined #ruby
jjbohn|afk is now known as jjbohn
maycon has quit [Quit: Saindo]
banisterfiend has quit [Read error: Connection reset by peer]
backjlack has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
ewilliam has quit [Quit: WeeChat 0.3.7]
<fredzy>
lines.join ok, but what is :join
<fredzy>
how do you read that line?
<Hanmac_>
fredzy :join is a symbol as parameter
caption has joined #ruby
<Hanmac_>
fredzy symbols are like frozen unchangeable strings
<fredzy>
constant
caption is now known as ewilliam
moshee has quit [Ping timeout: 252 seconds]
<Hanmac_>
hm yeah they are constant ... more than the Constants :P
<arturaz>
fast comparisons using references, instead of comparing them by characters
<arturaz>
and they are immutable
<arturaz>
not like strings
bawigga has joined #ruby
cableray has joined #ruby
<Hanmac_>
fredzy addional ruby uses symbols as names for methods and variables
Ontolog has quit [Read error: Connection reset by peer]
generalissimo has quit [Read error: Connection reset by peer]
jjbohn has quit [Read error: Connection reset by peer]
generali_ has joined #ruby
<fredzy>
hmmmmm ok
nat_home has quit [Quit: Leaving.]
axl_ has joined #ruby
<Hanmac_>
think about Symbols like enum values in C and C++ ... they repesend integers but has a name
<fredzy>
so mainly lines.respond_to? :join will check line to see if it empty or not
mattbl has quit [Quit: This computer has gone to sleep]
benlieb has joined #ruby
Apocalypse has quit [Ping timeout: 245 seconds]
svandiepen has quit [Read error: Operation timed out]
tcstar has quit [Read error: Connection reset by peer]
<Hanmac_>
fredzy hm no, it checks if lines is an object that has an join method defined
<Hanmac_>
(or returns true on the magic function)
shock_one has quit [Ping timeout: 248 seconds]
tcstar has joined #ruby
Monie has joined #ruby
Apocalypse has joined #ruby
anderse has joined #ruby
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
philcrissman has joined #ruby
goganchic has quit []
<fredzy>
where can i read about that? sooooo confused with that .respond_to? and that :join
etcetera has joined #ruby
<fredzy>
as far as i know .respond_to? is used to check if a method exist
<Hanmac_>
Array has a join instance method, File has a class method, URI has a class method too, Pathname has a instance method too
<fredzy>
now with the :join we checking if that join method exist
bawigga has quit [Ping timeout: 244 seconds]
Camel` has quit [Quit: Auf wiedersehen]
carloslopes has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
<Hanmac_>
yeah you guess it right, (it seems that you are not so confused than you thought)
backjlack has joined #ruby
cableray has quit [Ping timeout: 252 seconds]
Catbuntu has joined #ruby
ngoldman has quit [Remote host closed the connection]
bawigga has joined #ruby
Mattix has quit [Ping timeout: 264 seconds]
t0rc has quit [Quit: WeeChat 0.4.0]
bigkm has joined #ruby
Catbuntu has quit [Remote host closed the connection]
Catbuntu has joined #ruby
sn0wb1rd has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby
<fredzy>
hmmmm ok
Mattix has joined #ruby
<fredzy>
and mainly the join method exist when you have an array of lines
<fredzy>
no strings
<fredzy>
correct?
<Hanmac_>
yeah
dmiller2 has joined #ruby
<fredzy>
thats so dynamic, depending on the content the methods are defined or not
svandiepen has joined #ruby
Jackneill has quit [Ping timeout: 244 seconds]
chrishunt has quit [Quit: zZzZzZ...]
miskander has quit [Quit: miskander]
kirun has quit [Quit: Client exiting]
Catbuntu has quit [Client Quit]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
axl_ has quit [Quit: axl_]
chrishough has joined #ruby
Catbuntu has joined #ruby
<fredzy>
if i have a hash instead of an array will i have a join method defined?
<Hanmac_>
yeah, because its posible for most of the objects that they define methods that the parent class does not have, so checking only the class, or calling is_a? is maybe not enouth
<Hanmac_>
no, Hash objects does not have a join method (but both has a map method)
jjbohn has joined #ruby
Myconix has joined #ruby
<fredzy>
cool, so only arrays have join methods
miskander has joined #ruby
anderse has quit [Quit: anderse]
QKO has joined #ruby
<Hanmac_>
pathname objects has join too , (and user defined classes maybe too)
tvw has quit [Ping timeout: 248 seconds]
QKO_ has quit [Ping timeout: 240 seconds]
paolooo has quit [Quit: Page closed]
clooth has joined #ruby
eldariof has quit [Read error: Connection reset by peer]
jacktrick has quit [Quit: Leaving]
s0ber_ has joined #ruby
francisfish has joined #ruby
kold has joined #ruby
predator217 has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
ryanf has joined #ruby
katherinem13_ has joined #ruby
s0ber has quit [Ping timeout: 256 seconds]
aantix_ has joined #ruby
s0ber_ is now known as s0ber
<tjbiddle>
Someone answered this for me earlier - but can't find any references to it online. Is there a way, and if there is, how can I specify where my gem should unpack itself?
txbahai has joined #ruby
mengu__ has joined #ruby
m8 has joined #ruby
katherinem13_ has quit [Client Quit]
mengu_ has quit [Ping timeout: 248 seconds]
predator117 has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
predator217 is now known as predator117
francisfish has quit [Remote host closed the connection]
aantix has quit [Ping timeout: 248 seconds]
aantix_ is now known as aantix
roger_padactor has joined #ruby
<roger_padactor>
if you install a gem how do you find out what name to require it by?
Morkel_ has joined #ruby
ngoldman has joined #ruby
bean has joined #ruby
ngoldman has quit [Remote host closed the connection]
starburst has joined #ruby
<banisterfiend>
roger_padactor: should just be the name of the gem
<banisterfiend>
roger_padactor: if it's not then look in the Readme
<havenwood>
roger_padactor: usually the name is the same as the gem itself, unless the gem author is being evil >.>
<Hanmac_>
otherwise do gem contents gem_name
<fredzy>
Hanmac_: so wouldnt be a better idea if we test the type of lines ubstead of checking if it has a join method to see if it is an array of lines?
eldariof has joined #ruby
Bry8Star has quit [Remote host closed the connection]
end_guy has quit [Remote host closed the connection]
muminz has quit [Write error: Broken pipe]
DrCode has quit [Remote host closed the connection]
BadLarry has quit [Ping timeout: 256 seconds]
_nitti_ has quit [Remote host closed the connection]
eldariof has quit [Client Quit]
sintrix has joined #ruby
ngoldman has joined #ruby
<roger_padactor>
ok odd… now I'm getting this.. never seen it before. gem_original_require': no such file
_nitti has joined #ruby
DrCode has joined #ruby
icole has quit [Read error: Connection reset by peer]
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
elux has quit [Read error: Connection reset by peer]
icole has joined #ruby
jjbohn has quit [Read error: Connection reset by peer]
chrisnicola has joined #ruby
elux has joined #ruby
<Hanmac_>
fredzy what do you do when the object does not respond to join? raise an error or another way?
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
ozgura has quit [Remote host closed the connection]
<fredzy>
i would do a lines.dup
<fredzy>
means i would not join the lines to the string i want
<fredzy>
s = lines.join if it respond and s = lines.dup if it doesnt
skcin7 has joined #ruby
end_guy has joined #ruby
kold has quit [Remote host closed the connection]
joshman_ has quit [Ping timeout: 240 seconds]
<Hanmac_>
fredzy: what about: Array(lines).join
etcetera has quit []
ebobby has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
nomenkun_ has quit [Remote host closed the connection]
timonv has joined #ruby
D4T has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
renanoronfle has quit [Quit: This computer has gone to sleep]
rupee has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
etcetera has joined #ruby
BadLarry has joined #ruby
Bry8Star has joined #ruby
luckyruby has joined #ruby
<dmonjo>
s.index(/[^123\.]/) the ^ stands for not? or starts with ?
<dmonjo>
means check if s does not contain 123 or . ?
hybris has quit [Ping timeout: 256 seconds]
<dmonjo>
^ means start of i dont know if in index it means something else
khismetix has joined #ruby
tcurdt has joined #ruby
radq has quit [Remote host closed the connection]
bawigga has quit [Quit: Computer has gone to sleep.]
<fredzy>
breaking the rules i acquired from java perl
lancepantz_ is now known as lancepantz
<Hanmac_>
banisterfiend: yeah but for the values i cant use &:second
danieldocki has quit [Quit: Leaving...]
<banisterfiend>
Hanmac_: you can use &:last
<Hanmac_>
ups yeah you are right
<khismetix>
so is a[0], b[0] less clear
muminz has joined #ruby
<Hanmac_>
yeah, sort_by is better when you can use it
Bry8Star has quit [Excess Flood]
<khismetix>
is it just convention that a hashes keys and values can be accessed using 0,1 index ?
angusiguess has quit [Ping timeout: 264 seconds]
caleb_io has quit [Quit: caleb_io]
<Hanmac_>
or you can do this if you want: h.sort{|(ak,av),(bk,bv)| ak <=> bk}# it may be a bit more clear than using 0,1
Mattix has quit [Ping timeout: 240 seconds]
razibog has quit [Ping timeout: 240 seconds]
thillux_ has joined #ruby
elaptics`away is now known as elaptics
thillux has quit [Read error: Operation timed out]
jeffreybaird has quit [Quit: jeffreybaird]
Xeago has joined #ruby
<roger_padactor>
i don't get why when I remove the require 'gem-name' my script works. but then when I add require 'gem-name' i get the /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- bundler/setup (LoadError)
<yxhuvud>
I don't get it. why do sort_by &:first when #sort without arguments work just as fine?
Bry8Star has joined #ruby
<banisterfiend>
Hanmac_: what is ups
akl_ has quit [Remote host closed the connection]
<shevy>
yxhuvud not sure myself either, I usually use .sort
<havenwood>
roger_padactor: Use 1.9!
<havenwood>
roger_padactor: Are you doing a `require 'rubygems'` above the require 'gem-name'?
failshell has quit [Ping timeout: 248 seconds]
<banisterfiend>
yxhuvud: i always wondered, what does your nickname mean?
Lubinski has quit [Quit: Leaving]
timonv has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
timonv has joined #ruby
thomasfedb has quit [Ping timeout: 276 seconds]
banjara has joined #ruby
<yxhuvud>
it is pretty much nonsense. literally it means 'axe head'. it is a play on words with a common meme meaning a nonsense answer that answer a totally different thing to what was asked for
<Hanmac_>
yxhuvud sort_by can use a nicer block, you could do h.sort_by {|k,v| k.ord}
mattbl has joined #ruby
<dmonjo>
s.index([987]/ will iterate internally and check if 9 or 8 or 7 is contained in any place of s
<dmonjo>
right
autumn has quit [Ping timeout: 260 seconds]
waxjar has quit [Ping timeout: 276 seconds]
otters has quit [Ping timeout: 255 seconds]
<yxhuvud>
hanmac: sure, if you need to process it further than just the first element, then sort_by is a lot nicer. but if you are just sorting on the first key then the block is not needed.
Mattix has joined #ruby
<banisterfiend>
yxhuvud: in swedish?
<Hanmac_>
yeah but i still like the symytry
<yxhuvud>
yes
nkr has quit [Ping timeout: 244 seconds]
TomRone has quit [Ping timeout: 248 seconds]
<Hanmac_>
shevy what about a IkeaOS? where everything need to be build yourself and then some parts are missing and other parts are leftover :P
TomRone has joined #ruby
cheekee has joined #ruby
tvw has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
pyrac has quit [Quit: pyrac]
bawigga has joined #ruby
BadLarry has joined #ruby
invisime1 has left #ruby [#ruby]
<dmonjo>
what is the use of dimentional array on string? for example s = "123456" put #{s[1]} or put #{s[1,1]} return the same result
Es0teric has joined #ruby
cheekee has quit [Quit: leaving]
philsturgeon has joined #ruby
<philsturgeon>
hey, how does autoload work? i see that autoload itself is deprecated, but is there a modern approach?
<philsturgeon>
i googled around, dont know enough to find anything other than autoload
<philsturgeon>
1) I quit the CI team last year. 2) I havent said anything about using rails 3) I do more python than ruby :p
mengu__ has quit [Quit: Konversation terminated!]
tcstar has quit [Ping timeout: 255 seconds]
mark_locklear has quit [Read error: Operation timed out]
<Hanmac_>
philsturgeon: he means that autoload is heavy used by rails stuff, so if autoload is droped, rails would get a problem
br1an has joined #ruby
rheoli has joined #ruby
<Hanmac_>
philsturgeon: you can use ruby in python too :DD
rheoli has quit [Client Quit]
<philsturgeon>
Hanmac: i dont think thats what he meant. just because i used to be a CI dev people seem to freak out when i do anything in another language
<fredzy>
def dup copy = super => in this case copy gets the result of the parent dup method? if super is supplied like that plain? if we had def x copy = super would super try to call parent.x ?
the_mentat has quit [Quit: Computer has gone to sleep.]
heyitsdave has quit [Ping timeout: 245 seconds]
<Hanmac_>
fredzy yeah
<TTilus>
fredzy: yes
heimark has quit [Quit: Computer has gone to sleep.]
<TTilus>
:)
Umren has quit [Read error: Connection reset by peer]
<Hanmac_>
PS: super can manipulate the parameter count ... so super() is not the same as super
danielpcox has joined #ruby
ebobby has quit [Ping timeout: 252 seconds]
<fredzy>
if super is called from an inner method (method embeded inside another method) what is called then?
bawigga has quit [Ping timeout: 252 seconds]
<Hanmac_>
the name of the inner method
<fredzy>
super.super would call the root parent right
<Hanmac_>
the funny thing is that the inner method can overwrite the outer one :P
danieldocki has joined #ruby
mityaz has quit [Quit: See ya!]
<fredzy>
too much for me today
chrishough has quit [Quit: chrishough]
Michael__ has joined #ruby
<fredzy>
going fredzy
aantix has quit [Remote host closed the connection]
Michael__ has quit [Remote host closed the connection]
aantix has joined #ruby
<Hanmac_>
no ... super only accesses the directly parent (or the one in the ancestor chain)
bawigga has joined #ruby
<fredzy>
for example:def dup copy = super @grid= @grid.dup copy end
<fredzy>
in this case grid.dup is called a recursion?
<fredzy>
or the dup on the parent?
<Hanmac_>
if you want to call the method from parents parent you need to do more ugly stuff
brandon has joined #ruby
brandon has quit [Client Quit]
<Hanmac_>
yeah in this case you call copy inside copy, so its an endless loop
<fredzy>
in this case grid.dup refers to the method dup it is declared in it? does it overwrite the parent dup ?
tvw has quit [Ping timeout: 244 seconds]
cableray has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<Hanmac_>
ups sorry ... i missread it
gabrielrotbart has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
<Hanmac_>
freadzy overwritnig dup or close is a bad idea ... please read about inititalize_copy
<fredzy>
for the sake of understanding in this code, @grid = @grid.dup which dup method is called?
CreativeEmbassy has joined #ruby
<Hanmac_>
the method defined on dup ... its the first one in the ancestor chain
baotrungtn has joined #ruby
prime has quit [Changing host]
prime has joined #ruby
philsturgeon has left #ruby [#ruby]
baotrungtn has quit [Remote host closed the connection]
PanPan has quit [Remote host closed the connection]
<fredzy>
ok so it will call the def dup i did, means always the methods that are deeper are the ones called first
axl_ has quit [Quit: axl_]
nfk has quit [Quit: yawn]
<Hanmac_>
yeah
Guest54578 is now known as EvanR
EvanR has quit [Changing host]
EvanR has joined #ruby
ahokaomaeha has joined #ruby
jonahR has quit [Quit: jonahR]
carloslopes has joined #ruby
axl_ has joined #ruby
robbyoconnor has joined #ruby
geggam has quit [Remote host closed the connection]
bubblehead has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 260 seconds]
<Hanmac_>
shevy what do you think about prepending modules?
<havenwood>
Hanmac_: I've never run into a case where I've wanted to prepend a module. Seems nice to be able to fiddle. Will you actually use it do you think?
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
willob has joined #ruby
<fredzy>
s.include? /regex/ does not work should i use s.index(regex) instead?
willob has quit [Max SendQ exceeded]
geekbri has quit [Remote host closed the connection]
<Hanmac_>
shevy: A includes B A.ancestors #=> A , B , ... A prepends B A.ancestors: #=> B , A , ...
carlyle has quit [Remote host closed the connection]
colonolGron has quit [Quit: Lost terminal]
Matip has joined #ruby
philcrissman has quit [Remote host closed the connection]
lancepantz_ is now known as lancepantz
helvete has quit [Quit: Leaving...]
Xeago has quit [Remote host closed the connection]
Mattix has quit [Ping timeout: 256 seconds]
philcrissman has joined #ruby
brianpWins has quit [Quit: brianpWins]
backjlack has quit [Remote host closed the connection]
jekotia has joined #ruby
tjbiddle has quit [Remote host closed the connection]
tjbiddle has joined #ruby
axl_ has quit [Quit: axl_]
freakazoid0223 has joined #ruby
nilobject has quit [Quit: leaving]
timonv has quit [Remote host closed the connection]
idkazuma has joined #ruby
danbell has joined #ruby
QKO has joined #ruby
<danbell>
Can anyone explain the attr keyword to me? I know about attr_writer, _accessor, and _reader, but just vanilla-lonesome attr? All my googling just takes me to the other three.
QKO_ has quit [Ping timeout: 245 seconds]
otters has joined #ruby
elux has quit [Quit: Bye!]
cableray has quit [Quit: cableray]
chrishough has quit [Quit: chrishough]
jeffreybaird has left #ruby [#ruby]
nilobject has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
ryanf has joined #ruby
lancepantz is now known as lancepantz_
<Hanmac_>
danbell: attr itself is an old-dated imo
<danbell>
are the others preferred over it?
tenmilestereo has quit [Quit: Leaving]
jarjar_prime has joined #ruby
Dwarf has joined #ruby
<Hanmac_>
yeah the others are prefered
tommyvyo has joined #ruby
miskander has joined #ruby
<danbell>
k, thanks
<shevy>
Hanmac_ hmmm
<shevy>
Hanmac_ I am not too happy with the whole class vs. module distinction
otherj has joined #ruby
thillux_ has quit [Remote host closed the connection]
lancepantz_ is now known as lancepantz
vlad_starkov has joined #ruby
fredjean has joined #ruby
<shevy>
Hanmac_ I think a problem is that there is only one main chain of inheritance, which is subclassing. but many people love include... now prepending module seems to further strengthen the whole include model
<shevy>
which I feel is kind of at odds with subclassing
bluOxigen has quit [Ping timeout: 256 seconds]
<shevy>
I remember matz once said that he didn't like the complexity of C++
<shevy>
yet ruby as a whole is quite complex too
jlast has quit [Read error: Operation timed out]
<otters>
ruby isn't that complex
codecop has quit [Remote host closed the connection]
<Hanmac_>
shevy there are current open bugs about the prepending, so it is not finish yet
ssvo has quit [Ping timeout: 252 seconds]
joshman_ has quit [Quit: Computer has gone to sleep.]
<shevy>
that is because you are a very clever otter, otters!
<danbell>
lol, from SO:
<danbell>
"Simple difference. One, attr_accessor and friends are clearer, and the optional boolean argument to attr is now deprecated. Other then that, and the fact that attr has no documentation, that's it."
<otters>
you're right shevy
<danbell>
no s*** it has no documentation, ha
<otters>
misspelling "genius" makes me feel silly
thomasfedb has joined #ruby
<shevy>
danbell lol
jaredrhine_ is now known as jaredrhine
<shevy>
danbell I always used attr_reader attr_writer and attr_accessor. when I first saw other people use attr alone, I wondered
huoxito has quit [Ping timeout: 248 seconds]
<shevy>
but I cant remember attr due to the name alone
<danbell>
even ri failed me
<shevy>
with reader, I know it is a getter, with writer, I know it is a getter, and accessor is just the combination of getter and setter, the other two attrs
<otters>
attr is a method itself?
alvaro_o has quit [Ping timeout: 252 seconds]
<shevy>
hmm isn't attr alone attr_reader ?
<danbell>
not sure
<danbell>
wait, I think so
<Hanmac_>
shevy not if the second paramter is true
<epta>
`predicate.(value, expected)' where predicate is a lambda works fine on 1.9. With 1.8 I have a error 'syntax error, unexpected '(''. How can I handle that?
ewokchewy has joined #ruby
<danbell>
and if you add a second true, then it's writer too
<shevy>
ah Hanmac I see
<otters>
epta: predicate[value, expected]
ryanf has quit [Read error: Connection reset by peer]
<epta>
otters: will it works in 1.9?
<otters>
yeah
ryanf has joined #ruby
<danbell>
tys
<otters>
any advice I give you will be 1.8 and 1.9 compatible
<shevy>
hehe
roger_padactor has quit [Quit: roger_padactor]
<shevy>
otters can you advice me on encoding in 1.8 pretty please?
<otters>
I like the syntax refinements in 1.9 and 2.0 but they are even more depressing because you can't use them
<Hanmac_>
otters yeah it was part of the <For private Use> sector
larissa has joined #ruby
vierja has quit [Ping timeout: 252 seconds]
benlieb has quit [Quit: benlieb]
radq has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
chrishough has quit [Quit: chrishough]
vierja has joined #ruby
chrishough has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
Jamone has joined #ruby
__BigO__ has quit [Remote host closed the connection]
Monie has quit [Ping timeout: 256 seconds]
<Hanmac_>
shevy did you know that you can unlock an iPhone when you do an kombo that is more difficult than the Konami code? but when you do you get full access, even when it was locked :P
_nitti_ has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
philcrissman has quit [Remote host closed the connection]
_nitti has quit [Write error: Broken pipe]
vierja has quit [Client Quit]
pkrnj has quit [Quit: Computer has gone to sleep.]
Monie has joined #ruby
ssvo has joined #ruby
nimred has quit [Ping timeout: 244 seconds]
Jamone has quit [Ping timeout: 248 seconds]
txbahai has quit [Quit: Leaving]
alvaro_o has joined #ruby
dustint has quit [Read error: Operation timed out]
ssvo has quit [Client Quit]
mmitchell has quit [Read error: Operation timed out]
ssvo has joined #ruby
forrest has quit [Quit: Leaving]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
alanp_ has joined #ruby
alanp has quit [Disconnected by services]
breakingthings has quit []
Monie has quit [Ping timeout: 248 seconds]
ssvo has quit [Client Quit]
alanp_ is now known as alanp
ssvo has joined #ruby
dmiller2 has quit [Ping timeout: 264 seconds]
<shevy>
Hanmac_ no idea about smartphones, I hate them like the plague
<shevy>
everyone has one, it's like a disease
<shevy>
one day I will become a hermit
arya_ has quit [Ping timeout: 248 seconds]
<shevy>
somehow the future is designed for us :(
alvaro_o has quit [Client Quit]
punkrawkR^Home has quit [Ping timeout: 276 seconds]
thomasfedb has quit [Ping timeout: 245 seconds]
arya_ has joined #ruby
<Hanmac_>
smartphones are only a middle step until the cool stuff appears like neural interfaces :P
Onii-san has quit [Ping timeout: 276 seconds]
maetthew has quit [Ping timeout: 276 seconds]
tjbiddle_ has joined #ruby
arusso has quit [Ping timeout: 245 seconds]
ddv has quit [Ping timeout: 240 seconds]
justsee has joined #ruby
Apocalypse has quit [Ping timeout: 276 seconds]
wudofyr_ has quit [Ping timeout: 276 seconds]
libryder has quit [Ping timeout: 276 seconds]
Bosma has quit [Ping timeout: 264 seconds]
thorncp has quit [Ping timeout: 245 seconds]
jpun has quit [Ping timeout: 240 seconds]
PhilK has quit [Ping timeout: 245 seconds]
maetthew has joined #ruby
jpun has joined #ruby
Rix has quit [Ping timeout: 276 seconds]
_nitti_ has quit [Remote host closed the connection]
khimera has quit [Quit: khimera]
chrisnicola has joined #ruby
joofsh has quit [Remote host closed the connection]
Bosma has joined #ruby
v0n has quit [Ping timeout: 244 seconds]
libryder has joined #ruby
Apocalypse has joined #ruby
arusso has joined #ruby
zastern has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
miskander has joined #ruby
<Hanmac_>
i think it is not currrect yet ?
monkegjinni has joined #ruby
Hien has quit [Ping timeout: 264 seconds]
squidBits has quit [Quit: squidBits]
ssvo has joined #ruby
asdfqwer has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
ssvo has quit [Client Quit]
<jkeith>
Hanmac, mkdir test --mode 1777 && ls -lh; yields drwxrwxrwt 2 jkeith jkeith 4.0K Feb 14 17:49 test
<jkeith>
ruby is not picking up group and world bits on the mask
chrisnicola has joined #ruby
mengu has joined #ruby
_br_ has joined #ruby
forced_request has joined #ruby
steven___ has joined #ruby
_br_ has quit [Excess Flood]
benlieb has quit [Quit: benlieb]
maxmanders has quit [Quit: Computer has gone to sleep.]
<steven___>
i have an array and i want to iterate over the first K elements of it, or over the entire thing if there are less than K elements, how should i do this?
Chiku|dc has joined #ruby
ner0x has quit [Quit: Leaving]
<Hanmac_>
i tryed it in /tmp where ruby was picking the write-group
ssvo has joined #ruby
chrisnicola has quit [Client Quit]
<jkeith>
Hanmac, what version are you using?
idkazuma has quit [Remote host closed the connection]
hmarr has joined #ruby
<Hanmac_>
2.0
SCommette has quit [Quit: SCommette]
<jkeith>
well, at least I know it's already been fixed
<Hanmac_>
jkeith hm try FileUtils.mkdir("abc", :mode=>01777) ... it does set all flags i want
<jkeith>
Hanmac, what about Dir.mkdir?
<Hanmac_>
it seems that FileUtils is better
nanothief has joined #ruby
_br_ has joined #ruby
Morkel has quit [Quit: Morkel]
<jkeith>
Hanmac, I'll modify and see if that works. Is Dir.mkdir still broken in 2.0?
<jkeith>
I don't want to send a useless bug report in :D
elico has joined #ruby
sandGorgon has quit [Ping timeout: 248 seconds]
<Hanmac_>
i dont know if "broken" is the right word, but it does still not set the all-write right currectly ... (so it is not an 777)
elico has quit [Client Quit]
<Hanmac_>
you could try to make a ticket and look what happends
chrishunt has joined #ruby
<jkeith>
Hanmac, will do, thanks!
<jkeith>
FileUtils is not working correctly for me either, so I'm going to grab the latest and compile it from source
<Chiku|dc>
when do you think 2.0 stable will be release ?