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
<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]
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>
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
<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. =)
<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>
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
<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
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>
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)
<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>
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
<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 :)
<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]
<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
<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?
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>
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
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."
<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]
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?
<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/
<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?
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>
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>
>> "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]
<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
<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]
<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]
<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?
<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>'
<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
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
<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
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]
<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
<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?
<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
<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]
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]
<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]
<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?
<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
<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
<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]
<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
<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
<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
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.
<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
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
<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.
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
<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
<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
<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