apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
Guest66192 has quit [Ping timeout: 240 seconds]
fenicks has quit [Remote host closed the connection]
<imperator>
anyone here on solaris?
<chris2>
haunted by their dead wife?
vlad_starkov has quit [Remote host closed the connection]
<imperator>
yes, exactly, mr lem
<chris2>
:)
ledestin has joined #ruby-lang
<chris2>
i can boot my omnios tomorrow, but its in the office
<imperator>
man, ffi gets really upset when i try to clone certain things
vlad_starkov has joined #ruby-lang
fuhgeddaboudit has quit [Quit: Ex-Chat]
mistym has quit [Remote host closed the connection]
micho has quit [Quit: Leaving]
GeissT has quit [Ping timeout: 252 seconds]
shinnya has quit [Ping timeout: 245 seconds]
hakunin has quit [Remote host closed the connection]
vxxr has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
Kabaka has joined #ruby-lang
kenta_ has joined #ruby-lang
hogeo has joined #ruby-lang
nisstyre has joined #ruby-lang
<imperator>
dang, thought i found the issue - NOPE
kenta_ has quit [Ping timeout: 256 seconds]
rsl has quit [Quit: Computer has gone to sleep.]
<imperator>
and if i print it out twice, sometimes the corruption disappears
micalexander has joined #ruby-lang
jp- has joined #ruby-lang
* imperator
calls upon the powers of grayskull to figure out this issue
<micalexander>
any one give me a quick overview of how minitest works? Gonna try to dive into it for the first time.
mac___ has quit [Remote host closed the connection]
mac___ has joined #ruby-lang
mac___ has quit [Read error: Connection reset by peer]
mac___ has joined #ruby-lang
mac___ has quit [Remote host closed the connection]
mac___ has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Senjai has joined #ruby-lang
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
mac____ has joined #ruby-lang
mac___ has quit [Read error: Connection reset by peer]
mac____ has quit [Remote host closed the connection]
m6n has quit [Remote host closed the connection]
mac___ has joined #ruby-lang
soba has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
mac___ has quit [Remote host closed the connection]
mac___ has joined #ruby-lang
mac___ has quit [Read error: Connection reset by peer]
mac___ has joined #ruby-lang
malev has quit [Quit: Leaving]
mac___ has quit [Remote host closed the connection]
<pipework>
micalexander: It's a ruby library whose purpose is to assist in writing tests for ruby.
<pipework>
Or other things, if you want.
dhruvasagar has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
<micalexander>
pipework: cool I understand that however Im find very little docs on the web on how to use it. I found one tutorial and it seems that u make a separate folder for the test and in that folder it looked as if the guy duplicated the code and ran the test on the dup and not his actual code. Is this the case?
Coincidental has joined #ruby-lang
bzalasky has joined #ruby-lang
<xybre>
micalexander: No
Guest51853 has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
hogeo has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
hogeo has joined #ruby-lang
diegoviola is now known as Guest99730
Guest51853 is now known as diegoviola
Coincidental has quit [Ping timeout: 245 seconds]
Guest99730 has quit [Ping timeout: 268 seconds]
<micalexander>
xybre: can u elaborate quickly on the setup and usage?
Coincidental has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
<micalexander>
xybre: so if I have an app and have a user class where would the test folder sit and do I just require the user class into the test?
bzalasky has quit [Remote host closed the connection]
<xybre>
micalexander: You'd just require it in the test.
bzalasky has joined #ruby-lang
vlad_starkov has joined #ruby-lang
bzalasky has quit [Ping timeout: 240 seconds]
<micalexander>
xybre: ok thanks
vlad_starkov has quit [Ping timeout: 268 seconds]
<pipework>
micalexander: I typically require the file that contains the objects I'm testing in the test, yeah.
<pipework>
The only times I don't is when I'm using rails. Because holy balls.
saarinen has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<micalexander>
pipework: awesome, so do I have to require every file or is there a way I can require the whole app, or is that over kill. the app isnt too big like rails
vxxr has quit [Quit: leaving]
Domon has joined #ruby-lang
<xybre>
Best practice is to require only whats needed. So require your user, and then have your user require anything else that it directly relies on
Barrin6 has joined #ruby-lang
<micalexander>
xybre: oh ok, so its pretty manual?
<pipework>
micalexander: It depends. You surely can provide a whole environment.
<pipework>
That's what rails config/environment.rb does.
<xybre>
micalexander: Making the process manual makes it easier to track dependencies, if you find your User object (for instance) has a huge set of "requires" at the top then it probably means its doign way too much.
<pipework>
You can do the same in your projects if you want, but requiring takes a while and I typically prefer to require just what's necessary.
<pipework>
Some test suites take 30s+ to load because of all the requires and setup.
<pipework>
Some people pre-load with things like zeus, spork, and the like. I'd just suggest not complicating your setup and doing things well. :)
<micalexander>
xybre: pipework: thanks for the answers, had one more question, off the test seubject
Domon has quit [Remote host closed the connection]
Domon has joined #ruby-lang
<micalexander>
what would be your suggestion for running bash commands in ruby? In this app I'm writing Im converting pretty large shell script into ruby and some of the commands are simple "rm", "git init", "curl" and "mysql" commands. would you suggest finding a ruby suggestion for all of them or mix and match?
<micalexander>
xybre: I wand to do it the ruby way as much as possible
<micalexander>
pipework: I wand to do it the ruby way as much as possible
<pipework>
micalexander: There's many libraries, but anything I'd write myself would be based off popen3.
Domon has quit [Ping timeout: 246 seconds]
<pipework>
Just shelling out might not be the right way to go either. Consider looking into libraries that provide the functionality you need that are in ruby, or at least libraries that correctly interface with those other twiddly bits.
<pipework>
Like the mysql gems over shelling out, if you can.
<micalexander>
pipework: what could you see as the pros n cons to either way?
<micalexander>
pipework: so I image popen3 lets you just shell stuff out then?
<jrobeson>
using ruby libraries for the equivlanet of rm for example would mean that you don't have to worry about whether it works on linux, windows, or dealing with variants of command arguments between gnu and bsd versions of commands on unix
<pipework>
micalexander: Shelling out is a blocking process, so you'd need to start threading to not tie up your program until those commands return./
<pipework>
micalexander: Whereas, most libraries that provide the same functionality handle it for you.
<jrobeson>
if you wanna write a shell script.. write a shell script..
<jrobeson>
otherwise use ruby variants where possible
<jrobeson>
although i'm sure there are exceptions..
<xybre>
micalexander: File.delete, open-uri, ruby-git, and the mysql gem (in order of difficulty)
<jrobeson>
hmm.. it just reminded me to look up grit.. grit hasn't bee ntouched in awhile it seems
<pipework>
I used ruby all the time for shell scripting and system scripting.'
<jrobeson>
perhaps ruby-git is better now
<micalexander>
thanks all, was just looking at ruby git
<pipework>
mysql2 is probably still better than mysql.
<micalexander>
so in other words the cons are that shelling out is a bit archaic
<jrobeson>
i wouldn't say that..
<micalexander>
is mysql2 a lib
<xybre>
micalexander: well, shelling out spaws no less than 2 processes, so its a heavy operation
<xybre>
spawns^
<micalexander>
jrobeson: what would you say
kurko_ has quit [Ping timeout: 245 seconds]
Domon has joined #ruby-lang
<micalexander>
ok
<jrobeson>
i'd say that using ruby equivalents means you dont' often have to worry about whether it's gonna work wherever you install it
<jrobeson>
windows, linux, or mac ..
<micalexander>
jrobeson
<jrobeson>
especially where the arguments differ between versions.. even between bsd (mac) and gnu
<micalexander>
goood point
kurko_ has joined #ruby-lang
<xybre>
Yeah, as long as you use RVM (or equivilent) and Bundler, your life will be much easier.
<jrobeson>
i'd always try to do the ruby way first, then try the alternatives
<micalexander>
pipework: is mysql2 a library?
<xybre>
(and more portable)
<pipework>
micalexander: It's a gem and a library./
sepp2k1 has quit [Read error: Connection reset by peer]
<micalexander>
cool thanks for the help really appreciate it guys
<micalexander>
I will take you guys recommendations
<micalexander>
pipework: what would you recommend for a curl replacement for downloading tarballs files etc? have you heard of curb or Curl:Multi, or is open good enough
<pipework>
micalexander: I'd use Net:HTTP
<micalexander>
Ill check it out. Have you heard of Typhoeus
<pipework>
Yeah.
TheMoonMaster has joined #ruby-lang
<micalexander>
anything good?
<pipework>
I usually don't pull in libraries willy-nilly though. It has to provide a lot of value before I'll use it.
<micalexander>
so net http is a native alternative then
<pipework>
Net::HTTP is in stdlib, though a bit archaic and wieldy at times, I'd venture that you'll easily handle what you want to do by using it.
<micalexander>
ok
fijimunkii has quit [Quit: Lost terminal]
amerine has joined #ruby-lang
amerine has quit [Client Quit]
fijimunkii has joined #ruby-lang
rickhull has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
vxxr has joined #ruby-lang
iliketur_ has joined #ruby-lang
woollyams has joined #ruby-lang
iliketurtles has quit [Ping timeout: 240 seconds]
dhoss_ has quit [Ping timeout: 245 seconds]
dhoss has joined #ruby-lang
grough has joined #ruby-lang
grough has quit [Client Quit]
GarethAdams has quit [Ping timeout: 245 seconds]
amerine has joined #ruby-lang
GarethAdams has joined #ruby-lang
GarethAdams has joined #ruby-lang
GarethAdams has quit [Changing host]
Andrevan has joined #ruby-lang
hahuang65 has joined #ruby-lang
cads has joined #ruby-lang
nisstyre has quit [Ping timeout: 245 seconds]
arooni-mobile has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
<Senjai>
would anyone recommend safari books online?
hahuang65 has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby-lang
arooni-mobile has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 268 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kurko_ has quit [Ping timeout: 256 seconds]
kurko_ has joined #ruby-lang
jithu has joined #ruby-lang
kenta_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
kenta_ has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby-lang
jerrytgarcia has quit [Quit: WeeChat 0.4.1]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
kurko_ has quit [Ping timeout: 240 seconds]
GaelanAintAround is now known as Gaelan
kurko_ has joined #ruby-lang
priodev has quit [Ping timeout: 245 seconds]
imperator has left #ruby-lang ["Leaving"]
dhruvasagar has joined #ruby-lang
priodev has joined #ruby-lang
nofxx1 has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby-lang
austinja has quit [Quit: austinja]
priodev has quit [Ping timeout: 264 seconds]
CoreData has joined #ruby-lang
priodev has joined #ruby-lang
CoreData has quit [Ping timeout: 240 seconds]
Senjai has quit [Ping timeout: 240 seconds]
<Barrin6>
i totally just fucked up my github
<Barrin6>
I can't merge this
<Barrin6>
for some reason
schaerli has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
schaerli has quit [Ping timeout: 245 seconds]
Gaelan is now known as GaelanAintAround
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
amerine has joined #ruby-lang
headius has quit [Quit: headius]
Barrin6 has quit [Read error: Connection reset by peer]
jonahR has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
therealtesseract has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
rue_XIV has quit [Remote host closed the connection]
rue has joined #ruby-lang
rue has quit [Remote host closed the connection]
rue has joined #ruby-lang
hahuang61 has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
Senjai has joined #ruby-lang
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
arBmind has joined #ruby-lang
kenta_ has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 248 seconds]
havenwood has quit [Ping timeout: 245 seconds]
tonni has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
tbuehlmann has joined #ruby-lang
kitak_ has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
kitak has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby-lang
jonahR has left #ruby-lang [#ruby-lang]
wallerdev has quit [Quit: wallerdev]
tbuehlmann has quit [Quit: Konversation terminated!]
apeiros has joined #ruby-lang
micalexander has left #ruby-lang [#ruby-lang]
tonni has joined #ruby-lang
jefflyne_ has quit [Ping timeout: 245 seconds]
tbuehlmann has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
bzalasky has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
bzalasky has joined #ruby-lang
tonni has joined #ruby-lang
nofxx has quit [Ping timeout: 264 seconds]
rikai has quit [Ping timeout: 240 seconds]
bzalasky has quit [Ping timeout: 245 seconds]
fosky has quit [Ping timeout: 245 seconds]
rikai has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
jinslee has quit [Ping timeout: 240 seconds]
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
tonni has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
iliketurtles has joined #ruby-lang
JohnBat26 has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
woollyams has quit [Ping timeout: 252 seconds]
Senjai has quit [Ping timeout: 268 seconds]
tonni has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
<yorickpeterse>
morning
relix has joined #ruby-lang
mdedetrich has joined #ruby-lang
tonni has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
tonni has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
adambeynon has joined #ruby-lang
Nss has joined #ruby-lang
hahuang61 has joined #ruby-lang
joonty has quit [Quit: WeeChat 0.4.1]
schaerli has joined #ruby-lang
hogeo has quit [Read error: No route to host]
hogeo has joined #ruby-lang
mdedetrich has quit [Ping timeout: 240 seconds]
joonty has joined #ruby-lang
hhatch has joined #ruby-lang
qba73 has joined #ruby-lang
qba73 has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
Oak has quit [Ping timeout: 246 seconds]
hogeo_ has joined #ruby-lang
hogeo has quit [Read error: No route to host]
dhruvasagar has quit [Read error: Connection reset by peer]
<maloik>
guud morning
dhruvasagar has joined #ruby-lang
<ljarvis>
morning
<rue|w>
Shudduuup
tonni has joined #ruby-lang
arBmind has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
elia has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
h_kon has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Oak has joined #ruby-lang
elia has quit [Ping timeout: 245 seconds]
elia has joined #ruby-lang
<TCMSLP>
I see << is used to add (push) an item to an array. However, the documentation I've found indicates << adds a method to an instance of a class. Does the << operator have two functions or am I missing something basic regarding the simularity of the two functions...
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
benlovell has joined #ruby-lang
elia has quit [Client Quit]
dhruvasagar has quit [Read error: Connection reset by peer]
<ljarvis>
TCMSLP: where did you read that it adds a method to the instance of a class?
dhruvasagar has joined #ruby-lang
jithu has quit [Quit: Mother, did it need to be so high?]
skade has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
<TCMSLP>
ljarvis: I'm new to Ruby (and OOP in general) so perhaps confusing some terms
vlad_starkov has joined #ruby-lang
hahuang61 has quit [Ping timeout: 240 seconds]
<apeiros>
TCMSLP: the syntax looks similar
<apeiros>
but it's not the same
<apeiros>
`class << self` is the syntax to open the singleton_class of the object referenced by self
<apeiros>
you can read `class <<` as a single token
<ljarvis>
^
<apeiros>
but `some_obj << other_obj` is a method call. it calls the method named '<<' on 'some_obj' with the argument 'other_obj'
<apeiros>
and if some_obj is an Array, that method indeed does a push
<apeiros>
if it's an integer, it'll do a left-shift.
skade has joined #ruby-lang
MrZYX|off is now known as MrZYX
<TCMSLP>
OK - so the nature of << depends on the object being a class or an instance
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
skade has quit [Client Quit]
<TCMSLP>
Thanks.
<ljarvis>
not quite but i think you get it enough
<ljarvis>
maloik: belgium mosquitos do not like me (I have 30+ bites :/)
jefflyne_ has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
skade has joined #ruby-lang
workmad3 has quit [Quit: Lost terminal]
elia has joined #ruby-lang
skade has quit [Client Quit]
dhruvasagar has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
mosca_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
workmad3 has joined #ruby-lang
skade has quit [Client Quit]
Nss has quit [Ping timeout: 240 seconds]
skade has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
Cakey has joined #ruby-lang
skade has quit [Client Quit]
Cakey has left #ruby-lang [#ruby-lang]
schaerli has quit [Remote host closed the connection]
<maloik>
ljarvis: I never really get bothered by bugs at all
schaerli has joined #ruby-lang
<maloik>
most annoying thing is their sound
dhruvasagar has quit [Read error: Connection reset by peer]
<maloik>
when we go camping in summer people always complain about horseflies (google translate told me that's what they're called?), I remember being stung by one and actually seeing it happen and not really feeling much at all
<maloik>
thick skin I suppose :D
dhruvasagar has joined #ruby-lang
sr78ger has joined #ruby-lang
schaerli has quit [Ping timeout: 240 seconds]
fosky has joined #ruby-lang
<darix>
ljarvis: it actually means they like you a lot. ;)
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
CoreData has joined #ruby-lang
joonty has quit [Ping timeout: 246 seconds]
stamina has joined #ruby-lang
supergeek has joined #ruby-lang
diegoviola has quit [Ping timeout: 268 seconds]
wudofyr has quit [Ping timeout: 245 seconds]
<ljarvis>
darix: well dont i feel special
<ljarvis>
maloik: yeah horse flies hate me too
<ljarvis>
it doesn't really hurt much when it happens, but the aftermath is horrible, but i think my skin is super sensitive (vicky got bitten too, but hers are quite small)
<[spoiler]>
vivekyadav: There's no method that gets called once an object "dies," but you can specify an object-specific block that gets invoked when an object dies. :-)
<vivekyadav>
that works
<[spoiler]>
"dies," I must have such morbid concepts of objects in my head...
<dernise>
I like killing objects.
<[spoiler]>
dernise: LOL
* xybre
takes out the Object::Shotgun and puts OldYeller out of its misery.
<[spoiler]>
xybre: I think they both do... I guess someone could test it
<workmad3>
xybre: it's an aspect of the closure, not of how you created the closure :)
CoreData has quit [Ping timeout: 268 seconds]
<workmad3>
xybre: it could be fixed by the GC detecting closed loops though
MartynKeigher has quit [Remote host closed the connection]
<workmad3>
hmm... wait, no
<workmad3>
the issue is that ObjectSpace has a handle for the proc, and the proc has a binding which contains the object...
<xybre>
Yeah.. thats why I was thinking that lambdas don't keep a binding to the local self.
<workmad3>
except they do
rickhull has joined #ruby-lang
<workmad3>
they're still closures after all :)
<vivekyadav>
darix: to clean up stuff when the object is cleaned
<xybre>
Well, bummer. I was sure that one of them wasn't a true closure.
<workmad3>
xybre: lambdas have different 'return' mechanics
MaddinXx has joined #ruby-lang
<xybre>
And different argument mechanics, at least in 1.9.
<workmad3>
yeah
<workmad3>
they error if you call with an incorrect number of args
MartynKeigher has joined #ruby-lang
dhruvasagar has quit [Quit: leaving]
dhruvasagar has joined #ruby-lang
MrZYX is now known as MrZYX|off
h_kon has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
kek has quit [Remote host closed the connection]
<yorickpeterse>
"The suggested pronunciation of JWT is the same as the English word "jot"."
<yorickpeterse>
Since when does JWT sound like jot?
<yorickpeterse>
other than that JWT looks...interesting
<[spoiler]>
Maybe because there's an invisible vowel (usually an A), so the word could look like "J(a)wt", and "jaw" is pronounced /jô/, so you get jôt.
<[spoiler]>
Just speculating. Invisible vowels are common in many languages
swav_ has joined #ruby-lang
swav_ has quit [Client Quit]
<yorickpeterse>
it reminds me of the Java Web Toolkit
<yorickpeterse>
(purely by name, never used JWT)
<[spoiler]>
What's JWT anyway?
<[spoiler]>
I never used either
postmodern has quit [Quit: Leaving]
kitak_ has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
<[spoiler]>
Bleh! I can't think of why *I* would need to use it, but it sure seems cool
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
dhruvasagar has joined #ruby-lang
vivekyadav has quit [Ping timeout: 250 seconds]
<yorickpeterse>
Zendesk uses it
<yorickpeterse>
I have exactly 1 day to implement this before their old sign-in system goes bust
yfeldblum has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
<[spoiler]>
Ooooh. I hate deadlines, especially short ones. Good luck!
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
hogeo_ has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
Domon has quit [Remote host closed the connection]
Domon has joined #ruby-lang
JohnBat26 has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 245 seconds]
Domon has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby-lang
bastilian has joined #ruby-lang
fijimunkii has quit [Ping timeout: 245 seconds]
elia has quit [Ping timeout: 256 seconds]
schaerli has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
dhruvasagar has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
sush24 has joined #ruby-lang
tallship has joined #ruby-lang
tkuchiki has quit [Ping timeout: 245 seconds]
soba has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
rickhull has quit [Quit: Leaving.]
jxie has quit [Quit: leaving]
robbyoconnor has quit [Ping timeout: 240 seconds]
fosky has quit [Ping timeout: 248 seconds]
<yorickpeterse>
luckily the implementation is prett yeasy
<yorickpeterse>
* easy
<maloik>
fml, just went through all our conference stuff and now I'm nearly 100% certain my whiskey and glasses were stolen
Johz has joined #ruby-lang
<zzak>
maloik: thats ok i accidentally kept the airbnb house key :o
<zzak>
im at LHR now
<maloik>
lol :s
<maloik>
protip: mailing doesn't always work... like in a regular envelope
kek has joined #ruby-lang
<maloik>
in fact I'm fairly sure that if they spot a key they get rid of the package
<zzak>
yeah, i have to figure that out when i get home probably not a big deal, im willing to bet they have extras
<zzak>
lol
ledestin has quit [Quit: ledestin]
spun_hacker has joined #ruby-lang
JohnBat26 has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
benlovell has quit [Ping timeout: 248 seconds]
MrZYX is now known as MrZYX|off
sush24 has quit [Quit: This computer has gone to sleep]
JohnBat26 has joined #ruby-lang
ldnunes has joined #ruby-lang
<spun_hacker>
good morning|afternoon|evening|night. I have a class with some methods (which might vary) that return various values of interest. I want to pick which method to call on an object of that class based on a string. of course I could use case, or eval, but is there a more elegant way? (n00b)
jefflyne_ has joined #ruby-lang
Oak has quit [Read error: Operation timed out]
dhruvasagar has quit [Read error: Connection reset by peer]
<yorickpeterse>
banisterfiend: they're telling you that between 12:00 and 14:00 they're lazy shits and not available
<yorickpeterse>
because they'll be "in meetings"
<banisterfiend>
yorickpeterse damn, is that all it says? it doesn't say any other number i can press to leave a msg or anything?
<[spoiler]>
yorickpeterse: I bet it's private meetings, if y'know what I mean...
<yorickpeterse>
banisterfiend: No, it says to call them back after 14:00
<banisterfiend>
well i guess that's in 8 mins
<banisterfiend>
:)
<banisterfiend>
thanks!
<yorickpeterse>
np
<banisterfiend>
I might need you to translate again once they're available as i think there was another msg that they have telling u to press '1' for x and '2' for Y etc
<yorickpeterse>
oh, just mash the first one
<yorickpeterse>
wait, I'll check what it said
<yorickpeterse>
1 is for emergencies
<yorickpeterse>
2 is for the rest
<yorickpeterse>
so yeah, mash 1 :P
<[spoiler]>
Yeah, 1.
<banisterfiend>
it's not really an emergency, just wanting to change my sleeping pill prescription :)
<[spoiler]>
2 puts you on hold indefinitely or until you actually need to press 1
yalue has joined #ruby-lang
<[spoiler]>
1 is the wiser option
<[spoiler]>
You'll get to 1 eventually. ~
arBmind1 has joined #ruby-lang
symm- has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby-lang
<spun_hacker>
workmad3: thanks!~ that is what i was looking for.
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby-lang
benlovell has joined #ruby-lang
<yorickpeterse>
Coding with gloves on, yay
<yorickpeterse>
because my hands are cold and the climate control is being a bitch
<yorickpeterse>
and I didn't bring my jumpger
<yorickpeterse>
* jumper
mdedetrich has joined #ruby-lang
kalesage has joined #ruby-lang
<[spoiler]>
I have problems hitting keys without gloves on. If I wore gloves... Catastrophic consequences.
<[spoiler]>
I once typod my PC to a shut-down
<spun_hacker>
"How do you type with boxing gloves on?"
<yorickpeterse>
doesn't matter, I just mash keys and magic happens
<[spoiler]>
Someone once described my typing as: "I bet Nino just slams his forehead into the keyboard and stuff comes out"
<yorickpeterse>
a lot of code would make a lot more sense if that was wat would happen
<yorickpeterse>
"Why the fuck does this happe...oh, he types with his ass"
nettsundere has joined #ruby-lang
<[spoiler]>
LOL
mossplix has joined #ruby-lang
Oak has joined #ruby-lang
lfox has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
<spun_hacker>
WRT my question earlier, about calling a method specified by a string on an object .. x = obj.method 'what_i_want' is also useful.. then i can do x.call later.
<yorickpeterse>
For emergencies 1, for prescriptions something 2, to actually get a human, press 3
<yorickpeterse>
if you don't choose anything you'll automatically be forwarded to a human
robbyoconnor has joined #ruby-lang
<[spoiler]>
spun_hacker it's more common use a :symbol with object.method, but if you're generating it on-the-fly, then a string might be better. However, symbols are a better because they are immutable
<banisterfiend>
yorickpeterse what's 2 exactly? to renew prescription?
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 268 seconds]
r0bby_ has joined #ruby-lang
<yorickpeterse>
yeah
schaerli has quit [Ping timeout: 256 seconds]
nettsundere has quit [Ping timeout: 245 seconds]
imperator has joined #ruby-lang
jefflyne_ has quit [Ping timeout: 246 seconds]
<spun_hacker>
the method names come from a cmd line arg. use case: script reads log input from stdin, passes each line to a class which extracts info which is exposed as various attributes, then script uses a = obj.method 'desired_attr' to get the attribute. and then something like a.method 'avg', if it's numeric.
<spun_hacker>
but 'desired_attr' and 'avg' come from the command line.
jp- has left #ruby-lang [#ruby-lang]
scampbell has joined #ruby-lang
nettsundere has joined #ruby-lang
cnivolle has joined #ruby-lang
<[spoiler]>
spun_hacker: then it's cheaper to use strings anyway :-)
jerrytgarcia has joined #ruby-lang
tonni has quit [Remote host closed the connection]
tonni has quit [Read error: Connection reset by peer]
Uranio has joined #ruby-lang
deception has joined #ruby-lang
<micalexander>
[spoiler]: yeah some place I was looking before I asked but no luck finding anything similar there, figured a guru in here might have a trick up their sleeve
Uranio has quit [Client Quit]
<micalexander>
same*
<[spoiler]>
does it have to be that specific string format?
symm- has quit [Ping timeout: 245 seconds]
<[spoiler]>
you could parse the string and generate smaller strings and simply call mkdir_p multiple times
tdm00 has joined #ruby-lang
Squarepy_ has joined #ruby-lang
Uranio has joined #ruby-lang
<micalexander>
[spoiler]: I was trying to get away from calling mkdir_p multiple times
<TCMSLP>
Doing it in a block may mean some voodoo happens under the hood
<TCMSLP>
But I'm a n00b so ignore me :)
bf4 has quit [Ping timeout: 245 seconds]
<[spoiler]>
Well, I guess
<[spoiler]>
if you call it with this hash passed in the options parameter: { noop: true, verbose: true }
<[spoiler]>
you can play with it without compromising the integrity
<[spoiler]>
of the structure
schaerli has joined #ruby-lang
<[spoiler]>
micalexander ping
<[spoiler]>
Also, list can apparently
<[spoiler]>
be any number of arguments
<micalexander>
[spoiler]: ok I'll have to try that
<imperator>
chris2, ping
jithu has quit [Quit: Mother, did it need to be so high?]
jarm has quit [Ping timeout: 248 seconds]
serroft has quit [Quit: Leaving.]
mossplix has joined #ruby-lang
<[spoiler]>
micalexander: FileUtils::mkdir_p(["a", "b"], {:noop => true, :verbose => true}) #=> mkdir -p a b
Uranio has quit [Quit: while you reading this, a kitty dies]
Squarepy has quit [Quit: Leaving]
Squarepy_ is now known as Squarepy
<imperator>
what's a good no-frills gui debugger for ruby?
<micalexander>
[spoiler]: Imma have to look at that, off to work now but when I get there imma try to make that happen thaxn.
<imperator>
something simple, like a tk interface or something
Gaelan is now known as GaelanAintAround
GaelanAintAround is now known as Gaelan
<yorickpeterse>
imperator: pry
<yorickpeterse>
that's the closest I know of that doesn't make me want to kill myself
<imperator>
yorickpeterse, how is that better than just using ruby's debugger?
rue_XIV has joined #ruby-lang
mistym has joined #ruby-lang
<yorickpeterse>
imperator: ask yourself, do you want an "ok-ish" debugger or do you want to ride a car that makes people go "WOW, that person knows how to debug code like a boss"?
<yorickpeterse>
In all seriousness though, Pry is pretty damn awesome
<yorickpeterse>
In every aspect, except for the bootup time
Gaelan is now known as GaelanAintAround
<[spoiler]>
yorickpeterse: What if he wants a jetplane?
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
<yorickpeterse>
[spoiler]: then they'd install pry-theme and pry-debugger
<[spoiler]>
Haha :P
banister has joined #ruby-lang
<imperator>
i just want to watch a variable while i step through the code, dude
rue has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
<[spoiler]>
imperator: Yeah, but if you want to watch it in all it's glory. Get pry ;-)
<yorickpeterse>
There are no GUIs that I know of, so it's something like the built-in debugger or something more feature-full
dhruvasagar has quit [Ping timeout: 246 seconds]
<yorickpeterse>
The state of Ruby GUI apps is, well, lacking
<apeiros>
I find it a nice idea, and I think it'd be awesome. but I doubt it's practicable.
<apeiros>
but I haven't checked at how they intend to regulate and finance it.
tonni has joined #ruby-lang
<[spoiler]>
I'm defending Ruby's honour, but the opposite side keeps making good points, too :/
elia has quit [Ping timeout: 264 seconds]
tonni has quit [Remote host closed the connection]
<imperator>
we have an "opposite" side?
<apeiros>
[spoiler]: no idea what you're talking about…
<[spoiler]>
no, not here haha
<[spoiler]>
on another server, someone groaned about ruby
<apeiros>
chris2: wow, their website is horrible.
<chris2>
heh
<imperator>
[spoiler], eh, haters gonna hate
<apeiros>
ponys gonna pony!
<[spoiler]>
I quote: "and yet in "ruby", using explicit return statements is almost as offensive to most "ruby purists" as clubbing seals"
<apeiros>
true
<[spoiler]>
It is?! I don't give a rats ass about return statements
<[spoiler]>
personally
<apeiros>
you're not a ruby purist
<apeiros>
I hope you know the way to /leave, or should I show you the way out?
<apeiros>
;-)
<[spoiler]>
LOL
VTLob has joined #ruby-lang
<imperator>
seal clubbing is so underrated
io_syl has joined #ruby-lang
<apeiros>
chris2: why - if you were swiss, what'd you vote?
<chris2>
for it
<chris2>
switzerland is actually a scale for a good experiment :P
<apeiros>
you think it's feasible?
<chris2>
yes
<apeiros>
yeah, just that we pay the price if it fails :-)
<chris2>
hehe
<apeiros>
literally, even
<apeiros>
not just figuratively :D
workmad3 has quit [Ping timeout: 245 seconds]
<apeiros>
I think `Der grösste Teil der verbleibenden 130 Milliarden sind in heutigen Erwerbseinkommen enthalten.` is a fallacy. The moment you go to Grundeinkommen, this volume will fall. it might even stabilize later at a higher point again, but it'll almost certainly fall initially.
jefflyne_ has quit [Ping timeout: 240 seconds]
<apeiros>
and I find it rather suspicious that in `http://bedingungslos.ch/zum-thema/`, point 2 & 3, they no longer have good facts/figures.
<chris2>
imo the problem is inflation
<apeiros>
immigration too. free money? yay, lets go there! (even if it is regulated, that'll be the gist of what people hear)
<chris2>
yeah, immigration to switzerland is trivial :P
<apeiros>
turd-lang - code files are identified by a
<waxjar>
hehe, i was about to say
<[spoiler]>
you mean túrd-lang
<waxjar>
should have been the "pile of poo" emote
<apeiros>
I mean türd-lâng
<apeiros>
or -lång?
<[spoiler]>
wotfok
shinnya has quit [Ping timeout: 240 seconds]
a1ph4g33k has joined #ruby-lang
<[spoiler]>
there's an a with a circle?
<imperator>
what's this? switzerland giving out free money?
momomomomo has quit [Quit: momomomomo]
hakunin has joined #ruby-lang
<apeiros>
imperator: there's a volksinitiative wanting ~2500.- CHF/month for everybody as base income, without strings attached
<eam>
anyone here familiar with mri internals WRT signal handling?
<eam>
I'm trying to track down where in ruby a broken signal handler gets set
<imperator>
brb, moving to switzerland
<apeiros>
imperator: it hasn't been accepted yet :)
<apeiros>
imperator: also note that you don't get far with that amount
<imperator>
brb, crushing opposition to this plan
<apeiros>
:D
mannyt has joined #ruby-lang
<imperator>
what if you're a swiss citizen living in, say, thailand?
<apeiros>
no idea. currently reading up on the specifics.
arBmind has quit [Quit: Leaving.]
<apeiros>
also: from when on do you start to qualify? when you got the swiss passport?
<[spoiler]>
Oh, yeah, that was on the news here (in Croatia)
<chris2>
i guess it only applies to citizens
<[spoiler]>
Don't kids get like a weird tuition, too?
<chris2>
everything else would be stupid
<apeiros>
would put pressure on what's required to become a citizen
postmodern has joined #ruby-lang
<apeiros>
and personally I'd like those requirements low
<imperator>
better brush up on my german/french/italian
<chris2>
isnt it living 7 years there?
<apeiros>
it's a bit more
<apeiros>
and it depends on some factors
<chris2>
how is that low? :D
<apeiros>
I said *lower*
<chris2>
ok
<chris2>
you didnt, but ok
<apeiros>
I don't find it low. there are other aspects I'd like raised, though
mossplix has quit [Quit: mossplix]
<apeiros>
ah, well
<apeiros>
I said "I'd like them low", I didn't say they currently were
<chris2>
i dont think its low either
<imperator>
is there a language test?
<apeiros>
imperator: not sure actually
<chris2>
omg id fail that :D
<apeiros>
chris2: it depends on some factors too btw. - e.g. my wife could apply now, after 5y of marriage.
<chris2>
ok
stamina has quit [Ping timeout: 268 seconds]
<apeiros>
imperator: ah, right, you have to be able to pronounce "chuchichäschtli"
<apeiros>
j/k
<chris2>
germany is much easier i think. dunno the details
<[spoiler]>
apeiros: can anyone?
<chris2>
is that a kitchen cupboard?
<apeiros>
[spoiler]: sure, it's a common word in our dialect
<apeiros>
chris2: yes
<chris2>
hah
iliketurtles has quit [Quit: zzzzz…..]
iliketurtles has joined #ruby-lang
fbernier has left #ruby-lang [#ruby-lang]
bantic has joined #ruby-lang
fbernier has joined #ruby-lang
<[spoiler]>
...is "kitchen cupboard" an euphemism?
<fbernier>
trying chruby && ruby-install ... everything installs fine but then I get segfaults with anything "debugger" related or eventmachine related.
<imperator>
i'll just call it a "chuchi" for short
<apeiros>
imperator: that's just "kitchen" though :)
<imperator>
fbernier, platform, version, compiler
nisstyre has quit [Disconnected by services]
<imperator>
(henceforth, i dub this p/v/c check)
nisstyre has joined #ruby-lang
<chris2>
++
iliketurtles has quit [Client Quit]
<fbernier>
ubuntu 13.04, x64, gcc 4.7.3
<apeiros>
chris2: btw., the initiative doesn't actually say it should be 2500.- (re inflation) - that's just a recommendation for todays state of affairs. they say "an amount to live humanely"
<chris2>
apeiros: yep
<apeiros>
ah, ruby related questions. cutting back OT :)
yours_truly has joined #ruby-lang
<chris2>
apeiros: in germany these plans amounted to 1200EUR or something
<apeiros>
but if somebody wants to discuss - I find that an interesting topic
<chris2>
gtg now
<imperator>
fbernier, your ruby is 64bit?
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
benanne has joined #ruby-lang
<imperator>
i meant, what version of ruby
<fbernier>
ah
<fbernier>
2.0.0p247
banister has quit [Quit: Computer has gone to sleep.]
<imperator>
got a small sample program that demonstrates the problem?
<eam>
I'm trying to piece apart this signal issue myself and I'm a complete newbie with mri internals. It seems that ruby spins up a new thread to handle each ensure, is this correct?
<fbernier>
weird it used to work fine with the same ruby version installed with rvm ...
<fbernier>
hope this is not due to remains of rvm stuff
jonathanmarvens has quit [Remote host closed the connection]
jonathanmarvens has joined #ruby-lang
<fbernier>
postmodern: Still getting segfaults on eventmachine stuff. Something looks broken in my gem env ...
jonathanmarvens has quit [Ping timeout: 246 seconds]
<fbernier>
postmodern: It seems like when I install them manually using "gem install ...", they work. But even if my "bundle install" works, gems with c extensions all break.
<postmodern>
fbernier, check `bundle show problem_gem`
<postmodern>
fbernier, bundler might be using an old copy from vendor?