fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
caveat- has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
hadees has quit [Quit: hadees]
autoexec has joined #ruby
ilyam has quit [Remote host closed the connection]
ilyam has joined #ruby
katherinem13 has quit [Quit: Might IS right.]
Russell^^ has quit [Quit: Russell^^]
katherinem13 has joined #ruby
jarred has quit [Quit: jarred]
c0rn_ has quit [Client Quit]
TandemAdam has joined #ruby
cherrypeel has quit [Quit: Leaving]
JoeJulian has joined #ruby
c0rn_ has joined #ruby
<JoeJulian> Could someone please help me understand why this regex doesn't match? http://fpaste.org/W8Dr/
savage-_ has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
savage- has joined #ruby
banseljaj is now known as imami|afk
chare has quit [Ping timeout: 240 seconds]
jcromartie has quit [Quit: jcromartie]
Tomasso has joined #ruby
codeFiend has quit [Ping timeout: 246 seconds]
pdelgallego has quit [Quit: pdelgallego]
MasterIdler__ has joined #ruby
Dreamer3 has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
dev_ryan70 has joined #ruby
MasterIdler_ has quit [Ping timeout: 245 seconds]
mxbtty has quit [Remote host closed the connection]
<jerrad> okay
<jerrad> got things working, but does anyone know how to do case modification with ruby's regexp?
mxbtty has joined #ruby
gfontenot has quit []
fridim_ has quit [Ping timeout: 246 seconds]
wmoxam has quit [Remote host closed the connection]
mxbtty has quit [Client Quit]
MetaCosm has joined #ruby
jcromartie has joined #ruby
nilg has quit [Remote host closed the connection]
hadees has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
dev_ryan70 has quit [Remote host closed the connection]
Vert has quit [Read error: Connection reset by peer]
bowlowni has joined #ruby
wmoxam has joined #ruby
awarner has joined #ruby
<apeiros_> JoeJulian: resource[:name] contains special chars. namely a +
yoklov has quit [Quit: computer sleeping]
<apeiros_> use Regexp.escape(resource[:name])
<JoeJulian> Thanks
digitalcakestudi has joined #ruby
bradhe has quit [Remote host closed the connection]
bowlowni has quit [Ping timeout: 240 seconds]
pdtpatrick has quit [Quit: pdtpatrick]
haxrbyte has quit [Remote host closed the connection]
davejacobs has quit [Quit: leaving]
codeFiend has joined #ruby
Takehiro has joined #ruby
linoj has joined #ruby
sixtycakes has joined #ruby
fantazo has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
adamkittelson has quit [Remote host closed the connection]
liluo has joined #ruby
baphled has joined #ruby
mascool has quit [Ping timeout: 244 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
f has joined #ruby
bradhe has joined #ruby
tds has quit [Quit: tds]
tds has joined #ruby
f has quit []
f has joined #ruby
rubious has quit [Quit: Leaving...]
gfontenot has joined #ruby
yoklov has joined #ruby
f has quit [Client Quit]
Takehiro has quit [Remote host closed the connection]
specialGuest has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 276 seconds]
fyolnish has joined #ruby
mengu_ has joined #ruby
mengu_ has quit [Changing host]
mengu_ has joined #ruby
tds has quit [Ping timeout: 268 seconds]
f has joined #ruby
davidcelis has joined #ruby
mengu has quit [Ping timeout: 246 seconds]
the_jeebster has quit [Quit: Leaving.]
aantix has quit [Ping timeout: 244 seconds]
apeiros_ has quit [Remote host closed the connection]
fyolnish has quit [Remote host closed the connection]
f has quit [Client Quit]
w400z has quit [Quit: Computer has gone to sleep.]
TandemAdam has quit [Quit: Leaving]
linoj has quit [Ping timeout: 260 seconds]
fyolnish_ has joined #ruby
w400z has joined #ruby
Progster has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
koshii has quit [Ping timeout: 246 seconds]
mikepack has quit [Remote host closed the connection]
koshii has joined #ruby
virunga has quit [Remote host closed the connection]
tchebb1 has joined #ruby
ilyam has quit [Quit: ilyam]
tchebb has quit [Ping timeout: 245 seconds]
havenn has joined #ruby
chimkan has quit [Quit: chimkan]
SegFaultAX|work2 has quit [Quit: leaving]
h4mz1d has joined #ruby
S1kx has quit [Ping timeout: 246 seconds]
pdtpatrick has joined #ruby
yfeldblum has joined #ruby
enroxorz has quit [Ping timeout: 265 seconds]
liluo has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 240 seconds]
Taichouchou2 has joined #ruby
linoj has joined #ruby
<yfeldblum> is there a convenient method that can parse a float from a string strictly like Kernel#Float, but which never raises and always returns nil if the value is not parseable as a float?
yoklov has quit [Quit: computer sleeping]
<banisterfiend> yfeldblum: rescue nil :P
matty5000 has joined #ruby
<yfeldblum> banisterfiend, yep, thanks, definitely aware of that, but raising has annoying overhead which it would be super-cool to avoid
<banisterfiend> yfeldblum: well to_f returns 0.0, so between Float and to_f, you can't do it. You'd hve to write your own method
jcromartie has quit [Quit: jcromartie]
<seanstickle> You could regex it first
t44879 has quit [Remote host closed the connection]
<banisterfiend> maybe: str.to_f.to_s == str or something and
yoklov has joined #ruby
<seanstickle> But seriously, just rescue nil
<yfeldblum> banisterfiend, indeed, that's why i'm asking
<seanstickle> Stop screwing around trying to be clever
t70675 has joined #ruby
<seanstickle> Obviously, that is tagged "IMHO"
codeFiend has quit [Ping timeout: 240 seconds]
<yfeldblum> seanstickle, this is not an example of screwing around trying to be clever; i've done my fair share of monkey-patching other people's code because they weren't careful and their code called Kernel#caller in the normal path and it had a big impact on performance
matty5000 has quit [Ping timeout: 244 seconds]
codeFiend has joined #ruby
<seanstickle> We need some sort of tag that says "I know what I'm doing, so this question is not as crazy as it sounds"
elico has joined #ruby
<seanstickle> To separate you from the nut balls who ask questions sort of like that.
<yfeldblum> seanstickle, :)
<elico> hoye, whats up?
insecurlex has joined #ruby
gen0cide_ has quit [Quit: ["rm -rf $ME"]]
<otters> return rb_Float(arg);
<otters> well that hardly helps
<elico> anyone can of help with trees?
<elico> i need to water some of them ;)
ilyam has joined #ruby
<yfeldblum> otters, indeed
butblack has joined #ruby
chare has joined #ruby
sebicas has joined #ruby
havenn has quit [Remote host closed the connection]
randomautomator has quit [Remote host closed the connection]
iamjarvo has joined #ruby
drago757 has joined #ruby
x77686d has quit [Ping timeout: 240 seconds]
h4mz1d has joined #ruby
liluo has joined #ruby
riley526_ has quit [Remote host closed the connection]
RichieEvan has quit [Quit: RichieEvan]
ringotwo has quit [Remote host closed the connection]
yoklov has quit [Quit: computer sleeping]
ilyam has quit [Quit: ilyam]
rubious has joined #ruby
chessguy has quit [Remote host closed the connection]
nexusxp has quit [Quit: nexusxp]
cbley has joined #ruby
Tearan has joined #ruby
ringotwo has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
codeFiend has quit [Read error: Connection reset by peer]
rubious has quit [Quit: Leaving...]
savage- has quit [Ping timeout: 265 seconds]
apok has quit [Ping timeout: 245 seconds]
codeFiend has joined #ruby
aspiers has quit [Ping timeout: 252 seconds]
gtuckerkellogg has joined #ruby
tommyvYo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
RichieEvan has joined #ruby
mmitchell has joined #ruby
<chare> ruby on rails sucks whenever you have to do something nonstandard
grenierm has joined #ruby
aspiers has joined #ruby
ringotwo has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
rubious has joined #ruby
<wmoxam> chare: such as?
yoklov has joined #ruby
<seanstickle> No, leave the troll alone!
<seanstickle> Don't risk yourself
neersighted has quit [Quit: http://neersighted.com]
robbyoconnor has quit [Read error: Connection reset by peer]
rubious has quit [Client Quit]
gry has joined #ruby
<chare> ruby on rails is fine for making stuff like twitter, but do anything nonstandard and you're screwed
awarner has quit [Remote host closed the connection]
tommyvYo has joined #ruby
tommyvYo has quit [Changing host]
tommyvYo has joined #ruby
Tomasso has quit [Ping timeout: 245 seconds]
RichieEvan has quit [Quit: RichieEvan]
Hanmac1 has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
<wmoxam> chare: actually it sucks for things like twitter
<chare> so you admit ruby on rails sucks
<wmoxam> twitter is pretty non-standard
<wmoxam> chare: only if you admit your a troll
<chare> twitter is jam something into a database
<chare> how is that not standard
<wmoxam> actually it's not
<wmoxam> it can work like that on a small scale
<chare> well of course ruby on rails is gonna suck at large scale
<wmoxam> but it's the scale of twitter that makes it non-standard
Hanmac has quit [Ping timeout: 265 seconds]
<wmoxam> chare: the standard Rails app is a CRUD app
<wmoxam> chare: I'd like to hear what you like better. What doesn't suck?
machty has quit [Ping timeout: 276 seconds]
awarner has joined #ruby
cakehero has joined #ruby
adeponte has quit [Remote host closed the connection]
artOfWar has quit [Remote host closed the connection]
<butblack> i have a question about programming approach… when you guys first look at a new program what kinds of questions do you ask yourself?
sainttex has joined #ruby
<chare> what idiot wrote this shitty code?
<butblack> chare: ur hilarious dude
robbyoconnor has joined #ruby
grenierm has quit [Quit: grenierm]
gfontenot has quit []
codeFiend has quit [Quit: codeFiend]
cbley has quit []
<seanstickle> butblack: what was this written for? how does it work? who does it work for?
<banisterfiend> butblack: "is this guy as good as me?", if the answer is "yes" then i sulk for 30 mins and then pretend i didnt see it
<wmoxam> butblack: "why did they use rails? Chare told me it sucked!"
<butblack> wmoxam: hahahahahha
<butblack> banisterfiend: nice
<butblack> seanstickle: thanks for the real answer
lolzie has quit [Ping timeout: 245 seconds]
<seanstickle> butblack: I have to read a lot of code for my interests, so yours is a question that I have asked myself a great deal.
* wmoxam bets chare is a PHP fan. No frameworks, just PHP
<butblack> wmoxam: i was thinking fortran
gfontenot has joined #ruby
<wmoxam> butblack: that's a strange language to write a webapp with
<wmoxam> but whatever floats your boat I guess
locriani has quit [Remote host closed the connection]
apeiros_ has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
seoaqua has joined #ruby
<elico> !panic
<al2o3cr> NOOOOOOO
<al2o3cr> Still alive~
<elico> !reset.....
<al2o3cr> NOOOOOOO
<al2o3cr> Crisis averted
<elico> !reset
<al2o3cr> NOOOOOOO
<al2o3cr> Crisis averted
notwen has joined #ruby
<wmoxam> !die
nari has joined #ruby
<notwen> could someone point me to where I could find the docs for def's like, def func=() def ==() def []() etc?
<elico> wmoxam: he died in piece god reset his soul in heavens!
<chare> operator overloading is retarded
yakko has joined #ruby
<wmoxam> awww
<wmoxam> trollololol
philcrissman_ has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
<elico> god reset his computer Hoo please god!
centipedefarmer has joined #ruby
<chare> seriously operator overloading gets used on vector math, and thats like 0.01% of the code out there, operator overloading just for that 0.01%
h4mz1d has quit [Ping timeout: 276 seconds]
<elico> so wmoxam what's up
<elico> ?
<wmoxam> chare: ban it!
<wmoxam> no fun allowed!
<chare> have you ever read c++ that uses operator overloading and wanted to kill yourself?
<wmoxam> use a strict language that doesn't allow that! Java!
<elico> java rules!!!!!!! can you see the crown?
<wmoxam> chare: still waiting to hear your language and/or framework suggestions
bluebie has joined #ruby
<wmoxam> chare: since everything in here sucks
<chare> I'm really hoping that there is a way to make a simple RoR like framework for Go/
<wmoxam> but RoR sucks!
<chare> thats why Go is not RoR!
<elico> Go is a game...
<bluebie> go :/
<wmoxam> chare: Go is a language, RoR is a framework
<bluebie> even friends who work for google can't muster a positive thing to say about go :/
zeromodulus has quit [Remote host closed the connection]
<bluebie> (or dart for that matter(
td123 has joined #ruby
<elico> well google is watching you dont mess with them..
<jerrad> how do you do a AND assertion on a look behind
<wmoxam> actually I like Go
<bluebie> Google can go stuff themself
<wmoxam> but not for web apps
<bluebie> So many really great engineer friends with grand ideas to make the world a better place end up getting jobs at google and spending years of their life working on stuff of little to no importance
rubious has joined #ruby
<bluebie> holy hell does that company have a lot of engineers on staff for how much they actually produce
<chare> what you talking about http://www.google.com/intl/en/about/products/
<chare> not even a complete list
<elico> it seems like a very small list...
<wmoxam> chare: which OS do you use?
<chare> ubuntu
<chare> you using windows?
<chare> LOLOLOLO
<wmoxam> chare: yes
<wmoxam> Windows 8 is going to be awesome
<wmoxam> Windows 7 is great until then though
<chare> uhh you mean desktop metro where you can view only two apps at once?
<elico> what is better interface? a web page or irc message?
<bluebie> twenty two thousand engineers work at google as of 2009
<wmoxam> chare: yes, it's built for touch
<banisterfiend> bluebie: maybe they're all manually processing the search results
<seanstickle> bluebie: making the world a better place doesn't always pay the rent
<chare> windows 8 is gonna be an epic fail
<chare> ipad already is dominant
<elico> bluebie: it sound like "billionare guy>> hoo another one in my.."
<wmoxam> chare: Windows 8 will be everywhere
<chare> except on all those ipdas
<chare> ipads
<fowl> oh hey chare is here
<chare> fowl who are you
<wmoxam> most people don't have ipads
<bluebie> when I played with windows 8 on a surface prototype (x86 variety) I quite liked it
<elico> chare: i need some help from you
<fowl> I'm me, sillypoo
<wmoxam> fowl: yeah, we're having a grand ol' time
<chare> right now microsoft is peeing their pants in panic
<chare> you got the whole cloud thing going
<chare> apple is raping in the mobile space
<chare> android behind that
<fowl> chare: there was some guy on your name a couple days ago and he was acting like a total fag!
<bluebie> windows mobile is quite nice too
tds has joined #ruby
<elico> if it works it works...
<bluebie> very smooth fluid UI, nicer than iOS in a lot of ways
Ian301v has joined #ruby
<chare> nokia which is microsoft's main partner in the mobile space
tds has quit [Client Quit]
<bluebie> and developer friends say developing for it is wonderful
<chare> is getting hammered
<wmoxam> chare: Go is dominating too
<banisterfiend> chare: android is actually far ahead in teh mobile space
<bluebie> especially for games with XNA
<chare> banisterfiend: even worse for microsoft then
<banisterfiend> chare: you should look at % of android phones sold vs iphones
<rking> banisterfiend: But iOS app sales trounce Android.
<wmoxam> yeah, but Blackberry is still #1 in hearst and minds
<wmoxam> hearts even
<rking> I haven't fully discovered why that is. I think it's because the iPhone people are used to expecting to pay a few bucks per app.
<banisterfiend> rking: maybe
<chare> i haven't heard of a single tech start up that uses microsoft exchange or microsoft office
rubious has quit [Quit: Leaving...]
<bluebie> even that's not a good metric - a large majority of people with android phones are like my mum - their telco gave it to them when they renewed their contract - they didn't ask for a smartphone or even know that they have a smartphone. They wont buy any apps - they often don't even know they had the option
<banisterfiend> rking: people who own iDevices love to pay for shit, android people are more opensourcey and get indignant when they're asked to pay
<bluebie> android users consistently use the web less on their phones than iphone owners by a pretty decent margin
<wmoxam> chare: because tech startups are poor
<rking> banisterfiend: That's pretty much my theory. I'm an indignat opensourcey Android owner.
ilyam has joined #ruby
<banisterfiend> i would love to write android apps if it wasn't all java
<bluebie> telco's love giving out androids as they hope their customers will start using the web and buy data plans to support it
<chare> i remember reading an article, that said that a study showed that apps are #5 in decision to buy a phone, #1 is text messaging, #2 camera, apps is not even #3
<banisterfiend> objective-c/rubymotion is a much nice dev ecosystem
pu22l3r has quit [Ping timeout: 240 seconds]
<bluebie> mmm rubymotion <3
dv_ has quit [Read error: Connection reset by peer]
<bluebie> dalvic is so goddamned slow
<rking> banisterfiend: You've played with ruboto, no?
<bluebie> I don't know anyone whose finished developing something they started on android - one of my friends was so disgusted by the android development tools he switched to windows phone! He's pretty happy with the switch too
<banisterfiend> rking: i played with their irb thing a little bit
<bluebie> the niceness of the dev tools makes up for the smaller audience in his mind
<rking> It's pretty cool. The downside is that you run out of stack space for anything interesting, and you have to bump up your stack limit in an API call
mmitchell has quit [Remote host closed the connection]
<rking> (Because every Ruby call generates a handful of Java calls, so any recursion skyrockets the count)
<bluebie> ironruby works on windows phone too :>
pu22l3r has joined #ruby
<banisterfiend> bluebie: i thought ironruby was a dead/abandoned project?
mmitchell has joined #ruby
<bluebie> rubymotion compiles ruby similarly to how objc compiles - the overhead is pretty light. The performance is surprisingly good
adamkittelson has joined #ruby
adamkittelson has quit [Remote host closed the connection]
<bluebie> well, I don't know how abandoned it is, but it does work
<bluebie> there's an msdn article on using it with winmo
<banisterfiend> bluebie: k00
<rking> bluebie: I didn't have that experience at all. I did the Android tutorials, found them all tolerable (even though using Java and Eclipse), then after that it was straight to Phonegap, where I pretty much did everything in CoffeeScript.
<bluebie> mmm coffeescript
<bluebie> delicious leaky abstractions
<bluebie> it's awesomeness makes up for it's leakyness ^_^
<rking> Hrm. Leaky abstractions == ?
gloomer has quit []
<bluebie> means you have to go down to the javascript level sometimes to figure out what's going on - when you have exceptions and weird syntax things
dv_ has joined #ruby
<rking> Yeah, reading Wikipedia on it.
<bluebie> I made a game for a competition in coffeescript and won an award for it :D
<rking> Cool new phrase.
<banisterfiend> rking: i've heard mixed things about phonegap
<rking> banisterfiend: What were the -'s you heard?
tomsthumb_ has quit [Quit: Leaving.]
krz has quit [Quit: krz]
<banisterfiend> rking: im not sure if it was phonegap or rhomobile, but for one of them the criticism was that the touted cross-platform-ness was a lie
<banisterfiend> that it works ok on one platform, and on the others u have to do a bunch of fiddling
<rking> banisterfiend: Hrm. Rho is a total scam. Complete.
<rking> It is a Rails-style thing… "rhodes" == "roads", get it? I was pretty excited at the start, but in the end it's almost useless.
seoaqua has quit [Ping timeout: 256 seconds]
t-mart has quit [Quit: Leaving]
erichmenge has joined #ruby
<chare> ok so whats so bad about the android sdk, i was thinking about making something with that, do i want to learn the iphone sdk instead then?
<rking> In fact, I wanted to make a thing called Phomobile (that would be Vietnamese-based where Rho is Greek-based) and completely Robin Hood their whole thing.
Banistergalaxy has quit [Ping timeout: 246 seconds]
<rking> chare: Do you have an Android or iPhone already?
erichmenge has quit [Client Quit]
<chare> what does that matter
<chare> you develop on emulator
SCommette has joined #ruby
<bluebie> chare: From what I heard (I haven't tried first hand) the emulator/simulator is a piece of crap, loading new builds is slow and annoying, and the documentation sucks
<banisterfiend> chare: also, it's supposed to be bloated enterprisey java
<bluebie> and dalvic is so slow you have to code defensively, optimising everything for speed instead of clarity
wmoxam has quit [Quit: leaving]
<banisterfiend> with lots of "design patterns"
<banisterfiend> everywhere
RORgasm has joined #ruby
RORgasm has quit [Remote host closed the connection]
<bluebie> or write in C and use a dalvic/java wrapper thing
yoklov has quit [Quit: computer sleeping]
RORgasm has joined #ruby
<bluebie> iOS is nicer - the docs are good, the devtools are good when they aren't crashing - and when they do crash it's not a big deal - they reopen in seconds with no work lost
<bluebie> rubymotion is a pure delight
<bluebie> I cannot praise it highly enough. incredible
<rking> bluebie: That's all FUDdy.
pdtpatrick has joined #ruby
<chare> link to benchmarks that show dalvic is shit, and the sdk is bad
<rking> It's plenty fast. It's not faster than an actual device, surprisingly — they're about the same, but it's not a big deal.
<bluebie> rking: I'm only relaying what friends have told me as to why they switched from android for development
<bluebie> I can't link to blogs or whatever because I didn't read it online, it's second hand experience
<rking> And if you're doing things in HTML5, then you can develop a good chunk on your desktop Webkit-based browser, then periodically check them on the emulator/phone.
<chare> rking: wait how do you do that and tell it to format in the screen space of the iphone correctly
banisterfiend` has joined #ruby
jonnn has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
<bluebie> if you're doing mobile apps in html5, you're doing it wrong. Phones aren't fast enough for that, and network connections aren't reliable. Facebook just today released a new version of facebook for iOS with nearly every webview stripped out and replaced with native code for precisley these reasons.
<banisterfiend`> bluebie: yeah rubymotion is cool, i'd like to get pry working in it eventually
<rking> chare: Heh, you can resize the browser if you want, but I also have a sort of a pattern where I make an HTML page that has 3 <iframes>, one for portait dimensions, one for landscape, and one for tablet.
<bluebie> banisterfiend`: Oh yeah, that'd be way cool :D
<chare> bluebie: are you fucking serious, they stick in a tegra 3 and its still not fast enough?
<rking> bluebie: Ok now you're going into full-retard mode.
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<rking> bluebie: HTML5 is a great choice for getting a ton of cross-platform stuff going. The times when it isn't appropriate, you go native, but the vast majority of the apps I actually use don't require anything like that.
<bluebie> chare: arm does not process information as quickly as x86 at similar clock speeds. You can throw in as many 1ghz cores as you want - webpages are basically an eventloop - multicore doesn't accelerate them much - it doesn't accelerate javascript _at all_
banisterfiend has quit [Ping timeout: 256 seconds]
<chare> ok if you're doing iphone development do you take a hit for using C++ instead of objective-C
<bluebie> chare: All the APIs are in objc, but you can use objc++ and mix them as much as you like
<bluebie> objc++ is a supported configuration in xcode
<bluebie> and the performance is about the same either way
<chare> oh god damn it i don't want to learn objc
<bluebie> maybe slightly better for c++ as it doesn't do the dynamic method calling stuff, if you're using a lot of methods
<rking> Such microoptimizing garbage.
<bluebie> chare: it's not that bad - it's a thin layer on top of C - there really isn't very much to learn. It's just a way of defining classes, instantiating them, and calling methods on them pretty much
wpaulson has joined #ruby
<banisterfiend`> chare: objc is east'y
<banisterfiend`> easy
<banisterfiend`> lern in 2 days
<bluebie> rking: which is relevent if you're making games - which are the most popular category of apps smartphones
<banisterfiend`> learn
fyolnish_ has quit [Remote host closed the connection]
locriani has joined #ruby
locriani has joined #ruby
locriani has quit [Changing host]
<bluebie> chare: If you use rubymotion you don't need to learn any objc though :>
<rking> bluebie: When you're not doing performance software, it's important not to optimize non-bottlenecks. When you're doing performance software, it's even more important.
<chare> ok so the conclusion you gotta deal with two code bases, android sdk based and second iphone sdk based
fyolnish_ has joined #ruby
scant has joined #ruby
<bluebie> chare: Depends on the app. A lot of the time the core of your program is abstracted enough and you just need some different GUI code
artOfWar has joined #ruby
<bluebie> or you can use html5 if you don't mind slow UIs which don't respond well to touch - app which do don't tend to fare well in the long run though - especially on iOS and winmo where people expect good responsiveness
<banisterfiend`> rking: what are some html5 apps on android?
Tearan has quit [Quit: Sleepy Badger....]
artOfWar has quit [Remote host closed the connection]
<bluebie> banisterfiend`: I'd guess facebook, seeing as they made their apps run html5 in the first place to do cross platform stuff more easily, unless they released an update recently stripping that out of android too
<banisterfiend`> rking: i'd like to try one out, cos my expectation is that they suck so i'd like to be proved wrong :)
<rking> banisterfiend`: A ton of them — you probably can't even tell which ones are.
artOfWar has joined #ruby
<banisterfiend`> rking: just curious if u can name one that u know for sure so i can take a look at it
<banisterfiend`> bluebie: ah ok
yoklov has joined #ruby
<rking> banisterfiend`: When I find my phone I'll go through some of them. =)
<banisterfiend`> k00
<banisterfiend`> rking: you might like this https://t.co/rcmZ1qPb
<rking> BTW a cool thing is F-Droid
<rking> And I'm not just saying that because their logo is bearded.
iamjarvo has quit [Ping timeout: 240 seconds]
<bluebie> I hope some people come up with some nice UI abstractions that run atop rubymotion and mruby/ruboto
Drewch has quit [Excess Flood]
<rking> banisterfiend`: I'm not sure what lines 3 and 5 are for, but I've toted that line 4 with me for over a decade now. =) ♥edly toted.
t70675 has quit [Remote host closed the connection]
<bluebie> shoes for mobile would be fun :)
t45274 has joined #ruby
linoj has quit [Quit: linoj]
<rking> OH NO! They shaved the F-Droid bot.
shadoi has joined #ruby
<rking> Those wimps. I saw the discussion on it, too… was supposedly anti-female.
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
macmartine has joined #ruby
mengu_ has quit [Remote host closed the connection]
Drewch has joined #ruby
Tearan has joined #ruby
<banisterfiend`> bluebie: how did u know why btw
mmitchell has quit [Remote host closed the connection]
<banisterfiend`> _why
<bluebie> camping, shoes, hanging out on IRC mostly
mmitchell has joined #ruby
<bluebie> we emailed back and forth a bit too
<bluebie> comments on blogs
<bluebie> nothing major
anybody has joined #ruby
<banisterfiend`> bluebie: oh ok
<anybody> hi guys, what's a good microframework for ruby?
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<bluebie> He did some really nice stuff that helped me through a bit of a rough time when I was younger, so I always considered him a friend :)
<bluebie> still do really, though i haven't heard from him in a while
<rking> I wonder if we all simultaneously miss _why really hard, if he'll come back?
<bluebie> anybody: for the web? sinatra or camping, depending on what sort of thing you like
<bluebie> rking: I expect not.
<anybody> bluebie, yep for the web. I'm looking at sinatrarb.com ryt now
<bluebie> give camping a look too - it's good people and good stuff - it's my personal favourite
Chryson_ has quit [Quit: Leaving]
yakko has quit [Quit: No Ping reply in 180 seconds.]
<anybody> thanks
<bluebie> why's busied with other stuff these days. I think it'd be better to make new why's than try to bring the old one back :)
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
<rking> banisterfiend`: http://phonegap.com/app
v0n has joined #ruby
<chare> you guys are getting boring now, change the topic to some interesting tech news
yakko has joined #ruby
w400z has quit []
<bluebie> I wonder if I could program a leap motion to do face recognition for authentication by classifying the 3d face
<bluebie> rather excited about those gadgets
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
<anybody> do I have to do some magic? http://i.imgur.com/2wFXl.jpg
vitor-br has joined #ruby
nohonor has quit [Quit: Leaving]
bluenemo has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
tomsthumb_ has joined #ruby
<rking> anybody: Hehe. You gotta not use webkit, apparently.
<rking> That's a really blunderlicious design on their part, 1) not setting the background color + 2) setting it as an image in a -moz property.
<banisterfiend`> bluebie: what's leap motion
<rking> anybody: Maybe it's a screen to keep the Google-loving chuckleheads at arms length.
<anybody> lol
baphled has quit [Ping timeout: 268 seconds]
<bluebie> banisterfiend`: http://leapmotion.com 3d scanner HID device for computers, retailing at about $70usd
<chare> lets talk about how much perl is shit
<elico> anybody: what is it?
<bluebie> they're shipping around febuary next year, taking preorders now
<rking> chare: That's tech *news*?
<elico> chare: !reset!!!
<bluebie> you can get developer units now though for free if you have a good idea
jerrad has quit [Quit: Leaving...]
<bluebie> oh god damn it
<elico> !panic
<al2o3cr> SAVE YOURSELF
<al2o3cr> Phew!
<banisterfiend`> bluebie: it's like that microsoft thing for xbox? whatever it's called
<bluebie> anybody: which browser are you using?
<anybody> Google chrome ofc
jerrad has joined #ruby
<elico> FF
<bluebie> banisterfiend`: yeah a bit, but the resolution is much better - down to a tenth of a millimeter
<bluebie> elico: a fairly current version?
<anybody> ff kills my P4
<banisterfiend`> bluebie: hehe i wouldn't be surprised is MSFT is in the process of suing them already
<banisterfiend`> if*
<elico> i have used nightly64 bit for a long time..
SubliminalSquee is now known as SubliminalKid
<elico> now i use the stable since it reaced a fair ammount of features i like
<bluebie> banisterfiend`: Microsoft doesn't own the patents for or produce the sensors of the kinect
<bluebie> they just license it, and they don't even have an exclusive license
<banisterfiend`> bluebie: cool
<banisterfiend`> i figured it came out of microsoft research
<bluebie> and regardless, nobody has a patent of the idea of 'a 3d scanner attached to a computer' - pixar's been using those for more than a decade
<bluebie> the company offered it to microsoft after apple rejected the idea of hands in the air computer interaction
<elico> bluebie: i dont remeber who exactly but some stuff was invented on freebsd for matrix...
<banisterfiend`> too bad
<banisterfiend`> its nifty
<bluebie> elico: matrix?
c0rn_ has quit [Quit: Computer has gone to sleep.]
<elico> the movie..
<elico> "the matrix"
<banisterfiend`> bluebie: how do u know what location your fingers correspond to on the screen?
<banisterfiend`> so that u know what u've selected
<bluebie> anybody: sorry about the camping website. That's my responsibility to make that work
<elico> bluebie: what is this camping website?
<bluebie> I used some edgy new aged css and every month or two google automatically updates everyones browser with some new bugs which break everything
<bluebie> elico: http://camping.io
hadees has quit [Quit: hadees]
<chare> microsoft gonna get fucked soon watch, bill gates gonna back on board when microsoft starts slowlry sliding down
<bluebie> why would Bill go back?
<bluebie> why would he care?
<chare> his stock
<bluebie> he's doing awesome stuff
<elico> bluebie: the writing in the left side bar unreadable
<bluebie> elico: using windows?
butblack has quit [Quit: butblack]
<elico> yes
<bluebie> yep :/
maletor has joined #ruby
<elico> You did this only for me? hooo you are so nice!
<elico> can i hug you?
<bluebie> the whole site's a little bit crappy. I rushed it out in a day or two for whyday a year or two back
<elico> well it's much better then my site
jmcphers has quit [Ping timeout: 268 seconds]
<bluebie> I should redo it. But you know, time
lateau has joined #ruby
<elico> time and space.. the problem of anybody
<anybody> what, mine?
<elico> hoo there is an anybody here?
<chare> who here has a windows phone
jmcphers has joined #ruby
<elico> is there any god also in the party?
sterex has quit [Quit: sterex]
<elico> >>puts "anybody: hello world"
<al2o3cr> (NilClass) nil, Console: anybody: hello world
gfontenot has quit []
<elico> anybody: when do you have sometime?
<anybody> what?
anybody is now known as Apathetic
Spooner has quit [Ping timeout: 240 seconds]
<elico> Apathetic: i will be here later will you also?
mohits has joined #ruby
<Apathetic> elico: huh?
<elico> since you do response... i assume you are alive...
<Apathetic> I am good, you?
cantonic has joined #ruby
<elico> tired ..very..
iamjarvo has joined #ruby
HRida has quit [Ping timeout: 260 seconds]
SubliminalKid has quit [Quit: Leaving]
sterex has joined #ruby
bradhe has joined #ruby
TheLZA has joined #ruby
hadees has joined #ruby
banisterfiend` has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
yakko has quit [Quit: No Ping reply in 180 seconds.]
deryl has joined #ruby
yakko has joined #ruby
RORgasm has quit [Remote host closed the connection]
Progster has quit [Ping timeout: 245 seconds]
fyolnish_ has quit [Ping timeout: 248 seconds]
seanstickle has quit [Quit: seanstickle]
<chare> windows 8 gonna flop
awarner has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
aantix has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
M- has quit [Read error: Connection reset by peer]
jerrad has quit [Quit: Leaving...]
Ian301v has left #ruby ["http://quassel-irc.org - 随时随地畅谈。"]
cantonic has quit [Quit: cantonic]
Nisstyre has quit [Quit: Leaving]
Nisstyre_ has joined #ruby
ilyam has quit [Quit: ilyam]
M- has joined #ruby
alvaro_o_ has quit [Quit: Ex-Chat]
savage- has joined #ruby
mahmoudimus has joined #ruby
Apathetic is now known as Belieber
mahmoudimus has quit [Client Quit]
macmartine has quit [Quit: Computer has gone to sleep.]
Chryson has quit [Quit: Leaving]
<davidcelis> Belieber: ಠ_ಠ
mucker has quit [Ping timeout: 265 seconds]
matrixise has quit [Ping timeout: 246 seconds]
centipedefarmer has quit [Read error: Connection reset by peer]
sterex has quit [Quit: sterex]
ananthakumaran has joined #ruby
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
luist has joined #ruby
v0n has quit [Ping timeout: 240 seconds]
saxy has joined #ruby
<rking> I wonder if destructured assignment has been talked about for Ruby.
<rking> Also for use in arg signatures. (I'm thinking of CoffeeScript on both of these)
<saxy> what is destructured assignment?
<Banistergalaxy> Like what, e.g
cakehero has quit [Quit: Computer has gone to sleep.]
<saxy> That's an awesome idea!
<bnagy> which bit of that can't ruby do already? tl;dr
<bnagy> I read the first four things and though yup, got that, yup...yes...
<saxy> using the same syntax?
<rking> bnagy: Everything after that. =)
<rking> From "Objects" down.
<bluebie> object destructuring looks to be a great idea
<rking> But I can't even do this in Ruby: def initialize @arg; end
<rking> (Then Foo.new 1 would set @arg, instead of the "Repeat Yourself Thrice" of def initialize arg; @arg = arg end)
<rking> But once you can do that, and once you can peel out method calls based on your LHS spec, you could get:
koshii has quit [Ping timeout: 260 seconds]
<rking> def f {foo, bar}… then calling as: f foo: 1, bar: 2 would actually assign to lexical variables within f()
mrdodo has quit [Remote host closed the connection]
<savage-> rking: do you work with ruby for a living? just curious
t45274 has quit [Remote host closed the connection]
<rking> But I suppose the mapping between symbol and method and lexical names is wonky in that proposal.
t19463 has joined #ruby
<rking> savage-: When at all possible, yes. (Maybe 75% of the last 2 months has been Ruby)
<savage-> oh cool. do you work from home?
<bluebie> destructuring and @ivar assignment in method arglists would be great!
<savage-> i think it would be nice to work from home.
sixtycakes has quit [Remote host closed the connection]
<savage-> then i could work from spain, wherever.
<bluebie> is there some way we can help make this happen?
<rking> savage-: Hehe, yep. Though I'm working toward a thing where I work IRL.
w400z has joined #ruby
sainttex has quit [Quit: sainttex]
<rking> bluebie: Well, I'm sure Matz has written on it somewhere.
<savage-> cool.
<rking> I'm not actually sure where jashkenas got it from. Perhaps a blue bolt of genius, but that seems a bit unlikely.
<savage-> I wish I could find a way to see other gems that have included my gem as a dependency.
<bluebie> mmmm
<rking> savage-: Rubygems.org doesn't expose that query somehow?
<bluebie> I hope this ISO standard stuff doesn't make improving ruby syntax more difficult
<savage-> nope :-(
bontaq has quit [Remote host closed the connection]
<savage-> the reason I ask is because I recently noticed a 40% increase in downloads for my gem.
<rking> savage-: Put in Spybot code to find out. =D
<savage-> hehehe
yoklov has quit [Quit: computer sleeping]
<rking> Do it. Just for like an hour. I'll even make the Pull Req so it's under my name.
<Banistergalaxy> Savage ruby tool box
<Banistergalaxy> Website
<Banistergalaxy> Shows depending gems
<rking> Actually we should make a gem for doing that.
<savage-> oh!
<savage-> let me check Banistergalaxy
<rking> Oh shucks, Ruby Toolbox puts an end to my evil plan.
<rking> Any time you upload $foo_gem, it gets like 50 free downloads from something.
<savage-> oh interesting, ruby toolbox shows 0 dependencies.
liluo_ has joined #ruby
<bluebie> that was a pretty evil plan
<savage-> ok, I guess it's getting more popular.
<savage-> lol
bradhe has joined #ruby
<bluebie> you would have freaked out the security guys using ruby for metasploit stuff a bit
bwlang has joined #ruby
<rking> I don't know if it's curious twitter users or some automated CI thing, but you could trojan 50 boxes if you wanted to.
liluo has quit [Read error: Connection reset by peer]
<Dreamer3> ok
<rking> I probably shouldn't have suggested the idea openly, because when it happens, I'm going to have a hard time proving I didn't do it.
bradhe has quit [Remote host closed the connection]
<bluebie> probably best to install the thermite above your hard drive now for when the raid comes
Cache_Money has joined #ruby
<bnagy> downloading text trojans your box now?
<rking> bluebie: Good strategy.
DrShoggoth has quit [Quit: Leaving]
<bluebie> I wonder how many people have their path setup so rubygems that provide binaries can take precedence over system utilities like sudo
quazimodo has joined #ruby
<quazimodo> sup yall
<bluebie> puts "Please enter your root password:"; open("http://rking.com/passwords/#{gets}") best sudu implementation ever
<bluebie> require open-uri - I always forget that bit!
<bluebie> sup quazimodo?
<quazimodo> hay bluebie
<bluebie> hangin' with the ruby bro's, havin' some lolz, plannin' some computer crimes
<savage-> bluebie: do you get to program in ruby for a living too?
<quazimodo> I'm trying to find a clever way of turning a Date cweek into a date string
<quazimodo> like, first day of week n
<quazimodo> I think I may have to use a loop and manually check
igotnolegs has joined #ruby
<rking> bluebie: Our plan is complete if we can come up with some cool thing to do with all our rooted boxes that somehow makes people sympathize with our grey-hattery.
<bluebie> savage-: I get a lot of job offers for that sort of thing via my github account, but no, I choose not to program for a living - I find it too frustrating unless I'm working on weird arty projects
yakko has quit [Quit: No Ping reply in 180 seconds.]
<rking> Like, "Oh, they did all that to send a giant $gift to $respected_oss_leader. We'll let 'em slide."
<bluebie> rking: low priority folding at home? 2% cpu usage or so?
yakko has joined #ruby
<quazimodo> oo think i may have found it :D
<savage-> bluebie: nice! i just followed you on github, yay
<bluebie> mine bitcoins and donate it to EFF?
<rking> Like in Superman 3.
<bluebie> there's bitcoins in superman 3?
banisterfiend has joined #ruby
<bnagy> screw the EFF
<rking> Office Space, homey!
maletor has quit [Quit: Computer has gone to sleep.]
<bluebie> donate to the local chapter of the pirate party?
<bluebie> … donate to bill gates?
<bluebie> or olpc!
Takehiro has joined #ruby
<bnagy> that's a pretty good foundation actually, but I don't think they take nickel dime donations
<quazimodo> sometimes I think i should have stack overflow injected directly into my veins
MasterIdler__ has quit [Quit: MasterIdler__]
jhowarth has joined #ruby
<bluebie> quazimodo: what about yahoo answers? it's pretty much the same thing
<quazimodo> Date.commercial(2010, 23, 1)
<quazimodo> NoMethodError: undefined method `commercial' for Date:Class
<quazimodo> wat
<bluebie> I love that they had the guts to make a yahoo answers clone and prove the concept isn't terrible xD
Banistergalaxy has quit [Ping timeout: 256 seconds]
<quazimodo> bluebie: lol
hemanth has joined #ruby
<quazimodo> I like it though, lots of answers
<quazimodo> dude why isnt Date::commercial working :?
<bluebie> yeah stackoverflow is great :D
<quazimodo> does it work for you?
iamjarvo has quit [Ping timeout: 240 seconds]
shadoi has quit [Quit: Leaving.]
* quazimodo puts his unneccessary precription glasses on (the guy who checks your eyes shouldn't be the one selling you the glasses :/)
shiki has quit [Remote host closed the connection]
<bnagy> quazimodo: did you require 'date' ?
<quazimodo> Looks like I'll have to get the colostomy bag out
<quazimodo> bnagy: I never have before and Date.bla worked
<bluebie> gotta be requiring your stdlibs you hoodlum!
shadoi has joined #ruby
<bnagy> yeah date is a weird one. Half the methods are there half aren't :S
* quazimodo slaps everyone. Maybe it was working because I was running pry within the context of a rail
<bluebie> just one rail?
<savage-> bluebie: what's your favorite language?
<quazimodo> nice
* quazimodo slaps bluebie
<bluebie> savage-: I'm not very good at it - in fact I'm terrible, but I really like japanese :)
* quazimodo kisses bluebie
<quazimodo> come here baby
<bluebie> oi off with you and your legitimate rape!
<savage-> bluebie: that's nice! I wish I could understand Matz's tweets better.
<quazimodo> XD
<bluebie> savage-: me too :)
<savage-> I still follow him, however.
<quazimodo> lolol legitimate rape is so gonna become a major meme
<quazimodo> its too funny
<bluebie> yeah :D
td123 has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
<davidcelis> what's up brogans
<davidcelis> nothin legit about rape jokes, yo
<davidcelis> take that shit to #rapejokes, this is #ruby
Belieber has quit [Quit: Leaving]
<bluebie> davidcelis: sorry if offended :)
jenrzzz has joined #ruby
<bluebie> no harm intended - intent was to make fun of the politician, not the people he seeks to harm
<bnagy> there's #rapejokes? omg why have I been wasting my life _here_??
CannedCorn has joined #ruby
<quazimodo> take notice, all humour (that is funny) is at someonse expense
<banisterfiend> davidcelis is the PC police
bradhe has joined #ruby
<savage-> bluebie: do you still use it?
<quazimodo> humour is the lighter side of misery
<bluebie> savage-: yes I do!
<bluebie> every day!
<savage-> so neat!
<bluebie> I have it hooked up to Alfred on my mac so I can just tap cmd+space and enter 'lamp on' to turn my light on!
<savage-> bluebie: do you think you could've written the whole thing in ruby, or the C extension was necessary?
t19463 has quit [Remote host closed the connection]
<bluebie> works on my laptop too by calling the fan interface stuff over ssh
t97904 has joined #ruby
<savage-> that's so neat!
<bluebie> savage-: what c extension?
<bluebie> it is just ruby
<savage-> oh
<bluebie> the microcontroller in the USB stick runs C - but it only has 512 bytes of RAM and 8kb of SSD space for the program, so it can't run ruby's interpreter
<savage-> oh that makes sense.
<savage-> awesome.
ibash_ has joined #ruby
<banisterfiend> bluebie: i dont think your finalizer would work there?
<bluebie> there was a project a while ago to compile ruby in to avr bytecode, but it seems dead
<bnagy> when do they ever?
<banisterfiend> hehe
<bluebie> banisterfiend: what did I do wrong?
Takehiro has quit [Remote host closed the connection]
<bluebie> thinking the c extension wouldn't be available by then?
<banisterfiend> bluebie: the block is closing over self so it'll keep it alive i think, meaning the object will never get GC'd and the finalizer wil lnever run
<banisterfiend> i think
<banisterfiend> i did something similar in a graphics lib a few years ago
<bluebie> oh that makes sense o_o
<bluebie> so I should assign device to a local variable and close over that?
<banisterfiend> yeah everyone makes that mistake with finalizers :)
<banisterfiend> you have to define the finalizer outside the object which it's for, i think
<bluebie> srsly?
<bluebie> that's hopeless
koshii has joined #ruby
<banisterfiend> one sec
yoklov has joined #ruby
ibash has quit [Ping timeout: 268 seconds]
ibash_ is now known as ibash
<bluebie> maybe I should do a IO-like interface with blocks and .close
<banisterfiend> devil was the graphics lib i was working on a few years ago
ShadowBelmolve_ has quit [Remote host closed the connection]
<bluebie> graphics for GUI stuff or web stuff?
<banisterfiend> oh, it was an image manipulation framework
<bluebie> ah right my friend uses DevIL for his c++ game!
<banisterfiend> loaded images/manipulating them/saving
<bluebie> I remember because it was annoying to install it on my mac!
<banisterfiend> k00, i just wrote a ruby wrapper for it
<banisterfiend> it's a horrible piece of code really
<chare> ok i'm back what did i miss what have you guys been talking abotu
<banisterfiend> devil itself i mean
<banisterfiend> it's a real mess
<banisterfiend> the guy just copied and pasted snippets from around the web
ryanf has quit [Quit: leaving]
<banisterfiend> his interpolation algorithms dont even make sense
Dreamer3 has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
ibash has quit [Quit: ibash]
Dreamer3 has joined #ruby
<banisterfiend> bnagy: was n_blownapart banned from there?
<banisterfiend> he sent me an email saying he was kicked
<banisterfiend> from here*
<bluebie> banisterfiend: thanks for the link, that'll work well :)
<bnagy> hm, not while I was watching
luist has quit [Quit: luist]
yoklov has quit [Quit: computer sleeping]
cantonic has joined #ruby
bradhe has quit [Remote host closed the connection]
<bluebie> I put an rgb led in the usb stick too since I had spare IO pins on the microcontroller and hooked it to my computerized doorbell system (such a nerd) so it blinks colours when people ring my doorbell :)
<bluebie> also push notifications to mine and my housemates phones :)
bradhe has joined #ruby
<bluebie> computers are neat!
<bnagy> banisterfiend: I scrolled back a ways and all I saw was people teasing the bot and apeiros losing his rag
<banisterfiend> bluebie: haha cool
<bluebie> most of the stuff on my github is junk
<bluebie> legs is kinda cool tho. Shame nobody uses it (not even me)
<banisterfiend> what's legs?
bwlang has left #ruby [#ruby]
<bluebie> rpc for kids - was the idea. https://github.com/Bluebie/legs
<bluebie> I made it hoping to build a little p2p system on it so kids using hackety hack could network their apps and games to make chatrooms and stuff
<bluebie> but I never got around to the p2p bit
maletor has joined #ruby
<banisterfiend> nice
<bluebie> it is bidirectional json-based rpc over tcp though with marshalling of json-incompatible pure ruby classes tho
<bluebie> kinda neat
<chare> you are all stupid?
<bluebie> chare: I know I am!
<banisterfiend> chare: why do u say that
freeayu has joined #ruby
fyolnish_ has joined #ruby
t97904 has quit [Remote host closed the connection]
t24060 has joined #ruby
mmitchell has quit [Remote host closed the connection]
rohit has joined #ruby
<savage-> banisterfiend / bluebie: awesome re: the define_finalizer issue.
<savage-> I'm checking out legs now. :)
mmitchell has joined #ruby
tgriffin2081 has joined #ruby
fyolnish_ has quit [Ping timeout: 252 seconds]
td123 has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
freeayu__ has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
<quazimodo> @bar == 1? puts("WOO") : puts("boo") prints WOO, @bar == 1? puts "WOO" : puts "BOO" returns an error. Is this about brackets?
<quazimodo> i'm guessing ruby confuses the : with something that could be passed to put?
<bluebie> sounds about right
<banisterfiend> bluebie: how long have u been doing ruby?
scalabl3 has joined #ruby
fyolnish has joined #ruby
<bluebie> banisterfiend: casually for about five years I think
<bluebie> memory's a bit hazy on that one
fyolnish has quit [Remote host closed the connection]
fyolnish_ has joined #ruby
<banisterfiend> cool, haven't seen you around before
<saxy> ive got a question about the language itself, other than prototyping projects, what is ruby commercially used for
<bluebie> pretty much as soon as rails became something people talked about I got interested, soon decided rails was a bit not so good, but liked the other stuff :)
<banisterfiend> bluebie: did you just recently decide to hop on #ruby or you've just been idling for years
<bluebie> yeah I don't go on irc much
<bluebie> I used to hang out on here a bit more a couple years ago
<banisterfiend> ah ok
freeayu has quit [Ping timeout: 276 seconds]
daidoji has joined #ruby
<bluebie> after _why left though I kinda got bored of freenode for a while
scalabl3 has quit [Quit: Leaving.]
<bluebie> I want to try to get a bit of the old Why gang back together though
mohits has quit [Remote host closed the connection]
<bluebie> I miss it
<bluebie> people seem keen too :)
freeayu3 has joined #ruby
jasonLaster has joined #ruby
<banisterfiend> who was in the why gang hehe
Takehiro has joined #ruby
<banisterfiend> jasonLaster: sup g. how did it go at codecademy?
<jasonLaster> yo. not bad
<bluebie> mm judofyr, aria, dave everitt, locks
<bluebie> I'm sure i'm forgetting some folks
<jasonLaster> banisterfiend: actually, by any standard pretty fucking great.
<bluebie> it's been so long o_o
<jasonLaster> it turns out that working on a repl for a month is not a bad use of your time
<jasonLaster> so, thank you for that.
<banisterfiend> jasonLaster: k00, you showed them pry-mirror?
chimkan_ has joined #ruby
dotnull has joined #ruby
<bluebie> what's pry-mirror? :)
<jasonLaster> didn't have a chance. just talked big picture.
Cache_Money has quit [Ping timeout: 240 seconds]
Takehiro has quit [Remote host closed the connection]
CannedCorn has quit [Quit: Computer has gone to sleep.]
<jasonLaster> bluebie: it's an IDE i'm working on that uses pry as a backend
freeayu__ has quit [Ping timeout: 245 seconds]
<banisterfiend> jasonLaster: oh ok, did u mention pry at all? had they heard of it? :P
<jasonLaster> oh yea, sure. they're a ruby shop
<banisterfiend> oh ok
<bluebie> hm neat
<jasonLaster> banisterfiend: how are you doing?
<bluebie> I don't much care for IDEs myself - especially ones on the web
<banisterfiend> jasonLaster: not bad. We were just discussing the best way to flush repl code to disk
<jasonLaster> haha - yea. there are many bad ides
<jasonLaster> hmm, what do you mean by repl code?
<rohit> emacs rocks! \mn/
vectorshelve has joined #ruby
<banisterfiend> jasonLaster: code that is defined simply in the repl with no associated file
<jasonLaster> oh yea, sure.
r0bby has joined #ruby
<jasonLaster> I still want to circle back and work on that breakpoint feature
<banisterfiend> what do you mean?
robbyoconnor has quit [Ping timeout: 272 seconds]
<banisterfiend> i fixed that already
<bluebie> http://www.youtube.com/watch?v=1AJpKt6UP08 What games do you play?
scalabl3_ has joined #ruby
<banisterfiend> jasonLaster: the guy has just gone AWOL and isn't replying to any of my emails/messages
scalabl3_ has quit [Client Quit]
rohit has quit [Quit: Leaving]
<banisterfiend> jasonLaster: it was very easy to fix, you just had to prevent it from doing a File.expand_path on "(pry)" files
r0bby has quit [Read error: Connection reset by peer]
<jasonLaster> haha - yup. wanted the PR for myself
<banisterfiend> so that pry would detect it was a "(pry)" file, which it wouldnt do if you had /user/home/blah/(pry)
<jasonLaster> :) i need to get my contribution count up haha
codeFiend has joined #ruby
<jasonLaster> do you have an alternative pry-debugger branch somewhere else?
<banisterfiend> no, i didnt think there was a point in pushing it up until that guy replies to my emails
<banisterfiend> it's getting annoying..
codeFiend has quit [Client Quit]
<jasonLaster> yea. what's the best way to handle something like this when the gemspec has an url to this branch?
<banisterfiend> i guess i could fork it and just keep updating it until he eventually gives me push access to the gem
adeponte has joined #ruby
vitor-br has quit [Quit: Saindo]
<banisterfiend> what do u mean?
tad_ has joined #ruby
<banisterfiend> jasonLaster: why get your contribution count up? does it count for your hackerschool certificate or something?
<jasonLaster> haha - not at all. just being silly.
<banisterfiend> oh ok
scant has quit [Ping timeout: 245 seconds]
Takehiro has joined #ruby
<jasonLaster> i'm actually not sure how involved i'll be after hacker school
yoklov has joined #ruby
tad_ has left #ruby [#ruby]
<jasonLaster> but i'd like to find the time to continue contributing
<bluebie> what's hackerschool o_o
<jasonLaster> it's been a really positive experience
slashnik has joined #ruby
<banisterfiend> jasonLaster: cool :)
shiki has joined #ruby
<jasonLaster> hackerschool.com - "writer's retreat for programmers" :)
andrewhl has quit [Remote host closed the connection]
<banisterfiend> jasonLaster: i realized while i was plying with pry-debugger that it needs some fairly major refactors
<banisterfiend> playing
Takehiro has quit [Remote host closed the connection]
<jasonLaster> oh - interesting. what do you want to do?
<banisterfiend> well, pry-autopilot and trace-method "work", but due to pry-debugger there's a heap more stack frames involved
<banisterfiend> also the debugigng stuff is not per pry instance, they're instance variables on the pry class itself
<jasonLaster> yea
<examancer> I'm writing a gem. A gem I depend on has a bug, which I fixed in my fork. How can I set up my gemspec so my fork of the gem on github is used instead of the rubygems version?
<examancer> It may take a while for my pull request to be closed, and I'd prefer not to wait
<banisterfiend> jasonLaster: also, nested breakpoints dont work
<banisterfiend> jasonLaster: you can't trigger another breakpiont while you're in a breakpiont
<banisterfiend> which is stupid
<banisterfiend> jasonLaster: also, i got some weird behaviour with your pry-stack_explorer patch to pry-debugger
<jasonLaster> yea, i just saw that bug.
JoeJulian has left #ruby ["Leaving"]
<jasonLaster> is that the exiting thing?
<bluebie> examancer: easiest way would be to rename it to examancer-patched-othergem and push it to rubygems
<banisterfiend> jasonLaster: i dont remember how to repro it right now, but it ended up pushing new bindings on the binding_stack, so i had two bindings in the binding stack, rather than just 1
pu22l3r has quit [Ping timeout: 244 seconds]
<banisterfiend> but when i got rid of your pry-stack_explorer patch, it worked correctly
<slashnik> while you guys are at it ... https://github.com/pry/pry/issues/214
<examancer> bluebie: thanks
<examancer> that's a workable solution
scant has joined #ruby
yakko has quit [Quit: No Ping reply in 180 seconds.]
slashnik has quit [*.net *.split]
w400z has quit [*.net *.split]
jmcphers has quit [*.net *.split]
aantix has quit [*.net *.split]
moshee has quit [*.net *.split]
Drewch has quit [*.net *.split]
locriani has quit [*.net *.split]
sebicas has quit [*.net *.split]
ged has quit [*.net *.split]
autoexec has quit [*.net *.split]
mahlon has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
idoru has quit [*.net *.split]
juarlex_ has quit [*.net *.split]
__class__ has quit [*.net *.split]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<jasonLaster> weird. i can look into that.
yakko has joined #ruby
autoexec has joined #ruby
<banisterfiend> jasonLaster: so when u finish hackerschool, no more work on pry-mirror either?
<jasonLaster> it clears the binding stack on exit. so it would have to be something on creation
deryl has quit [Quit: deryl]
<bluebie> examancer: if an older version of the gem would work though you could just depend on that specific version
<banisterfiend> jasonLaster: will it be in a usable state at least? or half-finished? :)
cantonic has quit [Quit: cantonic]
saxy has quit [Ping timeout: 245 seconds]
<jasonLaster> banisterfiend: i'm not sure where it will be after saturday
<banisterfiend> jasonLaster: but i take it you'll more or less drop the project after hackerschool?
<jasonLaster> banisterfiend: i'm not sure.
<banisterfiend> oh ok
<banisterfiend> np eithre way
<jasonLaster> I know that job search and then the start of a new job will be consuming
<jasonLaster> it might be one of those things that is on-off for a couple months probably.
<banisterfiend> jasonLaster: we're probably goign to implement the json thing soon
<jasonLaster> but as i said, this has been a great experience, and if I am offline for sometime I'll definitely be back again
sgmac has joined #ruby
<banisterfiend> if not for remote clients, at least because it may make piping around data between commands
<banisterfiend> we really need pipes :)
<jasonLaster> haha - pipes?
<banisterfiend> imagine this: show-method MyClass#my_method | gist
<jasonLaster> well, even moving code out of process seems like a huge win
jgrevich_ has joined #ruby
mmitchell has quit [Ping timeout: 276 seconds]
<chare> let me explain what happened, banisterfiend graduated then girlfriend dumped him, then he got fired, then he started doing drugs and alcohol, then he started cutting his wrist to deal with depression, ...
<jasonLaster> oh - haha that's silly
<banisterfiend> jasonLaster: Yeah
pingfloyd has joined #ruby
chare has left #ruby [#ruby]
<jasonLaster> heading to bed.
<banisterfiend> jasonLaster: no problem
<bluebie> I would like to second that mode!
<banisterfiend> jasonLaster: thanks for your feedback, it's been fun working with you :)
<savage-> bluebie: oops! same issue with ObjectSpace.define_finalizer in https://github.com/Bluebie/legs/blob/master/lib/legs.rb :-)
devdazed has quit [Ping timeout: 240 seconds]
<banisterfiend> jasonLaster: we'll definitely do the json thingy too, it's a good refactor
<bluebie> ah damnit
<bluebie> kk, will fix
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
<bnagy> banisterfiend: surely after 5-6 bans you just leave it on?
thomasfedb has quit [Quit: ZNC - http://znc.sourceforge.net]
<banisterfiend> bnagy: yeah i'll leave it on
<banisterfiend> the guy is a jerk
<jasonLaster> banisterfiend: hopefully i can help with the JSONy thing
<savage-> bluebie: no worries, you use it twice there, btw. no rush.
<jasonLaster> I'll try and pull some of that together tomorrow and saturday
<banisterfiend> cool
<banisterfiend> i gotta go now myself too
<banisterfiend> cyas
banisterfiend has quit [Remote host closed the connection]
<bnagy> o/
<jasonLaster> i think it's an awesome project. seperation while keeping it real
<jasonLaster> u know, not too enterprisey
fearoffish has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 245 seconds]
td123 has quit [Quit: WeeChat 0.3.8]
Banistergalaxy has joined #ruby
devdazed has joined #ruby
voodoofish has quit [Ping timeout: 244 seconds]
benwoody has joined #ruby
coyo has joined #ruby
coyo has quit [Changing host]
coyo has joined #ruby
ryanf has joined #ruby
Taichouchou2 has quit [Remote host closed the connection]
Guest37999 has joined #ruby
scant has quit [Ping timeout: 252 seconds]
SCommette has quit [Quit: SCommette]
Taichouchou2 has joined #ruby
pandop has joined #ruby
<examancer> bluebie: unfortunately the problem has been around since the gem has it looks like, but creating a customized release on rubygems with a slightly different name appears to be a good way to go for now
<examancer> thanks
swistak35 has quit [Ping timeout: 276 seconds]
MetaCosm has quit [Max SendQ exceeded]
<examancer> and now my specs pass :-)
faen has quit [Ping timeout: 276 seconds]
msch has quit [Ping timeout: 276 seconds]
rohit has joined #ruby
sdwrage has joined #ruby
arkiver has joined #ruby
nari has joined #ruby
khakimov has joined #ruby
swistak35 has joined #ruby
situ has joined #ruby
faen has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
Dreamer3 has joined #ruby
mwilson has quit [Disconnected by services]
ryanf has quit [Quit: broken pipes |||]
lukekhamilton has quit [Read error: Connection reset by peer]
voodoofish has joined #ruby
mwilson- has joined #ruby
chimkan_ has quit [Remote host closed the connection]
chimkan_ has joined #ruby
MetaCosm has joined #ruby
yxhuvud has joined #ruby
caveat- has quit [Ping timeout: 276 seconds]
<bluebie> savage-: pushed a new gem :)
caveat- has joined #ruby
situ has left #ruby [#ruby]
rohit has quit [Ping timeout: 252 seconds]
digitalcakestudi has quit [Read error: Operation timed out]
freeayu3 has quit [Read error: Connection reset by peer]
Taichouchou2 has quit [Remote host closed the connection]
freeayu has joined #ruby
a_a_g has joined #ruby
apeiros_ has joined #ruby
burgestrand has joined #ruby
tgriffin2081 has quit [Ping timeout: 260 seconds]
burgestrand has quit [Client Quit]
Muz has quit [Remote host closed the connection]
Muz has joined #ruby
Stalkr_ has joined #ruby
Dreamer3 has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
dotnull has quit [Remote host closed the connection]
msch has joined #ruby
pandop has quit [Ping timeout: 268 seconds]
burgestrand has joined #ruby
tommyvYo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
banisterfiend has joined #ruby
matty5000 has joined #ruby
rohit has joined #ruby
pandop has joined #ruby
tommyvYo has joined #ruby
tommyvYo has joined #ruby
tommyvYo has quit [Changing host]
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
apeiros_ has quit [Remote host closed the connection]
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
davorb has joined #ruby
xaxxon has quit [Quit: This computer has gone to sleep]
d3vic3 has quit [Ping timeout: 240 seconds]
jasonLaster has quit [Remote host closed the connection]
jasonLaster has joined #ruby
d3vic3 has joined #ruby
yakko has quit [Quit: No Ping reply in 180 seconds.]
yakko has joined #ruby
<savage-> bluebie: nice!
Tearan has quit [Quit: Sleepy Badger....]
slashnik has joined #ruby
pandop has quit [Ping timeout: 272 seconds]
pandop has joined #ruby
jasonLaster has quit [Ping timeout: 260 seconds]
slashnik has quit [Client Quit]
tommyvYo has quit [Quit: Computer has gone to sleep.]
a_a_g has quit [Quit: Leaving.]
Stalkr_ has quit [Quit: Leaving...]
locriani has quit [Ping timeout: 245 seconds]
bradhe_ has joined #ruby
yoklov has quit [Quit: computer sleeping]
w400z has joined #ruby
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
mwilson- is now known as mwilson
graspee has joined #ruby
pandop has quit [Ping timeout: 240 seconds]
ringotwo has joined #ruby
zommi has joined #ruby
tagrudev has joined #ruby
insecurlex has quit [Remote host closed the connection]
tonini has joined #ruby
t24060 has quit [Remote host closed the connection]
t77951 has joined #ruby
TPFC-SYSTEM has joined #ruby
emmanuel__ has quit [Ping timeout: 246 seconds]
davorb has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
havenn has joined #ruby
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby
dimday has joined #ruby
matrixise has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
rohit has quit [Quit: Leaving]
walbert has joined #ruby
walbert has quit [Client Quit]
drago757 has quit [Quit: drago757]
burgestrand has quit [Quit: Leaving.]
ananthakumaran has quit [Quit: Leaving.]
freeayu has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
himsin has joined #ruby
matty5001 has joined #ruby
matrixise has quit [Ping timeout: 256 seconds]
jeff_sebring has joined #ruby
nilg has joined #ruby
senny has joined #ruby
matty5000 has quit [Ping timeout: 268 seconds]
wltsmrz has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
darren has quit [Remote host closed the connection]
sgmac has left #ruby [#ruby]
maesbn has joined #ruby
olrrai has joined #ruby
havenn has quit [Remote host closed the connection]
thecreators has joined #ruby
apeiros_ has joined #ruby
bradhe has joined #ruby
* Azure needs people to look at his diceroller implementation, it seems to have at least one bug in it regarding dropping highest/lowest rolls.
djdb has joined #ruby
<Azure> pretty much the whole class at that line and afterwards is all for dropping the highest/lowest rolls.
a_a_g has joined #ruby
<Azure> I think it might be because of my math in high/low_roll.
<apeiros_> Azure: uuuh `results = dice.to_i.times.each_with_object([]) {|roll, result| result << Random.rand(1..faces.to_i) }` - you can have that a lot simpler
bradhe_ has quit [Ping timeout: 260 seconds]
<Azure> Oh?
<Banistergalaxy> Hello apeiros
<apeiros_> hi Banistergalaxy
<Azure> hm.
<apeiros_> results = Array.new(dice.to_i) { |result| Random.rand(1..faces.to_i) }
<apeiros_> whoops
<apeiros_> results = Array.new(dice.to_i) { Random.rand(1..faces.to_i) }
<apeiros_> there, forgot one argument :)
Eldariof-ru has joined #ruby
<Azure> Neat.
<Banistergalaxy> Apeiros whats up
<apeiros_> not much
olrrai has quit [Ping timeout: 276 seconds]
havenn has joined #ruby
<apeiros_> people abusing the bot to spam and thinking that because it was the bot which spammed, they should not be kickbanned…
<apeiros_> I'm sometimes stunned by the absurd logic some people use…
<Azure> Thankfully I don't have to deal with users that have that sort of mentality.
<apeiros_> Azure: you have more of these each_with_object which can be replaced by Array.new or map
<bnagy> yo
<Banistergalaxy> Did you ban that bitch
<bnagy> s=(0..65535).to_a.shuffle.map {|i| i.chr 'utf-16le'}.compact.join
<bnagy> until s.empty?; p s.slice!(-1,1); end
<Banistergalaxy> Eam is a f00
<apeiros_> Banistergalaxy: sure thing
<bnagy> inf loop
<bnagy> o_0
<Banistergalaxy> Lol
maletor has quit [Quit: Computer has gone to sleep.]
<apeiros_> yeah, I quite agree. also funny how he accuses me of kicking/banning just as I like… if it were so, he wouldn't be around anymore…
<Banistergalaxy> I wanna see that log
venkatk_ has joined #ruby
_bart has quit [Quit: _bart]
<apeiros_> wow, I'm really not awake today… I even have to use pry to check whether slice!(-1,1) does what I think it does (pop off the last element)
<apeiros_> meh, scrum - brb
<bnagy> unicode string refuses to be sliced!
venkatk_ has quit [Client Quit]
<bnagy> NO U LEAVE BRO
t77951 has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
t28186 has joined #ruby
<rking> bnagy: Really? That's it? That utf-16le encoded strings won't slice?
Dreamer3 has quit [Remote host closed the connection]
<bnagy> not all of them
Dreamer3 has joined #ruby
<bnagy> if you could test / repro that would be nice
bradhe has joined #ruby
<bnagy> interesting, I can't build that string in mri
<bnagy> can in jruby
azm has quit [Ping timeout: 240 seconds]
coyo has quit [Quit: Heaven is not a place, it's being with people who love you.]
liluo has joined #ruby
liluo_ has quit [Ping timeout: 240 seconds]
mahmoudimus has joined #ruby
<bnagy> and mri doesn't have the infloop
ananthakumaran has joined #ruby
[MAN] has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
arkiver has quit [Remote host closed the connection]
jgrevich has quit [Quit: jgrevich]
twinturbo has joined #ruby
<rking> bnagy: Hrm. I'm not having great success converting to utf16-le
<rking> It seems to be an unknown encoding to my system.
<rking> (I honestly only make everything be UTF8 then hang up my encoding hat.)
<bnagy> are you running ruby 1.2.0 ?
<rking> Hehe, most definitely not.
<rking> Is that somehow implied?
<bnagy> try Encoding.list
<bnagy> well new versions should definitely have it
<rking> #<Encoding:UTF-16LE> is in there.
<bnagy> k
<rking> But when I do 65.chr 'utf16-le' it says: ArgumentError: unknown encoding name - utf16-le
<bnagy> the string won't build for me in MRI cause some of the 0xD... are invalid codepoints
macmartine has joined #ruby
<rking> THen also: ec = Encoding::Converter.new("utf-8", "utf16-le")
<rking> Encoding::ConverterNotFoundError: code converter not found (UTF-8 to utf16-le)
<bnagy> wow
<rking> And finally: [7] pry(main)> 'fü'.encode 'utf16-le'
<rking> Encoding::ConverterNotFoundError: code converter not found (UTF-8 to utf16-le)
chussenot has joined #ruby
<bnagy> try irb
<rking> (Also all of those with dashes before the 16)
arkiver has joined #ruby
<rking> bnagy: You can pry my pry from my cold dead fingers.
<rking> Same results all the way down.
<bnagy> wacky
Taichouchou2 has joined #ruby
<rking> Kinda, yeah. But now this works: "fü".encode Encoding::UTF_16LE
<rking> And .slice!(-1,1) works fine on that.
sebicas has joined #ruby
<bnagy> wth.. do Encoding::UTF_16LE.to_s
<rking> bnagy: Maybe we're from parallel dimensions, and our paths are only crossing because we are both up late and should be asleep?
<bnagy> it's 1246 here, hardly sleepy time
<rking> bnagy: That works fine. It likes the .upcase'ness.
matty5001 has quit [Ping timeout: 272 seconds]
jasonLaster has joined #ruby
indian has quit [Ping timeout: 276 seconds]
<rking> I'm on 1.9.3. I don't know about this API not-accepting Encoding::UTF_16LE.to_s.downcase
<rking> But anyway it does work with .slice!(-1,1)
perryh is now known as perryh_away
<bnagy> what interpreter? mri?
t28186 has quit [Remote host closed the connection]
* rking ~> retreating back to parallel universe theory to explain phenomena.
<rking> Yep.
<rking> Hand coded by Matz himself.
<rking> The great Nippon.
<bnagy> ok. my MRI won't build the string in the first place
<bnagy> yours shouldn't either I hope
<bnagy> s=(0..65535).to_a.shuffle.map {|i| i.chr 'UTF-16LE'}.compact.join
<rking> Why shouldn't it?
<rking> RangeError: invalid codepoint 0xD92E in UTF-16LE
<quazimodo> erm
<bnagy> yeah
<quazimodo> anyone know how to Date to utc
<rking> Hehe, it gets pretty far before finding that invalid char.
<quazimodo> atm im using
<quazimodo> Time.utc(day.year, day.moth, day.day)
<bnagy> rking: well I guess that depends on shuffle :)
<rking> Yeah, just realized that. =)
und3f has joined #ruby
timonv has quit [Remote host closed the connection]
<rking> s=(0.. 0xD7FF).to_a.map {|i| i.chr 'UTF-16LE'}.compact.join ← That works
<rking> Not sure what good `s` is at that point, except maybe for monkeytesting a form or something. =)
rubynoob2 has joined #ruby
TheLZA has quit [Quit: Bye]
<bnagy> I'm poking GDI font rendering
<rking> Aha, cool thing.
<hemanth> browser.radio(:name => 'enableSNMP', :index=> 2).set
<hemanth> can be re-written to some think like browser.radio(:name => 'enableSNMP', RUBY_VERSION =~ /1.9/? :index=> 2 : :index=>1).set
<hemanth> ??
<rubynoob2> anyone here use the ruby object fb_graph ?
<hemanth> opps, sorry! that was meant to in one line
<rking> I always think of the Streets song, "Push things forward" when doing edgy char encoding stuff. </confession>
<hemanth> >
vivek` has joined #ruby
<hemanth> >> puts 'test'
<al2o3cr> (NilClass) nil, Console: test
<hemanth> >> [1,2,3].first
<al2o3cr> (Fixnum) 1
<hemanth> >> [1,2,3].second
<al2o3cr> -e:1:in `eval': undefined method `second' for [1, 2, 3]:Array (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<hemanth> :(
<hemanth> >> [1,2,3].last
<al2o3cr> (Fixnum) 3
<bnagy> hemanth: put the ternary after the key statement
<bnagy> although it's pretty darn ugly :/
jasonLaster has quit [Ping timeout: 276 seconds]
samuel02 has joined #ruby
<hemanth> after the key as in?
<rking> hemanth: Yeah, I'd definitely be like, :index => index_for_this_ruby_version
<bnagy> foo(a: :whatever, b: (test? ? a: b) )
<rubynoob2> here's my problem. I'm using the facebook javascript sdk and the facebook login button a la javascript.. after authentication, facebook user info is in the cookie.. I need to read that info from the http header into ruby session variables. can fb_graph do that?
<hemanth> ha
<hemanth> ok
<rking> (then def index_for_this_ruby_version; RUBY_VERSION =~ /1.9/ ? 2 : 1 end
<rking> )
<hemanth> kool
LouisGB has joined #ruby
<hemanth> trying it now
samuel02 has quit [Remote host closed the connection]
samuel02 has joined #ruby
<rking> rubynoob2: Hrm, kind of a weird puzzle. I'm thinking the cookie would be for a facebook domain, not yours, though.
<rking> So I think browser security would prevent your foo.com/bar.html from knowing about securegarbage.facebook.com's cookies.
<bnagy> hemanth: also, I would probably suggest RUBY_VERSION >= '1.9' unless you have some reason to not be forward compatible
<hemanth> bnagy, that part shall be fixed with $WEBDRIVER in my case ;)
<rking> bnagy: Aha, I didn't even think about lexical comparison.
t1782 has joined #ruby
RubyPanther has joined #ruby
ged has joined #ruby
idoru has joined #ruby
jmcphers has joined #ruby
__class__ has joined #ruby
juarlex_ has joined #ruby
Drewch has joined #ruby
mahlon has joined #ruby
<apeiros_> bnagy: RangeError: invalid codepoint 0xDFBA in UTF-16LE it says…
t1782 has quit [Write error: Broken pipe]
MetaCosm has quit [Changing host]
MetaCosm has joined #ruby
caveat- has quit [Changing host]
caveat- has joined #ruby
t61209 has joined #ruby
ged is now known as Guest23084
xorigin has joined #ruby
<bnagy> apeiros_: yeah, looks like it's a jruby issue
<apeiros_> s=(0..65535).to_a.shuffle.map {|i| begin;i.chr 'utf-16le';rescue RangeError; nil; end}.compact.join; s.length # <-- did that
<rubynoob2> rking, thanks. how about this one. facebook javascript sdk again, but this time, when a user is logged in and does an ajax post, the ajax post sends his user id and a new value to my server. if someone else uses his user id to make a post from some other client, how can I tell if thats a logged in user, or someone else doing a post with a stoken user id?
maletor has joined #ruby
<bnagy> apeiros_: I asked over there if someone can repro, if so I guess I'll file a bug at some point
<apeiros_> bnagy: ok
<bnagy> I can't break what I am trying to break if ruby breaks first :P
<apeiros_> so it's not surprising that it isn't an inf loop here in mri 1.9.3
<vivek`> \leave
<rking> rubynoob2: I could maybe shift gears into talking about this, but it's pretty off-topic for #ruby (and also I'm kind of not in the mood to pinker around with a proprietary API at this moment)
<hemanth> seems like the fix is fine, it's a pretty long run, waiting to see if all is fine
<bnagy> apeiros_: no, confirm no repro on my mri as well
<rking> vivek`: /part
<rubynoob2> oops. sorry my bad. I got carried away
<Hanmac1> apeiros_ you want infinite loop? like enum.cycle?
<apeiros_> Hanmac1: no
Hanmac1 is now known as Hanmac
<apeiros_> Hanmac1: bnagy had (has) a problem
thecreators has quit [Quit: thecreators]
<rubynoob2> thanks and good night!
rubynoob2 has left #ruby [#ruby]
Morkel has joined #ruby
fridim_ has joined #ruby
nexusxp has joined #ruby
MissionCritical has quit [Ping timeout: 260 seconds]
igotnolegs has quit [Quit: Computer has gone to sleep.]
samuel02 has quit [Remote host closed the connection]
arquebus has joined #ruby
adac has joined #ruby
specialGuest has joined #ruby
<Azure> And fixed that high/low error. Made it just use averages for sorting.
jprovazn_away is now known as jprovazn
aganov has joined #ruby
<hemanth> >a=[1,2,3]; p a.first.next
<hemanth> > a=[1,2,3]; p a.first.next
<hemanth> >> a=[1,2,3]; p a.first.next
<al2o3cr> (Fixnum) 2, Console: 2
<hemanth> bnagy, ^ :D
havenn has quit [Remote host closed the connection]
<hemanth> rking, ^^
<Hanmac> hemanth ... but this is not the next you may think of
mrdodo has joined #ruby
<Hanmac> >> a=[3,2,1]; p a.first.next
<al2o3cr> (Fixnum) 4, Console: 4
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<hemanth> Hanmac, oh! than what is it? the next number?
<Hanmac> yeah
<hemanth> >> a=[5,2,1]; p a.first.next
<al2o3cr> (Fixnum) 6, Console: 6
<hemanth> ouch
<hemanth> lol
khakimov has quit [Quit: Computer has gone to sleep.]
<rking> hemanth: I don't follow. =\
<rking> Also I don't get the output format of al2o3cr.
<rking> >> [1, 2]
<al2o3cr> (Array) [1, 2]
<Mon_Ouie> (obj.class) obj.inspect
<rking> Why no Console for me? =(
<Mon_Ouie> That's only when you output something to stdout
<Muz> hemanth: a.first returns a fixnum, you're calling next on tht object, not on the array enumerator.
<rking> Oh oh oh
<rking> AuselessUseOfP
Banistergalaxy has quit [Ping timeout: 256 seconds]
<hemanth> Muz, ya, just noticed
<hemanth> rking, was thinking of using that instead of RUBY_VERSION =~ /1.9/ ? 2 : 1
<Hanmac> hemanth i think you want to look at this ... using Enumerator
<Hanmac> >>a=[1,2,3];a.reverse_each.tap{|e|p e.next;p e.next}
<al2o3cr> (Enumerator) #<Enumerator: [1, 2, 3]:reverse_each>, Console: 3, 2
answer_42 has joined #ruby
thone_ has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
<hemanth> Hanmac, the issue is the array index starts with 0 for watir and 1 for watir-webdriver radio buttons
qwerxy has joined #ruby
hoelzro|away is now known as hoelzro
macmartine has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
MissionCritical has joined #ruby
Advocation has joined #ruby
specialGuest has quit [Ping timeout: 276 seconds]
thone has quit [Ping timeout: 265 seconds]
wobr1 has joined #ruby
freeayu has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
Banistergalaxy has joined #ruby
daniel_hinojosa has joined #ruby
bradhe has joined #ruby
IPGlider has joined #ruby
qwerxy has quit [Quit: offski]
t61209 has quit [Remote host closed the connection]
t25202 has joined #ruby
arquebus has quit [Quit: Konversation terminated!]
shadoi has quit [Quit: Leaving.]
eph3meral has joined #ruby
shogoruby has joined #ruby
cezar_ has joined #ruby
chimkan_ has quit [Quit: chimkan_]
w400z has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
a_a_g has joined #ruby
fabrice31 has joined #ruby
cezar_ has quit [Client Quit]
Monie has quit [Read error: Connection reset by peer]
guns has joined #ruby
<Hanmac> maletor: Ruby-is-not-Rails ... you may look at #rubyonrails
specialGuest has joined #ruby
jeff_sebring has quit [Quit: Leaving]
luckman212_ has joined #ruby
<Hanmac> haha ... apple and samsung BOTH fail at south Korea XD ... as far as i knew BOTH uses patents from each other and the court punish BOTH that they cant sell some of ther products in south Korea anymore XD
<shogoruby> och
<shogoruby> ouch
<maletor> don't you guys have a bot yet to tell people to just to the rails channel?
* Hanmac is this bot
chimkan_ has joined #ruby
sdwrage has quit [Quit: geekli.st/programmer]
<shogoruby> hey.. what if there was a ruby-centric linux distro
Criztian has joined #ruby
chimkan_ has quit [Client Quit]
<bluebie> maybe there's some way we could look at the content of a person's first few messages to the room, and also the content of any webpages they link, and do some sort of rails-spam filtering
<bluebie> rank words, generate a probability output
<shogoruby> instead of lamp.. it will be linux / nginx / passenger / ruby / built in
luckman212 has quit [Ping timeout: 260 seconds]
<bluebie> shogoruby: Is it really that hard to install ruby?
<shogoruby> oh.. and the ruby linux distro will have gem, rvm all built in
<bluebie> rvm is annoying on servers <_<
lae has quit [Quit: leaving]
twigmorewelsh has joined #ruby
<Hanmac> why rvm? my system ruby is on the latest version .... per default
<shogoruby> and also there will be no gui, no php, no mysql, no apache, etc.. no gnome..
chussenot has quit [Quit: chussenot]
<bluebie> if you have to do shared hosting you should do some sort of sandboxing anyway, so just sandbox the site with a particular ruby and let users set it to whichever they want
<shogoruby> hmm.. a nosql should be default in the linux distro.. most ruby guys like mongodb
<bluebie> no mysql?
jbw has quit [Ping timeout: 244 seconds]
<maletor> so does the ruby room hate rails?
<maletor> because the rails room loves ruby
<bluebie> maletor: Just frustrated by confused people asking for help with things which aren't ruby related
<shogoruby> blue, i thought all ruby guys like rvm
lae has joined #ruby
<bluebie> most of us don't know rails well
<maletor> bluebie: well either way, the memory leak is happening on ruby
<maletor> pretty dismissive to say its rails fault
troessner has joined #ruby
<bluebie> shogoruby: rvm is l33t bash hax
<shogoruby> i don't know rails too.. my first is sinatra.. dsl's all the rage... in ruby of course
<maletor> and rbenv isn't?
<bluebie> I don't know rbenv
banisterfiend has joined #ruby
<bluebie> maybe it is?
<Hanmac> maletor: there are guys that learn rails, not ruby first ... and then they come to us an whine that "4.minutes" is not in the std ruby
<bluebie> I wasn't putting it forward as an alternative for servers
<bluebie> the thing about leet bash hax is they don't work if your apps aren't running through bash - and usually passenger opens ruby, not bash :P
<banisterfiend> bluebie: sup blue
<maletor> Hanmac: lol
<bluebie> heya banisterfiend
<banisterfiend> >> Hanmac: Yeah,sometimes your rhetoric against rails is similar to iran's rhetoric against israel
<al2o3cr> -e:1:in `eval': (eval):1: syntax error, unexpected ':', expecting $end (SyntaxError), Hanmac: Yeah,sometimes your rhetoric..., ^, from -e:1:in `<main>'
<shogoruby> i don't get it hehe.. i'm a noob still and I just want to focus on my application.. so if a standard ruby platform was standardized and slimmed out with the essentials.. it would make a nice lean linux distro for ruby web heads
<banisterfiend> >> "Hanmac: Yeah,sometimes your rhetoric against rails is similar to iran's rhetoric against israel"
<al2o3cr> (String) "Hanmac: Yeah,sometimes your rhetoric against rails is similar to iran's rhetoric against israel"
Araxia has joined #ruby
<savage-> maletor: ObjectSpace isn't the best tool to use for tracking down memory leaks. Since you're using REE/1.8, you could check out tools like memprof and oink to help you track down your memory leak.
<shogoruby> nice chatting with ya! look forward to learning more ruby. good night
<maletor> savage-: i'm using oink
<maletor> memprof is broken hard
shogoruby has left #ruby [#ruby]
<maletor> nobody's touched it in 2 years
<maletor> Oink just tells me how many objects are instantiated and it's not that many
BiHi has joined #ruby
<maletor> 500 objects at most over 6h
<savage-> Wow.
<bluebie> how big are the objects tho? are there lots of huge strings with big binary blobs or anything like that?
<savage-> I haven't played with those tools on 1.8. I'm on 1.9 so I have to resort to things like valgrind.
<maletor> no binary blobs
<Hanmac> hoo 500 objects ... i have even more symbols like that :P
<bluebie> sure it's not a heroku bug?
<bluebie> Hanmac: Symbols aren't really objects though are they?
<bluebie> they're more like immediate types I thought
<maletor> I have 50k symbols
Morkel has quit [Quit: Morkel]
<maletor> bluebie: they have assured me about 10x now so if it is, I'm not gonna be happy.
th3hunt has joined #ruby
<bluebie> savage-: sleep
<Hanmac> bluebie, they are mostly objects too ... they can have instance variables ...
znake has joined #ruby
haxrbyte has joined #ruby
<maletor> Hanmac: a symbol can have instance variables? that's crazy awsome
<maletor> also sounds like an exceelent way to run out of memory
<Hanmac> but they cant have singleton_methods
<savage-> s = :x; s.instance_variable_set(:@x, 'hahahaha'); puts s.instance_variable_get(:@x)
<bluebie> require 'activesupport'; @users['savage-'].instance_eval { sleep 7.hours }
<savage-> bluebie: i know i know! lol
<savage-> hahaha
matrixise has joined #ruby
<eph3meral> the rails room hates everything
<maletor> i just hate ree memory bullshit
mrdodo has quit [Remote host closed the connection]
<bluebie> looking at this big glowing screen isn't going to increase your melatonin savage-!
<savage-> ok ok
<Hanmac> i normaly use symbols, where Strings would need MORE memory, and Int Constants looks shitty
<savage-> I have to go to bed.
<bluebie> symbols are objects in the same way as numbers are objects, I thought?
mrdodo has joined #ruby
<bluebie> in that, they aren't, until you start doing objecty things at them and then they magically transform in to one to make that work
<bluebie> maybe I imagined that tho
<Hanmac> bluebie you mean like this? (4).instance_variable_set(:@x,"haha")
<bluebie> yes just like that
<banisterfiend> bluebie: ya they're immediate values so their ivar table is stored externally
jbw has joined #ruby
<maletor> why isn't 4.minutes in stdlib?
<bluebie> banisterfiend: how's that work?
<bluebie> seems all of the 5's of the world have the same set of ivars, and all the 6's have a different set
zigomir has joined #ruby
<banisterfiend> bluebie: they have an exivar (so it's called) hash table that associates the ivar table to the embedded object
<bluebie> there's a hash somewhere to link them up?
<banisterfiend> yeah
<banisterfiend> exactly
<bluebie> maletor: I agree, they should do that, it's a nice gadget
<bluebie> though I think it should be 4.minute because ruby is for japan and japanese doesn't have pluralisation god damn it
<bluebie> rails has to be inconsistent though :)
<Hanmac> bluebie: all the ruby 5's of the world have the same object id
<bluebie> yep! 11!
<savage-> This is fun: 5.instance_variable_set(:@x, 100); puts (1+4).instance_variabel_get(:@x)
<rking> savage-: Hehe. I like it.
<bluebie> okay I've decided - I'm going to store all of my global variables inside of nil's exivars
quazimodo has quit [Ping timeout: 246 seconds]
twigmorewelsh has quit [Ping timeout: 272 seconds]
<banisterfiend> hehe
<bluebie> nil[:ENV] oh yes.
<savage-> hahha\
<bluebie> this'll do nicely
<bluebie> ruby provides so many great ways to obfusicate :D
elaptics`away is now known as elaptics
quazimodo has joined #ruby
<savage-> OH on twitter: "Lance Armstrong takes drugs and wins the hardest bike race in the world 7 times. Programmers take drugs and what do we get? Node.js."
twigmorewelsh has joined #ruby
<hoelzro> savage-: link?
<hoelzro> I'd love to RT that
<rking> Haha
<hoelzro> much obliged =)
<rking> Which drugs were involved with Node?
<hoelzro> depending on how you look at it, the really good ones.
<hoelzro> ;)
<bluebie> drugs aye?
<bluebie> so that's the secret to success!
<bluebie> brb drugs
<savage-> lol
timonv has joined #ruby
<bluebie> WOAH that's very exciting.
<bluebie> Everything is much easier now!
<bluebie> Look at how quickly I'm making these bugs!
<bluebie> Feeling very productive now. MMmm drugs.
<banisterfiend> bluebie: let's smoke a bowl
<bluebie> banisterfiend: sure let me just get my vodka filled shoe first tho
<bluebie> hey guys
<bluebie> are we cool now?
lxsameer has joined #ruby
und3f has quit [Ping timeout: 260 seconds]
<bluebie> I've always wanted to be cool
<lxsameer> how can i use gem just to DOWNLOAD the gems
robotmay has joined #ruby
flype has joined #ruby
<banisterfiend> hehe chare is begging me to unban him in pvt
<bluebie> heh
<bluebie> let him play in ruby-lang
<Hanmac> ixsameer: gem fetch ?
<bluebie> Hanmac: Nice job with gem help commands!
vlad_starkov has joined #ruby
nilg has quit [Remote host closed the connection]
ctwiz has joined #ruby
xorigin has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
wallerdev has quit [Quit: wallerdev]
sebicas has left #ruby [#ruby]
peterhellberg has joined #ruby
ly_gs has joined #ruby
xorigin has joined #ruby
limes has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
janoli has quit [Read error: Connection reset by peer]
janoli has joined #ruby
chussenot has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
bluebie has quit [Quit: Linkinus - http://linkinus.com]
cespare has quit [Read error: Operation timed out]
cespare has joined #ruby
kedare has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
ly_gs has quit [Remote host closed the connection]
ly_gs has joined #ruby
mneorr has joined #ruby
lukekhamilton has joined #ruby
znake has quit [Quit: znake]
<lxsameer> how can i force gem to use a Gemfile?
und3f has joined #ruby
freeayu__ has joined #ruby
<Hanmac> ixsameer what do you mean?
Taichouchou2 has quit [Remote host closed the connection]
<lxsameer> Hanmac: i want to download all the gems inside a Gemfile
freeayu has quit [Ping timeout: 265 seconds]
<Hanmac> did you try to read "gem help fetch"?
areil has joined #ruby
<lxsameer> Hanmac: i know about gem fetch but, i don't know how to use a gemfile
wallerdev has joined #ruby
M- has quit [Quit: This computer has gone to sleep]
<Hanmac> with gemfile do you mean the "*.gem" file or the "Gemfile" gemfile? the second one is a bundler job
ephemerian has joined #ruby
banisterfiend has joined #ruby
nilg has joined #ruby
<lxsameer> Hanmac: aha, how can i do like gem fetch with bundle
<Hanmac> i dont know 1) i never used bundler, 2) i still dont know that you are wanting todo ... but you can try to repeat the question at #bundler
<savage-> good night!!!!
ph^ has joined #ruby
ringotwo has quit [Remote host closed the connection]
xbayrockx has joined #ruby
banisterfiend has quit [Remote host closed the connection]
lukekhamilton has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
Eldariof59-ru has joined #ruby
tonini has quit [Remote host closed the connection]
<peterhellberg> lxsameer: If you have a Gemfile in the current directory then you install the gems using the command: bundle
Eldariof-ru has quit [Ping timeout: 252 seconds]
<Hanmac> peterhellberg he want to download not to install ...
<lxsameer> thanks
chussenot has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 252 seconds]
chussenot has joined #ruby
<vivek`> \quit
vivek` has quit [Quit: leaving]
qwerxy has joined #ruby
Vert has joined #ruby
banisterfiend has joined #ruby
TheLZA has joined #ruby
nilg has quit [Remote host closed the connection]
nilg has joined #ruby
nari has quit [Ping timeout: 245 seconds]
nari has joined #ruby
pskosinski has joined #ruby
dhruvasagar has joined #ruby
dimday has quit [Remote host closed the connection]
yakko has quit [Ping timeout: 276 seconds]
chussenot has quit [Quit: chussenot]
chussenot has joined #ruby
<quazimodo> is this :foo, :bar notation a raails thing?
<quazimodo> i dont see it much in the ruby tutorials, but its super common in rails
<peterhellberg> quazimodo: We need more context than that
<quazimodo> peterhellberg: i see stuff being passed to methods as :foo => "bar" pairs a lot
Eldariof59-ru has quit []
<peterhellberg> Yes, that is normal… it’s just a Hash
<Muz> That's just a symbol being used a a key in a hash.
<Muz> When passing arguments, if the last argument is a hash you can omit the braces.
chussenot_ has joined #ruby
chussenot_ has quit [Remote host closed the connection]
<peterhellberg> quazimodo: In Ruby 1.9 we also have this syntax for hashes with Symbol keys: foo: 'bar', baz: 'quux'
<Muz> def foo(your, mum ={}); return true; end; foo("something", :this => "is", :a => "argument")
chussenot_ has joined #ruby
chussenot has quit [Read error: No route to host]
chussenot_ is now known as chussenot
<quazimodo> right
sterex has joined #ruby
<quazimodo> peterhellberg: so :foo => 'bar' is synonymous for foo: 'bar' ?
<peterhellberg> quazimodo: yes
gtuckerkellogg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Taichouchou2 has joined #ruby
pdelgallego has joined #ruby
limes has quit [Quit: limes]
Xeago has joined #ruby
<vlad_starkov> Question: Is it a good practice to implement polymorphic association in every model for reason to make app simple to maintain and develop in the future?
binaryplease has joined #ruby
wallerdev has quit [Quit: wallerdev]
virunga has joined #ruby
<banisterfiend> vlad_starkov: ask on #rails
dekroning has joined #ruby
<troessner> and that's also a big NO vlad_starkov
<troessner> just to make sure you don't do that
<troessner> :)
pdelgallego has quit [Quit: pdelgallego]
LorentzFactor has joined #ruby
t25202 has quit [Remote host closed the connection]
charliesome has joined #ruby
t34364 has joined #ruby
yasushi has joined #ruby
fyolnish_ has quit [Remote host closed the connection]
shiki has quit [Remote host closed the connection]
pdelgallego has joined #ruby
<vlad_starkov> troessner: why not?
pdelgallego has quit [Remote host closed the connection]
<troessner> vlad_starkov, well, because it's premature optimization which is the root of all evil. the rails channel can probably list like 1000 more reasons like performance and readability..:)
pingfloyd has quit [Quit: pingfloyd]
tk__ has joined #ruby
<Xeago> what is a polymorphic association?
<vlad_starkov> troessner: no one answered in #Rails channel so far :-)
thomasfedb has joined #ruby
workmad3 has joined #ruby
apacala has joined #ruby
thomasfedb has quit [Client Quit]
lxsameer has quit [Ping timeout: 276 seconds]
apacala has quit [Remote host closed the connection]
<troessner> vlad_starkov, well, I did..:)
<troessner> just don't do it, end of story
pdelgallego has joined #ruby
<troessner> :/
<LorentzFactor> heh...
<vlad_starkov> troessner: thank you
pdelgallego has quit [Read error: Connection reset by peer]
<troessner> np
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
iori has joined #ruby
Criztian has quit []
berserkr has joined #ruby
lateau has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
kedare has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
flori has quit [Ping timeout: 252 seconds]
<LorentzFactor> Is there any difference between using . and :: , such as minor precedence or are they completely synonymous?
lateau has joined #ruby
<bnagy> they're entirely different
<Mon_Ouie> Foo.Bar is a method call, Foo::Bar is a constant lookup
<LorentzFactor> ah
<Mon_Ouie> But foo.bar and foo::bar are the same things
flori has joined #ruby
<Mon_Ouie> And Foo::Bar() or Foo::Bar argument are method calls too
<LorentzFactor> hrm... coming from perl this is going to hurt... :p
<LorentzFactor> ahhh, casing..
<Mon_Ouie> Constants have to start with an uppercase letter
ctwiz has quit [Quit: ttfn!]
<LorentzFactor> k.
Morkel has joined #ruby
<banisterfiend> Mon_Ouie: wanna watch a scifi movie?
<banisterfiend> Mon_Ouie: here http://www.sockshare.com/file/3S2PMRQTPTOL#
<Hanmac> there are methods too that start with uppercase, but this NEED an () or an " argument " like
<Hanmac> >> defined?(Float)
<al2o3cr> (String) "constant"
<Hanmac> >> defined?(Float())
<al2o3cr> (String) "method"
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<LorentzFactor> ah I see..
<acies> Is there a method in ruby to generate an array of integers in a given range? I thought there was one, but I can't find it again
<matti> banisterfiend, Mon_Ouie: Sirs. Hello.
<JonnieCache> acies: (1..100).to_a
<banisterfiend> acies: rand(10..100)
<banisterfiend> oh
<acies> Great. thanks
<Hanmac> this works too: 1.upto(100).to_a
cascalheira has joined #ruby
<banisterfiend> Mon_Ouie: transducez-vous http://www.youtube.com/watch?v=QjTGz8flFkM&feature=youtu.be
<Mon_Ouie> 'alut matti
<Hanmac> or when you only want the odd numbers: 1.step(100,2).to_a
lxsameer has quit [Ping timeout: 276 seconds]
<matti> acies: Ruby implements routine from Debian community.
<Mon_Ouie> banisterfiend: If he does it, he's the best / omg he's gonna do it / omg he did it
himsin has quit [Quit: Leaving]
<banisterfiend> Mon_Ouie: thanks monny :)
<banisterfiend> Mon_Ouie: how do u say 'omg' en francais?
nexusxp has quit [Quit: nexusxp]
<JonnieCache> matti: thats how the ps3 was cracked. sony hardcoded a random number into the encryption routine
<Mon_Ouie> Literally? Oh mon Dieu
<bnagy> putain
<Mon_Ouie> ^ that's in practice
<bnagy> or putain de bordel de merde :P
<bnagy> actually that's not really the same vibe (the second one)
<banisterfiend> Mon_Ouie: what does putain mean exaxctly
fermion has joined #ruby
<Mon_Ouie> Whore
<matti> JonnieCache: LOL, I did not know that ;]
<matti> banisterfiend: s/Whore/Cam Girl/
<banisterfiend> /kick Mon_Ouie no swearing!! too far this time, Mon_Ouie, too far!
<matti> ;d
<banisterfiend> :P
<matti> ;D
<banisterfiend> hehe
thomasfedb has joined #ruby
thomasfedb has quit [Remote host closed the connection]
lxsameer has joined #ruby
shiki has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
clocKwize has joined #ruby
luist has joined #ruby
autoexec has quit [Ping timeout: 260 seconds]
specialGuest has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
Foxandxss has joined #ruby
autoexec has joined #ruby
twinturbo has quit [Quit: twinturbo]
t34364 has quit [Remote host closed the connection]
t311 has joined #ruby
jjang has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
<JonnieCache> matti: here is the presentation http://www.youtube.com/watch?v=DUGGJpn2_zY
Liothen has quit [Remote host closed the connection]
<JonnieCache> its very interesting if you want to know how a modern video games console is architected
<JonnieCache> also the part where they explain the actual exploit is pretty funny
lxsameer has quit [Quit: Leaving]
sterex has quit [Quit: sterex]
joephlius has quit [Quit: WeeChat 0.3.8]
sterex has joined #ruby
sterex has quit [Client Quit]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
seanstickle has joined #ruby
Squarepy has joined #ruby
x0F_ is now known as x0F
<JonnieCache> ooh apparent the chaos communication congress has moved to hamburg
<JonnieCache> hopefully thats means we wont have to write bots in order to get tickets now
<banisterfiend> JonnieCache: do u hae a ps3
<banisterfiend> have
<JonnieCache> no, i have a wii. uncracked, and as of yet, unplayed
<banisterfiend> oh ok
Guest37999 is now known as Jackneill
Jackneill has quit [Changing host]
<JonnieCache> im waiting for various cables to arrive from ebay, because i dont have a tv to plug it into
Jackneill has joined #ruby
<Muz> Haven't you been waiting for those cables for weeks now?
SeySayux has quit [Remote host closed the connection]
<JonnieCache> i accidentally ordered some of them from china
specialGuest has joined #ruby
<Muz> Heh.
<JonnieCache> its not really a problem, ive beenwaiting years to play the new games a week or two wont make a difference
Squarepy has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
<banisterfiend> JonnieCache: which games u wanna play
specialGuest has quit [Ping timeout: 240 seconds]
<JonnieCache> i have the new zelda and metroid prime 3. those are the two things that obsessed me as a child, game-wise, so i have a strong urge to play the new ones
<JonnieCache> apparently the new zelda in particular is very good.
<JonnieCache> beyond that, i hear the mario galaxy games are good
kyb3r has joined #ruby
<JonnieCache> you into games much?
<banisterfiend> nah
<banisterfiend> i've been playing a bit of mario kart wii on my imac
yasushi has quit [Ping timeout: 240 seconds]
<banisterfiend> and i tried to play mario galaxy, but i'll probalby have to go out and buy a wiimote for that
SeySayux has joined #ruby
<JonnieCache> oh yeah you were saying about mario kart. are you playing that on an emulator then?
<banisterfiend> Yep
_whitelogger has joined #ruby
Zol has joined #ruby
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nopper has quit [Excess Flood]
<JonnieCache> very interesting piece. byuu has some other similar articles on his homepage
<banisterfiend> no
<banisterfiend> cool
_iori_ has joined #ruby
dominikh has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
tekacs has joined #ruby
Jck_true has quit [Read error: Operation timed out]
himsin has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
yasushi_ has joined #ruby
aristidesfl has joined #ruby
<aristidesfl> regex operator
Banistergalaxy has quit [Ping timeout: 264 seconds]
<aristidesfl> 2
<aristidesfl> alphanumeric right?
fred has joined #ruby
<aristidesfl> shevy tks
ereslibre_laptop has joined #ruby
S1kx has joined #ruby
<shevy> sorry, I fail at parsing your question right now
<Mon_Ouie> Strings and regexps are one example of pattern matching; other classes that implement it are Gem::Dependency, Symbol, and REXML's node class
<shevy> puts 'yup, string includes an a' if "abc" =~ /a/
yasushi has joined #ruby
<aristidesfl> shevy w matches what?
BRMatt has quit [Quit: ZNC - http://znc.sourceforge.net]
<shevy> aristidesfl for regex
ereslibre_laptop has joined #ruby
<aristidesfl> what does this operator mean? =~
<JonnieCache> it generally means "matches"
<aristidesfl> w
<shevy> /\w+/ and so on
<shevy> hmm?
thunderstrike has joined #ruby
S1kx has joined #ruby
<Mon_Ouie> Or just pattern matching in general
<shevy> there are codes you can use in your regex
<aristidesfl> and w matches?
ereslibre has quit [Client Quit]
iori has quit [Ping timeout: 276 seconds]
mneorr has quit [Quit: Leaving.]
yasushi_ has quit [Read error: Connection reset by peer]
<Hanmac> or /[[:alnum:]]+/
<shevy> "abc def" =~ / (\w+)/
<shevy> $1 # => "def"
<Dreamer3> ok
tekacs has quit [Ping timeout: 246 seconds]
Whoop has quit [Ping timeout: 244 seconds]
<Hanmac> i mostry prefer MatchData objects
<aristidesfl> shevy what if "abc_def" =~ / (\w+)/
<shevy> aristidesfl http://www.regular-expressions.info/ explains it
<shevy> aristidesfl then you have to build your regex differently
<shevy> like make _ optional
<shevy> I think you can do this via |
<Hanmac> i dont trust the $1 variables
<shevy> aristidesfl, look at http://rubular.com/ - you can test your regex online there
<shevy> \w Any word character (letter, number, underscore)
<banisterfiend> JonnieCache: let's watch this http://www.sockshare.com/file/3S2PMRQTPTOL#
<shevy> AND it has a quick ref :P
<JonnieCache> Hanmac: $1 is useful when writing simple parsers with switch/case
<banisterfiend> JonnieCache: you heard of it?
Gadgetoid has quit [Ping timeout: 276 seconds]
<banisterfiend> apparently it's a bit of a cult classic
<JonnieCache> nope
yasushi has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
nopper has joined #ruby
vaicine has quit [Quit: Lost terminal]
iori has joined #ruby
shiki has quit [Remote host closed the connection]
ereslibre_laptop has quit [Quit: No Ping reply in 180 seconds.]
AwesomeGarethMan has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
<shevy> when I include a module called Foo in a class
yasushi has quit [Read error: Connection reset by peer]
<shevy> how can I trigger some method calls in this event?
yasushi has joined #ruby
<shevy> something like "if module Foo is mixed into a class, call method bla() from that module"
<aristidesfl> what is the @ symbol?
tekacs has joined #ruby
<shevy> and instance variable
<shevy> class Foo; def initialize; @foo = 5; end; end; require 'pp'; pp Foo.new.instance_variables
_iori_ has quit [Ping timeout: 260 seconds]
yasushi has quit [Read error: Connection reset by peer]
yasushi_ has joined #ruby
<Mon_Ouie> def self.included(by); puts "#{by} included #{self}"; end
<JonnieCache> shevy: there is an included callback that you can define on module
<shevy> oh cool
<JonnieCache> like Mon_Ouie says :)
ereslibre has quit [Client Quit]
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
<JonnieCache> banisterfiend: i do enjoy a cult classic though thanks for the suggestion
robbyoconnor has joined #ruby
<Hanmac> shevy there is an "extended" lookup too ... and an "inherited"
yasushi_ has quit [Read error: Connection reset by peer]
moshee has quit [Ping timeout: 260 seconds]
yasushi has joined #ruby
<shevy> hmm
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
heftig has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
<banisterfiend> JonnieCache: what country code is '.ra' ?
yasushi has joined #ruby
yasushi_ has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
<banisterfiend> does anyone know?
<JonnieCache> no idea
<tagrudev> google ra country code
<tagrudev> republic argentina :)
BiHi has quit [Quit: Computer has gone to sleep]
yasushi_ has quit [Read error: Connection reset by peer]
kvirani has joined #ruby
yasushi has joined #ruby
zii has quit [Ping timeout: 246 seconds]
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
<bnagy> eh?
<bnagy> argentina is .ar
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
mneorr has joined #ruby
virunga has joined #ruby
lateau has quit [Quit: Leaving.]
pdelgallego has joined #ruby
<Muz> .ra isn't a TLD according to the canonical source of all information, Wikipedia.
seanstickle has quit [Quit: seanstickle]
<bnagy> ohh I see. banisterfiend is trolling :)
ephemerian has quit [Quit: Leaving.]
freeayu__ has quit [Ping timeout: 276 seconds]
fridim_ has quit [Quit: Quitte]
<tagrudev> ;]
<Hanmac> bnagy its Friday ... banister always trolls on Fridays
t97393 has quit [Remote host closed the connection]
<Muz> Is it limited to just Fridays? :p
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
t29826 has joined #ruby
<Hanmac> Muz i dont say that :D
yasushi has quit [Remote host closed the connection]
mneorr has quit [Quit: Leaving.]
Whoop has joined #ruby
pdelgallego has quit [Quit: pdelgallego]
<shevy> it's not only the trolling, it's the stupid PRIVMSG spamming he does
kyb3r has quit []
<banisterfiend> >> "Shevy, as opposed to a general stupidity about anything and everything, especially programming: which is what you do :P"
<al2o3cr> (String) "Shevy, as opposed to a general stupidity about anything and everything, especially programming: which is what you do :P"
freeayu__ has joined #ruby
mneorr has joined #ruby
dpk has joined #ruby
<quazimodo> these sources on ruby-doc.org, they are c eh?
* quazimodo looks carefuly
<JonnieCache> sources for the methods which are part of the of core ruby will be written in c
dubios has quit [Ping timeout: 252 seconds]
_bart has quit [Quit: _bart]
justinmcp has joined #ruby
<shevy> stop with the horsep0rn spam banisterfiend
d3vic3 has quit [Ping timeout: 252 seconds]
dubios has joined #ruby
<banisterfiend> i'm not sending horse porn to anyone...
<TTilus> oh my
<TTilus> >> 1+1
<al2o3cr> (Fixnum) 2
<TTilus> \o/
d3vic3 has joined #ruby
Araxia has quit [Quit: Araxia]
<TTilus> al2o3cr: you know, you are deeply evaluateful bot
ephemerian has joined #ruby
adac has quit [Read error: Operation timed out]
mfridh has joined #ruby
JStoker has joined #ruby
<Xeago> >> nil.to_i
<al2o3cr> (Fixnum) 0
<Xeago> >> [1].to_i
<al2o3cr> -e:1:in `eval': undefined method `to_i' for [1]:Array (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<Xeago> blurg, why doesn't to_i on arrays evaluate to_i on each item >.<
<Xeago> [1].map.to_i
<Xeago> >> [1].map.to_i
<al2o3cr> -e:1:in `eval': undefined method `to_i' for #<Enumerator: [1]:map> (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<JonnieCache> >> [1].map(&:to_i)
<al2o3cr> (Array) [1]
<Xeago> was just googling for symbol to proc syntax...
<Xeago> always forget if it is () or {}
<JonnieCache> youre just passing a proc in as a parameter, so its ()
<Xeago> tbh, I have no idea what a proc is
locriani has quit [Remote host closed the connection]
<Xeago> only doing ruby for 3 days now.. come from all languages that have a c in them..
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
<shevy> Xeago, typically you capture something with a proc object, then apply the method .call on it lateron
<TTilus> Xeago: you can think of proc as lambda
<shevy> proc = Proc.new { 666 }
<JonnieCache> ah. a proc, short for procedure, is basically a function that is hanging around on its own, inside a variable
<shevy> proc.call # => 666
<JonnieCache> as opposed to being attached to an object or other namespace
<TTilus> JonnieCache: essentially
<Hanmac> Xeago ... information: you could use C or C++ to make your ruby stuff faster ... (or use an binding that binds a C++ lib into ruby)
<Xeago> am not worried about the speed of ruby, just about my experience with it?
<shevy> Xeago () is always used for methods, {} can mean hash or block syntax
<Xeago> remove the questionmark
<Xeago> but map accepts a block afaik xD
<TTilus> JonnieCache: there are whole a lot of details, but them aside, its a "free" function
<shevy> object.call_this_method_here() {|foo| do_something_with(foo) }
<shevy> Xeago all methods in ruby accept one block
<shevy> you can yield to the content of the block via: yield if block_given?
<Xeago> ruby-doc, doesn't list an argument for map..
<Hanmac> object.call_this_method_here(&method(:do_something_with))
<JonnieCache> TTilus: i was simplifying :) but tbh im not familiar with most of the details either
<Mon_Ouie> Xeago: All those that have a C in them? Like OCaml, COBOL, AppleScript, Common lisp, Coffee Script or Clojure?
<Xeago> erhm, except ocaml, yes
<Xeago> :)
<JonnieCache> i couldnt tell you the difference between a proc and a lambda for example
<shevy> lambda is a method in ruby or?
jenrzzz has joined #ruby
<Xeago> have never heard of ocaml tbh
<Mon_Ouie> shevy: It is
<Xeago> seen lambda, I think it stores something for later execution in a different scope
<Xeago> or something
<shevy> ocaml is the language of the camels
<hoelzro> I thought Perl was =P
<JonnieCache> ocaml is some super duper futuristic language for nerds and academics. the only people who use it practically are finanical wonks
<shevy> perl is the language of the dinosaur
<Hanmac> JonnieCache: its the difference what todo then the given parameter count dont match the wanted block-arg-count
<hoelzro> well, the raptor.
<shevy> well ok it has the camel logo
<Mon_Ouie> It has a pretty active community here
<shevy> ruby has no animal logo :(
<Xeago> enough offtopicness, what's lambda?
<Mon_Ouie> An anonymous function — and also, in this case, a closure
luist has quit [Quit: luist]
daidoji has quit []
<Hanmac> >> pr = proc {|e| p e};pr.call
<al2o3cr> (NilClass) nil, Console: nil
<Hanmac> >> pr = lambda {|e| p e};pr.call
<al2o3cr> -e:1:in `eval': wrong number of arguments (0 for 1) (ArgumentError), from (eval):1:in `call', from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<Hanmac> thats the diff between proc and lambda
<Mon_Ouie> Also return behaves differently
<Mon_Ouie> >> proc { return 3 }.call
<al2o3cr> -e:1:in `eval': unexpected return (LocalJumpError), from (eval):1:in `call', from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<Hanmac> ok this too
<Mon_Ouie> >> lambda { return 3 }.call
<al2o3cr> (Fixnum) 3
<Xeago> so I was right that lambda executes it in the scope that it is actually .call'd from
linoj has joined #ruby
<Xeago> yay, I am less stupid than yesterday
adac has joined #ruby
<JonnieCache> its mainly used in practice to specify a fucntion and then "save it for later"
<JonnieCache> the prime example is registering a callback
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<Xeago> btw, anyone know how to access system gems when using bundler? Got a require in my .irbrc, that is not in my gemfile, but still want to use it
<Xeago> can I capture rubygems' require somehow?
<shevy> capture?
<shevy> you can use begin/rescue
<hoelzro> I'm guessing Xeago means "hook into it"
<Xeago> capture as in, store a reference to the require that rubygems provides, before it gets overridden by bundler
<JonnieCache> bundler works by setting the load paths so i dont think you can require stuff from outside the gemfile once bundler has been loaded
<JonnieCache> it doesnt override require
<Mon_Ouie> Depends on how bundler redefines require
<Mon_Ouie> Which it does
<JonnieCache> oh ok
<JonnieCache> i thought it was only about load paths?
yasushi has joined #ruby
Araxia has joined #ruby
<Mon_Ouie> If it creates an alias with the implementation from rubygems you can just use that method name instead
qwerxy has quit [Ping timeout: 240 seconds]
freeayu has joined #ruby
<Xeago> >> Gem.require 'foo'
<al2o3cr> -e:1:in `eval': private method `require' called for Gem:Module (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
freeayu__ has quit [Ping timeout: 248 seconds]
<Xeago> I guess I can just access that somehow right?
<Xeago> >> Gem.methods.sort
<al2o3cr> (Array) [:!, :!=, :!~, :<, :<=, :<=>, :==, :===, :=~, :>, :>=, :__id__, :__send__, :_deprecated_activate, :_deprecated_activate_dep, :_deprecated_activate_spec, :_deprecated_all_load_paths, :_deprecated_available?, :_deprecated_cache, :_deprecated_cache_dir, :_deprecated_cache_gem, :_deprecated_default_system_source_cache_dir, :_deprecated_default_user_source_cache_dir, :_deprecated_latest_load_paths, :_deprecated_promote_load_path, ...
<al2o3cr> ... :const_defined?, :const_get, :const_missing, :const_set, :constants, :datadir, :default_bindir, :default_dir, :default_exec_format, :default_path, :default_rubygems_dirs, :default_sources, :default_system_source_cache_dir, :default_user_source_cache_dir, :define_singleton_method, :deflate, :dir, :display, :dup, :ensure_gem_subdirectories, :enum_for, :eql?, :equal?, :extend, :find_files, :freeze, :frozen?, :gunzip, :gzip, :hash, :host, :host=, :include?, ...
<al2o3cr> ... :_deprecated_required_location, :_deprecated_searcher, :_deprecated_source_index, :activate, :activate_dep, :activate_spec, :all_load_paths, :all_partials, :ancestors, :autoload, :autoload?, :available?, :bin_path, :binary_mode, :bindir, :cache, :cache_dir, :cache_gem, :class, :class_eval, :class_exec, :class_variable_defined?, :class_variable_get, :class_variable_set, :class_variables, :clear_paths, :clone, :config_file, :configuration, :configuration=, ...
<al2o3cr> ... :loaded_path?, :loaded_specs, :location_of_caller, :marshal_version, :method, :method_defined?, :methods, :module_eval, :module_exec, :name, :nil?, :object_id, :path, :paths, :paths=, :platforms, :platforms=, :post_build, :post_build_hooks, :post_install, :post_install_hooks, :post_reset, :post_reset_hooks, :post_uninstall, :post_uninstall_hooks, :pre_install, :pre_install_hooks, :pre_reset, :pre_reset_hooks, :pre_uninstall, :pre_uninstall_hooks, ...
<al2o3cr> ... :included_modules, :inflate, :initialize_clone, :initialize_dup, :inspect, :instance_eval, :instance_exec, :instance_method, :instance_methods, :instance_of?, :instance_variable_defined?, :instance_variable_get, :instance_variable_set, :instance_variables, :is_a?, :kind_of?, :latest_load_paths, :latest_rubygems_version, :latest_spec_for, :latest_version_for, :load_env_plugins, :load_path_insert_index, :load_plugin_files, :load_plugins, :load_yaml, ...
<al2o3cr> ... :required_location, :respond_to?, :respond_to_missing?, :ruby, :ruby_engine, :ruby_version, :searcher, :send, :singleton_class, :singleton_methods, :source_index, :sources, :sources=, :suffix_pattern, :suffixes, :taint, :tainted?, :tap, :time, :to_enum, :to_s, :trust, :try_activate, :ui, :unresolved_deps, :untaint, :untrust, :untrusted?, :use_paths, :user_dir, :user_home, :win_platform?]
<al2o3cr> ... :prefix, :private_class_method, :private_constant, :private_instance_methods, :private_method_defined?, :private_methods, :promote_load_path, :protected_instance_methods, :protected_method_defined?, :protected_methods, :public_class_method, :public_constant, :public_instance_method, :public_instance_methods, :public_method, :public_method_defined?, :public_methods, :public_send, :read_binary, :refresh, :remove_class_variable, :report_activate_error, ...
<Mon_Ouie> require is Kernel#require
v0n has joined #ruby
<Xeago> but I want rubygems' require
qwerxy has joined #ruby
<JonnieCache> yeah. youre heading into the realms of "maybe i should think again" though
<Mon_Ouie> Rubygem's require is Kernel#require
<Xeago> I want to load irb_rocket for use within bundle exec padrino console
<banisterfiend> Xeago: ha, i think i remember you from stackoverflow
<banisterfiend> Xeago: you still haven't filed an issue on pry project to implement irb_rocket :)
<Xeago> yea, asked it there aswell
<JonnieCache> personally i would just put it in the gemfile and make do with that one inefficiency, than start patching bundler/rubygems
<Xeago> it's what I am going to do if I giveup..
<Xeago> but I am stubborn, and I learn ruby this way :)
<JonnieCache> yeah it is a good way to learn thats true
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
yasushi has quit [Ping timeout: 276 seconds]
<Hanmac> for some reason i dont like bundler ... ;/
jrajav has joined #ruby
<Xeago> banisterfiend: got the text typed, but padrino-pry was a bit hacky here
<Xeago> did mail to padrino's mailing list to request the release of their support for pry
bluenemo has quit [Ping timeout: 252 seconds]
<shevy> or perhaps don't use bundler :P
theRoUS has joined #ruby
<Xeago> actually, I am converting code from 1.8.7 to 1.9.something
<Xeago> the gems differ between them :\
d3vic3 has quit [Ping timeout: 268 seconds]
<shevy> I did that about half a year ago, the most annoying part is the change to Encoding
<Hanmac> Xeago just update to 1.9, 1.8 is already dead, but not buried
<Xeago> 95% of the tests are passing here, just weeding
<Xeago> production was running 1.8.2
<Xeago> dev's were 1.8.7
<Xeago> but we're hopping to 1.9
<Hanmac> 1.8.2? are you still using stone-plates for your code?
<Xeago> converting code is my internship assignment
<Xeago> last thing I do before I get my bachelor
dpk has quit [Quit: Asleep at the keyboard.]
<shevy> <Xeago> only doing ruby for 3 days now
<shevy> hehe you doing the big things quickly
<Xeago> define big?
<shevy> 3 days ruby, and already porting 1.8 to 1.9
<shevy> AND updating tests
<Xeago> it's my first thing in ruby
linoj has quit [Read error: Connection timed out]
<JonnieCache> sounds like you know what youre doing with programming generally though
<Xeago> it's like going from c#/.net 2.0 to use all nice language features from 4.5/5
<Xeago> been coding since I was 8, 20'ish now
poga has joined #ruby
<Xeago> not sure
<Xeago> >> Time.now - 1992.years
<al2o3cr> -e:1:in `eval': undefined method `years' for 1992:Fixnum (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<Xeago> >> 2012 - 1992
<al2o3cr> (Fixnum) 20
<Xeago> yea 20
cantonic has joined #ruby
<Xeago> :)
<Hanmac> when i was small i coded on an 386er Win3.1 pc using QBasic
_bart has joined #ruby
<JonnieCache> QBASIC FOR THE WIN.
d3vic3 has joined #ruby
<JonnieCache> those were the days
<Xeago> hmm, I guess my statement before was wrong
<Xeago> or is Basic the same as QBASIC, or comparable?
<JonnieCache> qbasic was some microsoft version of basic
<JonnieCache> it was just basic i doubt there were serious differences
virunga has quit [Remote host closed the connection]
<Xeago> aight, than i'm still safe xD
<jrajav> >> Time.now.years - Time(1992).years
<al2o3cr> -e:1:in `eval': undefined method `years' for 2012-08-24 11:48:09 +0000:Time (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<jrajav> :O
<JonnieCache> Xeago: 1992.years is a rails (actually activesupport) thing
<_bart> let's say I have [{:a=>"boeee", :b=>"2"}, {:a=>"dadada", :b=>"doedoe"}]
<_bart> how do I get an array with all the :a values?
<jrajav> >> Time.now.year - Time(1992).year
<al2o3cr> -e:1:in `eval': undefined method `Time' for main:Object (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<Xeago> was googling for where it came from
<Hanmac> >>[{:a=>"boeee", :b=>"2"}, {:a=>"dadada", :b=>"doedoe"}].map{|o|o[:a]}
<al2o3cr> (Array) ["boeee", "dadada"]
vladyn has joined #ruby
<Xeago> gotta require 'time' first
<_bart> thanks!
<Xeago> how easy is it to write multithreaded ruby btw?
<Xeago> is there a fire and forget threadpool or something?
<bnagy> as easy / hard as any multithreaded app
<JonnieCache> as easy as it is in other languages: hard
<Hanmac> _bart or:
<bnagy> check out the parallel gem for that
<Hanmac> >>[{:a=>"boeee", :b=>"2"}, {:a=>"dadada", :b=>"doedoe"}].each_with_object(:a).map(&:[])
<al2o3cr> (Array) ["boeee", "dadada"]
wvms has quit [Read error: Connection reset by peer]
<Xeago> I don't find coding multithreaded that hard, as long as I have my whiteboard :)
<Xeago> blurgh, been here for too long, gotta work :\
<bnagy> threads that don't need to synchronize or share state or memory or access any shared resources - super easy :)
a_a_g has quit [Ping timeout: 245 seconds]
bluenemo_ has quit [Quit: Verlassend]
<Xeago> would you say it is easier in c++/d/c#/java ?
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<bnagy> nope
<Xeago> in a normal app, where you do share state and access shared resources
<Xeago> harder?
<banisterfiend> JonnieCache: it's easy in objc :P
<bnagy> pretty much the same - the low level primitives are identical
<banisterfiend> with the grand central dispatch thingy
<JonnieCache> well you can pretty much just do Thread.new { lol code in here }
<Xeago> @synchronized yea right
<Xeago> try getting performance
dbck has joined #ruby
liluo has quit [Remote host closed the connection]
<JonnieCache> there are plenty of decent ruby concurrency libs though if you like to go a bit higher level
<Xeago> anyone knows if #elasticsearch is dead?
<shevy> never heard that channel name before
a_a_g has joined #ruby
<Xeago> You know, for Search!
<Xeago> distributed search engine based on lucene?
<Xeago> like solr, but more distributed
<Xeago> from the maker of compass?
<shevy> no idea
<JonnieCache> the project definitely isnt dead
<shevy> I only use "find"
<JonnieCache> cant speak for the channel
TPFC-SYSTEM has quit [Quit: Restarting Opera]
philcrissman_ has joined #ruby
freeayu has quit [Ping timeout: 245 seconds]
TPFC-SYSTEM has joined #ruby
canton7 has joined #ruby
geekbri has joined #ruby
nanderoo has joined #ruby
seanstickle has joined #ruby
the_hack has joined #ruby
seanstickle has quit [Client Quit]
saispo has quit [Ping timeout: 260 seconds]
`brendan has joined #ruby
jcromartie has joined #ruby
nari has quit [Ping timeout: 252 seconds]
emmanuel__ has joined #ruby
iori has quit [Remote host closed the connection]
t29826 has quit [Remote host closed the connection]
t59832 has joined #ruby
dpk has joined #ruby
IPGlider has quit []
freeayu has joined #ruby
jrist has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
saispo has joined #ruby
the_hack has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
_bart has quit [Ping timeout: 272 seconds]
peterhellberg has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
clocKwize has quit [Quit: clocKwize]
workmad3 has joined #ruby
und3f has quit [Ping timeout: 276 seconds]
matty5000 has joined #ruby
rubious has joined #ruby
Progster has joined #ruby
mmitchell has joined #ruby
heisenmink has joined #ruby
mmitchell has quit [Remote host closed the connection]
<heisenmink> I have an attr_accessor :calls for my class that counts methods calls for a method, how do I initialize it to 0?
mmitchell has joined #ruby
andrewhl has joined #ruby
<lupine_85> def initialize ; @calls = 0 ; end
<lupine_85> (probably)
skattyadz has joined #ruby
mmitchell has quit [Remote host closed the connection]
resure_ has joined #ruby
the_hack has joined #ruby
mmitchell has joined #ruby
<Xeago> do you need to?
<heisenmink> lupine_85: that did it. I defined "new" instead of "initialize"
<Hanmac> heisenmink ... overriding new is a bad idea ... imo
<heisenmink> Xeago: "@calls = @calls + 1" threw exception
alek_b has quit [Remote host closed the connection]
<Xeago> use +=
<lupine_85> Hanmac, it's generally a bad idea, but sometimes useful
<heisenmink> Hanmac: I thought it was the constructor
<Xeago> never mind what I said
jjbohn has joined #ruby
<lupine_85> when you're swapping a class for a module acting as a shim, f'rinstance, it's pretty much invaluable
<Xeago> nil does not have += :\
<JonnieCache> youre meant to implement initialize, rather than override new iirc
<apeiros_> correct
resure_ is now known as resure_away
<apeiros_> the cases where you redefine ::new are *very* rare
<Hanmac> heisenmink: it is, but ruby uses an allocate & init system
<Hanmac> lupine_85 i only override new in my bindings when i cant use the allocator
<lupine_85> but certainly, in the generally case, def initialize, not new
<lupine_85> general*
<apeiros_> in most cases, rather than redefining new, you should add another class method which normalizes the input data and passes it off to new
saschagehlich has joined #ruby
<apeiros_> compare with e.g. Date.civil, Date.ordinal, Date.commercial
<apeiros_> those are all "constructors" for dates, with different ways to express the date.
<lupine_85> that's fine until you're wrapping a library and being sneaky about it
philcrissman_ has quit [Remote host closed the connection]
kvirani has quit [Remote host closed the connection]
<apeiros_> ?
<Hanmac> apeiros_ i used in my c++ binding when i need some Manager object, and i cant use the default T() ctor (that i would need for rubies alloc)
haxrbyte_ has joined #ruby
<apeiros_> Hanmac: shouldn't you model your c++ bindings in a way that you provide a proper Klass.allocate ?
liluo has joined #ruby
chussenot has quit [Read error: Connection reset by peer]
<Hanmac> apeiros_ is not possible because of the underlying c++ class
twigmorewelsh has quit [Quit: Leaving...]
sdwrage has joined #ruby
<apeiros_> o0
sdwrage has quit [Client Quit]
chussenot has joined #ruby
<apeiros_> well, my experience with C++ is very limited, but I wonder when that'd be the case.
<apeiros_> but I'm at work right now, so can't really discuss it :(
jrajav has quit [Quit: The best darkness is strange and surprising]
mneorr has quit [Quit: Leaving.]
<Hanmac> apeiros_ & lupine_85 a sample my CEGUI::Window.new(type,name) uses in c++ "CEGUI::WindowManager::getSingletonPtr()->create(type,name)"
<lupine_85> I'm sure there's other use cases too
<shevy> I am going to have Hanmac build RubyOS
hayesj has joined #ruby
<Mon_Ouie> It's always possible; in the worst case you can make your class wrap a pointer on a pointer and create the actual object in initialize
<Mon_Ouie> Another thing you can commonly do is placement new
t59832 has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 246 seconds]
liluo has quit [Remote host closed the connection]
t20659 has joined #ruby
resure_away has quit [Ping timeout: 265 seconds]
und3f has joined #ruby
hayesj has quit [Client Quit]
nateberkopec has joined #ruby
nazty has joined #ruby
gyre007 has joined #ruby
Jay_Levitt has quit [Quit: Jay_Levitt]
<gyre007> is there a snooker or pool gem ?? :)
<gyre007> like for a pool game...or snooker
iamvery has joined #ruby
gentz_ has joined #ruby
zeknox_ has joined #ruby
janoli` has joined #ruby
savage-_ has joined #ruby
<tagrudev> snook di pool
tomsthumb_1 has joined #ruby
jmeeuwen_ has joined #ruby
carloslopes has joined #ruby
d3vic3 has quit [Ping timeout: 256 seconds]
dv__ has joined #ruby
eregon_ has joined #ruby
jcromartie has quit [Quit: jcromartie]
berserkr has quit [Quit: Leaving.]
a_a_g1 has joined #ruby
d3vic3 has joined #ruby
Mixolyde has joined #ruby
mc0e1 has joined #ruby
oddmunds_ has joined #ruby
deadSnow1an has joined #ruby
devdazed_ has joined #ruby
<Mixolyde> Is there a single method to slice an array into two arrays at a certain index. e.g. first, second = longarray.split(index)
mc0e has quit [Ping timeout: 252 seconds]
pdelgallego has joined #ruby
altivec has joined #ruby
SecretAg1nt has joined #ruby
a_a_g1 has quit [Client Quit]
qwerxy_ has joined #ruby
koivula_ has joined #ruby
davidpk has joined #ruby
<JonnieCache> that code you just typed looked like it might work
seth- has joined #ruby
<JonnieCache> otherwise f, s = a[0..i], a[i..-1]
tommyvYo has joined #ruby
tommyvYo has quit [Changing host]
tommyvYo has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
<Mixolyde> ah, that common syntax looks nice, forgot about the multi assignment like that
<Mixolyde> s/common/comma
<canton7> "parallel assignment"
<JonnieCache> tbh i dont know if that will work you might need to go f, s = [a[0..i], a[i..-1]]
<JonnieCache> or some such
<Mon_Ouie> They're both equivalent
mneorr has joined #ruby
tectonic has joined #ruby
<Mixolyde> nice
<Xeago> how does multi assignment work?
yosafbridge` has joined #ruby
<Xeago> >> f, s = [a[0..i], a[i..-1]]; puts f; puts s
<al2o3cr> -e:1:in `eval': undefined local variable or method `a' for main:Object (NameError), from -e:1:in `eval', from -e:1:in `<main>'
<Xeago> derp
<JonnieCache> >> a = ('a'..'z'); i = 16; f, s = a[0..i], a[i..-1]; puts f; puts s
TorpedoSkyline_ has joined #ruby
<al2o3cr> -e:1:in `eval': undefined method `[]' for "a".."z":Range (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<Mon_Ouie> If the left hand side is more than one expression or includes a comma, it assigns the first value to the first element of the rhs and so on
<JonnieCache> oops
<JonnieCache> >> a = ('a'..'z').to_a; i = 16; f, s = a[0..i], a[i..-1]; puts f; puts s
<al2o3cr> (NilClass) nil, Console: a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, q, r, s, t, u, v, w, x, y, z
<Mon_Ouie> Erm, swap left and right
TPFC-SYSTEM has quit [Quit: TPFC-SYSTEM]
<JonnieCache> ffs
dpk has quit [*.net *.split]
qwerxy has quit [*.net *.split]
a_a_g has quit [*.net *.split]
SeySayux has quit [*.net *.split]
charliesome has quit [*.net *.split]
janoli has quit [*.net *.split]
devdazed has quit [*.net *.split]
tomsthumb_ has quit [*.net *.split]
dv_ has quit [*.net *.split]
savage- has quit [*.net *.split]
koivula has quit [*.net *.split]
naz has quit [*.net *.split]
tectonic_ has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
anekos has quit [*.net *.split]
gogiel has quit [*.net *.split]
gentz has quit [*.net *.split]
seth-- has quit [*.net *.split]
TorpedoSkyline has quit [*.net *.split]
Poapfel has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
oddmunds has quit [*.net *.split]
deadSnowman has quit [*.net *.split]
passbe has quit [*.net *.split]
eregon has quit [*.net *.split]
SecretAgent has quit [*.net *.split]
zeknox has quit [*.net *.split]
davidpk is now known as dpk
t20659 has quit [Write error: Broken pipe]
<JonnieCache> >> a = ('a'..'z').to_a; i = 16; f, s = a[0..i], a[i..-1]; puts f; puts; puts s
<al2o3cr> (NilClass) nil, Console: a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, , q, r, s, t, u, v, w, x, y, z
<JonnieCache> yeah so thats gonna have to do lol
<Xeago> I dislike not having [] on range not doing a to_a
t94087 has joined #ruby
jmeeuwen_ is now known as jmeeuwen
<Mon_Ouie> If the right hand side is a single expression it assumes it's an array and does the same thing with each element of the array
<banisterfiend> Xeago: what do u mean
<Xeago> (1..10)[0] #=> 1
<JonnieCache> im thinking maybe .to_a can be very expensive, so they dont want people falling into the trap of writing code that calls (1..1000).to_a on every iteration of a loop
genexp_ has joined #ruby
<banisterfiend> Xeago: what about in this situation: (0..PI)[2] ?
<JonnieCache> lol
<Xeago> >> PI
<al2o3cr> -e:1:in `eval': uninitialized constant PI (NameError), from -e:1:in `eval', from -e:1:in `<main>'
<banisterfiend> Xeago: PI is 3.14159 ... :)
<banisterfiend> >> Math::PI
<al2o3cr> (Float) 3.141592653589793
<JonnieCache> >> (0..(1.0/0))[-1]
<al2o3cr> -e:1:in `eval': undefined method `[]' for 0..Infinity:Range (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<JonnieCache> >> (0..(1.0/0)).to_a[-1]
<Xeago> (0..Math::PI).to_a
<Xeago> >> (0..Math::PI).to_a
<al2o3cr> (Array) [0, 1, 2, 3]
<Mon_Ouie> Well, to be fair there already are methods that don't work on certain kinds of range
<banisterfiend> Xeago: your expectation only makes sense for integral ranges, but ranges can be continus Float ranges
<Xeago> then that would be my expected output
<aristidesfl> how do I run a ruby console?
<JonnieCache> lol hes not happy about that one i didnt get any return at all!
<Mon_Ouie> (those that can be iterated over for example)
<JonnieCache> >> (0..(1.0/0)).to_a[-1]
<Mixolyde> >> a = [a..z]; i = 16; f, s = a[0..i], a[i..-1]; puts f; puts; puts s
<al2o3cr> -e:1:in `eval': undefined local variable or method `z' for main:Object (NameError), from -e:1:in `eval', from -e:1:in `<main>'
<JonnieCache> i wonder if its just counting to infinity now
<Mon_Ouie> aristidesfl: run irb in a terminal; and then install pry and use pry instead because it's better! :p
<Mixolyde> >> a = ['a'..'z']; i = 16; f, s = a[0..i], a[i..-1]; puts f; puts; puts s
<al2o3cr> (NilClass) nil, Console: a..z, ,
<aristidesfl> Mon_Ouie tks
<Mon_Ouie> JonnieCache: The bot has already timeout, but that's what it would do otherwise
iamvery has quit [Remote host closed the connection]
wltsmrz has quit [Quit: .]
<JonnieCache> amazing yes it does try to count to infinity. i guess having it check for that would be silly
<Hanmac> Mixolyde:
<Hanmac> >> a=[1,2,3,4,5,6]; f,s= a.partition.with_index{|e,idx| idx < 2 }; p f,s
<al2o3cr> (Array) [[1, 2], [3, 4, 5, 6]], Console: [1, 2], [3, 4, 5, 6]
<Mixolyde> Hanmac: that's an interesting way
<banisterfiend> Xeago: and what about this: (0..Float::INFINITY)[10] :)
<Xeago> (0..Float::INFINITY).to_a[10]
<Xeago> >> (0..Float::INFINITY).to_a[10]
crl_ has joined #ruby
<JonnieCache> banisterfiend: thats what ive just been doing
<Xeago> whatever that would output
<Xeago> poor bot :)
<banisterfiend> Xeago: haha, it's infinite :)
<JonnieCache> it times out
<banisterfiend> JonnieCache: oh sorry, wsn't watching
<Hanmac> >> a=[1,2,3,4,5,6]; f,s= a.partition{|e| e.even? }; p f,s
crl_ has left #ruby [#ruby]
<al2o3cr> (Array) [[2, 4, 6], [1, 3, 5]], Console: [2, 4, 6], [1, 3, 5]
<Xeago> [] on range should just call .to_a on self and [] on that
<banisterfiend> JonnieCache: you didnt know about Float::INFINITY ? :P
<Mixolyde> Isn't that how Flynn got the MCP to zap him with a laser?
<JonnieCache> except i did 1.0/0 to get infinity. i thought it was Math::INFINITY
<JonnieCache> and i was wondering the other day why it wasnt there
<banisterfiend> ah
<JonnieCache> putting it in float is pretty controvertial
<Xeago> why would infinity be in float?
<Xeago> doesn't make sense
passbe has joined #ruby
<Xeago> >> Float.parse('INF')
<al2o3cr> -e:1:in `eval': undefined method `parse' for Float:Class (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<JonnieCache> probably because you get it by dividing a float by zero
jjbohn has quit [Quit: Leaving...]
<Hanmac> IMO [] on range should cache the values ... like the second [10] is faster then the first
<JonnieCache> if you divide an int by zero you get an error
anekos has joined #ruby
Poapfel has joined #ruby
<JonnieCache> but yeah it should be in Math
<Xeago> isn't mathematically speaking, 1/0 same as 1.0/0?
<JonnieCache> in real life yes. in ruby, no
<Xeago> except for precision?
<aristidesfl> require uri
<aristidesfl> NameError: undefined local variable or method `uri' for main:Object
<aristidesfl> from (irb):1
<JonnieCache> aristidesfl: require 'url'
<Xeago> require 'uri'
<Mon_Ouie> >> 1/0
<al2o3cr> -e:1:in `eval': divided by 0 (ZeroDivisionError), from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
iamvery has joined #ruby
SeySayux has joined #ruby
<Mon_Ouie> You can't divide integers by 0, while the floating point standard (IEEE something) defines that operation
<aristidesfl> JonnieCache uri
<JonnieCache> aristidesfl: yeah i misread sorry
v0n has quit [Ping timeout: 260 seconds]
<aristidesfl> JonnieCache ohh
<JonnieCache> the point is you need ''
<Xeago> does ieee have an integer standard?
Taichouchou2 has quit [Remote host closed the connection]
JStoker has quit [*.net *.split]
richardcreme has quit [*.net *.split]
alienvenom has quit [*.net *.split]
sirecote has quit [*.net *.split]
mmercer has quit [*.net *.split]
preller has quit [*.net *.split]
richardcreme has joined #ruby
preller has joined #ruby
alienvenom has joined #ruby
sirecote has joined #ruby
mmercer has joined #ruby
<Mon_Ouie> No, or not that I know
Gadgetoi_ has joined #ruby
<banisterfiend> Xeago: it's just 2's complement
<canton7> floats are significantly more complex than ints
<Xeago> lame they don't have one :\
luist has joined #ruby
luist has quit [Remote host closed the connection]
iamvery has quit [Remote host closed the connection]
JStoker has joined #ruby
luist has joined #ruby
Spooner has joined #ruby
verto|off is now known as verto
adac has quit [Ping timeout: 268 seconds]
rippa has joined #ruby
wvms has joined #ruby
<Mixolyde> who do I report documention bugs in the core api doc to?
<Xeago> for the wiki on github, fix it pull request
<Xeago> look at github's documentation how to get a repository for the wiki
<Xeago> thought it was .git-wiki or something
freeayu__ has joined #ruby
hoelzro is now known as hoelzro|away
<JonnieCache> those docs are generated from the comments in the actual ruby source
<Xeago> no, but that is unofficial documentation, it's generated using rdoc
Rochefort has joined #ruby
<Muz> No, that's generated from the rdoc comments in the source.
freeayu has quit [Ping timeout: 244 seconds]
<Xeago> for that you can just fork the code, fix the comments run the generator to see if it's fixed
<JonnieCache> so you should send a pull req to the actual source repo
<Xeago> and pull request
<Mixolyde> Is the source on github?
<Xeago> yup
<JonnieCache> theres github.com/ruby/ruby
<Xeago> github.com/ruby/ruby
<JonnieCache> but i think thats a mirror?
<Mixolyde> I have to fork it to do a pull request, right?
* Mixolyde hasn't used github outside of personal projects
<Xeago> yea
<Xeago> just click fork
<Xeago> +1 for fixing docs :)
<JonnieCache> actually hold on
<JonnieCache> you can make minor edits like that in the browser
<Mixolyde> Just a formatting typo, but it bothers me
<JonnieCache> go to the file u want in their repo and there should be an edit button
<JonnieCache> when you hit save it forks it, does a commit and creates a pull request for you i think
<Xeago> you can, but that'll for it anyways
<Xeago> I think it'd be better to learn the normal way,
<JonnieCache> true
uris has joined #ruby
<Xeago> it won't send an automatic pull request tho*
vectorshelve has quit [Quit: Page closed]
<Xeago> or atleast, not according to the octotip
<JonnieCache> it does everything else then
mahmoudimus has joined #ruby
<Xeago> it forks and commits :)
adac has joined #ruby
justinmcp has quit [Remote host closed the connection]
freeayu has joined #ruby
<Hanmac> an funny thing is that you dont need git installed .. you can do all the funny shit inside the github gui :D
<bnagy> 'an funny' ?
fantazo has joined #ruby
<Muz> He made an funny.
cantbecool has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
freeayu__ has quit [Ping timeout: 272 seconds]
rubious has quit [Quit: Leaving...]
kpshek has joined #ruby
<Mixolyde> So where in the source tree is the ruby code that rdoc generates from?
<JonnieCache> its just mixed in with the normal code
mahmoudimus has quit [Client Quit]
<JonnieCache> above the method definitions
<Mixolyde> I went to high school with an An Funny, she was nice
t94087 has quit [Remote host closed the connection]
t72910 has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
`brendan has quit [Read error: Connection reset by peer]
senny has quit [Remote host closed the connection]
`brendan has joined #ruby
the_hack has quit [Ping timeout: 240 seconds]
slingle has left #ruby [#ruby]
cantbecool has quit [Client Quit]
the_hack has joined #ruby
<Mixolyde> Looks like the doc is right in the code, it's just not being interpreted right to the page
nari has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
guns has quit [Quit: guns]
hoelzro|away is now known as hoelzro
Criztian has joined #ruby
<Muz> Mixolyde: sure that it wasn't since fixed and the docs haven't been regenerated and uploaded?
<Muz> (Check the git log)
<Xeago> btw
<Xeago> host docs locally
<Xeago> then use pow
<Xeago> and have ruby-doc.dev :)
yasushi has joined #ruby
<Xeago> assuming you use osx
freeayu has joined #ruby
<JonnieCache> Xeago: yard (the successor to rdoc even though everyone still calls it rdoc) has its own server
<JonnieCache> you can do `yard server --gems` from the cmd line
<JonnieCache> at you get a local ruby-doc.org
<Xeago> does it generate and host, or generate on the fly
<Xeago> ?
<JonnieCache> on the fly and then cache
<JonnieCache> its exactly the same as rubydoc.info
<Mixolyde> I'm on windows and linux at the moment
d3vic3 has quit [Quit: leaving]
elux has joined #ruby
infinitiguy has joined #ruby
yasushi_ has joined #ruby
<Mixolyde> I don't see any recent changes for it. I think it's an escape character bug
yasushi has quit [Read error: Connection reset by peer]
<Xeago> but I like the layout for ruby-doc.org more
<Mon_Ouie> If you run gem server you get the same thing for RDoc
<Mixolyde> the same bug is showing up in another method's doc with a similar description
<Xeago> is the generation bugged?
sixtycakes has joined #ruby
<Mon_Ouie> What do you mean?
<Xeago> mind linking us to your source of frustration
yasushi_ has quit [Remote host closed the connection]
answer_42 has joined #ruby
liluo has joined #ruby
jjbohn has joined #ruby
freeayu has quit [Ping timeout: 268 seconds]
nwest has joined #ruby
maesbn has quit [Remote host closed the connection]
Takehiro has joined #ruby
deryl has joined #ruby
savage-_ has quit [Remote host closed the connection]
stopbit has joined #ruby
twigmorewelsh has joined #ruby
<Mixolyde> http://www.ruby-doc.org/core-1.9.3/IO.html#method-i-print "If the output record separator ($\</code>) is not <code>nil"
BrokenCog has quit [Quit: leaving]
digitalcakestudi has joined #ruby
<Mixolyde> the $\\</code> turns into $\</code>
Dreamer3 has quit [Ping timeout: 245 seconds]
liluo has quit [Remote host closed the connection]
<Mixolyde> I think the \\ needs to be double escaped to get generated right
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
pdtpatrick has joined #ruby
<Xeago> where is it on github?
b26 has joined #ruby
`brendan has quit [Read error: Connection reset by peer]
b26 is now known as `brendan
<Xeago> if you've found it there
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
robustus has joined #ruby
Dreamer3 has joined #ruby
<Xeago> try generating the docs, see if it is fixed, as it has been escaped already. Will be obvious if it needs double escaping
BrokenCog has quit [Client Quit]
freeayu has joined #ruby
<Muz> Sure it's not a bug in whatever's generating the docs, for that matter too?
<Xeago> ^^
yasushi has joined #ruby
LorentzFactor has quit [Ping timeout: 276 seconds]
<heisenmink> Why isn't rails-provided Hash#slice implemented in the ruby core? It seems like really basic functionality - http://api.rubyonrails.org/classes/Hash.html#method-i-slice
verto is now known as verto|off
gfontenot has joined #ruby
liluo has joined #ruby
statix_ is now known as stat1x
liluo has quit [Remote host closed the connection]
pu22l3r has joined #ruby
iamvery has joined #ruby
manouche has quit [Quit: Leaving]
johnlcox has joined #ruby
<Xeago> heisenmink: I'd guess because it's as simple as it is basic
<Mixolyde> Xeago: Ok, I have the source cloned off in my linux box, how do I generate the doc?
<Xeago> I have no idea xD
<Mixolyde> heh, alright. I have rdoc in my path
nazty has quit [Ping timeout: 272 seconds]
<shevy> heisenmink literally there are hundreds of methods you could add to core
<Xeago> http://neurogami.com/code/ have a look there
<Xeago> that's the link on the bottom of ruby-doc.org
virunga has joined #ruby
<Hanmac> heisenmink: class Hash;def slice(*keys);Hash[keys.zip(values_at(*keys))];end;end
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
jgarvey has joined #ruby
<fowl> >> class Symbol; def -@() :"#{to_s.reverse}" end end; p -:yourmom
<al2o3cr> (Symbol) :momruoy, Console: :momruoy
<Hanmac> rails:" 'symbolize_keys' for some one that cant tell the difference between symbol and string"
mc0e1 is now known as mc0e
<JonnieCache> Hanmac: rails has a good reason for it to be fair
<JonnieCache> the rack standard specifies strings as keys, for various reasons
<Hanmac> you mean the dumb users?
<JonnieCache> lol no its an internal thing
prateekp has joined #ruby
awarner has joined #ruby
<prateekp> how to convert ["1","2"," ","3","4"] to 12 34
<prateekp> 12 34
<prateekp> simple format text
<canton7> >> ["1","2"," ","3","4"].join
<al2o3cr> (String) "12 34"
v0n has joined #ruby
eph3meral has quit [Quit: eph3meral]
malkomalko has joined #ruby
freeayu has quit [Ping timeout: 240 seconds]
naz has joined #ruby
<fowl> prateekp: please dont just take that answer and be happy with it. read a book
t72910 has quit [Remote host closed the connection]
heisenmink has quit [Remote host closed the connection]
geekbri has quit [Remote host closed the connection]
<banisterfiend> fowl is a true german child of the forest
t65405 has joined #ruby
<Spooner> fowl: Only real noobs _read_ books: http://www.buzzfeed.com/catesish/the-worst-craft-idea-ever
iamvery has quit [Remote host closed the connection]
<fowl> lol
verto|off is now known as verto
fyolnish_ has joined #ruby
<luist> http://pastie.org/4580568 <-- this seems bad even giving me a success… am i missing something?
matty5000 has quit [Ping timeout: 248 seconds]
bowlowni has joined #ruby
fforbeck has joined #ruby
freeayu has joined #ruby
internet_user has joined #ruby
scriabin has quit [Remote host closed the connection]
GoGoGarrett has joined #ruby
JStoker has quit [Ping timeout: 245 seconds]
vladyn has quit [Quit: vladyn]
Stalkr_ has joined #ruby
pdelgallego has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
fyolnish_ has quit [Remote host closed the connection]
niklasb has joined #ruby
gregorg has quit [Quit: Quitte]
Xeago has joined #ruby
prateekp has quit [Ping timeout: 248 seconds]
the_hack has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
dhruvasa1ar has joined #ruby
kvirani has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
asteve has joined #ruby
joshman_ has joined #ruby
yasushi_ has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
<shevy> no idea, looks debian-ruby. I don't use rails, have you tried to ask on #rubyonrails luist?
yasushi has quit [Read error: Connection reset by peer]
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
<luist> shevy: hm… will give it a try.. thanks
TNTshop has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
yasushi_ has quit [Read error: Connection reset by peer]
madhatter has quit [Read error: Operation timed out]
oddmunds_ is now known as oddmunds
BrokenCog has quit [Client Quit]
madhatter has joined #ruby
genexp_ has quit [Remote host closed the connection]
theRoUS has joined #ruby
manouche has joined #ruby
thunderstrike has quit [Remote host closed the connection]
genexp has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
haxrbyte has joined #ruby
TNTshop has joined #ruby
cakehero has joined #ruby
JStoker has joined #ruby
rubious has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
ProT-0-TypE has joined #ruby
emmanuel__ has quit [Ping timeout: 260 seconds]
stopbit has joined #ruby
the_hack has joined #ruby
Cache_Money has joined #ruby
haxrbyte_ has quit [Ping timeout: 260 seconds]
eph3meral has joined #ruby
geekbri has joined #ruby
freeayu has quit [Quit: 离开]
yasushi has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
juarlex has joined #ruby
Taichouchou2 has joined #ruby
andrewhl has quit [Remote host closed the connection]
juarlex_ has quit [Ping timeout: 240 seconds]
genexp has quit [Remote host closed the connection]
jamiltron has joined #ruby
wpaulson has joined #ruby
genexp has joined #ruby
triptec has joined #ruby
ProT-0-TypE has quit [Ping timeout: 245 seconds]
madhatter has quit [Ping timeout: 245 seconds]
cantonic has quit [Quit: cantonic]
yoklov has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
<Mixolyde> ok, i forked the ruby source, ran make rdoc, I have a bunch of .ri files in .ext. how do I run a server to view these?
yasushi has joined #ruby
ProT-0-TypE has joined #ruby
kvirani has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
<Xeago> >> ri Time.parse
<al2o3cr> -e:1:in `eval': undefined method `parse' for Time:Class (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
prateekp has joined #ruby
<Xeago> >> ri 'Time.parse'
<al2o3cr> -e:1:in `eval': undefined method `ri' for main:Object (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
pricees has joined #ruby
<Xeago> I can ri from my ruby shell
<Xeago> damn bot
<Xeago> tbh, I have
<Xeago> absolutely, no idea xD
<banisterfiend> Xeago: ri is for noobs
<banisterfiend> ;)
<Xeago> it is by default installed
<Xeago> hence I have it
xclite has joined #ruby
grenierm_ has joined #ruby
eph3meral has quit [Quit: eph3meral]
qwerxy_ has quit [Quit: offski]
techsurvivor has quit [Ping timeout: 246 seconds]
pdelgallego has joined #ruby
DrShoggoth has joined #ruby
coyo has joined #ruby
coyo has quit [Changing host]
coyo has joined #ruby
madhatter has joined #ruby
Takehiro has quit [Remote host closed the connection]
coyo has quit [Client Quit]
v0n has joined #ruby
Cache_Money has quit [Quit: Leaving]
elux has quit [Quit: Leaving...]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
elux has joined #ruby
tagrudev has quit [Remote host closed the connection]
binaryplease has quit [Quit: WeeChat 0.3.8]
nari has quit [Ping timeout: 244 seconds]
crodas has quit [Ping timeout: 268 seconds]
arkiver has quit [Quit: Leaving]
philcrissman_ has joined #ruby
mahmoudimus has joined #ruby
<shevy> who uses ri these days
kvirani has joined #ruby
* hoelzro raises his hand
<fowl> ri docs come up with show-source i think
* Hanmac is a ri user
mahmoudimus has quit [Client Quit]
<banisterfiend> fowl: no
pdelgallego has quit [Remote host closed the connection]
<banisterfiend> fowl: show-doc doesnt use 'ri', it extracts docs itself
<banisterfiend> on demand, so they're always 100% up to date
<banisterfiend> even if you update the docs while the program is running
<fowl> oh
<fowl> nothin' but a G thang?
v0n has quit [Ping timeout: 246 seconds]
<Hanmac> fowl i use ri for the help, not for the show-source ... :(
Araxia has quit [Quit: Araxia]
<fowl> Hanmac: i meant to say show-doc
theRoUS has quit [Remote host closed the connection]
thecreators has joined #ruby
tomsthumb_1 has quit [Quit: Leaving.]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
Guest35044 has joined #ruby
r0bby has joined #ruby
<Hanmac> fowl ... hm i need to test how it react with my c++ gem ...
qwerxy has joined #ruby
grenierm_ is now known as grenierm
<Hanmac> because some functions bodies cant be visible to rdoc or pry :D
robbyoconnor has quit [Ping timeout: 244 seconds]
<fowl> Hanmac: i dunno, is the source kept around after you install it?
<banisterfiend> we have some tricks that can find the source/docs for installed C extensions
<banisterfiend> doubt they'd work on C++ though
jowens_ has quit [Quit: This computer has gone to sleep]
<banisterfiend> they work for ruby-debug though ;) which is pretty k00
<banisterfiend> show-source Debugger.start
t65405 has quit [Remote host closed the connection]
<banisterfiend> hmm that's ruby, try: show-source Debugger.add_breakpoint
<Hanmac> i think yes in the same way like with nokogiri
<Hanmac> and as far as i knew pry uses the documentaton generated while installing
techsurvivor has joined #ruby
t25400 has joined #ruby
<banisterfiend> fowl: tell him no, pry does not
<banisterfiend> fowl: it generates the docs on demand
telling_ is now known as telling
telling has joined #ruby
telling has quit [Changing host]
<banisterfiend> fowl: using Method#source_location
<banisterfiend> >> "Hanmac, no, pry uses Method#source_location to grab the docs/source on demand. It does not use the pre-generated docs/source during installation. For example, it still works even if you have doc generation turned off"
<al2o3cr> (String) "Hanmac, no, pry uses Method#source_location to grab the docs/source on demand. It does not use the pre-generated docs/source during installation. For example, it still works even if you have doc generation turned off"
SCommette has joined #ruby
jgrevich has joined #ruby
<fowl> Hanmac: pry has stared into the time vortex, seen all there ever was and all there ever will be, your petty documentation is no problem to one such as Pry
fantazo has quit [Remote host closed the connection]
wallerdev has joined #ruby
andrewhl has joined #ruby
crodas has joined #ruby
v0n has joined #ruby
thecreators has quit [Quit: thecreators]
<Hanmac> i have bad news ... the source_loaction for all my methods are nil ... :P
apok has joined #ruby
<banisterfiend> >> "I'm nto sure it will work on c++ anyway, but we have tricks to deal with nil source_location. We use a variety of strategies to guess the gem name based on the name of the top-level module, we then scan all the *.c files found in taht gem directory. Alternatively, evne if there is a single method (a pure ruby helper method) that has a non-nil source_location, then that is enough information to locate the *.c files and generate do
<al2o3cr> -e:1:in `eval': (eval):1: unterminated string meets end of file (SyntaxError), from -e:1:in `<main>'
<banisterfiend> cs"
<banisterfiend> >> "I'm nto sure it will work on c++ anyway, but we have tricks to deal with nil source_location. We use a variety of strategies to guess the gem name based on the name of the top-level module, we then scan all the *.c files found in taht gem directory. Alternatively, evne if there is a single method (a pure ruby helper method) that has a non-nil source_location, then that is enough information to locate the *.c files"
<al2o3cr> (String) "I'm nto sure it will work on c++ anyway, but we have tricks to deal with nil source_location. We use a variety of strategies to guess the gem name based on the name of the top-level module, we then scan all the *.c files found in taht gem directory. Alternatively, evne if there is a single method (a pure ruby helper method) that has a non-nil source_location, then that is enough information to locate the *.c files"
mahmoudimus has joined #ruby
zommi has left #ruby [#ruby]
<banisterfiend> >> "Hanmac^"
<al2o3cr> (String) "Hanmac^"
Xeago has quit [Ping timeout: 244 seconds]
<fowl> banisterfiend: in accordance with the precedent set by apeiros_ i move that you kick yourself from the channel.
<banisterfiend> hehe
<Hanmac> https://github.com/Hanmac/libogre-ruby/blob/master/ext/ogrecolor.cpp << try to find the Ogre::Color#alpha method from the source
erichmenge has joined #ruby
<Hanmac> https://github.com/Hanmac/libogre-ruby/blob/master/ext/ogreroot.cpp << ok better example ... the sourcecode of the "startRendering" method
<banisterfiend> >> "Hanmac, why dont you install it as a gem and try it yourself? I dont know if it will work. But our approach works on a large number of C extensions, so i'm happy with it."
<al2o3cr> (String) "Hanmac, why dont you install it as a gem and try it yourself? I dont know if it will work. But our approach works on a large number of C extensions, so i'm happy with it."
Vert has quit [Ping timeout: 252 seconds]
prateekp has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
<eam> ugh
<Hanmac> eam whats your problem? are you mad that we use the bot as postman?
BrokenCog has quit [Quit: leaving]
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
mrdodo has quit [Remote host closed the connection]
jjbohn has quit [Quit: Linkinus - http://linkinus.com]
<digitalcakestudi> anyone feel like helping me figure out why I cant install mysql gem? https://gist.github.com/3450681
jlogsdon has joined #ruby
jrist has quit [Quit: o no u din't]
<Mon_Ouie> You seem to be missing some C libraries
ananthakumaran has quit [Quit: Leaving.]
dekroning has quit [Quit: leaving]
wvms has left #ruby [#ruby]
pu22l3r has quit [Ping timeout: 248 seconds]
tomsthumb_ has joined #ruby
imami|afk is now known as banseljaj
AntiTyping has joined #ruby
<eam> Hanmac: not mad, just reacting to the sudden change in signal to noise ratio
yasushi has joined #ruby
<eam> I believe it's passed my tolerance
eam has left #ruby [#ruby]
pu22l3r has joined #ruby
jjbohn has joined #ruby
<banisterfiend> i dont think he'll be missed very much ;)
JStoker has quit [Excess Flood]
flagg0204 has quit [Quit: leaving]
TNTshop_ has joined #ruby
alek_b has joined #ruby
<digitalcakestudi> derp, got if forgot the client
davidcelis has quit [Quit: K-Lined.]
TNTshop has quit [Ping timeout: 245 seconds]
<shevy> wheee eam is gone
<Hanmac> i think we scare him
<shevy> good!
<shevy> did he help anyone else on #ruby so far?
<shevy> digitalcakestudi, I think your system lacks a file called mysqlclient.so, indicated by -lmysqlclient
Synthead has joined #ruby
<digitalcakestudi> yeah just got that
JStoker has joined #ruby
<digitalcakestudi> thanks
<shevy> on my system this file is a symlink libmysqlclient.so -> libmysqlclient.so.18
<digitalcakestudi> now I'm trying to get rmagick to install
<shevy> mysql version 5.5.27 :\
<shevy> I liked 4.x more
alvaro_o has joined #ruby
jcromartie has joined #ruby
<shevy> is rmagick still maintained?
<digitalcakestudi> who knows, some client project
<digitalcakestudi> starting to wish I could just update the whole project
aganov has quit [Remote host closed the connection]
jorge_ has joined #ruby
<shevy> I thought the rmagick guys abandoned it a few years ago
dhruvasa1ar has quit [Ping timeout: 245 seconds]
Stalkr_ has quit [Ping timeout: 246 seconds]
fearoffish has joined #ruby
areil has quit [Remote host closed the connection]
jasonLaster has joined #ruby
_bart has joined #ruby
<Sou|cutter> shevy: I like image_science
<shevy> what is that?
<Sou|cutter> ImageScience is a clean and happy Ruby library that generates thumbnails -- and kicks the living crap out of RMagick. Oh, and it doesn't leak memory like a sieve. :) For more information including build steps, see http://seattlerb.rubyforge.org/
Takehiro has joined #ruby
<fowl> lol
yasushi has quit [Read error: Connection reset by peer]
<fowl> that description sounds like it came from seattlerb
yasushi has joined #ruby
<Sou|cutter> it's the official gem description
dhruvasagar has joined #ruby
<Sou|cutter> I need to write some documentation today :(
iamvery has joined #ruby
<shevy> ewww
ckrailo has joined #ruby
<Sou|cutter> digitalcakestudi: ^^ in case you weren't following the conversation
<shevy> I am trying to find a way to combine both tests, and documentation together
<Sou|cutter> like... relishapp?
<shevy> what is that?
<shevy> sounds religious
<shevy> :P
<shevy> "Combine your product's documentation with cucumber tests. "
<shevy> hmm
<Sou|cutter> it works rather well for rspec
<Sou|cutter> which somehow feels ironic...
<shevy> heeh
mikepack has joined #ruby
Eldariof-ru has joined #ruby
cool has quit []
the_hack has quit [Ping timeout: 244 seconds]
koshii has quit [Ping timeout: 240 seconds]
cool has joined #ruby
cool has quit [Changing host]
cool has joined #ruby
cool has joined #ruby
iamvery has quit [Remote host closed the connection]
MasterIdler_ has joined #ruby
Xeago_ has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 252 seconds]
yasushi has joined #ruby
yasushi_ has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
ScottNYC has joined #ruby
yasushi has joined #ruby
yasushi_ has quit [Read error: Connection reset by peer]
heftig has quit [Ping timeout: 245 seconds]
heftig has joined #ruby
MasterIdler_ has quit [Client Quit]
baroquebobcat has joined #ruby
elux has quit [Quit: Leaving...]
koshii has joined #ruby
indian has joined #ruby
yasushi_ has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
dhruvasa1ar has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
maletor has joined #ruby
yasushi_ has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
jprovazn is now known as jprovazn_away
yasushi_ has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
apeiros_ has quit [Remote host closed the connection]
yasushi has joined #ruby
yasushi_ has quit [Read error: Connection reset by peer]
<ScottNYC> Question, if compiled a program from source and specified the prefix during the .configure process, I could completely remove it by just deleting the directory correct? for example if I "./configure --prefix=/usr/local/Cellar/libiconv/1.13.1", I could just manually delete the libiconv directory to remove it? it doesn't include a make uninstall if your wondering.
yasushi has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
danhunter has joined #ruby
Rochefort has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 246 seconds]
jorge_ has quit [Remote host closed the connection]
yasushi has quit [Read error: Connection reset by peer]
yasushi_ has joined #ruby
infinitiguy has quit [Quit: Leaving.]
miho has joined #ruby
cjs226 has joined #ruby
yasushi_ has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
genexp has quit [Remote host closed the connection]
thecreators has joined #ruby
<digitalcakestudi> does anyone have an idea about this error? Error loading RubyGems plugin rubygems_plugin.rb undefined method `first' for #<String:0x00000001fc4558> (NoMethodError)
<digitalcakestudi> trying to gem install rails -v '3.0.10'
jasonLaster has quit [Remote host closed the connection]
enyo has quit [Read error: Connection reset by peer]
fearoffish has quit [Ping timeout: 244 seconds]
jasonLaster has joined #ruby
yasushi has quit [Remote host closed the connection]
<Hanmac> digitalcakestudi picking an newer ruby ... your version may not work
<Hanmac> i see you use rvm sdo why do you use 1.9.2?
<digitalcakestudi> I have a project I was just brought on to
<digitalcakestudi> I dont have a choice
theRoUS has quit [Ping timeout: 252 seconds]
wobr1 has quit [Ping timeout: 272 seconds]
darren__ has joined #ruby
fearoffish has joined #ruby
<digitalcakestudi> ruby-1.9.2-p180
x77686d has joined #ruby
<digitalcakestudi> sorry first I thought you asked why I use 1.9.2
tewecske has joined #ruby
Xeago_ has quit [Remote host closed the connection]
jasonLaster has quit [Ping timeout: 260 seconds]
tchebb1 has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
mahmoudimus has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
<Hanmac> hm but your bug is still funny ... a string does not have a first method :?
philcrissman_ has joined #ruby
enyo has joined #ruby
<digitalcakestudi> yeah I really have no idea what that is
<Hanmac> ok it had on 1.8 but this was shitty
<Hanmac> maybe this is your problem?
<digitalcakestudi> whats that?
luist has quit [Read error: Connection reset by peer]
gift has quit [Ping timeout: 276 seconds]
luist has joined #ruby
<Hanmac> i need a backtrace of your error ... maybe some part still uses 1.8 ruby methods?
genexp has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<digitalcakestudi> thats all it gave me when I tried to install rails via console
indian has quit [Ping timeout: 272 seconds]
<shevy> ScottNYC yes
jcromartie has quit [Quit: jcromartie]
tk__ has quit [Quit: ばいばい]
<ScottNYC> ok thx shevy
iamvery has joined #ruby
hoelzro is now known as hoelzro|away
Eldariof-ru has quit [Ping timeout: 240 seconds]
macmartine has joined #ruby
Eldariof-ru has joined #ruby
cantonic has joined #ruby
ringotwo has joined #ruby
enroxorz-work has left #ruby ["Leaving"]
Morkel has quit [Quit: Morkel]
bradhe_ has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
t25400 has quit [Remote host closed the connection]
t75800 has joined #ruby
dhruvasa1ar has quit [Ping timeout: 246 seconds]
carloslopes has quit [Quit: Leaving.]
ping-pong has quit [Ping timeout: 245 seconds]
mneorr has quit [Quit: Leaving.]
Eldariof59-ru has joined #ruby
dhruvasagar has joined #ruby
tdelam has joined #ruby
MasterIdler_ has joined #ruby
matrixise has quit [Ping timeout: 272 seconds]
naz has quit [Read error: No route to host]
afman has joined #ruby
Eldariof-ru has quit [Ping timeout: 276 seconds]
jhchabran has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jmampost has joined #ruby
<afman> Does anyone know why ruby keeps saying that Socket::SO_BINDTODEVICE is an uninitialized constant? My code is here: http://pastie.org/4581187
Criztian has quit [Read error: Connection reset by peer]
jhchabran has joined #ruby
<afman> I know that SO_BINDTODEVICE exists lol...
Criztian_ has joined #ruby
echobravo has quit [Read error: Connection reset by peer]
<Hanmac> digitalcakestudi ... what is shown when you do "gem install rails -v '3.0.10' -V" ?
Rochefort has joined #ruby
wpaulson has joined #ruby
a_a_g has joined #ruby
<digitalcakestudi> the first line is that error then the rest it install rails fine
matty5000 has joined #ruby
dr_diamond has joined #ruby
dr_diamond has quit [Changing host]
dr_diamond has joined #ruby
Criztian_ has quit [Read error: Connection reset by peer]
BrokenCog has quit [Quit: leaving]
Criztian has joined #ruby
<Hanmac> oO
jmampost has quit [Remote host closed the connection]
<afman> Anyone?
dan- has joined #ruby
jmampost has joined #ruby
jmampost has quit [Remote host closed the connection]
rubious has quit [Read error: Connection reset by peer]
philcrissman is now known as philcrissman_z
philcrissman_ is now known as philcrissman
Xeago has quit [Ping timeout: 265 seconds]
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> afman whats your ruby version?
<Hanmac> and what is the EXACT error message?
<afman> ruby 1.9.3p125
<afman> and the error message is:
robotmay has quit [Remote host closed the connection]
Eldariof27-ru has joined #ruby
<afman> Hanmac: c:/Users/afman/Dropbox/packet/packet.rb:15:in `<main>': uninitialized constant Sock et::SO_BINDTODEVICE (NameError)
<afman> Socket*
<afman> There isn't a space between the Sock and et
<Hanmac> okay
<Hanmac> you could try an update ... there are an newer ruby version
nohonor has joined #ruby
hadees has quit [Quit: hadees]
lusory has joined #ruby
fabrice31 has quit [Remote host closed the connection]
davidcelis has joined #ruby
cantonic has quit [Quit: cantonic]
ping-pong has joined #ruby
jgrevich has quit [Quit: jgrevich]
Eldariof59-ru has quit [Ping timeout: 252 seconds]
<afman> Hanmac: It's an essential socket option, I feel like there's got to be more going on here than that. That's a fairly colossal mistake to make and have it still be an error in a version that isn't all that old.
ananthakumaran has joined #ruby
banachtarski has quit [Ping timeout: 245 seconds]
<afman> I'll give it a shot if there's nothing else to try lol
bigkevmcd has quit [Ping timeout: 246 seconds]
wpaulson_ has joined #ruby
dr_diamond has quit [Quit: Bye !]
<Hanmac> afman: hm does this return true for you? Socket.constants.include?(:SO_BINDTODEVICE)
<afman> Hanmac: Lemme give it a shot
baphled has quit [Ping timeout: 260 seconds]
<afman> Hanmac: It returns... false???
<Muz> Isn't that a Linux specific function you're trying to run on Windows?
<afman> SO_BINDTODEVICE?
aantix has joined #ruby
<afman> I thought it was a basic socket option, but then again I'm not super experienced O.o
artOfWar has quit [Ping timeout: 252 seconds]
cantonic has joined #ruby
wpaulson_ has quit [Client Quit]
<afman> Muz: Perhaps you are right now that I'm reading
wpaulson has quit [Ping timeout: 276 seconds]
timonv has quit [Remote host closed the connection]
erichmenge has joined #ruby
baphled has joined #ruby
grenierm has quit [Quit: grenierm]
<afman> Muz: Thanks, it appears you are correct. I'll have to go rethink how I'm going to accomplish this
<Muz> \o/
bigkevmcd has joined #ruby
erichmenge has quit [Client Quit]
ringotwo has quit [Remote host closed the connection]
Rochefort has quit [Remote host closed the connection]
xorigin has quit [Quit: leaving]
shevy2 has joined #ruby
savage- has joined #ruby
Stalkr_ has joined #ruby
chussenot_ has joined #ruby
gmci has joined #ruby
ssspiff has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 246 seconds]
jasonLaster has joined #ruby
<tommylommykins> So..
<tommylommykins> Are refinements going into 1.9.4?
<tommylommykins> Or are they too slow?
chussenot has quit [Ping timeout: 248 seconds]
chussenot_ is now known as chussenot
thecreators has quit [Remote host closed the connection]
<vlad_starkov> Question: When I start Rails console with https://github.com/bernerdschaefer/tiff gem it raises error "Library not loaded: /opt/local/lib/libffi.5.dylib (LoadError)". Does anyone know this issue?
chussenot has quit [Quit: chussenot]
ringotwo has joined #ruby
<tommylommykins> vlad_starkov: You shoulf ask that question on #rubyonrails :)
<tommylommykins> d
pdtpatrick has quit [Quit: pdtpatrick]
grenierm has joined #ruby
<vlad_starkov> tommylommykins: I know. I do. To get response faster I post question to both channels :-)
<Hanmac> tommylommykins and you should ask at #ruby-lang
<tommylommykins> oh
<tommylommykins> when did that happen? :O
* tommylommykins thought it was just #ruby and 'rubyonrails
* tommylommykins looks sheepish
<Hanmac> #ruby-lang is for the devs of ruby itself :D
<Hanmac> vlad_starkov did you try to install the ffi lib?
pdelgallego has joined #ruby
<vlad_starkov> Hanmac: I did. The same result.
Eldariof-ru has joined #ruby
<vlad_starkov> ops
<Spooner> vlad_starkov : Multi-posting will quickly irritate people when they find out, since it means you will often get two answers, thus completely wasting one of the answerer's time. This is not good and will not make friends :(
<vlad_starkov> Hanmac: you said exactly "lib"?
maletor has joined #ruby
<Hanmac> yeah ... it seems that ffi is not installed on your system ...
hadees has joined #ruby
<vlad_starkov> Hanmac: I'll check it...
jso has quit []
pu22l3r has joined #ruby
<vlad_starkov> Spooner: sorry about that. next time I'll more accurate
jamiltron has quit [Quit: Leaving.]
ScottNYC has quit [Quit: ScottNYC]
kpshek has quit []
pdelgallego has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
randomautomator has joined #ruby
<Hanmac> Spooner: or he get two totally different incompatible answers :D
<Spooner> vlad_starkov : Just means you need to wait a while to give people a chance to answer before you post on another channel (and remember that it could take 15+ minutes for someone to notice and answer).
MasterIdler__ has joined #ruby
<Spooner> Hanmac : Yeah, that wouldn't help either :)
MasterIdler_ has quit [Read error: Connection reset by peer]
recycle has quit [Remote host closed the connection]
Eldariof27-ru has quit [Ping timeout: 272 seconds]
<vlad_starkov> Spooner: Thank you for your advice. Hanmac right, it could be helpful to have two different answers :-)
ProT-0-TypE has quit [Quit: Leaving]
gift has joined #ruby
mmitchell has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
mmitchell has joined #ruby
elux has joined #ruby
<vlad_starkov> Spooner: I should say that it's really pleasure to know that there is a big community with people that ready to help :-)
t75800 has quit [Remote host closed the connection]
ilyam has joined #ruby
t81531 has joined #ruby
sebicas has joined #ruby
artOfWar has joined #ruby
<Spooner> vlad_starkov : Yeah, just expect my answers to be not as good as Hanmac's (and a lot of other people's :D )
otters has quit [Quit: WeeChat 0.3.8]
<Spooner> Hanmac : Finished Ogre yet? :P
janoli` has quit [Remote host closed the connection]
<Hanmac> not yet but i am working ... currently i use my magic to turn Camels into snakes
<Spooner> Excellent. We don't like camels. Snakes sound a bit like Pythons though, so I am not sure I approve of those either!
brianpWins has joined #ruby
jso has joined #ruby
<Hanmac> so "addResourceLocation" -> "add_resource_location"
kpshek has joined #ruby
<Spooner> Yeah, that is pretty sensible.
Stalkr_ has quit [Quit: Leaving...]
Synthead has quit [Quit: p33 ba115]
<Hanmac> i used camel before because of my lazyness
andrewhl has quit [Remote host closed the connection]
* Spooner shuns Hanmac the camel-rider.
Tomasso has joined #ruby
<Hanmac> now there are snakes on my plane objects :D
bricker88 has joined #ruby
w400z has joined #ruby
yfeldblum has left #ruby ["Leaving"]
otters has joined #ruby
grenierm has quit [Quit: grenierm]
adeponte has joined #ruby
heftig has quit [Quit: leaving]
maletor has quit [Quit: Computer has gone to sleep.]
<Hanmac> vlad_starkov is your problem fixed?
apeiros_ has joined #ruby
jorge_ has joined #ruby
berserkr has joined #ruby
olrrai has joined #ruby
kidoz has joined #ruby
workmad3 has joined #ruby
pdtpatrick has joined #ruby
fermion has quit [Quit: P]
jorge_ has quit [Ping timeout: 246 seconds]
carloslopes has joined #ruby
carloslopes has quit [Client Quit]
carloslopes has joined #ruby
stkowski has joined #ruby
maletor has joined #ruby
<Hanmac> Spooner you are only indirect interested in my binding right, or do you want to use it? D
andrewhl has joined #ruby
t81531 has quit [Remote host closed the connection]
t11565 has joined #ruby
ickmund has quit [Quit: ickmund]
ibash has joined #ruby
sendoushi has joined #ruby
skattyadz has quit [Quit: skattyadz]
c0rn_ has joined #ruby
chussenot has joined #ruby
<Spooner> Hanmac : I have no use for it as far as I'm aware. I think I'll have more success sticking to 2D (with Gosu).
skattyadz has joined #ruby
Synthead has joined #ruby
Rochefort has joined #ruby
<Spooner> Hanmac : I might be interested in using it just to try though. Have no ideas for games that would need it, but I would need to see what its advantages & capabilities are.
workmad3 has quit [Ping timeout: 260 seconds]
jrajav has joined #ruby
<Hanmac> currenty the maker i work on too would use gosu too, but ogre is still cool ...
Rochefort has quit [Remote host closed the connection]
tommyvYo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
scant has joined #ruby
cbuxton has joined #ruby
bier_ has quit [Ping timeout: 244 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
qwerxy has quit [Ping timeout: 244 seconds]
fforbeck has quit [Quit: Leaving]
darren__ has quit [Remote host closed the connection]
darren has joined #ruby
a_a_g1 has joined #ruby
jcromartie has joined #ruby
paulmooring has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
workmad3 has joined #ruby
a_a_g has quit [Ping timeout: 240 seconds]
justinmcp has joined #ruby
<gyre007> can I do something like this in ruby or am I missing "do" bit there...basically im trying to figure out how to do multiple lines if(s)
darren has quit [Ping timeout: 245 seconds]
<Spooner> gyre007 : That is how if works, yes.
<gyre007> even if I have other ifs inside that if ?
<Spooner> Yeah, that is fine. It is just blocks that require {} or do/end
<gyre007> cool
<gyre007> cheers Spooner
sendoushi has quit [Remote host closed the connection]
adac has quit [Ping timeout: 244 seconds]
<shevy2> gyre007 every if opens up a new scope, you can have thousand of if's if you need it
Araxia has joined #ruby
t11565 has quit [Remote host closed the connection]
<gyre007> I see
<gyre007> nice
<gyre007> thanks
a_a_g1 has quit [Ping timeout: 244 seconds]
t2869 has joined #ruby
<Spooner> shevy Except it isn't a "new scope" in the way anyone from another language would consider it!
justinmcp has quit [Ping timeout: 244 seconds]
recycle has joined #ruby
jrajav has quit [Quit: The best darkness is strange and surprising]
Takehiro has quit [Read error: No route to host]
Takehiro has joined #ruby
recycle has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
Eldariof59-ru has joined #ruby
mmitchell has joined #ruby
<shevy2> eeks I got disconnected
shevy2 is now known as shevy
th3hunt has left #ruby [#ruby]
gloomer has joined #ruby
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
bier_ has joined #ruby
andrewhl has quit [Remote host closed the connection]
Eldariof-ru has quit [Ping timeout: 252 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
<Hanmac> gyre007 information: in 1.9 ruby block-variables can shadow local-variables
chimkan has joined #ruby
c0rn_ has joined #ruby
mahmoudimus has joined #ruby
jrajav has joined #ruby
Gadgetoi_ is now known as Gadgetoid
recycle has joined #ruby
tommyvYo has joined #ruby
tommyvYo has quit [Changing host]
tommyvYo has joined #ruby
wallerdev has quit [Quit: wallerdev]
theRoUS has quit [Remote host closed the connection]
krz has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
kenichi has joined #ruby
JustinCampbell has joined #ruby
eph3meral has joined #ruby
skattyadz has quit [Quit: skattyadz]
grenierm has joined #ruby
cbuxton has quit [Ping timeout: 260 seconds]
neersighted has joined #ruby
aantix has quit [Remote host closed the connection]
aantix has joined #ruby
jjbohn is now known as jjbohn|afk
<danhunter> anyone have any experience with Faraday? I'm getting a conflict where one gem calls the request handler of another gem's request
Araxia has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
Araxia has joined #ruby
sendoushi has joined #ruby
bluenemo has quit [Remote host closed the connection]
Morkel has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
t2869 has quit [Remote host closed the connection]
t94877 has joined #ruby
haxrbyte_ has joined #ruby
a_a_g has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
grenierm has quit [Quit: grenierm]
al2o3cr has quit [Remote host closed the connection]
jamiltron has joined #ruby
recycle has quit [Remote host closed the connection]
genexp has quit [Remote host closed the connection]
al2o3cr has joined #ruby
Morkel has quit [Quit: Morkel]
haxrbyte has quit [Ping timeout: 272 seconds]
<jrajav> >> [10000]*10000
<al2o3cr> (Array) [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 100...
<jrajav> Yay no more spam
cbuxton has joined #ruby
eph3meral has quit [Quit: eph3meral]
elux has quit [Quit: Leaving...]
Morkel has joined #ruby
thunderstrike has joined #ruby
al2o3cr has quit [Remote host closed the connection]
al2o3cr has joined #ruby
tommyvYo has quit [Quit: Computer has gone to sleep.]
sendoushi has quit [Remote host closed the connection]
<Hanmac> jrajav so you want me to test that? :D
baphled has quit [Ping timeout: 245 seconds]
<jrajav> As long as you stay within the scripts
<jrajav> And don't use the !reset command
twinturbo has joined #ruby
<Hanmac> !panic
<al2o3cr> SAVE YOURSELF
<al2o3cr> Still alive~
<jrajav> I'm pretty sure that's spamproof now too (that is, the bot won't be banned)
banghouse is now known as banghouseAFK
pu22l3r has quit [Ping timeout: 245 seconds]
<jrajav> But let's not test that theory
<jrajav> I don't want to have to add privileges to it, or not give any feedback
<jrajav> I would probably opt for the latter, simpler solution though
<Hanmac> .. it says noo to me ... oO
tommyvYo has joined #ruby
tommyvYo has quit [Changing host]
tommyvYo has joined #ruby
<jrajav> ?
<shevy> it is the most tested bot in ruby history
bricker88 has quit [Ping timeout: 244 seconds]
<shevy> Hanmac proof finally
scant has quit [Read error: Connection reset by peer]
<Hanmac> # !reset#>(19:39:19) al2o3cr: NOOOOOOO
skattyadz has joined #ruby
<shevy> lol
<jrajav> Hanmac: There's an array of responses for both the "panic" phase and the "finished" phase :P
<jrajav> Hanmac: You can see them on github
<Hanmac> and for the reset too?
mxbtty has joined #ruby
mxbtty has quit [K-Lined]
<Hanmac> "And don't use the !reset command" its like "Dont press this button" or "Dont open this Door" ...
<Hanmac> did you really thought that i can resist that?
<workmad3> !reset
<al2o3cr> SWEET ZOMBIE JESUS
<al2o3cr> All better
<shevy> oh man
<shevy> give a kid a toy
<jrajav> Hanmac: Like I said, I'm pretty sure that it's spamproof. What you WOULD accomplish is annoying people here
dpk has quit [Quit: Asleep at the keyboard.]
<jrajav> Hanmac: Feel free to spam it in PM
<workmad3> shevy: more like give a kid both a toy and a hammer, and then tell him to not hit the toy with the hammer...
<shevy> lol
<jrajav> Hanmac: "Spamproof" -> Bot won't be klined
<davidcelis> !reset
<al2o3cr> SWEET ZOMBIE JESUS
<al2o3cr> Still alive~
<davidcelis> hahaha what the
<shevy> the most useful part of the bot is that it can be used as embedded irb
<shevy> >> "foo" * 2
<al2o3cr> (String) "foofoo"
arpegius has joined #ruby
<jrajav> For anyone who has no idea what's going on, the !reset command and its aliases simply kill all currently running scripts
zigomir has quit [Ping timeout: 260 seconds]
olrrai has quit [Quit: Saliendo]
<jrajav> This is necessary because there are unfixable ways to cause a script to run forever and eventually eat up all available timer threads
KindOne has quit [Read error: Connection reset by peer]
darkc0met has quit [Write error: Connection reset by peer]
nyuszika7h has quit [Write error: Connection reset by peer]
nyuszika7h has joined #ruby
<workmad3> jrajav: well yeah... it was one of the first provably non-computable tasks
<workmad3> jrajav: the halting problem :)
Rochefort has joined #ruby
resure_ has joined #ruby
jjbohn|afk has quit [Quit: Leaving...]
<jrajav> Well, I gotta go now
recycle has joined #ruby
bricker88 has joined #ruby
<jrajav> If there are any issues with the bot do what several people have already figured out and post an issue on github
bricker88 has quit [K-Lined]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Rochefort has quit [Remote host closed the connection]
jrajav has quit [Quit: The best darkness is strange and surprising]
Taichouchou2 has quit [Remote host closed the connection]
<Hanmac> shevy i found a place where i can hide my objects from a GC and its not an global or class variable :D
bluenemo has quit [Remote host closed the connection]
<Spooner> Hanmac : Yeah, Marshal them :P
Tearan has joined #ruby
<Spooner> Or send them to your auntie.
resure has quit [Quit: ZNC - http://znc.in]
resure_ is now known as resure
<Hanmac> Spooner no more evil ... hide them in instance variables of symbols :D
<LiquidInsect> wtf
resure is now known as resure_away_away
<Hanmac> because symbols and Fixnums are real objects they have instance variables ... and there you could store something :D
<LiquidInsect> for that matter you could use Fixnums or anything else immutable for the same thing
<workmad3> Hanmac: haha
skattyadz has quit [Quit: skattyadz]
wpaulson has joined #ruby
<rcassidy> o_O
genexp has joined #ruby
KindOne has joined #ruby
wallerdev has joined #ruby
ilyam has quit [Quit: ilyam]
joephelius has joined #ruby
<Hanmac> "ruby - more evil features since Hanmac appears"
punkrawkR has joined #ruby
<workmad3> do Fixnum instance variables work properly?
<davidcelis> >> @fixnum = 5; puts @fixnum
<al2o3cr> (NilClass) nil, Console: 5
<LiquidInsect> haven't tried, but similar to Fixnums they're objects that aren't GCed
<workmad3> davidcelis: haha, not what I meant :P
<LiquidInsect> davidcelis: no, an instance variable IN a Fixnum
<davidcelis> wut
<workmad3> >> 5.instance_variable_set(:@foo, "hi"); puts 5.instance_variable_get(:@foo)
<al2o3cr> (NilClass) nil, Console: hi
<davidcelis> i dont know why i was immediately surprised
<davidcelis> makes sense
dpk has joined #ruby
mascool has joined #ruby
<LiquidInsect> er, similar to Symbols that is
mikehaas763 has joined #ruby
jwmann has joined #ruby
jwmann has quit [Max SendQ exceeded]
<davidcelis> >> def 5.foo() "hi" end; 5.foo
<al2o3cr> -e:1:in `eval': (eval):1: syntax error, unexpected tINTEGER (SyntaxError), def 5.foo() "hi" end; 5.foo, ^, (eval):1: syntax error, unexpected tSTRING_BEG, expecting $end, def 5.foo() "hi" end; 5.foo, ^, from -e:1:in `<main>'
<davidcelis> aw
jwmann has joined #ruby
jwmann has quit [Max SendQ exceeded]
<workmad3> >> def 5.foo(); "hi"; end; 5.foo
<al2o3cr> -e:1:in `eval': (eval):1: syntax error, unexpected tINTEGER (SyntaxError), def 5.foo(); "hi"; end; 5.foo, ^, (eval):1: syntax error, unexpected keyword_end, expecting $end, def 5.foo(); "hi"; end; 5.foo, ^, from -e:1:in `<main>'
<mikehaas763> Hi, I installed ruby on ubuntu by using apt-get install ruby1.9.1 and I noticed a lot of dependencies with java in the name were installed. Why are all these being installed? Isn't ruby created with c?
<davidcelis> def :test.foo() "hi" end; :test.foo
darkc0met has joined #ruby
<davidcelis> >> def :test.foo() "hi" end; :test.foo
<al2o3cr> -e:1:in `eval': (eval):1: syntax error, unexpected tSYMBEG (SyntaxError), def :test.foo() "hi" end; :test.foo, ^, (eval):1: syntax error, unexpected tSTRING_BEG, expecting $end, def :test.foo() "hi" end; :test.foo, ^, from -e:1:in `<main>'
<LiquidInsect> mikehaas763: short answer: don't use apt to install ruby
mneorr has joined #ruby
<workmad3> >> a = 5; def a.foo; "hi"; end; 5.foo
<al2o3cr> -e:1:in `eval': can't define singleton method "foo" for Fixnum (TypeError), from -e:1:in `eval', from -e:1:in `<main>'
c0rn_ has quit [Quit: Computer has gone to sleep.]
<workmad3> thought that was the case
x77686d_ has joined #ruby
<LiquidInsect> rvm or rbenv/ruby-build would be better
machty_ has joined #ruby
<mikehaas763> LiquidInsect, I am scared to say it in here but I think it may be fine because I am only installing ruby so that I can use capifony
<vlad_starkov> Hanmac: just finished updating ports. Now I have another error )
<mikehaas763> I'm ducking
<Hanmac> workmad you cant define singleton methods on symbol, fixmum,bigmun & float
<LiquidInsect> hah
savage-_ has joined #ruby
<rcassidy> woah.
<LiquidInsect> well it's fine, they just pull in dependencies you don't need
<LiquidInsect> maybe for jruby support? don't know
chimkan has quit [Quit: chimkan]
savage- has quit [Read error: Connection reset by peer]
<davidcelis> >> 5.instance_eval { attr_accessor :value }
<al2o3cr> -e:1:in `eval': undefined method `attr_accessor' for 5:Fixnum (NoMethodError), from (eval):1:in `instance_eval', from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<davidcelis> lol
Tearan has quit [Quit: Sleepy Badger....]
<rcassidy> >> class Symbol; attr_accessor :thisisweird; end; :foo.thisisweird="it really is"; :foo.thisisweird
<al2o3cr> (String) "it really is"
<davidcelis> I only want it on 5
<davidcelis> other Fixnums are unworthy
voodoofish430 has joined #ruby
x77686d has quit [Ping timeout: 260 seconds]
x77686d_ is now known as x77686d
<workmad3> Hanmac: I give you exhibit b:
t94877 has quit [Remote host closed the connection]
t75681 has joined #ruby
<Hanmac> >>def test; def test;def test;"third";end;"second";end;"first";end;p test;p test;p test
<al2o3cr> (String) "third", Console: "first", "second", "third"
<workmad3> >> class Bignum; def singleton_method_added(*args); end; end; a = 100000000000000000000000000000; def a.foo; "hi"; end; a.foo
<al2o3cr> (String) "hi"
opus__ has joined #ruby
<Hanmac> workmad3 ok it works for bignum, but not for fixnum and not float
<davidcelis> >> class Fixnum; def singleton_method_added(*args); end; end; a = 5; def a.foo; "hi"; end; a.foo
<al2o3cr> -e:1:in `eval': can't define singleton method "foo" for Fixnum (TypeError), from -e:1:in `eval', from -e:1:in `<main>'
<davidcelis> al2o3cr: F U
resure_away_away is now known as resure
bradhe has joined #ruby
wpaulson_ has joined #ruby
ilyam has joined #ruby
x77686d has quit [Remote host closed the connection]
ibash has quit [Quit: ibash]
mc0e has quit [Ping timeout: 244 seconds]
mc0e1 has joined #ruby
wpaulson has quit [Ping timeout: 272 seconds]
wpaulson_ is now known as wpaulson
<shevy> Hanmac haha that's creative
bradhe_ has quit [Ping timeout: 246 seconds]
<shevy> mikehaas763 the problem is, ubuntu and debian want to stay in full control of everything. so if they do silly things with ruby, it's their fault, not the ruby core team
<mikehaas763> Ok, well if I run into problems I'll just autoremove and then use the more preferred method
LouisGB has quit [Ping timeout: 246 seconds]
matty5000 has quit [Ping timeout: 260 seconds]
<mikehaas763> But I'm only using it for a deployment tool
<shevy> but you use debian ruby
heftig has joined #ruby
<mikehaas763> Hmm?
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
elaptics is now known as elaptics`away
yoklov has quit [Quit: computer sleeping]
Kabaka has quit [Quit: Rebooting for kernel update.]
<shevy> it's like in matrix I. you take the red pill or the blue pill. if you use debian's system ruby, it is best to stick with this scheme. or you abandon it completely
x77686d has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> shevy: i wonder what would happen when he took both pills at once
<shevy> it happens all the time
<shevy> people will mix rvm with debian-ruby with /usr/local prefix compiled ruby from source and at least 3 different instances of "gem"
<mikehaas763> shevy, I'm not developing with ruby so I'm sure it will be just fine and it would be extremely easy to switch off of debians ruby
<shevy> it's not easy to escape from the red pill ;)
pdelgallego has joined #ruby
<shevy> the red pill makes people lazy, that's its biggest strength
<Hanmac> my debian ruby is the current newest ruby (that is published) o i dont need to compile it from source or use rvm
<shevy> is your debian ruby compiled with --enable-load-relative
<Hanmac> shevy why do you ask?
<shevy> I am sure it is not!
himsin has quit [Quit: Leaving]
virunga has quit [Remote host closed the connection]
<vlad_starkov> So, I finally resolved my problem with error "Library not loaded: /opt/local/lib/libffi.5.dylib (LoadError)" which was firing every time I was running `rails console` after installing "tiff" gem on OSX Mountain Lion. The problem was in missing "libtiff" because Mountain Lion doesn't ships with this library. The solution is: 1) Install Homebrew from http://mxcl.github.com/homebrew; 2) Run `brew install libtiff`. Hope it will be useful
<vlad_starkov> for somebody.
<shevy> your ruby will work only if you use /usr prefix
shadoi has joined #ruby
<shevy> hmm Hanmac
<shevy> can you have a static ruby?
mrdodo has joined #ruby
matty5000 has joined #ruby
<shevy> I failed trying to have a static ruby so far :(
himsin has joined #ruby
Criztian has quit []
GoGoGarrett has joined #ruby
<Hanmac> shevy why do i need "--enable-load-relative"?
<shevy> Hanmac so you can put ruby into other places
Kabaka has joined #ruby
<Hanmac> i have '--enable-shared' in my configureargs
<shevy> yeah I too
<shevy> but only because I failed to make a static ruby :(
wpaulson has joined #ruby
foolove has quit [Ping timeout: 248 seconds]
baphled has joined #ruby
<Hanmac> shevy: but i have a libruby-1.9.1-static.a ...
<shevy> hmmmm
<shevy> strange
<shevy> I have a *static.a too
dan- has quit [Quit: Leaving...]
pu22l3r has joined #ruby
<shevy> it's even quite large... 3.5 MB
TheShadowFog has quit [Quit: pls respond]
<Hanmac> hm imo the name is a bit wrong ... but i dont kno whos fault is that ...
rubious has joined #ruby
brennen has quit [Ping timeout: 246 seconds]
<Hanmac> shevy you think this is large? my c++-exts are ten-times that large XD
TheShadowFog has joined #ruby
flak has joined #ruby
mahmoudimus has quit [Ping timeout: 245 seconds]
flak is now known as Guest57421
joephlius has joined #ruby
sterex has joined #ruby
<shevy> hmm
<shevy> the ruby binary is 2.2 MB
<shevy> and non-static
savage-_ has quit [Read error: Connection reset by peer]
savage- has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
Squarepy has quit [Read error: Connection reset by peer]
ndboost has joined #ruby
joephelius has quit [Ping timeout: 260 seconds]
Squarepy has joined #ruby
<ndboost> how can one check if a value is not nil && equal to another var
<ndboost> <% unless Fillup.secondtolast.id.nil? && Fillup.secondtolast.id == @fillup.id; lastFillup = Fillup.secondtolast %>
<ndboost> still throws excep
jjbohn has joined #ruby
<shevy> hmm how about
<shevy> if ! foo.nil? && (foo != bar)
<Hanmac> shevy my ogre.so has 36M
<ndboost> youre a friggin life savior jjbohn
hemanth has quit [Read error: Connection reset by peer]
Takehiro has quit [Remote host closed the connection]
<jjbohn> ?
<shevy> jjbohn be happy, don't ask
<jjbohn> good enough for me
<shevy> you won't be randomly praised every day :D
<ndboost> woop meant shevy haha
<jjbohn> haha
<ndboost> but you too jj
<jjbohn> I try my best :)
<ndboost> now to figure out why osx is giving me seg faults when trying to use thin
<ndboost> grumble
khakimov has joined #ruby
mohits has joined #ruby
i0n has quit [Quit: Lost terminal]
matty5000 has quit [Ping timeout: 245 seconds]
<ndboost> i have a theory question involving android and rails
<canton7> 'unless var.nil? && var == something' is like saying 'if !(var.nil? && var == something)', when in fact you want 'if !var.nil? && var == something', or 'unless var.nil? || var != something'
<canton7> (I think the last one's right. either way, don't use it)
<shevy> heeh
<ndboost> lol
<ndboost> yeah shevy's worked perfect
<shevy> canton7 epic comment :)
<ndboost> went with <% if ! Fillup.secondtolast.nil? && (Fillup.secondtolast.id == @fillup.id); lastFillup = Fillup.secondtolast %>
matty5000 has joined #ruby
<canton7> ndboost, yeah, that's the best option imo. you can lose the brackets if you want
<ndboost> gets the second to last row from a table, and subtracts two cols
<canton7> shevy, hehe. mental boolean logic yay
pdelgallego has quit [Quit: pdelgallego]
devanon has joined #ruby
<ndboost> anyhoot, trying to develop an android app that can interface with Devise gem for authentication.. any ideas?
Russell^^ has joined #ruby
<ndboost> in php, id just create an API..
fyolnish_ has joined #ruby
<shevy> good old php
<canton7> restful API, yeah
<ndboost> hmm
<ndboost> i wonder if theres a better approach to pushing/pulling data within an android app
<ndboost> to a heroku instance/mysql db
<ndboost> could just make a web wrapper in the app i guess.
<canton7> you *could* connect to your db directly, but that's potentially a very bad idea
foolove has joined #ruby
<shevy> yeah
<ndboost> i could use a service like pusher, to push data to the android device, but not sure about pushing back to the db
<shevy> code has the unhealthy feature that it gets uglier over time
phinfonet has joined #ruby
<ndboost> bah one stone at a time a guess.. learn RoR fully before trying to dev the android app =P
mohits has quit [Ping timeout: 272 seconds]
carloslopes has quit [Quit: Leaving.]
<canton7> if you're just doing an api, use sinatra / some other rest-specific framework
brennen has joined #ruby
genexp has quit [Remote host closed the connection]
<TTilus> for plain api ror is an overkill
w400z has quit []
<ndboost> is my app that im making, my first RoR experience.
<ndboost> idea is to make a web version that can display the same data that the android app does.. and vice versa.
jorge_ has joined #ruby
_nyuszika7h_ has joined #ruby
<canton7> me likey the design, or what there is of it
afman has quit [Quit: Page closed]
<ndboost> bootstrap
<shinobi_one> woo another twitter bootstrap app
<ndboost> all i did was the logo
<shinobi_one> lol
<shevy> lol
<ndboost> shinobi.. its not about the design, more importantly is the code ;)
<shinobi_one> haha
<TTilus> shevy: thats lehman's second and seventh, the "gets uglier over time"
<ndboost> design can change later. all i care about right now is learning RoR
<shinobi_one> although i've used bootstrap in production, i have to say it is bad practice either way xP
Drewch has quit [Excess Flood]
mohits has joined #ruby
<macer1> hey
<ndboost> and considering i dont care about DOM standards at the present time.. bootstrap cuts down on dev time and allows me to focus more on RoR stuff.
<macer1> how can I transform
<macer1> >> ["a","b","c"]*2
<al2o3cr> (Array) ["a", "b", "c", "a", "b", "c"]
<shinobi_one> but it's a quick way to get an app up and running with minimal dev time spent on design
<macer1> uh not like that
<shinobi_one> exactly ndboost
<macer1> [['a','b','c'],['a','b','c']]
<macer1> to [2,['a','b','c']]
<shinobi_one> ndboost: it just turns out after all the coding you're like.. well.. it doesn't LOOK bad with bootstrap.. maybe i just keep it xP
<macer1> I mean number of repeats
<ndboost> hahahahaha yeah
azm has quit [Ping timeout: 268 seconds]
<shinobi_one> >.<
<ndboost> so anyhoot, thoughts on best way to do this synchronization between "web app" and android app
<shinobi_one> ndboost: can't you just post to a url?
Drewch has joined #ruby
<ndboost> for now its just responsive bootstrap and you can goto gasloggr.com on your phone.
virunga has joined #ruby
<ndboost> but id like to make an apk that you can download and install
hoelzro|away is now known as hoelzro
<ndboost> stretch of a comparison, but like facebook.
<shinobi_one> ndboost: if you want to make an android app you need to know java and the android sdk lol
w400z has joined #ruby
<shinobi_one> interfacing it with your app should be easy peasy
joshpuetz has joined #ruby
troessner has quit [Quit: Leaving]
<ndboost> but the only options for interfacing are a restful based api right?
<ndboost> or similar?
<shinobi_one> well rails is restful
hoelzro is now known as hoelzro|away
Mixolyde has quit [Ping timeout: 245 seconds]
joshpuetz has left #ruby [#ruby]
Squarepy has quit [Read error: Connection reset by peer]
<shinobi_one> you just code the app to use the urls that your rails app uses
Squarepy has joined #ruby
<ndboost> smart
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
devanon has quit [Quit: devanon]
a_a_g has left #ruby [#ruby]
<shinobi_one> you could always go to #rubyonrails
<shinobi_one> but
<shinobi_one> really just use the same urls and you're golden
jgrevich has joined #ruby
<ndboost> cool
Squarepy has quit [Read error: Connection reset by peer]
<ndboost> im going to focus on learning RoR more, worry about the android app later.
Squarepy has joined #ruby
<shinobi_one> ndboost: good idea
<ndboost> trying to juggle two at once might be a bit much for me :)
<ndboost> thanks four your help shinobi
<lectrick> Can I define a new class inside a block?
<shinobi_one> well if you code the rails app well, then interfacing with the android app shouldn't be a huge problem as long as you know java and the android sdk, or learn maybe
<shinobi_one> lectrick: why would you want to do that?
mneorr has left #ruby [#ruby]
<lectrick> shinobi_one: Because I have a test that requires me to stub out a TestClass and I want to do it in a setup block?
<lectrick> That would be one good reason
<shinobi_one> humm
<lectrick> And I want to remove_const in the teardown
opus__ has quit [Quit:]
<shinobi_one> i feel like their should be some other way to do what you want, but i'm unsure as i'm too hungover to really think sorry lol >.<
Taichouchou2 has joined #ruby
kirun has joined #ruby
<ndboost> hangovers... thats when programming is impacted...
<ndboost> as long as you maintain the "programming level" of drunkness
<ndboost> you're golden.. as soon as you stop though.. you're boned.
<shinobi_one> well i'm at work right now, but luckily i don't have a ton of coding to do today
<ndboost> word, thankfully my 9-5 is not programming based..
<lectrick> shinobi_one: I tested in irb. You can do it.
<ndboost> do this stuff for pleasure =P
<shinobi_one> lectrick: yeah i assumed you could :)
<shinobi_one> ndboost: i came in today at 12pm lol
jensn has joined #ruby
Z_Mass has joined #ruby
<ndboost> surprisingly enough Stackoverflow Ruby chat is always empty.. php chat told me to come here..
<shinobi_one> it's the cool place to be
<shinobi_one> well here and #rubyonrails :P
<ndboost> oh and btw, i hate dreamhost's passenger setup.. struggled for 6 hours last night trying to get capistrano to deploy to my dreamhost VPS.. finally gave up and pushed to heroku in ~45mins
<ndboost> then had a scotch on the rocks
<shinobi_one> nice
<shinobi_one> what was the issue with their passenger setup?
devanon has joined #ruby
<ndboost> stackoverflow.com/questions/12104438/capistrano-dreamhost-deploy-fails-doesnt-create-the-release-release-version
Taichouchou2 has quit [Ping timeout: 240 seconds]
<ndboost> im sure its something way more involved..
chimkan has joined #ruby
<ndboost> so now im using the DH vps for my mysql server, and heroku for the web/worker stuff
<shinobi_one> or it's something really simple
<shinobi_one> do you have permissions to create the directory? :P
<ndboost> doesnt cap chmod the folders for you..
<ndboost> it created all the deploy folders when i ran cap deploy:setup
<shinobi_one> hm
sixtycakes has quit [Remote host closed the connection]
<ndboost> but for some reason it freaks when trying to create the next release
<ndboost> who knows, ill probably stick to using heroku
<shinobi_one> heroku sooo expensive though lol
t75681 has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 245 seconds]
<ndboost> much sexier :)
<shinobi_one> linode.com is a popular choice
t14997 has joined #ruby
<shinobi_one> but hey, whatever works
<ndboost> yeah i love the addon features with heroku
<shinobi_one> soo expensive :P
<ndboost> i swear by newrelic in the php world, and having a one click availability for it for RoR is friggin sweet
jcromartie has quit [Ping timeout: 276 seconds]
<shinobi_one> yeah heroku has some pretty awesome featuers
<shinobi_one> features*
<shinobi_one> one-click addons are sexy
Tearan has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
<ndboost> oh yeah it is, but the stuff i do is mostly friends/family and the free version is enough thus far.. blitz says i can handle ~30 sim users for gasloggr and thats at 0/0 dynos
Guest57421 is now known as rippa
Tearan has quit [Client Quit]
xorigin has joined #ruby
<shinobi_one> have you checked your space limits though? i remember mine when i was developing and using heroku free to show customers it filled up so fast
bradhe has quit [Remote host closed the connection]
<shinobi_one> i suppose your database is separate though
<shinobi_one> that should help
elux has joined #ruby
Squarepy has quit [Quit: Leaving]
paolooo has joined #ruby
x77686d has quit [Quit: x77686d]
emsilva has quit [Ping timeout: 245 seconds]
<rcassidy> currently working on a project that absolutely requires a bunch of concurrent ruby scripts -
<rcassidy> my current methodology involves using process.spawn and collecting pids, then process.kill-ing them all
<rcassidy> is this standard MO for something like this? or a better way to generally manage this situation?
jgrevich has quit [Read error: Operation timed out]
<shinobi_one> rcassidy: there might be a gem to help
jgrevich has joined #ruby
apok has quit [Quit: apok]
jamiltron has quit [Quit: Leaving.]
<rcassidy> woah, sexy unicode checkmark in URL
<shinobi_one> :P
<shinobi_one> html5 bro :D
apok has joined #ruby
burgestrand has joined #ruby
<shinobi_one> the concur gem looks good
apok has quit [Client Quit]
<shinobi_one> silly how their General Usage part isn't syntax high-lighted but the one above is
<rcassidy> aw, there would be a big *DEPRECATED!!!* flag in the readme for that gem when talking about using EM
<rcassidy> lol
<shinobi_one> lol
<shevy> when was gem written?
mohits has quit [Ping timeout: 260 seconds]
<shevy> ruby emerged 1995
ndboost has quit [Quit: Page closed]
<shevy> I wanna find out how long it took before gem was handling ruby addons
<shinobi_one> a month agoruby toolbox says released 29 days ago
<shevy> wat
<rcassidy> shinobi is talking about a particular gem. shevy you're asking when rubygems was written?
reactormonk has quit [Ping timeout: 276 seconds]
<shinobi_one> oh luls
<shevy> ah ok
<shevy> yeah rcassidy
mahmoudimus has joined #ruby
<shinobi_one> lol gem was written a month ago >.<
<shinobi_one> 5.times { puts 'silly' }
<rcassidy> shevy i am seeing 03 for gem being conceptualized/made
<shevy> rubygems-0.2.0: 2004-03-14 22:54
<rcassidy> close enough
<shevy> hmm that sounds alright
<shevy> so 2003/2004
<shevy> almost 10 years after ruby emerged :)
RubyPanther has quit [Quit: self.exit(:stage=>:left)]
chimkan has quit [Quit: chimkan]
RubyPanther has joined #ruby
arpegius has quit [Quit: arpegius]
matrixise has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
resure is now known as resure_away
yoklov has joined #ruby
revans has joined #ruby
<shinobi_one> need message passing? use erlang
<shinobi_one> luls
adac has joined #ruby
internet_user has quit [Remote host closed the connection]
machty__ has joined #ruby
ReallyBigBuster has joined #ruby
darren has joined #ruby
infinitiguy has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
berserkr has quit [Quit: Leaving.]
stopbit has joined #ruby
ReallyBigBuster has left #ruby [#ruby]
machty_ has quit [Ping timeout: 276 seconds]
emsilva has joined #ruby
chimkan has joined #ruby
busybox42 has quit [Ping timeout: 252 seconds]
<shinobi_one> bleh.. need to eat something to soak up the booze sitting in my stomach from last night
zommi has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
reactormonk has joined #ruby
busybox42 has joined #ruby
matrixise has quit [Ping timeout: 244 seconds]
wobr1 has joined #ruby
<shevy> linguist
meyy has joined #ruby
<shevy> custom_require.rb:36:in `require': cannot load such file -- pygments (LoadError)
rubious has quit [Quit: Leaving...]
meyy has left #ruby [#ruby]
<shevy> gem install pygments
<shevy> ERROR: Could not find a valid gem 'pygments' (>= 0) in any repository
t14997 has quit [Remote host closed the connection]
<shevy> hmmmmm
sambio has joined #ruby
chussenot has quit [Quit: chussenot]
t11621 has joined #ruby
meyy has joined #ruby
meyy has left #ruby [#ruby]
emsilva has quit [Ping timeout: 240 seconds]
havenn has joined #ruby
luist has quit [Quit: luist]
SegFaultAX|work2 has joined #ruby
jamiltron has joined #ruby
<RubyPanther> we're practically CPAN
kpshek has quit []
Takehiro has joined #ruby
_bart has quit [Quit: _bart]
nicoulaj has joined #ruby
snearch has joined #ruby
<fowl> =()=
recycle has quit [Remote host closed the connection]
sixtycakes has joined #ruby
arpegius has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
wpaulson has joined #ruby
wobr1 has quit [Quit: Leaving.]
pdelgallego has joined #ruby
rmillerx has joined #ruby
emsilva has joined #ruby
emsilva has quit [Changing host]
emsilva has joined #ruby
<oz> shevy: pygments-rb?
<oz> no, pygments.rb ... oh god.
jlogsdon has quit [Remote host closed the connection]
* oz wishes for a new normal name
chussenot has joined #ruby
* fowl wishes he had courage
phinfonet has quit [Quit: Linkinus - http://linkinus.com]
havenn has quit [Remote host closed the connection]
cascalheira has joined #ruby
darren__ has joined #ruby
c0rn_ has joined #ruby
rmillerx has quit [Quit: rmillerx]
cascalheira has quit [Client Quit]
recycle has joined #ruby
darren has quit [Read error: Connection reset by peer]
recycle has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 252 seconds]
macmartine has joined #ruby
nu7hatch has joined #ruby
<nohonor> quiestion, good people
<nohonor> what's wrong with this heredoc
<nohonor> i'm getting a "syntax error, unexpected '<', expecting '}'" in the opening tag
mrdodo has quit [Remote host closed the connection]
cascalheira has joined #ruby
mrdodo has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
Z_Mass has quit [Ping timeout: 252 seconds]
recycle has joined #ruby
<matti> nohonor: Looks OK.
philcrissman has joined #ruby
<mikehaas763> Would someone convert the following line from using svn to using git? set(:repository) { (tag == "trunk") ? "#{repository_root}/trunk" : "#{repository_root}/tags/#{tag}" }
<devanon> Maybe a space between 'puts' and '<<' ? :/
<matti> Ah, yes.
<matti> nohonor: What -> devanon said
<nohonor> devanon, ahh, you're right
cascalheira has quit [Client Quit]
<matti> I assumed that this is a c-p error ;d
<matti> Hehe
chussenot has quit [Quit: chussenot]
<nohonor> so i'm actually calling some method puts<<EOS
Eldariof27-ru has joined #ruby
<nohonor> or?
arpegius has quit [Quit: arpegius]
t11621 has quit [Remote host closed the connection]
t67629 has joined #ruby
CreativeEmbassy has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
internet_user has joined #ruby
elux has quit [Quit: Leaving...]
<nohonor> devanon, matti thanks for the help
Eldariof59-ru has quit [Ping timeout: 276 seconds]
chussenot has joined #ruby
<nohonor> still, could you elucidate a bit on what's happening
<devanon> nohonor: :)
adambeynon has joined #ruby
adac has quit [Ping timeout: 252 seconds]
TheLZA has quit [Ping timeout: 268 seconds]
jasonLaster has quit [Remote host closed the connection]
<nohonor> guess not :-D
kpshek has joined #ruby
bradhe has joined #ruby
johnlcox has quit [Ping timeout: 260 seconds]
jasonLaster has joined #ruby
answer_421 has joined #ruby
jasonLas_ has joined #ruby
jasonLaster has quit [Read error: Connection reset by peer]
johnlcox has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
saschagehlich has quit [Quit: saschagehlich]
nu7hatch has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
<shevy> lol
dpk has quit [Quit: Asleep at the keyboard.]
sixtycakes has quit [Read error: Connection reset by peer]
<devanon> nohonor: still having problems with the heredoc?
sixtycakes has joined #ruby
reactormonk has quit [Ping timeout: 276 seconds]
<nohonor> no, it works like a charm
r0bby is now known as robbyoconnor
<devanon> nohonor: oks
<nohonor> i'm just curious why i need to put a space before the <<
nu7hatch has joined #ruby
virunga is now known as Brutus-
<nohonor> is puts<<EOS a valid identifier?
emmanuel__ has joined #ruby
<nohonor> i don't believe that's the way it works in perl
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
<devanon> nohonor: puts is the function, and there must be a space between it and the argument
CharlieSu has joined #ruby
<nohonor> >> "".to_s+"1"
<al2o3cr> (String) "1"
cantonic has joined #ruby
<CharlieSu> Any idea why this Regex is no longer working? I know it worked in 1.8.7 but now I'm using 1.9.3 and getting the following errors. invalid multibyte escape (ArgumentError) and dynamic constant assignment https://gist.github.com/026e79026b92f17051fa
<nohonor> ahh, so you mean <<EOS is the argument
mahmoudimus has quit [Quit: Computer has gone to sleep.]
hemanth has joined #ruby
<devanon> nohonor: yes, you give the entire heredoc as if it were a string
<Hanmac> puts<<EOS; is avaluated like this: puts()<<(EOS)
Knodi has joined #ruby
matty5000 has quit [Ping timeout: 264 seconds]
<nohonor> << "".is_a?String
twinturbo has quit [Quit: twinturbo]
Neo17 has quit [Quit: Leaving]
<nohonor> >> "".is_a?String
<al2o3cr> (TrueClass) true
<nohonor> Hanmac, puts()<<(EOS) ?
<devanon> so is trying to use <<(EOS) as a block given to puts, that starts with something different from { or do
Neo17 has joined #ruby
adac has joined #ruby
<nohonor> a block?
Eldariof27-ru has quit []
<nohonor> ok, that's different
Bosma has joined #ruby
tvw has joined #ruby
<Hanmac> devoanon: i mean that it uses the << method on the result of puts, and with the EOS constant as an argumment
<devanon> well, that is what i think is hapening xD Maybe I am wrong :/
<nohonor> >> puts()
<al2o3cr> (NilClass) nil
<nohonor> the << method on nil?
<Hanmac> yeah and it does not exist
aldodelgado has joined #ruby
paulmooring has quit [Quit: leaving]
<davidcelis> >> File.dirname(__FILE__)
<al2o3cr> (String) "."
Knodi has quit [Client Quit]
<nohonor> aha, so method_missing trickery
apok has joined #ruby
<rippa> puts.<<(EOS)
<Hanmac> nohonor & devanon: thats why you need the space before <<: so must it looks like > "puts <<EOS"
t67629 has quit [Remote host closed the connection]
<devanon> nil.responds_to?(<<)
t56865 has joined #ruby
<davidcelis> >> nil.responds_to?(<<)
<al2o3cr> -e:1:in `eval': (eval):1: syntax error, unexpected tLSHFT, expecting ')' (SyntaxError), nil.responds_to?(<<), ^, from -e:1:in `<main>'
<davidcelis> >> nil.responds_to?('<<')
<Hanmac> >> nil.responds_to?(:<<)
<al2o3cr> -e:1:in `eval': undefined method `responds_to?' for nil:NilClass (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
reset has joined #ruby
<al2o3cr> -e:1:in `eval': undefined method `responds_to?' for nil:NilClass (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<devanon> Seems I need to write >> before it to work… xD
<davidcelis> >> nil.respond_to?('<<')
<al2o3cr> (FalseClass) false
<nohonor> >> nil<<"foo"
<al2o3cr> -e:1:in `eval': undefined method `<<' for nil:NilClass (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<nohonor> ok, now i'm confused
<apeiros_> davidcelis: please don't spam with the bot. thanks.
resure_away has quit [Remote host closed the connection]
<apeiros_> you can use it in pm too.
elux has joined #ruby
<Hanmac> nohonor why are you confused?
<nohonor> so puts <<EOS means (puts())<<(EOS), ie nil<<("some string")
resure_away has joined #ruby
<rippa> yep
<devanon> puts(<<EOS)
<nohonor> but nil<<("some string") doesn't work
resure_away has quit [Remote host closed the connection]
<nohonor> >> nil<<("foobar")
<al2o3cr> -e:1:in `eval': undefined method `<<' for nil:NilClass (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
darren__ has quit [Ping timeout: 260 seconds]
<nohonor> what am i missing
<davidcelis> def nil.<<(arg)
cjs226 has quit []
<apeiros_> nohonor: people already told you that nil does NOT have a << method
<apeiros_> and that's what the error tells you too.
<nohonor> shouldn't it go through method_missing then
reactormonk has joined #ruby
<rippa> if you define nil.<<
<nohonor> if that's how it works
<rippa> it works
<apeiros_> nohonor: if you have defined it on NilClass, yes.
<davidcelis> def nil.<<(*args) "nil" + args.join end
<nohonor> but it works on heredocs without defining anything
<davidcelis> nil << "hi", "there" # => "nilhithere"
<nohonor> did you read my initial question
<apeiros_> nohonor: "it works on heredocs"? what's it?
<rippa> >> def nil.<<(*args) "nil" + args.join end; nil<<RUBY_VERSION
<al2o3cr> (String) "nil1.9.3"
<apeiros_> << in the heredoc is not a method. it's part of the heredoc.
<nohonor> well, then what i was told is wrong
Jackneill has quit [Ping timeout: 260 seconds]
<nohonor> and i'm back to my original question
<devanon> because when you write 'puts <<EOS' you are calling the function puts, and giving the entire heredoc as a String in the first argument
<nohonor> ok, but why does it require a space
<apeiros_> nohonor: and what is your original question?
<rippa> because it's ambiguous
<apeiros_> you mean why is `puts<<EOS` and `puts <<EOS` not the same?
<nohonor> "".is_a?Space works
<devanon> beacuse you dont use ( after puts
<apeiros_> as rippa says, because it's ambiguous.
<rippa> >> 128<<2
<al2o3cr> (Fixnum) 512
<nohonor> *"".is_a?String
jensn has left #ruby [#ruby]
<fowl> Ambiguity!!!
audy has joined #ruby
<davidcelis> dude, think of it this way
<davidcelis> puts<<EOS looks like shit
<devanon> xD
<apeiros_> puts<<EOS is interpreted by ruby as puts.<<(EOS)
<fowl> puts <<EOS.chomp.reverse.upcase
<nohonor> ahhaa
r0bby has joined #ruby
<davidcelis> SOE
<nohonor> so it's another case of optional parentheses breaking expected syntax
<nohonor> that's #3 or #4
<apeiros_> nohonor: um, no
<apeiros_> it's another case of where what you expect isn't how reality works
<davidcelis> it's not expected just because you expect it
<rippa> fowl: puts <<A.reverse, <<B.upcase
<apeiros_> ^ that
<nohonor> apeiros_, i expect it because it works in perl
<apeiros_> nohonor: ruby is not perl
<davidcelis> ruby != perl bro
<fowl> ruby is perl, bro.
mikehaas763 has quit [Quit: Leaving]
* apeiros_ smacks fowl with some perl
<davidcelis> sure we stole perl's regex, but it's not the same language
<fowl> one of us will always lie, the others will always lie.
clocKwize has joined #ruby
stopbit_ has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
<nohonor> hmm, i'll have to meditate on this
<nohonor> anyway, thanks for the explanations everyone
<nohonor> even the wrong ones :-D
Neo17 has quit [Quit: Leaving]
<devanon> we learned a new thing about ruby :)
mrdodo has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 245 seconds]
<apeiros_> I didn't
audy has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
<apeiros_> I is not we?
themadcanudist has joined #ruby
themadcanudist has left #ruby [#ruby]
<fowl> what was learned
<fowl> recap plz
<apeiros_> the lesson
<davidcelis> The Lesson™
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Beoran__ has quit [Ping timeout: 246 seconds]
<devanon> well, I learned… ¬¬
<davidcelis> i can do utf-8 too: ಠ_ಠ
<deryl> ¡woot¡
* apeiros_ ø(. . ) writes that down without utf-8
<devanon> that not puting the space makes ruby think you are calling the function << on the value returned from the puts function (nil)
<fowl> ah
<fowl> apeiros_: you like my prompt? http://i.imgur.com/SdDrZ.png
<apeiros_> lol
<davidcelis> w...tf
Guedes is now known as Guedes_out
jorge_ has quit [Remote host closed the connection]
w400z has quit [Quit: Computer has gone to sleep.]
<deryl> hehe some people just have way too much time on their hands :)
<apeiros_> my hands are busy. always.
<apeiros_> (Honi soit qui mal y pense)
<deryl> oh the places we could take that ;)
baroquebobcat has quit [Ping timeout: 252 seconds]
<fowl> deryl: it took way more than a few seconds to copy and paste those faces into a prompt </exaggerating>
<deryl> hehe
luckyruby has joined #ruby
Neo17 has joined #ruby
Neo17 has quit [Changing host]
Neo17 has joined #ruby
mohits has quit [Ping timeout: 244 seconds]
r0bby has quit [Ping timeout: 240 seconds]
t56865 has quit [Remote host closed the connection]
jhchabran has quit [Read error: No route to host]
t95286 has joined #ruby
indian has joined #ruby
nanderoo has quit [Quit: Leaving.]
pdelgallego has quit [Remote host closed the connection]
<Hanmac> i heard that windows8 has massive security risks in ther "Smartscreen" function ...
jbw has quit [Ping timeout: 276 seconds]
tchebb has joined #ruby
twinturbo has joined #ruby
Beoran__ has joined #ruby
jjbohn is now known as jjbohn|afk
Nisstyre has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
emmanuel__ has quit [Quit: emmanuel__]
jjbohn|afk is now known as jjbohn
reactormonk has quit [Ping timeout: 276 seconds]
aantix_ has joined #ruby
robbyoconnor has joined #ruby
TheLZA has joined #ruby
eph3meral has joined #ruby
mc0e1 has quit [Ping timeout: 264 seconds]
kenichi has quit [Remote host closed the connection]
mc0e has joined #ruby
aantix has quit [Ping timeout: 276 seconds]
aantix_ is now known as aantix
* Muz wonders why apeiros_ was reciting the Order of the Garter.
jensn has joined #ruby
<shevy> oh damn
kvirani has quit [Remote host closed the connection]
<shevy> "jobs -l"
jensn has quit [Client Quit]
<shevy> from ruby, that won't work? this is a bash builtin?
<shevy> I tried result = `jobs -l`
geekbri has quit [Remote host closed the connection]
tchebb has quit [Quit: Leaving.]
<shinobi_one> you're expecting ruby to magically run that command in a shell ?
Tearan has joined #ruby
dv__ has quit [Quit: No Ping reply in 180 seconds.]
<shinobi_one> ah i see the backticks
jbw has joined #ruby
<devanon> shevy: you want the output from the command in a variable?
<shevy> devanon kinda... I wanna find out the last PID of the jobs that were started, so that I can use a ruby script to kill the last PID quickly
<shevy> (usually I would use it in case that program hanged somehow)
libryder has joined #ruby
malkomalko has quit [Remote host closed the connection]
<shevy> jobs -l tells me:
<devanon> shevy: IO.popen("jobs -l") and you have the output to parse it with a regex or as you want
<shevy> [6]+ 25601 Stopped (signal) tt++ /test/run.tin (wd: /)
<shevy> [7] 13655 Running evince test.pdf
<shevy> hmm lemme test that
<shevy> IO.popen("jobs -l") says
<shevy> Errno::ENOENT: No such file or directory - jobs -l
gen0cide_ has joined #ruby
<shinobi_one> i get the same thing shevy
<libryder> can someone explain to me this? https://gist.github.com/6650ad5399333f09f695
matty5000 has joined #ruby
<libryder> why does str2.gsub!() also change str?
<shevy> is there another way to somehow find out the jobs? if not I guess I am a little stuck
<shevy> libryder it's not a real copy
<shevy> use "str2 = str.dup" if you need a real copy
<LiquidInsect> str2 = str
<devanon> you need to assign it to a variable or give it a block
tchebb has joined #ruby
<shinobi_one> libryder: str.object_id and str2.object_id
<devanon> var = IO.popen… or IO.popen do ...
<LiquidInsect> str2 and str will be the same object, you can check this with str2.object_id == str.object_id
<shevy> devanon, ok
<libryder> so str2 = str is just setting a pointer to that object?
<shinobi_one> devanon: how about 6? lol http://tech.natemurray.com/2007/03/ruby-shell-commands.html
<LiquidInsect> not exactly a pointer, but you can get away with thinking of it that way
<devanon> shinobi_one: oh, a new one! :D
<rcassidy> there is also process.spawn
<LiquidInsect> str2 and str are just names for an object
<LiquidInsect> in this case the same object
<nullsign> can someone show me how to test to see if a hash key is nil (non-existent) and if so - do x ?
<Hanmac> hm jobs is not installed on my system
kenichi has joined #ruby
luist has joined #ruby
fantazo has joined #ruby
mengu has joined #ruby
<shinobi_one> Hanmac: it is on mine when i run in shell, but ruby doesn't know about it it seems
<Hanmac> nullsign !hash.has_key?(key)
eph3meral has quit [Quit: eph3meral]
<devanon> nullsign: check Hash.fetch
<shinobi_one> do something if !hash.has_key?(key)
<devanon> that is what fetch does :)
<shinobi_one> or rather do somthing unless hash.has_key?(key)
nwest has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
pricees has quit [Ping timeout: 260 seconds]
chimkan has quit [Quit: chimkan]
<Hanmac> shinobi_one ... jobs dont look like a binary ... its a shell-build-in command ...
<Hanmac> thats why popen cant work
t95286 has quit [Remote host closed the connection]
<shinobi_one> Hanmac: that could explain it
chussenot has quit [Ping timeout: 276 seconds]
t51097 has joined #ruby
<shevy> :(
<shevy> time to destroy bash with a new shall ...
<shevy> erm
<shevy> shell
<davidcelis> zsh
<shinobi_one> result = system 'jobs-l'
<shinobi_one> works fine
<shevy> works how
<shevy> what does this do
fastred has joined #ruby
Tearan has left #ruby [#ruby]
<shinobi_one> runs the command in a subshell
<shinobi_one> er wait
<shevy> it doesn't do anything!
<devanon> shinobi_one: but you cant parse the output that way
<shevy> but I have a question actually
<shevy> "Errno::ENOENT: No such file or directory - jobs -l" <-- why does it tell this error message exactly?
<shinobi_one> devanon: ohh right
<shinobi_one> shevy: cuz it doesn't know what you are trying to do
<shevy> hmm
arpegius has joined #ruby
<shevy> I need a brain-computer interface
luist has quit [Remote host closed the connection]
<devanon> is trying to open a file with that name :/
<shinobi_one> shevy: let me know when you're done i'll use it
<deryl> google thomas massie (kentucky) he created a virtual reality interface that was supposed to connect to the brain. might make that work for oyu
<deryl> good luck finding a surgeon to implant it though ;)
<shinobi_one> india
<shinobi_one> :P
<deryl> hah
chussenot has joined #ruby
<shevy> shinobi_one will still take some years
<shinobi_one> shevy: lol i figure
tommyvYo has quit [Quit: Computer has gone to sleep.]
<shevy> I think you need different hardware
twinturbo_ has joined #ruby
<shinobi_one> organic hardware
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
wpaulson has joined #ruby
<shevy> the current neuronal chips/interfaces just don't really seem a good fit to let neurones grow to them
<shevy> yeah something like that
w400z has joined #ruby
<shevy> perhaps it'll be ready when blind people can see again 90% as good as normal people at least
chussenot has quit [Client Quit]
workmad3 has joined #ruby
eph3meral has joined #ruby
<Hanmac> shevy i have seen that they could use the interfaces to steel your PIN ...
mrdodo has joined #ruby
<deryl> PIN Pain In Neck ;)
twinturbo has quit [Ping timeout: 276 seconds]
<shevy> you mean steal I guess
twinturbo_ is now known as twinturbo
<nullsign> fetch eh?
<shevy> I don't think anyone wants someone else to run steel into them
<emsilva> anyone having problems with a fresh install of rvm/ruby-1.9.3-p194 on mountain lion? I can't get rails to work. "~/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find railties". Tried with RVM stable, head. Tried installing with both llc and ggc-4.3, and tried to implode/reinstall.
<deryl> take it to #rvm
<shevy> hehe
<Hanmac> and in the future, evil states like USA would use the interfaces to control us like puppets, or to kill us from the far with a "shutdown" command ...
<shevy> Hanmac, it's not constrained to states alone
chimkan_ has joined #ruby
dv__ has joined #ruby
<eph3meral> emsilva: you mean gcc-4.2 ?
snearch has quit [Quit: Verlassend]
<eph3meral> emsilva: did you use osx-gcc-installer or did you use homebrew's apple-gcc4.2 ?
<eph3meral> emsilva: i'm a sinatra guy, so I haven't done rails itself in a while now
Vert has joined #ruby
<emsilva> yes, I mean gcc-4.2 :) homebrew's.
<emsilva> eph3meral: I'm a sinatra guy myself as well, and I started seeing some other gems have the same problem. I'm just reporting rails because that's one a lot of people use :P
powerplay has joined #ruby
<eph3meral> emsilva: so, could not find railities basically sounds like rails wasn't installed properly
<Hanmac> shevy but i know, the usa would do it if they could
elux has quit [Quit: Bye!]
AntiTyping has quit [Ping timeout: 245 seconds]
Divinite has joined #ruby
<eph3meral> emsilva: huh, ok, yeah i haven't played with rails since i got my new retina :)
saschagehlich has joined #ruby
<powerplay> hey everyone, how do you break up a long line full of multiple chains of methods calls?
<powerplay> For example: course_section_info_array = course_section_info_nodes[0].last_element_child.first_element_child.text.sanitize.split
<eph3meral> powerplay: you have to leave the period at the end, not the beginning
<powerplay> i wanna break this upto two lines
<eph3meral> powerplay: it's kind of "unintuitive" IMO, but it's the only real way to do it
<eph3meral> unless, i dunno, there might be some special line continuation operator i don't know about
<devanon> powerplay: you can enter a newline after a dot, and indent a couple of times the next line
<powerplay> eph3meral: thanks
asteve has quit []
<devanon> i think the continuation operator is \
artOfWar has quit [Remote host closed the connection]
<eph3meral> i thiink the continuation operator is ugly
<eph3meral> ;P
<Hanmac> sanitize ... it looks that you do some evil rails shit?
<powerplay> devanon: thanks
<devanon> yes, it is xD
iamjarvo has quit [Ping timeout: 244 seconds]
<powerplay> reason im trying to break it up is becuase according to "convention" there should be max 80 characters per line
* Hanmac pets his good rails-detector ... it barks when it notices rails code
<shevy> powerplay it's not a bad convention, you have it easier to look at what happens when it's on just one side of your face
<shevy> rather than 500 characters per line
nohonor has quit [Quit: Leaving]
x77686d has joined #ruby
nyuszika7h is now known as |nyuszika7h|
_nyuszika7h_ is now known as nyuszika7h
pricees has joined #ruby
rippa has quit [Ping timeout: 264 seconds]
<powerplay> shevy: yup i agree as it can be annoying to keep scrolling to read the rest of the code
<powerplay> while having it all on a single frame makes like easier
jamiltron has quit [Quit: Leaving.]
<powerplay> and as far as breaking up long comments, does everyone prefer multiple #'s or the =begin and =end?
the_jeebster has joined #ruby
<nullsign> location = hosts.fetch(["10.1.10.10.10"][:location], "go fish") <== anyone see what i did wrong?
<powerplay> i dont like the fact that the =begin and =end cannot be indented
Stalkr_ has joined #ruby
<shinobi_one> Hanmac: not a fan of rails eh?
<matti> nullsign: IP?
<nullsign> matti: basically lookup is ip addy as key for that hash, if not found, assign "go fish"
<devanon> I only use =begin end to stop code from executing
<Mon_Ouie> Pretty much everyone uses multiple #
<Hanmac> shinobi ... no it makes the beautiful ruby shitty
tdelam has quit [Remote host closed the connection]
<shinobi_one> Hanmac: it does?
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
artOfWar has joined #ruby
<Hanmac> yeah ... and it makes the users shitty too (when they learn rails first)
<deryl> shinobi_one: this is a 'pure' channel. so in here, yeah it does
end_guy has joined #ruby
<shinobi_one> oh hai again deryl lol
<deryl> :)
<powerplay> devanon: same here thanks
dbck has quit [Quit: Be back later]
<powerplay> Mon_Ouie: thanks
w400z has quit [Quit: Computer has gone to sleep.]
t51097 has quit [Remote host closed the connection]
<Mon_Ouie> I use M-; for that :p
<nullsign> hrm.
<shinobi_one> there are some sexy parts in rails though, although i can think of a few bad ones i guess
t79464 has joined #ruby
<matti> I am with Zed on the Rails thing.
<matti> ;]
<matti> Ruby community is awesome. Rails community... what Zed said ;d
<Divinite> Ubuntuuuuuuuu!
<davidcelis> Rails community is a bunch of bros, bro
<shinobi_one> haha
<matti> davidcelis: :)
<shinobi_one> davidcelis: not all of us are bros ;D
<Divinite> Raaaaaaaaaails.
<Divinite> =
apok_ has joined #ruby
<shinobi_one> Elonnnnnnnnngated.
<davidcelis> shinobi_one: yeah. right. sure thing, brah
<shevy> as long as they stay on #rubyonrails
chessguy has joined #ruby
<Divinite> Synphoooooony
<Divinite> :) I love Ruby
<shinobi_one> davidcelis: lol hm
<shinobi_one> ^
echobravo has joined #ruby
apeiros_ has quit [Remote host closed the connection]
<shinobi_one> i do python mostly at work, but any chance i get to do something where i can use ruby i doo
<Hanmac> and the #rubyonrails-channel has no cool bot :P
<deryl> definitely does
<shinobi_one> Hanmac: actually helpa is pretty awesome lol
<deryl> helpa
<davidcelis> helpa
Morkel has quit [Quit: Morkel]
<nullsign> can someone show me where i messed up with .fetch on my hash? http://pastie.org/4582676
* Hanmac uses ruby for mostly everything ... Programms, Games, GuI ...
answer_421 has quit [Remote host closed the connection]
<nullsign> it always fails the lookup with this syntax, and returns go fish
* davidcelis programmed his toilet using ruby
<shinobi_one> Hanmac: where i work it's mostly python/django, with some other languages as well
<nullsign> david: using the .flush method?
machty__ has quit [Read error: Connection reset by peer]
* matti programmed davidcelis using Ruby
<davidcelis> nullsign: of course
machty_ has joined #ruby
apok has quit [Ping timeout: 245 seconds]
apok_ is now known as apok
<matti> Eh
w400z has joined #ruby
<matti> We should go troll on #java
<matti> ;d
<shinobi_one> ha
<matti> [ /me is joking ]
<Divinite> I programmed the Earth using Ruby.
tgriffin2081 has joined #ruby
<shinobi_one> Divinite: I programmed Ruby using Ruby.
gfontenot has quit []
<matti> Divinite: I hope you got exception handling right, then.
jenrzzz has quit [Ping timeout: 268 seconds]
<shinobi_one> matti: obviously not
<matti> shinobi_one: Like PyPy?
sixtycakes has quit [Remote host closed the connection]
<shinobi_one> matti: ha oh yes
<Mon_Ouie> 1/0 will break the Earth
<Hanmac> shinobi_one that is not so wrong than it sounds ... ruby need some kind of baseruby to build :D
<matti> Nooesss...
<matti> Mon_Ouie: Don't you dare!
<Mon_Ouie> >> 1/0
<al2o3cr> -e:1:in `eval': divided by 0 (ZeroDivisionError), from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<Mon_Ouie> Too late ;)
<matti> ;/
<matti> That calls for good ol' joke
<eph3meral> nah, rail's isn't bros, #macosx is bros
<matti> "In Soviet Russian, 0 divides you!"
<eph3meral> rails is just jerks and idiots
<matti> eph3meral: Imagine... the ultimate hipster.
<matti> eph3meral: Rails on OSX
<Divinite> matti: Why else do you think that sometimes your wifi doesn't work?
<matti> ;>
<eph3meral> matti: nah, that's a wannabe hipster - hipsters don't have enough money to own a computer
<matti> Divinite: It was you? I want to make a complain then.
<nullsign> can someone fix this? http://pastie.org/4582676
<Divinite> matti: Nobody wanted to fork my code on Github.
ksinkar has joined #ruby
<eph3meral> cutoff jean shorts maybe, but not a mac :P
<Divinite> ;(
<matti> eph3meral: ... skinny jeans, man...
<shevy> nullsign and where is the error. include the error in the pastie
<matti> nullsign: What do you want to do?
<eph3meral> matti: loafers without socks
<eph3meral> i win!
und3f has quit [Ping timeout: 248 seconds]
<nullsign> shevy: no error, it always returns
<nullsign> 'go fish'
<matti> eph3meral: Pfff
zodiak has quit [Remote host closed the connection]
<shinobi_one> don't forget the bro aviator glasses
<ksinkar> hello people I am trying to write a Timer class in ruby wherein I can do timer = Timer.new;timer.start and timer.stop to start and stop an instance of the Timer
JustinCampbell has quit [Read error: Connection reset by peer]
<nullsign> it should return the location for that IP (since the ip exists in the hash), im not referencing it right.
<ksinkar> Any ideas how to go about this?
<matti> nullsign: p line?
<shevy> nullsign and .fetch() expects 2 arguments?
<eph3meral> ksinkar: seems like that's gotta exist already
<shinobi_one> ksinkar: that sounds extremely simple
wpaulson has joined #ruby
<eph3meral> ksinkar: i know that Qt has one
<nullsign> according to the docs, .fetch needs what you are pulling, and the output to assign if nil
Dreamer3 has quit [Ping timeout: 264 seconds]
<eph3meral> Qt is awesome, but it also depends on… well… qt
<shinobi_one> lol
<nullsign> but the example docs only show how to use it in a simple hash, not a complex one like i have
<ksinkar> eph3meral, shinobi_one: can you point me to some code?
<shevy> nullsign according to what docs
Dreamer3 has joined #ruby
<eph3meral> ksinkar: doesn't eventmachine basically do that?
<shevy> ah
<matti> ksinkar: You'd need a thread to keep monotonic clock from the start.
<eph3meral> ksinkar: http://rubyeventmachine.com/
<shevy> nullsign your hash looks complicated indeed
internet_user has quit [Remote host closed the connection]
<matti> ksinkar: And start/stop routine to signal it to end.
<shevy> nullsign what I would do is, pp hash
<nullsign> it's 3 items per line
<matti> shevy: require 'pp'
<shevy> and after that
<matti> ;d
<shevy> pp hosts["10.39.8.252"]
<nullsign> i normally call it by going location = hosts["IPADDY"][:location]
<nullsign> that works fine
<nullsign> but if it's nil, i get a nil and my script will bomb.
<nullsign> i need a way to assign something else if it is nil, to avoid the bomb
<devanon> nullsign: could be line[0] is ended with \n ? You should use chomp on it before using it as a hash key
<nullsign> .fetch seemed like it could be done?
<nullsign> line0 is clean.
<matti> nullsign: hosts['10.0.0.1'][:location] || 'go fish'
<eph3meral> nullsign: if hosts["IPADDY"] else...
<eph3meral> pretty simple
<nullsign> if what?
<nullsign> if nil?
pricees has quit [Quit: leaving]
<matti> nullsign: location = hosts['10.0.0.1'][:location] || 'go fish'
<eph3meral> nullsign: apparently you are not yet very familiar with ruby boolean evaluation?
<nullsign> oh matti's works
<nullsign> eph3meral: not fully, no
zommi has quit [Remote host closed the connection]
<matti> ;)
<shevy> matti is the secret ruby master
<matti> Am I?
bowlowni has quit [Read error: Connection reset by peer]
<shevy> yes
<matti> I thought it was you.
<eph3meral> what's secret ruby?
<shevy> no
<workmad3> matti: so secret, even you didn't realise :P
<eph3meral> i wanna use secret ruby!
<matti> workmad3: Yeah.
<matti> workmad3: Totally ;d
bowlowni has joined #ruby
<shevy> it is the power to debug without seeing all data
<nullsign> actually no, matt's doesnt, if the IP isn't found it dies with nil, it doesn't get assigned as 'go fish'
<shevy> ack
<matti> Haha
<eph3meral> nullsign: yes i know… use mine
<shevy> don't dethrone matti nullsign !!!
<eph3meral> nullsign: and use your brain
<shevy> lol
<shevy> use pp
<eph3meral> nullsign: go read about ruby boolean evaluation so that you actually understand what you're doin
<shevy> it's a good compromise
<nullsign> sounds fair.
philcrissman has quit [Remote host closed the connection]
<shevy> and
<shevy> use only one argument for .fetch
sterex has quit [Quit: sterex]
<shevy> it makes life easier
invisime has left #ruby [#ruby]
<eph3meral> nullsign: basically, in ruby, nil is false
<matti> eph3meral: E.
<matti> eph3meral: Not quite :)
twinturbo has quit [Quit: twinturbo]
<eph3meral> hence why i said "basically"
<matti> Oh, OK ;p
* matti puts the Ruby Master hat on eph3meral
<matti> shevy: He looks better in it ;d
bowlowni has quit [Remote host closed the connection]
fastred has quit [Quit: fastred]
<eph3meral> lol
<shevy> yeah but he talks like a gangster :<
<davidcelis> eph3meral: wut
<davidcelis> >> nil == false
<al2o3cr> (FalseClass) false
<eph3meral> i is ruby mastah!
<davidcelis> eph3meral: wrong
<shevy> and davidboy is the gangstah overlord
<shevy> ack
<shevy> davidcelis!!!
<shevy> damn tab complete
<davidcelis> shevy: dont you be giving my title away to other davds
<shevy> :(
<matti> ;D
<eph3meral> davidcelis: not wrong, i know what i said, i stand by it, if you feel you would rather teach nullsign all about boolean evaluation, i welcome your input
sixtycakes has joined #ruby
<fowl> >> !!nil
<al2o3cr> (FalseClass) false
* eph3meral puts the ruby master hat on davidcelis
<davidcelis> eph3meral: thx
emsilva has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
the_jeebster has quit [Quit: Leaving.]
* shevy puts the "I like 'em fatties" hat on davidcelis
<davidcelis> >> !!!!!!!!!!!!!nil
<al2o3cr> (TrueClass) true
<fowl> >> [!!nil, !!true, !!false, !!1, !!0]
<al2o3cr> (Array) [false, true, false, true, true]
<shevy> man don't kill the bot again
<matti> :>
<Hanmac> information: there is one object where == does not work
<shevy> that could have killed a php bot by now
<davidcelis> >> !![!!nil, !!true, !!false, !!1, !!0]
<al2o3cr> (TrueClass) true
* matti puts hat with "Wizzard" written on it ;d
<shevy> Hanmac which one
<shevy> which object does not have ==
<matti> nullsign: Give us 10 lines from this .csv
<davidcelis> how is that possible, unless it ends up being undefined?
<davidcelis> BasicObject defines ==
<Hanmac> it has == i only said that it does not work
<Hanmac> >> Float::NAN == Float::NAN
<al2o3cr> (FalseClass) false
t79464 has quit [Remote host closed the connection]
<davidcelis> oh
<davidcelis> hahahaha
<Mon_Ouie> That's intended behavior though
t71570 has joined #ruby
mrdodo has quit [Remote host closed the connection]
<davidcelis> still better than JavaScript
<davidcelis> in JS, NaN stands for "Now a Number"
Danielpk_ has joined #ruby
<matti> NaNNaN Batman...
<davidcelis> typeof(NaN); // => "number"
<Hanmac> its deep inside the code Float#== allways returns false when self is nan
baroquebobcat has joined #ruby
jorge_ has joined #ruby
<nullsign> a few lines
<nullsign> the script i pasted is a snipit of my larger script, the issue is; right now, my real script dies if it hits a nil in the hash, as it trys to use that value, which it can't do
carrythezero has quit [Ping timeout: 260 seconds]
<nullsign> trying to learn how to circumvent this by using a default value when the hash is called and it returns nil
Danielpk has quit [Ping timeout: 276 seconds]
miho has quit [Remote host closed the connection]
Danielpk_ is now known as Danielpk
tvw has quit [Remote host closed the connection]
carrythezero has joined #ruby
<eph3meral> nullsign: msg?
<devanon> nullsign: what are you trying to do when using line[0]? get the ip from the line?
aldodelgado has quit [Quit: aldodelgado]
<devanon> nullsign: you should use line.split! before
arpegius has quit [Quit: arpegius]
jorge_ has quit [Ping timeout: 245 seconds]
<nullsign> devanon: yes
elico has quit [Read error: Connection reset by peer]
<devanon> nullsign: you are using the entire line as the hash key. split it using the commas
saschagehlich has quit [Quit: saschagehlich]
<nullsign> the hash works tho?
libryder has left #ruby [#ruby]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
clocKwize has quit [Quit: clocKwize]
<devanon> nullsign: this line should work -> hosts["10.39.30.252,S2774,RFS"].fetch([:location], "go fish")
<nullsign> devanon: but that wont work for me as when i call the hash, i only know the IP; the point is the use the IP as the key to call :location
elico has joined #ruby
sixtycakes has quit [Remote host closed the connection]
revans has quit [Quit: Linkinus - http://linkinus.com]
<devanon> then you need to put "line = line.split(',') at the beggining of the block
<nullsign> but i can call :location fine like it is
<devanon> nullsign: and then you can use line[0] to get only the ip
<nullsign> just by doing hosts[IP][:location]
<nullsign> my issue is; if that query returns nil, i need to assign a value
naz has joined #ruby
<davidcelis> ||=
<devanon> did you get a pretty print of the hosts hash?
<nullsign> i can print the entire hash, yes.
<nullsign> and i can get a single key back too
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<devanon> and the stored values are ok?
<nullsign> yes
<nullsign> i just need a way to deal with what happens if my hosts[IP][:location] = nil
joshman_ has quit [Ping timeout: 252 seconds]
<devanon> nullsign: this should be the right way -> hosts[key].fetch(:location) { puts 'no value' } :S
<devanon> ok, wait
<devanon> nullsign: hosts[key].fetch(:location) { hosts[key] = default_value }
chimkan_ has left #ruby [#ruby]
jhchabran has joined #ruby
<devanon> nullsign: that is what I understand from the fetch documentation
<nullsign> thanks
jjbohn is now known as jjbohn|afk
cantonic has quit [Quit: cantonic]
aantix has quit [Remote host closed the connection]
aantix has joined #ruby
verto is now known as verto|off
<Hanmac> shevy: do you know that shitty is? i cant do something like this:
<Hanmac> >>h = Hash.new(&{}.method(:clone))
<al2o3cr> -e:1:in `eval': default_proc takes two arguments (2 for 0) (TypeError), from (eval):1:in `new', from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
iamvery has quit [Remote host closed the connection]
DrShoggoth has quit [Quit: Leaving]
<powerplay> hey course_section_info_array = course_section_info_nodes[0].
<powerplay> last_element_child.first_element_child.
<powerplay> text.
<powerplay> split
<powerplay> sanitize.
<powerplay> whoop my apologies
bradhe has quit [Remote host closed the connection]
<fowl> you're fired
<fowl> clean out your desk and go
<fowl> dont make a scene please
axl_ has quit [Quit: axl_]
<powerplay> :(
<Hanmac> is last_element_child realy needed? isnt that a enumerable and .last should work too?
<shevy> Hanmac &{} is so ugly
<Hanmac> shevy i want an dup/cloned hash as default arg for another hash
cjs226 has joined #ruby
ShereKahn has joined #ruby
<Hanmac> powerplay ... what are nodes comeing from ,,, some html/xml parsing lib?
jarred has joined #ruby
LorentzFactor has joined #ruby
wvms has joined #ruby
bradhe has joined #ruby
wallerdev has quit [Quit: wallerdev]
<powerplay> Hanmac: yup from nokogiri i was just going to ask if that was the best way to break up a line full of method chains into multiple lines for better readibility
<LorentzFactor> is there a method in ruby to compare a value to a range? ie. comparible to x == 1 || x == 2
<workmad3> LorentzFactor: you mean like '(1..3).include?(4)
tomsthumb_ has quit [Quit: Leaving.]
_JamieD_ has quit [Quit: _JamieD_]
<devanon> bye all :)
<LorentzFactor> uhm.. I'm not sure.. lol
<matti> Bye devanon
<LorentzFactor> lemme see
wpaulson has joined #ruby
Brutus- has left #ruby [#ruby]
devanon has quit [Quit: devanon]
<Hanmac> this works too: 4.between?(1,3)
<Hanmac> or ((1...4) === x)
SegFault1X|work2 has joined #ruby
SegFaultAX|work2 has quit [Read error: Connection reset by peer]
<LorentzFactor> wouldn't it be between 0,3? for 1 and 2?
matty5000 has quit [Read error: Connection reset by peer]
<LorentzFactor> er nvm
<LorentzFactor> I see your example differsx
azm has quit [Ping timeout: 240 seconds]
cjs226 has quit []
infinitiguy has quit [Quit: Leaving.]
<powerplay> If i have a comment which consist of a long line and if i break up the comment two multiple lines (using #'s) should the second line be indented relative to first?
yxhuvud has quit [Ping timeout: 248 seconds]
w400z has quit [Quit: Computer has gone to sleep.]
<powerplay> sorry i meant if i break up the comment into two lines
SCommette has quit [Quit: SCommette]
<LorentzFactor> no?
<LorentzFactor> that'd get to looking really weird in large block comments
<LorentzFactor> in general, ie. any language
<workmad3> powerplay: indent to the same level, not extra
<powerplay> workmad3: so something like this perhaps:
<workmad3> powerplay: gist, not in-chan
<powerplay> # This is a very long long long long comment
stopbit_ has quit [Quit: Leaving]
<powerplay> #and it coontinues
havenn has joined #ruby
<workmad3> powerplay: no
<LorentzFactor> line em up but. Indention is usually intended to show enclosure in a block statement of some sort.
bradhe_ has joined #ruby
<workmad3> powerplay: intdent to the same level, not extra
<workmad3> *indent
TheShadowFog has quit [Remote host closed the connection]
bradhe has quit [Read error: Connection reset by peer]
<powerplay> oh ok
<LorentzFactor> like
adeponte has quit [Read error: Connection reset by peer]
<powerplay> # This is long long comment
<powerplay> # and it continues
<LorentzFactor> # and so on
<LorentzFactor> here while not ruby
<powerplay> oh ok gotacha
<LorentzFactor> I have a page up
<LorentzFactor> with some good comments you can look at lol
<powerplay> LorentzFactor: alright thanks dude
emmanuelux has joined #ruby
w400z has joined #ruby
<powerplay> workmad3: thanks
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<LorentzFactor> mind you the comments here are ; not #
kpshek has quit []
<LorentzFactor> but same idea
adeponte has joined #ruby
<LorentzFactor> cos it's not ruby, but
<LorentzFactor> you get the idea
<powerplay> LorentzFactor: gotcha yup got the idea :)
<workmad3> LorentzFactor: cool, assembley :D
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
<workmad3> *assembly
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<LorentzFactor> assembly is a nice language
alanp_ has joined #ruby
<fowl> for me to poop on
jamiltron has joined #ruby
<LorentzFactor> but, it's not quick to build things with
<Hanmac> assembly ... i dont want to fall more down into the black hole of "low-tech"
jamiltron has left #ruby [#ruby]
gfontenot has joined #ruby
<LorentzFactor> assembly is low tech? I'm fairly certain the data sent from the ruby interpreter becomes assembler instructions
<LorentzFactor> albeit not the step up from it that assembly proper is
<LorentzFactor> but still
bosent has joined #ruby
<Hanmac> LorentzFactor yeah ... but i dont need to write them myself
<workmad3> LorentzFactor: well, technically no...
<workmad3> LorentzFactor: the ruby runtime sends out machine opcodes, not assembler instructions :P
jenrzzz has joined #ruby
<bosent> quick question guys
<bosent> what is the code forums that is very popular
<bosent> and also gives out achievements
TheShadowFog has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
<bosent> anyone?/
<LorentzFactor> workmad3, well the thing is assembly mnemonics are opcode in english, that's why I said assembly proper is a step up, it's really all the same stuff, ones just a readable alias for the object code... lol
<fowl> is this a joke?
<LorentzFactor> bosent, xbox gives out achievements
alanp has quit [Ping timeout: 260 seconds]
<LorentzFactor> install linux on it
<bosent> lol
<bosent> very funny
<LorentzFactor> then ruby
<LorentzFactor> oh...
<LorentzFactor> :|
<workmad3> LorentzFactor: it's an important step up
kenichi has quit [Remote host closed the connection]
<bosent> seriously though
<bosent> its the popular coder forum
<bosent> i cant remember the name
<LorentzFactor> workmad3, I know.
<workmad3> LorentzFactor: :)
<LorentzFactor> workmad3, I wasn't trying to assert them the same :p
<LorentzFactor> write shellcode, then you're writing pure ops.
dpk has joined #ruby
<workmad3> LorentzFactor: you just introduced non-standard terms (i.e. 'assembly proper' :P)
t71570 has quit [Remote host closed the connection]
t65735 has joined #ruby
<LorentzFactor> well I work with shellcode sometimes, and I call it "assembly" cos it's the same, just one is hex mnemonics, the other english (assembly proper)
<bosent> is there no one that uses forums?
<Hanmac> Visual Studio gives you achivements when you use "a" ... "z" as Properties of a class
<bosent> i am not asking how to use achievements
sixtycakes has joined #ruby
<bosent> i am asking a coder forums
<bosent> where good answers to questions are recognized with achievements
<LorentzFactor> maybe someone should create an eclipse plugin that grants achievements
<workmad3> LorentzFactor: 'you have hit the semicolon 500,000 times, you have now unlocked the 'Java luddite' achievement'
<Hanmac> LorentzFactor ... you had the idea ... just do it
<LorentzFactor> hahaha
<LorentzFactor> workmad3, I use eclipse for perl and ruby
<LorentzFactor> I don't even know java :s
<LorentzFactor> which the plugin would prolly need be written in =\
<Hanmac> bosent: you should help others not for yourself :P
<workmad3> LorentzFactor: you inflict eclipse on yourself, and it *isn't* for java where it's good, but instead for perl and ruby? crazy person :P
<LorentzFactor> hahaha
jjbohn|afk is now known as jjbohn
<LorentzFactor> it works well with perl and ruby :|
<workmad3> hahaha
GoGoGarrett has quit [Remote host closed the connection]
<workmad3> keep on telling yourself that... I'm sure one day it'll be true :P
powerplay has quit [Read error: Connection reset by peer]
<LorentzFactor> lol
<workmad3> </eclipse_troll>
mrdodo has joined #ruby
<LorentzFactor> I like EPIC, (the perl plugin) it's nice :|
<workmad3> yeah, in fairness I've never tried eclipse with perl
<LorentzFactor> ruby?
<bosent> STACKOVERFLOW
<bosent> lol
<bosent> is all I was looking for
<workmad3> yeah, I've done ruby in eclipse at times
<bosent> what resource should I use to teach myself ruby
<workmad3> it actually drove me to vim :P
pdelgallego has joined #ruby
<LorentzFactor> you did install the ruby sets right :S
<LorentzFactor> lol
|nyuszika7h| has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
<LorentzFactor> I usually use vim, but when I'm working with multiple file codebases, I prefer an ide I can see all my packs
<workmad3> possibly... I tried various things at different times
luckman212 has joined #ruby
<Hanmac> LorentzFactor you read this?: http://channel9.msdn.com/achievements/visualstudio
<LorentzFactor> please tell me this is not real...
<LorentzFactor> before I click it
<LorentzFactor> god..
<workmad3> I always started out attempting to use various cool IDE features, but always ended up abandoning them and just used eclipse as a really heavyweight, bloated text editor that slowed everything down
mmitchell has quit [Remote host closed the connection]
jwmann has joined #ruby
jwmann has quit [Max SendQ exceeded]
<LorentzFactor> hahah
<LorentzFactor> Hanmac, why does that exist.
jwmann has joined #ruby
eregon_ is now known as eregon
AntiTyping has joined #ruby
jwmann has quit [Max SendQ exceeded]
<workmad3> however, I did find eclipse a godsend in my previous life as a Symbian developer :)
jwmann has joined #ruby
jwmann has quit [Max SendQ exceeded]
bosent has quit []
jwmann has joined #ruby
jwmann has quit [Max SendQ exceeded]
<workmad3> LorentzFactor: and the question you should be asking is 'why doesn't this exist for eclipse?'
luckman212_ has quit [Ping timeout: 260 seconds]
xorigin has quit [Quit: leaving]
<LorentzFactor> workmad3, ....
jwmann has joined #ruby
<workmad3> LorentzFactor: or, more importantly... 'why doesn't this exist for vim and emacs?'
jwmann has quit [Remote host closed the connection]
<LorentzFactor> workmad3, I'm sure it exists for emacs
<LorentzFactor> everything else does...
<workmad3> oh, good point...
<workmad3> my mistake :)
<Hanmac> LorentzFactor i think the same question ask the guy how saw the first plathyus
<LorentzFactor> emacs, when 1 OS isn't enough
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
deryl has quit [Quit: deryl]
nicoulaj has quit [Remote host closed the connection]
sebicas has quit [Quit: sebicas]
<workmad3> LorentzFactor: well, it's important for your text editor to be able to control network accessible, HTCPCP compliant coffee machines
jtgiri_ has joined #ruby
apok has quit [Read error: Connection reset by peer]
<LorentzFactor> True.
apok has joined #ruby
<LorentzFactor> someone wrote an over the network pong game or something for it when I was at phreaknic a couple yrs back
SCommette has joined #ruby
<LorentzFactor> that's extensibility
hadees has quit [Quit: hadees]
paolooo_ has joined #ruby
paolooo_ has quit [Client Quit]
paolooo has quit [Quit: Page closed]
<LorentzFactor> I guess it's cos it has built in lisp or whatever.
paolooo has joined #ruby
<Hanmac> workmad3 some of my packagemanagers has minesweeper included
<workmad3> LorentzFactor: I personally think it's more to do with the emacs community being crazy... but yeah, LISP has something to do with it, I'm sure :)
lae has quit [Quit: leaving]
lae has joined #ruby
<LorentzFactor> well vim is an editor, emacs is more (and technically so) a platform
<LorentzFactor> it's the console version of eclipse if you will
mahmoudimus has joined #ruby
devdazed_ has quit [Quit: Bye]
<Hanmac> i think emacs has more features :D
<RubyPanther> emacs isn't a "platform" unless you are talking about writing LISP apps. As a Ruby developer, it is an "editor."
<LorentzFactor> RubyPanther, that's not the case.
<LorentzFactor> because someone can extend it to be a fully featured ruby platform
<LorentzFactor> if they so desired
<LorentzFactor> vim would still be an editor (and the one I prefer) but just the same
<fowl> you know what they should make? a ruby version of lisp
<RubyPanther> it is if you assume that "platform" and "editor" are words with meaning and not arbitrary flags you already decided on
bradhe_ has quit [Read error: Connection reset by peer]
<RubyPanther> You could "extend" notepad to be a fully featured Ruby platform.
<fowl> (. "Hello" chomp)
<LorentzFactor> ugh
bradhe has joined #ruby
<workmad3> fowl: haha
<Hanmac> fowl you mean this: http://rubygems.org/gems/relisp ?
<workmad3> lispified, RPN ruby :)
<RubyPanther> And it isn't being used that way with Ruby. And it is popular. Integration is not as a "platform" but simply by calling out to git, rake, etc, or to parse Ruby that is being edited, eg flymake
chussenot has joined #ruby
<LorentzFactor> RubyPanther, well what I mean is that it's method of extension/plugin functionality is well beyond that of what I'd call a text editor, ie. vim
<LorentzFactor> I mean I don't even much like emacs, I use vim myself, but it still holds
<Axsuul> if I have a gem instaleld locally to ~/.gems, how would I require that?
tchebb has quit [Ping timeout: 276 seconds]
<RubyPanther> If you're using it for that. But that isn't how it is used. You can't say that it isn't what it is used for just because it could also be (but isn't) used for some other, more extensive thing.
<RubyPanther> It is an editor, and if extended could be made into a platform for Ruby apps, though I can't imagine a use case
gmci has quit [Ping timeout: 260 seconds]
chussenot has quit [Client Quit]
<LorentzFactor> the point is, it can be done.
t65735 has quit [Remote host closed the connection]
MasterIdler_ has joined #ruby
t48890 has joined #ruby
<LorentzFactor> not that I, either, understand why anyone would...
MasterIdler_ has quit [Client Quit]
ibash has joined #ruby
LouisGB has joined #ruby
<shinobi_one> vim ftw woo flamewar
workmad3 has quit [Ping timeout: 245 seconds]
<LorentzFactor> lol not really I don't think anyone here has professed to actually using emacs..
<LorentzFactor> lol
twigmorewelsh has quit [Ping timeout: 260 seconds]
pdelgallego has quit [Quit: pdelgallego]
<shinobi_one> oh :(
<shinobi_one> macvim > gvim woo flamewar!
<shinobi_one> :P
MasterIdler__ has quit [Ping timeout: 248 seconds]
<LorentzFactor> i dunno if I've ever used gvim
<LorentzFactor> I just use the console
<LorentzFactor> =\
hadees has joined #ruby
aef has quit [Remote host closed the connection]
<shinobi_one> gvim has its benefits
aef has joined #ruby
<shinobi_one> over vim
<barefoot> sucks to have the window exit with :q
jjbohn has quit [Quit: Leaving...]
ShereKahn has quit [Quit: Leaving]
<shinobi_one> uh what?
<shinobi_one> why would that suck? that's how vim works
<shinobi_one> vi
cakehero has quit [Quit: Computer has gone to sleep.]
<shinobi_one> it stands for quit
<barefoot> yes, but the ability to have a container open would be nice
kenichi has joined #ruby
<shinobi_one> hmm you must prefer textmate :P
<barefoot> but I only used it on windows, and that was 10+ years ago
<shinobi_one> i mainly use eclipse, gvim, and macvim
havenn has quit [Remote host closed the connection]
<shinobi_one> eclipse for pydev, and gvim/macvim for everything else
<shevy> gvim feels like a GUI-afterthought
<barefoot> yeah
<shevy> vim in itself is quite ok though
<shevy> I myself more lean into the textmate/sublime/geany/bluefish editor types though
<barefoot> havent tried bluefish in many years
<shinobi_one> bluefish is meh
<barefoot> vim is perfect with a few plugins and customizations
<shinobi_one> ^
<shinobi_one> literally perfect :D
gmci has joined #ruby
<shinobi_one> i still need to install textmate 2
<shinobi_one> just to check it out
<shinobi_one> but then i'll have :w :q all over my code :(
<shevy> haha
<barefoot> haha
<shevy> luckily I avoided getting vim into my brain
gfontenot has quit []
<shinobi_one> it's addicting though
jwmann1 has joined #ruby
jwmann1 has quit [Client Quit]
<shinobi_one> to use vim
<shinobi_one> it's like crack for programmers
tchebb has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<barefoot> advanced stuff like replay is pretty crazy also
jwmann1 has joined #ruby
jwmann1 has quit [Max SendQ exceeded]
<LorentzFactor> yeh
<fowl> i like crack. its like crack for humans
<shinobi_one> ^
<shinobi_one> i'm excited to see if anyone adds the basic vim commands to textmate now that it is open sourceified
<jtgiri_> I am writing a ruby script to wait till the socket opens up, and I want it to display "………." while it's waiting, but for some reason, I can't' the dots to print :) can you guys please look at the code and let me know what am i doing wrong https://gist.github.com/3456612
jwmann1 has joined #ruby
jwmann1 has quit [Max SendQ exceeded]
<shinobi_one> jtgiri_: puts?
<shinobi_one> er no
<fowl> jtgiri_: STDOUT.flush
<shinobi_one> nevermind
jwmann1 has joined #ruby
jwmann1 has quit [Max SendQ exceeded]
skattyadz has joined #ruby
<shinobi_one> yeah flushing should work
jwmann1 has joined #ruby
<fowl> jtgiri_: you can make it (print '.'; STDOUT.flush) until tcp_test_ssh(hostname)
jwmann1 has quit [Max SendQ exceeded]
<jtgiri_> okay
jwmann1 has joined #ruby
jwmann1 has quit [Max SendQ exceeded]
bradhe_ has joined #ruby
<jtgiri_> awesome!
<shinobi_one> has anyone tried textmate 2 yet?
<jtgiri_> thanks
<shinobi_one> i would change that p "server is up" to puts but whatev
<Paradox> its ok
<shinobi_one> er*
<Paradox> but SublimeText2 is better
<shinobi_one> oh?
<Paradox> yup
rdg has joined #ruby
bradhe__ has joined #ruby
pskosinski has quit [Quit: http://www.redeclipse.net -- Fast-paced online FPS]
havenn has joined #ruby
bradhe_ has quit [Read error: Connection reset by peer]
bradhe has quit [Read error: Connection reset by peer]
[Neurotic] has quit [Quit: Leaving]
<shinobi_one> what is that color theme?
<Paradox> tomorrow night
cloudpokerdb has quit [Ping timeout: 245 seconds]
<shinobi_one> looks nice
<shinobi_one> i use molokai/monokai
<shinobi_one> but i like the dullness of that one
<shinobi_one> sometimes molokai is too bright for me with the pinks and such
thunderstrike has quit [Ping timeout: 248 seconds]
<null-> you can run vim without a GUI - take that!
gfontenot has joined #ruby
jwmann1 has joined #ruby
jwmann1 has quit [Max SendQ exceeded]
hasrb has joined #ruby
<davidcelis> tomorrow night ++
jwmann1 has joined #ruby
<davidcelis> solarized dark is also nice
jwmann1 has quit [Max SendQ exceeded]
<shinobi_one> more like you can run vim server side null :P
<shinobi_one> yay there's one for vim
khakimov has joined #ruby
<shinobi_one> actually there's 5 that come with it lol
<null-> shinobi_one: right
jbohn has joined #ruby
ibash has quit [Quit: ibash]
<shinobi_one> and vim has so many plugins + pathogen
<shinobi_one> pathogen is sexy
robustus has quit [Ping timeout: 244 seconds]
sixtycakes has quit [Remote host closed the connection]
<null-> being able to run vim remotely is a huge deal for me, I code remotely most of the time
<Paradox> solarized is hard on your eyes
<null-> over ssh
tgriffin2081 has quit [Ping timeout: 260 seconds]
<Paradox> vim is good with a keyboard, but shitfuck terrible with a mouse
<Paradox> SublimeText 2 is good with both
v0n has quit [Quit: Leaving]
<shinobi_one> Paradox: you don't need a mouse if you know how to use vim ;D
<shinobi_one> in fact, there's an option for disabling it lol
<eph3meral> Paradox: shitfuck terrible eh?
odtukoge has joined #ruby
<eph3meral> sounds like you really know what you're talking about
<Paradox> yup
<Paradox> im a genius
<eph3meral> null-: sshfs negates the need for console vim anymore :)
<eph3meral> null-: i haven't used console vim in a very long time
<shinobi_one> eph3meral: i thought about that and it's sad :(
rdg has quit [Quit: ttfn]
LouisGB has quit [Ping timeout: 265 seconds]
<eph3meral> shinobi_one: 0.o ?
<eph3meral> what is sad and why, exactly?
themadcanudist has joined #ruby
themadcanudist has left #ruby [#ruby]
davidcelis has quit [Quit: K-Lined.]
jbohn has quit [Quit: Leaving...]
<shinobi_one> life without vim
cbuxton has quit [Quit: Leaving.]
skattyadz has quit [Quit: skattyadz]
<eph3meral> vim sucks anyway
<eph3meral> mvim and gvim are tons better
<shinobi_one> yeah i prefer macvim > gvim > vim
<shinobi_one> but i wouldn't say vim sucks lol
<eph3meral> hah, well not QUITE
<barefoot> lol, editor war about the same one
<Paradox> macvim looks like it was programmed by the GTK team
<null-> eph3meral: sshfs is slower and also I don't just run vim remotely
<eph3meral> null-: slower than what?
<eph3meral> null-: and why do you need to run vim remote? just run a regular terminal of ssh so you can do your commands, and then run vim on the SSHFS disk
mahmoudimus has joined #ruby
<eph3meral> null-: only browsing/opening/closing files is slower, editing them is fine
<RubyPanther> I use vim every day but I can't imagine having to write code in it.
danhunter has quit [Quit: danhunter]
johnlcox has quit [Quit: Computer has gone to sleep.]
<eph3meral> null-: i mean, if you're used to a certain working mode, i guess, go with what you know, but still… ALT-tab CMD-tab is a pretty easy way for me to switch between mvim and terminal when i need to run shell commands
<eph3meral> it's actually one fewer keystrokes than :! anyway
<RubyPanther> If you're editing your code without browsing I've got this need thing to show you it is called a line editor.
drago757 has joined #ruby
philips_ has quit [Excess Flood]
<icy`> hi, how is .dup supposed to work for a 2D array?
arpegius has joined #ruby
philips_ has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
<burgestrand> icy`: it dups the array, but not the content.
<null-> eph3meral: yeah, different styles for different people, but I must admit your mode sounds redundant, why will you create a new ssh connection (sshfs) when already have one? why would switch between gui vim and a terminal(ssh) when you just can run tmux/vim/
<icy`> why doesnt it duplicate the content
<null-> ?
vlad_starkov has quit [Remote host closed the connection]
<burgestrand> icy`: because it’s not written that way.
rawad has joined #ruby
rawad has left #ruby [#ruby]
<eph3meral> null-: because non-gui vim sucks, that's my whole point :)
<eph3meral> your mode sounds painfully archaic :P
<null-> eph3meral: I guess I'm to used to the CLI
<eph3meral> contrary to popular belief amongst the linux community, it is possible to be productive in a GUI :P
* null- spends all day in putty
<icy`> ar=[[1,2,3],[4,5,6],[7,8,9]]; bar=ar.dup; bar[2][0]=0; ar[2][0] #returns 0, not 7. ar was changed o.O
<burgestrand> icy`: ar was not changed.
<eph3meral> null-: yeah, i spend most of my day in mvim
<icy`> burgestrand, it was
<eph3meral> and occasionally my shell
<burgestrand> icy`: no, one of the objects it contains was changed.
<eph3meral> null-: if you spend most of your day in your shell and occasional time in vim, then using console vim basically makes sense
[Neurotic] has joined #ruby
<icy`> what's the difference? ...
<null-> eph3meral: the shell is my IDE ;)
<icy`> burgestrand, what, you're going to claim it has the same object_id, so it didnt change?
<eph3meral> console vim is actually fine, but it can and has historically been painful to set up a couple common simple/shallow/trivial/meaningless things
<eph3meral> such as nicer syntax hilite
<eph3meral> there's some other stuff too
<eph3meral> don't remember it all, offhand - enough to keep me using the gui version when at all possible
havenn_ has joined #ruby
<shinobi_one> eph3meral: nicer syntax highlighting?
<shinobi_one> i r confused
joephlius has quit [Quit: WeeChat 0.3.8]
<eph3meral> shinobi_one: sorry, nicer colors
<burgestrand> icy`: ar is not the same as it’s content. ar = [a, b, c]; here ar is not a, it is not b, it is not c. a, b, and c are their own objects, ar just points to them.
* icy` is forced to do something like bar=[]; ar.each {|sub| bar<<sub.dup}
<shinobi_one> you drop the file into ~/.vim/colors/
<null-> eph3meral: how many more colors do you want? I can run vim with 256 colors from putty just fine
<shinobi_one> is that hard? lol
<eph3meral> vim's 256 color support is difficult to configure on all systems and still lacks a few of the colors from mvim
<burgestrand> icy`: what you are looking for is a deep copy, ruby’s copies (dup and clone) are both shallow
<eph3meral> i don't need to justify my preference for mvim to y'all
<eph3meral> you don't care, i'm sure
<eph3meral> i do
<null-> eph3meral: oh come on, is colors really your argument?
<eph3meral> as i said, most people probably find it shallow/trivial/etc
<eph3meral> null-: oh come on, READ what i said
<eph3meral> "eph3meral>
<eph3meral> there's some other stuff too
<eph3meral> [7:08pm] <eph3meral>
<eph3meral> don't remember it all, offhand - enough to keep me using the gui version when at all possible"
ph^ has quit [Remote host closed the connection]
<burgestrand> icy`: but if you only care about the first level, ar.each_with_object([]) { |sub, result| result << sub } should work.
<null-> eph3meral: you said nothing there ;)
<burgestrand> icy`: sorry, ar.each_with_object([]) { |sub, result| result << sub.dup }
<eph3meral> null-: use putty, be happy
t48890 has quit [Remote host closed the connection]
t59063 has joined #ruby
<null-> eph3meral: I'm not trying to convice you
<eph3meral> i know what my needs are and why i use what i use, i'm sure you know the same for yourself
<null-> eph3meral: vim sucks VS gvim is idiotic
havenn_ has quit [Read error: Connection reset by peer]
<eph3meral> sigh
<eph3meral> have you heard of this thing called hyperbole
<eph3meral> and you show remarkable lack of memory
havenn_ has joined #ruby
<null-> eph3meral: ok, good luck with your colors!
<eph3meral> or ability to interpret fairly normal human level communication in context
<eph3meral> "eph3meral>
<eph3meral> hah, well not QUITE"
* icy` prefers gvim
Progster has quit [Ping timeout: 260 seconds]
<eph3meral> that was me saying "you're right, vim doesn't suck I'm joking, it's an exaggeration" <-
jasonLas_ has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
jasonLaster has joined #ruby
<eph3meral> the colors *are* different, noticably so, between gui and terminal
<eph3meral> inkpot is a prime example because it's so popular
elico has quit [Remote host closed the connection]
Divinite has quit [Remote host closed the connection]
<null-> eph3meral: ok, I'll find you some nice pink colors
<eph3meral> quite radically different between the two i would say, minor differences yes, but enough to throw you off if you're used to one and you see the other
<shinobi_one> eph3meral: you are correct sir. when i use 256 color vim mode in terminal it is different from say gvim or mvim
kvirani has joined #ruby
<eph3meral> i don't use inkpot, though I used to
<icy`> rdark
nilg has quit [Remote host closed the connection]
<shinobi_one> i don't see much of anything that sublime does that vim doesn't yet
awarner has quit [Read error: Connection reset by peer]
<icy`> burgestrand, but yea, that was just a fancier way of doing what I wrote , inject-style
<eph3meral> icy`: hmm, http://ld.yi.org/vim/rdark/ seems to be b0rked, got another screenshot?
awarner has joined #ruby
<burgestrand> icy`: not inject, inject is a different thing, but yes
ph^ has joined #ruby
<icy`> i just needed to rant about dup =P
Markvilla has joined #ruby
jasonLaster has quit [Ping timeout: 268 seconds]
ph^ has quit [Remote host closed the connection]
arpegius has quit [Quit: arpegius]
jasonLaster has joined #ruby
<icy`> eph3meral, there used to be a site with tons of themes, previewed
bawwwller has joined #ruby
<bawwwller> hey guys, is ruby better than php?
<bawwwller> i am currently a php developer
<bawwwller> just need a frank answer
jasonLaster has quit [Remote host closed the connection]
<bawwwller> to motivate me to learn it
<odtukoge> If you're better at php, then no, it's not.
<bawwwller> but is there more vibrance in the community
jasonLaster has joined #ruby
<bawwwller> where ever i look there is so much talk about ruby
grenierm has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
artOfWar has quit [Remote host closed the connection]
<shinobi_one> bawwwller: because it's fucking awesome
<odtukoge> That's because, like python, it's a "cool" language. It comes down to what you are competent at. Ruby will not do magic things that php cannot.
<bawwwller> just like for example: i was searching around for a framework which works best with bootstrap and ruby articles are there way much more prevalant than any php framework
seanstickle has joined #ruby
<shinobi_one> bawwwller: rails + bootstrap is common
banseljaj is now known as imami|afk
<shinobi_one> bawwwller: rails != ruby, it is the framework
<odtukoge> Sure, there are plenty more, but that's mainly becuase twitter built bootstrap, and twitter itself is built on rails.
seth- has quit [Ping timeout: 276 seconds]
<null-> bawwwller: yes, ruby web world is pretty awesome
<bawwwller> im not a die hard php fan iv been using it for 7-8 years and i know like every technology you have to jump ship when it starts to sink
<bawwwller> and now that we are getting to web 3.0 maybe the time has come :)
<eph3meral> icy`: cool thanks
<shinobi_one> bawwwller: php is not sinking
<bawwwller> no but its beocming stagnant
<odtukoge> Exactly, php will be around for a whiiillleee.
<eph3meral> stinking, but not sinking
<shinobi_one> ^
<bawwwller> i dont get the same thrill from php
<bawwwller> as i used to
<eph3meral> lol
<shinobi_one> bawwwller: do you use a framework? or just straight php
<bawwwller> like browsing through the help docs after each update
<odtukoge> Bawwller, it just sounds like YOU'RE bored and want to try something new.
<eph3meral> if you get your thrills from… well… lets just say you need to get out more
<eph3meral> and by out, i mean laid
<shinobi_one> ^joke
<eph3meral> though I'll admit, i should probably practice what i preach
<odtukoge> Get laid son, we'll be cheering you on.
<quazimodo> @customer could be an array of customers or a single customer
<bawwwller> personal use i use codeigniter and zend framework and work i built a custom mvc framework
<icy`> eph3meral, and i found the full page... has 428 themes, might take a while to load: http://vimcolorschemetest.googlecode.com/svn/html/index-c.html
<quazimodo> how do I check before I do .each?
<eph3meral> icy`: cool thanks, yeah i think i've seen this before
* icy` nods
grenierm has quit [Client Quit]
<eph3meral> icy`: i've been content with molokai for a long time, but i recently switched to solarized light
<quazimodo> if @customer.class == Array.class.to_s then; @customer.each do foo; else; bar using @customer ?
<eph3meral> i got the new retina, and i just know that i'm going to end up needing to have a light color scheme to be able to see what i'm doing at work out in the world
<bawwwller> what sort of server does ruby run on?
<eph3meral> so i'm making the switch now
<bawwwller> can you host it on an apache server?
t59063 has quit [Remote host closed the connection]
jasonLaster has quit [Ping timeout: 272 seconds]
<eph3meral> icy`: i am a fan of dark schemes usually, but whatever, necessity calls
t75876 has joined #ruby
<odtukoge> Solarized is my favorite.
<icy`> i dont see solarized
<seanstickle> bawwwller: yes, Apache will work, but you'll need a Rack interface.
<seanstickle> bawwwller: such as mod_passenger
<icy`> nevermind
<bawwwller> ok thanks
<bawwwller> im going to have a look into ruby tomorrow
uris has quit [Quit: leaving]
<burgestrand> bawwwller: ruby is more of a general language than PHP is.
<seanstickle> More general you say?
<seanstickle> In what sense?
<burgestrand> Yes. Write a threaded webserver in PHP. Shoo.
havenn_ has quit [Remote host closed the connection]
<seanstickle> I'm not sure I'd want to do that in Ruby either.
<burgestrand> seanstickle: you don’t need to, there are many.
<icy`> o.O solarized is a bit... blue
<seanstickle> burgestrand: many of them wrappers around C code
<burgestrand> seanstickle: there is also no threading construct in PHP.
<seanstickle> That's why we have fork :)
<burgestrand> seanstickle: forks are used to eat threads, they are not threads
mneorr has joined #ruby
<seanstickle> I am aware.
<seanstickle> So "more general" to you means "has threads"
<seanstickle> Ok, fair enough.
<burgestrand> seanstickle: troll somebody else, I ain’t falling for it.
<seanstickle> burgestrand: wait, I thought you were the troll
<bawwwller> :) thanks guys i appreciate the feedback and the welome iv reiceved
<bawwwller> received*
<burgestrand> bawwwller: come on to ruby, you’ll enjoy it. Some people can be dorks but most of us are nice and welcoming. :)
<seanstickle> burgestrand: one of us should have registered at #trollheim
mrdodo has quit [Remote host closed the connection]
<quazimodo> I need to create an array, then pass a variable foo into it that may be an array or a fixnum, integer, etc. I'd like to use concat to stop nesting, but that cant handle fixnums or integers. How do I do it?
<shinobi_one> bawwwller: be warned.. half the people here dislike rails
<shinobi_one> lol
RichieEvan has joined #ruby
<null-> bawwwller: ruby is very slow but the language itself won't be an issue for most web apps
bradhe has joined #ruby
<burgestrand> ruby is faster than PHP.
<bawwwller> iv got a vm which hosts my current applications. would i need to install any aditional packages to get a ror app running?
<shinobi_one> you can run ruby on jvm if you care so much about speeed
<seanstickle> quazimodo: example please
<bawwwller> iv currently got node/apache/mysql & php installed
awarner has quit [Remote host closed the connection]
<seanstickle> quazimodo: descriptions can be so vague
<burgestrand> bawwwller: ruby is enough, but running ruby applications is very different from PHP applications
<icy`> it's easy to put my thoughts onto the virtual paper
<bawwwller> do you have to instance them like node?
<icy`> (with ruby)
<burgestrand> bawwwller: yeah, that’d be quite similar
<null-> shinobi_one: the JVM enviroment is another different world, none Java programmers don't want to go there
<quazimodo> foo = [] , bar = [1, 2] . method to make foo = [1, 2]. if bar = 4 , same method to make foo [1, 2, 4]
bradhe__ has quit [Read error: Connection reset by peer]
davidcelis has joined #ruby
<shinobi_one> null-: it IS faster
<burgestrand> bawwwller: ruby applications tend to be run with ruby webservers. Ruby comes with a webserver that is used by rails by default for development purposes, for example.
<null-> yes, a lot more
<quazimodo> i can do foo.concat(bar) if bar is of array type, but not if bar = 1
<shinobi_one> null-: most students from university do java
Takehiro has joined #ruby
<bawwwller> ok im sure ill grasp it by reading their tutorial im sure
baroquebobcat has quit [Quit: baroquebobcat]
<burgestrand> quazimodo: what is wrong with foo << bar
<burgestrand> bawwwller: don’t be scared of asking for help in here, just explain you’re brand new to ruby first
<quazimodo> burgestrand: it nests if i pass [1, 2]. foo would become [[1, 2]]
<icy`> foo<<bar; foo.flatten!
<quazimodo> ooo i guess i could flatten?
<bawwwller> after learning node iv realized there are many tools to get jobs done and iv kinda pushed php to one side
<null-> shinobi_one: yeah, knowing Java is a big advantage
Takehiro has quit [Remote host closed the connection]
<bawwwller> before i was like a diehard php fan :)
<burgestrand> bawwwller: the first issue you’ll run into is installing a fairly recent version, 1.9.2 or 1.9.3
pskosinski has joined #ruby
<seanstickle> quazimodo: flatten would do it, yes
<bawwwller> turned my nose up at anything else
<burgestrand> bawwwller: I’ve been there too
<shinobi_one> bawwwller: RVM ftw
<bawwwller> so which version do you suggest?
<burgestrand> bawwwller: it’s always easy to look down on lesser languages and be completely oblivious to others
<shinobi_one> bawwwller: i suggest you look at ruby version manager
<burgestrand> bawwwller: I would suggest you start with ruby v1.9.3
<burgestrand> bawwwller: and you’d install that using ruby version manager, even if you only use one version of ruby it is very useful to use it
<burgestrand> bawwwller: http://rvm.io/
Takehiro has joined #ruby
<bawwwller> ok im busy writing this down on my notepad :)
<icy`> i cant believe sys default is still 1.8.7... 1.8.7 is so awful ;P
<burgestrand> bawwwller: there are many different ruby. there is the one we most often call just ruby (or cruby, or MRI, or YARV)
<burgestrand> icy`: had a machine that came with 1.8.4 by default or something silly like that
<shinobi_one> jruby
<shinobi_one> ironruby
<shinobi_one> so manyfuckingruby
<burgestrand> bawwwller: but there is also rubinius (a ruby implementation that aims to make a ruby with ruby)
<burgestrand> bawwwller: and jruby like we already mentioned, ruby on the jvm
<burgestrand> bawwwller: and many more
gfontenot has quit []
<burgestrand> bawwwller: you can probably ignore the difference between them and just use cruby like… forever :p
<bawwwller> hmm, is ruby on rails a framework?
<bawwwller> where ruby is the language
<burgestrand> bawwwller: yes, like zend, symfony or codeigniter
Takehiro has quit [Remote host closed the connection]
seth-- has joined #ruby
seth-- has quit [Changing host]
seth-- has joined #ruby
jarred has quit [Quit: jarred]
<bawwwller> ok is it mvc?
<shinobi_one> ruby on rails is MVC
<bawwwller> what about templating?
<shinobi_one> it uses ERB by default embedded ruby
<burgestrand> bawwwller: yes, rails has much more set up for you than the php frameworks
<shinobi_one> some use haml, such as myself
<bawwwller> ok very good
<bawwwller> iv used twig which is quite intuitive
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<bawwwller> does ruby support twig?
<shinobi_one> ah yes
opus__ has joined #ruby
<shinobi_one> ruby or rails?
kirun has quit [Quit: Client exiting]
<bawwwller> either
<burgestrand> bawwwller: rails is also very opinionated, you will get annoyed that things you want to do you cannot do in a good way, that is usually because there is a better way
<burgestrand> heh, twig, oh good old days
RichieEvan has quit [Read error: Connection reset by peer]
<burgestrand> bawwwller: as far as I know twig does not exist for ruby, but I have not been looking for it
RichieEvan_ has joined #ruby
<null-> bawwwller: leran ruby first then rails, altough I have heard of people running running rails without knowing ruby
RichieEvan_ has quit [Read error: Connection reset by peer]
<davidcelis> if you start using rails without first learning basic ruby, i will find you
Stalkr_ has quit [Quit: Leaving...]
<burgestrand> bawwwller: many people will tell you to learn ruby before you learn rails, most of them didn’t themselves however
RichieEvan has joined #ruby
<davidcelis> and i will take your computer
<davidcelis> and you will never see it again
RichieEvan has quit [Read error: Connection reset by peer]
<shinobi_one> haha david
<shinobi_one> celis
<bawwwller> lol
RichieEvan has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
<davidcelis> except in carefully taken photographs that i'll send you once every month
<davidcelis> of what i am doing to it
RichieEvan has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
cascalheira has joined #ruby
<bawwwller> im pretty chilled like i said its for expiremental use
<davidcelis> the locations will be nondescript, but the torture i put your computer through won't be. and i will make you witness it all
<seanstickle> Meh, I learned Rails first, and didn't get around to learning proper Ruby for a year or two after.
RichieEvan has joined #ruby
<bawwwller> not going to publish anything just yet
<seanstickle> Worked fine.
<null-> davidcelis: I see you have met rails<none ruby devs> ;)
<shinobi_one> bawwwller: just learn ruby first then start playing with rails
mneorr has quit [Quit: Leaving.]
<seanstickle> Or just start with Rails, and then figure our Ruby afterwards
<bawwwller> lol
RichieEvan has quit [Read error: Connection reset by peer]
<bawwwller> satan? is that you!
<seanstickle> Either one has people who did it successfully.
<seanstickle> There is no royal road for this.
<bawwwller> got one on each shoulder now
<bawwwller> ok ill let you guys know how i fair
<shinobi_one> think of it this way
<bawwwller> ill add chan to my auto join
<shinobi_one> wouldn't it make sense to learn php before codeigniter?
recycle has quit [Remote host closed the connection]
<bawwwller> ye but im pretty legit at language and concepts
<bawwwller> so im sure it will make some sense
RichieEvan has joined #ruby
<shinobi_one> well good luck, it's hard to deal with all the rails magic sometimes
<burgestrand> bawwwller: it will, you’ll be fine. People will whine at your indentation and your non-idiomatic code but it’s fine it comes with time.
<bawwwller> yep exactly - my first node script was like o_0 now they do some pretty wikid things
<burgestrand> bawwwller: and like shinobi_one says you’ll wonder what is rails, and what is pure ruby. If you are not doing anything advanced you probably don’t need to care while you’re experimenting.
mneorr has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
RichieEvan has joined #ruby
<bawwwller> yea php is currently paying my bills - i dont really care if i fail at first with ruby
RichieEvan has quit [Read error: Connection reset by peer]
<bawwwller> but i kinda have a gut feeling ruby is the future
<burgestrand> maybe for a little while
<bawwwller> especially with the way the web is going
RichieEvan has joined #ruby
<seanstickle> Ruby is *a* futureu
<seanstickle> There are many futures.
<burgestrand> 7 billion!
<bawwwller> like i said way up there - php is feeling stagnant - not enough vibrant changes to warrant my interest
<seanstickle> My future is APL and ML
<burgestrand> Or one, depending on how you look at it.
<seanstickle> Other people want other things.
RichieEvan has quit [Read error: Connection reset by peer]
<banisterfiend> bawwwller: a lot of people are saying js is the future
<banisterfiend> things like meteor
RichieEvan has joined #ruby
pskosinski has quit [Quit: http://www.redeclipse.net -- Fast-paced online FPS]
<burgestrand> namespacing using backslash got me to gtfo of php
<bawwwller> yes and ruby is the better option to integrate with js?
RichieEvan has quit [Read error: Connection reset by peer]
<banisterfiend> bawwwller: the point of things like meteor.js is that you use js everywhere, u dont need to integrate with it
<bawwwller> or just the feeling i get atleast from the few podcasts/vlogs i follow
RichieEvan has joined #ruby
<null-> bawwwller: you can run JS server side with nodejs
<seanstickle> bawwwller: people even use Perl still, and enjoy it.
<bawwwller> yes thats what im doing atm
<bawwwller> but its the asyncrous node that trips me up
<bawwwller> asyncronous*
dpk has quit [Ping timeout: 260 seconds]
<bawwwller> anyway must sleep
<bawwwller> ill speak soon
bradhe has quit [Remote host closed the connection]
<bawwwller> thanks for the insight
<bawwwller> im def going to do a few tutuorials tomorrow
luckyruby has quit [Remote host closed the connection]
<bawwwller> get my personal app up and running
<bawwwller> nite
<shinobi_one> bawwwller:
grenierm has joined #ruby
<burgestrand> bawwwller: \o.
mahmoudimus has joined #ruby
saschagehlich has joined #ruby
<shinobi_one> er
insecurlex has joined #ruby
ibash has joined #ruby
mikepack has quit [Remote host closed the connection]
jgarvey has quit [Quit: Leaving]
dpk has joined #ruby
w400z has quit []
cakehero has joined #ruby