<hipertracker>
I want to extract something and pass it to my own Ruby function x.gsub patter, 'myfun(\1)'
<trevoke>
hipertracker: The page to which you linked does not mention gsub. Could you create a small gist with what you wish to make, or explain it a little?
<blazes816>
you probably want #match not #gsub
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
freeayu has joined #ruby
pdelgallego has joined #ruby
adamkittelson has quit [Ping timeout: 244 seconds]
<blazes816>
myfunc("yoyoyo".match(/yo(.*)yo/)[1])
<neohunter>
guys im trying to use ruby-gmail with ruby on rails but i write require 'gmail'
<neohunter>
and dont works
<neohunter>
on irb it works
<neohunter>
i have gem 'ruby-gmail' on my Gemfile
<becom33>
is there any ruby lib i can use my dangle as a sms sender ?
<trevoke>
neohunter: you don't need to require it if it's in your Gemfile.
<hipertracker>
blazes816: no, I need to replace string with regexp using my own code. Something like "Foo bar".gsub(/(^\S+)/, '\1'.downcase) (it is wrong code of course)
Zolrath has quit [Quit: Computer has gone to sleep.]
<blazes816>
neohunter: #rubyonrails
<neohunter>
trevoke: no is not on a group
enyo_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
A1241 has joined #ruby
quazimodo has quit [Ping timeout: 245 seconds]
A1241 has left #ruby [#ruby]
pdtpatrick has quit [Quit: pdtpatrick]
<trevoke>
neohunter: the Rails console, if you launch it in development, will not do eager-loading of the constants.
gfontenot has joined #ruby
<trevoke>
neohunter: just type 'Gmail' once, then you should be able to start using it.
machty has quit [Ping timeout: 264 seconds]
<hipertracker>
blazes816: thanks. the block works fine
<neohunter>
I type Gmail and it say undefined constant
gfontenot has quit [Client Quit]
<neohunter>
bundle install had this line Installing ruby-gmail (0.2.1)
bradhe has quit [Remote host closed the connection]
<trevoke>
neohunter: I think blazes816 is right, this is probably better in the #rubyonrails room (even if it means i join it to keep talking about it with you)
<neohunter>
ok im asking same question on that room, thanks ;)
<blazes816>
just figure you're more likely to get an answer there
havenn has quit [Remote host closed the connection]
<blazes816>
i assume you've done a "bundle install" and restarted the console?
<blazes816>
(need to get basics out of the way :) )
klipeto has joined #ruby
idoru has joined #ruby
<neohunter>
blazes816 yes i restarted the console
classix_ has joined #ruby
<neohunter>
i read something about that gem dont have the right directory estructure, but anyway.. require 'gmail' didnt work...
<blazes816>
neohunter: that could be. Rails wants a very specific structure in order to lazy load correctly
h4mz1d has joined #ruby
<blazes816>
in which case i'm not sure how to fix it. but manually requiring it should work I think :s
t11275 has quit [Remote host closed the connection]
t83826 has joined #ruby
ohdae_ has joined #ruby
nobdrais1ntone has joined #ruby
Pizza90 has joined #ruby
<Pizza90>
hi all, i am an ubuntu user, i'd like to learn how to program in ruby i was wondering if ruby is powerful like c or c++ or has less "possibilities", i'd like to learn ruby but if at the end i can't do much in ruby it would be frustrating
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
bier has quit [*.net *.split]
Schmidt has quit [*.net *.split]
noam_ has quit [*.net *.split]
whowantstolivefo has quit [*.net *.split]
kuzushi has quit [*.net *.split]
enyo has quit [*.net *.split]
Hanmac has quit [*.net *.split]
gyre007 has quit [*.net *.split]
nopper has quit [*.net *.split]
phrame has quit [*.net *.split]
johnnyfive has quit [*.net *.split]
_Vile has quit [*.net *.split]
ohdae has quit [*.net *.split]
cool has quit [*.net *.split]
nobdraisentone has quit [*.net *.split]
combataircraft has quit [*.net *.split]
parus has quit [*.net *.split]
telling has quit [*.net *.split]
moted has quit [*.net *.split]
AllStruck has quit [*.net *.split]
classix has quit [*.net *.split]
ryanRT_ has quit [*.net *.split]
klip has quit [*.net *.split]
pdelgallego has quit [Quit: pdelgallego]
<trevoke>
Pizza90: Ruby is enormously powerful, but not in the same way as C or C++
TheShadowFog has joined #ruby
ciopte7 has joined #ruby
rins has quit [Ping timeout: 252 seconds]
<Pizza90>
trevoke: thanks for the answer! so for example you can't created a 3d game in ruby?can you tell me some example of what you could create in ruby?
classix_ has quit [Ping timeout: 252 seconds]
rvmeier has quit [Ping timeout: 265 seconds]
<blazes816>
first of all, you could use jruby and java's 3d api
<blazes816>
but you never really would use ruby for that kind of thing, no
<blazes816>
if you were serious
classix has joined #ruby
noam_ has joined #ruby
johnnyfive has joined #ruby
phrame has joined #ruby
Hanmac has joined #ruby
kuzushi has joined #ruby
whowantstolivefo has joined #ruby
gyre007 has joined #ruby
parus has joined #ruby
_Vile has joined #ruby
combataircraft has joined #ruby
nopper has joined #ruby
moted has joined #ruby
telling has joined #ruby
AllStruck has joined #ruby
ryanRT_ has joined #ruby
<blazes816>
ruby is used heavily for building web applications
x77686d has joined #ruby
<blazes816>
or just general scripting
<blazes816>
to a lesser degree building desktop apps, but nothing as high performance as a 3d game
dimday has joined #ruby
<blazes816>
if you would use python, php, or perl, there's no reason to not use ruby instead. but they're higher level languages than c/c++
<blazes816>
you can get more done faster, but you lose control in exchange.
<blazes816>
no direct memory access for example
<heftig>
i could see ruby getting used as an embedded scripting language in a game engine
<Pizza90>
web application like a webchat? i dont want to sound provokative but isn't there html5 for this kind of things?ruby seems easy to understand at the least to a newbie like me but i'd like to understand if learning it would be worth
<blazes816>
oh yeah, that'd be sweet
<trevoke>
Pizza90: In general, things that do not require heavy number-crunching. Ruby is written in C, and the libraries that do heavy crunching are also written in C, for the speed.
<heftig>
sorta like LUA, mruby would be a nice replacement
<trevoke>
Pizza90: Well, for one, HTML5, node, etc, weren't around when Rails was created :p
<trevoke>
Pizza90: And for two, web apps like LinkedIn, Twitter, Github...
bier has joined #ruby
Schmidt has joined #ruby
<blazes816>
html5 is a markup language. they're shoving in more and more crap, but it doesn't replace a real language like ruby
cj3kim has quit [Quit: Leaving]
<blazes816>
if you're building a web app with ruby, you will also be using html a lot
<blazes816>
and javascript/css. they're different components.
<blazes816>
you'd be using them if you wrote your web app in C as well
<Pizza90>
oh i see :)
<blob>
i usually suggest that people "learn to program" and then worry about "learning languages"
<blazes816>
probably good advice blob
<blob>
ruby is one of the best places to start though
x77686d has quit [Ping timeout: 264 seconds]
<blazes816>
you won't have to worry about nearly as much crap. if you have 0 programming experience it could easily take you more than a day trying to figure out to to reverse a string in C
<blazes816>
vs "string".reverse in ruby
t83826 has quit [Remote host closed the connection]
<blazes816>
it can get frustrating for a new person, because nobody want's to deal with that shit
t12868 has joined #ruby
classix has quit [Ping timeout: 245 seconds]
<Pizza90>
yes i have 0 programming experience :D i found out ruby time ago but i never went deeper than the first how to because at that time i could not find any projects that could make thinking "wow ruby is powerful"
<blazes816>
you'd need it to be inline in order to save your place though
<blazes816>
and I now see trevoke beat me to it
<trevoke>
blazes816: *grin*
awarner has joined #ruby
ilyam has quit [Quit: ilyam]
blazes816 has quit [Quit: This computer has gone to sleep]
shadoi has quit [Quit: Leaving.]
classix has quit [Ping timeout: 240 seconds]
trevoke has quit [Quit: trevoke]
Zespre has quit [Ping timeout: 252 seconds]
classix has joined #ruby
shadoi has joined #ruby
Zespre has joined #ruby
jorge has joined #ruby
tiripamwe has quit [Quit: Leaving]
fyolnish_ has joined #ruby
classix has quit [Ping timeout: 268 seconds]
classix has joined #ruby
nari has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Read error: Operation timed out]
tommyvyo has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
infinitiguy has joined #ruby
classix has quit [Ping timeout: 255 seconds]
adeponte has quit [Remote host closed the connection]
classix has joined #ruby
Banistergalaxy has joined #ruby
alvaro_o_ has quit [Quit: Ex-Chat]
AndChat| has quit [Ping timeout: 245 seconds]
hipertracker has quit [Quit: hipertracker]
qos has quit [Ping timeout: 245 seconds]
classix has quit [Ping timeout: 255 seconds]
infinitiguy has quit [Quit: Leaving.]
emmanuelux has quit [Ping timeout: 265 seconds]
neohunter has quit [Ping timeout: 265 seconds]
classix has joined #ruby
t12868 has quit [Remote host closed the connection]
t76714 has joined #ruby
savage- has quit [Ping timeout: 252 seconds]
specialGuest has quit [Ping timeout: 264 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
gfontenot has joined #ruby
SCommette has quit [Quit: SCommette]
_jgr_ has joined #ruby
bradhe has joined #ruby
mascool_ has quit [Ping timeout: 244 seconds]
sailias has quit []
Erdos1 has joined #ruby
classix has quit [Ping timeout: 252 seconds]
classix has joined #ruby
TTilus has quit [Ping timeout: 245 seconds]
TheShadowFog has quit [Quit: pls respond]
mmitchell has joined #ruby
apok_ has joined #ruby
jjbohn has joined #ruby
ryanf has quit [Quit: leaving]
pingfloyd has joined #ruby
coderguy has joined #ruby
coderguy has quit [Client Quit]
apok_ has quit [Client Quit]
v0n has quit [Ping timeout: 246 seconds]
classix has quit [Ping timeout: 246 seconds]
replore_ has joined #ruby
replore_ has quit [Client Quit]
classix has joined #ruby
apok has quit [Ping timeout: 245 seconds]
sn0wb1rd has joined #ruby
vitor-br has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
vjt has quit [Quit: reboot]
classix has quit [Ping timeout: 252 seconds]
mrdodo has quit [Remote host closed the connection]
uris has joined #ruby
Pizza90 has quit [Remote host closed the connection]
pipopopo has quit [Ping timeout: 260 seconds]
classix has joined #ruby
pipopopo has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
savage- has joined #ruby
adeponte has joined #ruby
TTilus has joined #ruby
vjt has joined #ruby
<vjt>
0
classix has quit [Ping timeout: 252 seconds]
classix has joined #ruby
jjbohn has quit [Quit: Leaving...]
luist has joined #ruby
frogstarr78 has quit [Remote host closed the connection]
larissa has joined #ruby
Taichouchou2 has quit [Remote host closed the connection]
classix has quit [Ping timeout: 246 seconds]
radic has quit [Disconnected by services]
classix has joined #ruby
radic_ has joined #ruby
radic_ is now known as radic
larissa has quit [Ping timeout: 246 seconds]
baroquebobcat has joined #ruby
frogstarr78 has joined #ruby
havenn has joined #ruby
adeponte has quit [Remote host closed the connection]
larissa has joined #ruby
ryanf has joined #ruby
manizzle has quit [Ping timeout: 260 seconds]
sqlbyme has quit [Quit: Leaving.]
Taichouchou2 has joined #ruby
uris has quit [Read error: Connection reset by peer]
classix has quit [Ping timeout: 260 seconds]
uris has joined #ruby
ibash has joined #ruby
classix has joined #ruby
larissa has quit [Read error: Operation timed out]
larissa has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
t76714 has quit [Remote host closed the connection]
shadoi has quit [Ping timeout: 245 seconds]
Progster has quit [Ping timeout: 260 seconds]
t85376 has joined #ruby
quazimodo has joined #ruby
fyolnish_ has quit [Remote host closed the connection]
classix has quit [Ping timeout: 272 seconds]
fyolnish_ has joined #ruby
classix has joined #ruby
td123 has joined #ruby
iamjarvo has joined #ruby
Carsekyx has joined #ruby
c0rn_ has joined #ruby
mmitchell has quit [Remote host closed the connection]
c0rn_ has quit [Client Quit]
pu22l3r has quit [Ping timeout: 244 seconds]
<Carsekyx>
Can anyone recommend a gem to follow a list of Twitter users from a csv file? I had a look at the Twitter gem but we had to make an application, is this the only way?
landers has quit [Quit: WeeChat 0.3.8]
classix has quit [Ping timeout: 244 seconds]
classix has joined #ruby
Takehiro has quit [Remote host closed the connection]
<bnagy>
they're all in the quickref, that one is "The status of the last executed child process."
<bnagy>
the only ones in really common use are $!, $: and maybe $@ afaik
<macer1>
> gem install ncurses
<fowl>
macer1: there is probably a nice java lib for it, the term you want is terminal user interface or tui
<macer1>
*lot of gcc errors*
<macer1>
*shrugs*
freeayu has quit [Quit: 离开]
<fowl>
you'll need your distro's ncurses-dev package
<bnagy>
it's not called curses for nothing
<macer1>
already installed
<bnagy>
it would be 50x easier to write a gui
<bnagy>
esp if you use jruby
<macer1>
jruby as an option for windows users ya know
<macer1>
to compile my program to jar
<macer1>
or stuff like that
cdepue has quit [Ping timeout: 276 seconds]
<bnagy>
morning rubybots, btw
<bnagy>
TFIF
<sr___>
guys, I am facing some very weird rake bugs on windows when using the usual ruby (both 1.8 and 1.9), but no issue on jruby
classix has quit [Ping timeout: 240 seconds]
<sr___>
unfortunatley, jruby's slow start makes it a pain to use for frequent rake builds
<sr___>
I am using rake for C++ builds a-la-Makefile, but seems like the "outdated file detection" is not working properly
classix has joined #ruby
Guedes has quit [Ping timeout: 265 seconds]
jjbohn has joined #ruby
havenn has quit [Remote host closed the connection]
<t0rc>
macer1: thanks
<t0rc>
bnagy: thanks; old perlisms but still used?
sarge has joined #ruby
sarge has quit [Excess Flood]
awarner has quit [Remote host closed the connection]
hadees has joined #ruby
mmitchell has joined #ruby
butblack has joined #ruby
n_blownapart has joined #ruby
butblack has left #ruby [#ruby]
v0n has joined #ruby
ringotwo has quit [Remote host closed the connection]
classix has quit [Ping timeout: 276 seconds]
bradhe has quit [Ping timeout: 276 seconds]
GoGoGarrett has quit [Remote host closed the connection]
classix has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
hadees has quit [Ping timeout: 264 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
jonathanwallace has joined #ruby
x77686d has joined #ruby
<bnagy>
t0rc: the ones I said are. imho only $! is commonly enough recognised that you should use it
rvmeier has quit [Quit: Leaving]
manizzle has joined #ruby
mucker has quit [Ping timeout: 252 seconds]
<n_blownapart>
hi in pry I get : TypeError Superclass Mismatch ... otherwise the program runs fine in ruby thanks : http://pastie.org/4621998
<n_blownapart>
i.e. reasoning for this thanks ^^
classix has quit [Ping timeout: 252 seconds]
Taichouchou2 has quit [Remote host closed the connection]
aristidesfl has quit []
<n_blownapart>
^^ this error occurs when I input the last end on line 13 (in pry)
covi has left #ruby [#ruby]
havenn has joined #ruby
ilyam has joined #ruby
ilyam has quit [Client Quit]
seanyo has joined #ruby
x77686d has quit [Ping timeout: 276 seconds]
null- has joined #ruby
x77686d has joined #ruby
Takehiro has joined #ruby
jjbohn has quit [Quit: Leaving...]
ananthakumaran has joined #ruby
x77686d has quit [Ping timeout: 255 seconds]
ibash has quit [Quit: ibash]
x77686d has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
quest88 has joined #ruby
wargasm has joined #ruby
Takehiro has quit [Remote host closed the connection]
ZachBeta has joined #ruby
x77686d has quit [Ping timeout: 246 seconds]
t85376 has quit [Remote host closed the connection]
t71771 has joined #ruby
wedgeV has joined #ruby
n_blownapart has quit [Remote host closed the connection]
wedgeV has quit [Client Quit]
fyolnish_ has quit [Remote host closed the connection]
gloomer has joined #ruby
jorge has quit [Remote host closed the connection]
grizlo42 has joined #ruby
wedgeV has joined #ruby
wedgeV has quit [Client Quit]
gfontenot has quit []
larissa has quit [Quit: Leaving]
wedgeV has joined #ruby
<shevy>
the ruby parser is cleverer than irb and pry
wedgeV has quit [Client Quit]
wedgeV has joined #ruby
Banistergalaxy has quit [Ping timeout: 268 seconds]
Banistergalaxy has joined #ruby
<bnagy>
it works in irb
wedgeV has quit [Client Quit]
wedgeV has joined #ruby
wedgeV has quit [Client Quit]
richardcreme has quit [Quit: Lost terminal]
x77686d has joined #ruby
Taichouchou2 has joined #ruby
Taichouchou2 has quit [Remote host closed the connection]
Taichouchou2 has joined #ruby
headius has joined #ruby
wedgeV has joined #ruby
wedgeV has quit [Client Quit]
wedgeV has joined #ruby
wedgeV has quit [Client Quit]
Erdos1 has quit [Ping timeout: 268 seconds]
Erdos1 has joined #ruby
wedgeV has joined #ruby
wedgeV_ has joined #ruby
x77686d_ has joined #ruby
Takehiro has joined #ruby
wedgeV_ has left #ruby [#ruby]
wedgeV_ has joined #ruby
wedgeV_ has quit [Client Quit]
wedgeV_ has joined #ruby
wedgeV_ has quit [Client Quit]
S1kx has quit [Ping timeout: 245 seconds]
wedgeV has quit [Client Quit]
wedgeV has joined #ruby
x77686d has quit [Ping timeout: 240 seconds]
x77686d_ is now known as x77686d
wedgeV has quit [Client Quit]
codefriar has quit [Quit: Leaving...]
wedgeV has joined #ruby
wedgeV has quit [Client Quit]
brianpWins has joined #ruby
wedgeV has joined #ruby
wedgeV has quit [Client Quit]
berserkr has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
wedgeV has joined #ruby
wedgeV has quit [Client Quit]
wedgeV has joined #ruby
gloomer has quit [Ping timeout: 255 seconds]
Takehiro has quit [Remote host closed the connection]
deryl has quit [Quit: Time To Go, Too Bad, So Sad!]
wedgeV has quit [Quit: leaving]
x77686d has quit [Ping timeout: 240 seconds]
cool has joined #ruby
cool has quit [Changing host]
cool has joined #ruby
cool has joined #ruby
krz has quit [Quit: krz]
wedgeV has joined #ruby
wedgeV has quit [Client Quit]
wedgeV has joined #ruby
wedgeV has quit [Client Quit]
wedgeV has joined #ruby
richardcreme has joined #ruby
Takehiro has joined #ruby
wedgeV has quit [Client Quit]
wedgeV has joined #ruby
steven has quit [Ping timeout: 268 seconds]
butblack has joined #ruby
seanstickle has quit [Quit: seanstickle]
ZachBeta has quit [Quit: Computer has gone to sleep.]
butblack has left #ruby [#ruby]
steven has joined #ruby
Takehiro has quit [Remote host closed the connection]
m_3 has quit [Remote host closed the connection]
wargasm has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
t71771 has quit [Remote host closed the connection]
t12907 has joined #ruby
t0rc has quit [Quit: WeeChat 0.3.8]
stepnem has joined #ruby
yasushi has joined #ruby
mercwithamouth has quit [Quit: leaving]
mercwithamouth has joined #ruby
adeponte has joined #ruby
ringotwo has joined #ruby
luist has quit [Quit: luist]
TandemAdam has quit [Quit: Leaving]
ananthakumaran has quit [Quit: Leaving.]
uris has quit [Quit: leaving]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mmitchell has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 264 seconds]
cdepue has joined #ruby
Bosma has quit [Ping timeout: 245 seconds]
khakimov has joined #ruby
ph^ has joined #ruby
dmiller has joined #ruby
justsee has quit [Quit: Leaving...]
d3vic3 has quit [Ping timeout: 245 seconds]
cdepue has quit [Remote host closed the connection]
d3vic3 has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
ph^ has quit [Ping timeout: 248 seconds]
yasushi has quit [Remote host closed the connection]
seanyo has quit [Ping timeout: 246 seconds]
deryl has joined #ruby
Guest5516 has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
iamjarvo has quit [Ping timeout: 244 seconds]
bradhe has joined #ruby
dmiller has quit [Ping timeout: 260 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
sgmac has joined #ruby
Taichouchou2 has quit [Remote host closed the connection]
kenneth has joined #ruby
quest88 has quit [Quit: quest88]
Taichouchou2 has joined #ruby
sgmac has left #ruby [#ruby]
fearoffish has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Remote host closed the connection]
und3f has joined #ruby
macmartine has joined #ruby
diegoviola has quit [Ping timeout: 244 seconds]
fyolnish_ has joined #ruby
Takehiro has joined #ruby
ananthakumaran has joined #ruby
bradhe has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 244 seconds]
yonggu has quit [Quit: yonggu]
ananthakumaran has joined #ruby
jarred has joined #ruby
Takehiro has quit [Remote host closed the connection]
und3f has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 268 seconds]
und3f has joined #ruby
mercwithamouth has joined #ruby
Carsekyx has quit [Quit: Carsekyx]
fyolnish_ has quit [Remote host closed the connection]
sent-hil has joined #ruby
td123 has quit [Quit: WeeChat 0.3.8]
fyolnish_ has joined #ruby
allyraza has quit [Ping timeout: 264 seconds]
shadoi has quit [Quit: Leaving.]
khakimov has joined #ruby
gloomer has joined #ruby
t12907 has quit [Remote host closed the connection]
t16620 has joined #ruby
havenn has joined #ruby
mrdodo has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
freeayu has joined #ruby
havenn has quit [Ping timeout: 246 seconds]
krz has joined #ruby
dakine has joined #ruby
Takehiro has joined #ruby
<dakine>
hey all, i'm sure you get this *ALL THE TIME* but, i want to pick up Ruby and I'd like to know what a good first step is. like, any favorite textbook you highly recommend, etc.
answer_42 has joined #ruby
<sent-hil>
dakine: do you've previous programming exp?
Carsekyx has joined #ruby
<dakine>
very little, in Perl
<sent-hil>
dakine: try rubymonk.com, its free & interactive
<dakine>
and a development platform called UniPaas
<dakine>
oh, like perlmonks? :p
<sent-hil>
or the book "Well rounded Rubyist"
<sent-hil>
isn't perlmonks more like a forum
<dakine>
yeah, i see that rubymonk is different
<dakine>
looks very interesting, and exactly what i was looking for
<dakine>
thank you very much! :)
replore_ has joined #ruby
mmitchell has joined #ruby
ciopte7 has quit [Quit: ciopte7]
<sent-hil>
codecademy.com is good for js
<sent-hil>
you bet, good luck!
mmitchell has quit [Ping timeout: 246 seconds]
ph^ has joined #ruby
cdepue has joined #ruby
Carsekyx has left #ruby [#ruby]
hipertracker has joined #ruby
c0rn_ has joined #ruby
mahmoudimus has joined #ruby
quazimodo has joined #ruby
ph^ has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
noyb has quit [Ping timeout: 260 seconds]
tagrudev has joined #ruby
und3f has quit [Ping timeout: 246 seconds]
meiosis has joined #ruby
robustus has joined #ruby
<meiosis>
when I use ruby-mode in emacs, How can I get the helper document of the current method? Just like C-h f in lisp mode
kenneth has quit [Quit: kswizz.com]
maesbn has joined #ruby
burgestrand has joined #ruby
forexwaldo has joined #ruby
gloomer has quit [Ping timeout: 246 seconds]
jonathanwallace has joined #ruby
zigomir has joined #ruby
<Mon_Ouie>
It doesn't have any feature like that AFAIK; there are tools like yari that you can use though
<Mon_Ouie>
Or just ri in a shell
eighty4 has joined #ruby
deryl has quit [Quit: deryl]
mohits has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Ping timeout: 268 seconds]
grizlo42 has left #ruby [#ruby]
Hanmac1 has quit [Ping timeout: 246 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
Hanmac has joined #ruby
und3f has joined #ruby
tgriffin2081 has quit [Ping timeout: 250 seconds]
forexwaldo has quit [Ping timeout: 260 seconds]
tgriffin2081 has joined #ruby
Axsuul has joined #ruby
ryanf has joined #ruby
ryanf has quit [Client Quit]
nesoi has joined #ruby
fyolnish_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
senny has joined #ruby
fyolnish has joined #ruby
<nesoi>
so I'm trying to install ruby 1.9.2 on my osx 10.6.8 system, and I want to install homebrew. But the homebrew git page says to install it using ruby. Is that going to work, or will homebrew become confused at some later point about ruby versions or library locations and cause me trouble?
fantazo has quit [Remote host closed the connection]
timonv has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
cirwin has joined #ruby
cj3kim has joined #ruby
t16620 has quit [Remote host closed the connection]
cj3kim has quit [Changing host]
cj3kim has joined #ruby
t33702 has joined #ruby
tonini has joined #ruby
Xeago has joined #ruby
jenrzzz_ has joined #ruby
becom33 has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
becom33 has joined #ruby
Takehiro has quit [Remote host closed the connection]
kuzushi has quit [Read error: Operation timed out]
malcolmva has joined #ruby
jenrzzz_ has quit [Ping timeout: 248 seconds]
aganov has joined #ruby
<bnagy>
why would you install 1.9.2 and not 1.9.3?
pingfloyd has quit [Quit: pingfloyd]
nesoi1 has joined #ruby
manizzle has quit [Ping timeout: 240 seconds]
<cirwin>
for heroku compatibility?
manizzle has joined #ruby
nesoi has quit [Ping timeout: 260 seconds]
LouisGB has joined #ruby
<bnagy>
it supports 1.9.2 but not 1.9.3??
hipertracker has quit [Quit: hipertracker]
<bnagy>
wow that's retarded :|
Xeago has quit [Remote host closed the connection]
<nesoi1>
so I'm trying to install ruby 1.9.2 on osx 10.6.8. I first installed xcode command line tools, and then tried to install homebrew. the troubles are already starting. Here's the error message. Does anyone have an idea of what I should do?
<Giorgio>
bnagy thank you again for solution and explanation
radic has quit [Ping timeout: 260 seconds]
<bnagy>
Giorgio: if you need a deep clone, the standard way used to be Marshal.load(Marshal.dump(obj))
<bnagy>
I can't remember if they actually put something clean in 1 9 3
mc0e has joined #ruby
<Giorgio>
it is not for something complex
c0rn_ has joined #ruby
<Giorgio>
>> a=[1,2,3];p [0] + a;a
<Giorgio>
do great job
pipopopo has joined #ruby
<bnagy>
cool
Takehiro has joined #ruby
<Mon_Ouie>
class Object; alias deep_dup dup; end; class Array; def deep_dup; map(&:deep_dup); end; end (doesn't work if the array contains stuff that can't be dup'd, though)
yxhuvud has joined #ruby
ph^ has quit [Remote host closed the connection]
mneorr has joined #ruby
<Hanmac>
the only non-dupable objects are nil,true,false,Symbol,Fixnum ... and in this cases the object can be still returned
<Mon_Ouie>
I'd prefer if dup'ing an immutable object would just return the object itself — after all, there's no need to do anything in that case
radic has joined #ruby
<Hanmac>
thats what i meaned
rakl has joined #ruby
hoelzro|away is now known as hoelzro
<rakl>
HI everyone, I'm using File.read to parse a csv file. If I split it by /\n/ and then by commas, I get arrays of different lengths (because there are null values). Is there a better way to turn a csv file into an array of arrays injecting nulls where appropriate?
<bnagy>
rakl: use CSV in stdlib
justinlilly has joined #ruby
<justinlilly>
is it possible to look at a repository and determine what the suggested version of ruby is? any key indicators?
saispo has joined #ruby
* rakl
facepalm
qwerxy has joined #ruby
<justinlilly>
hrm. think I found something that suggests 1.8.7, so I'll give that one a shot. :)
<justinlilly>
they have several comments for 1.8.7 use.
<justinlilly>
I'm a python fellow, so I'm just trying to get something working but I don't have any clue what I'm doing really.
Takehiro has quit [Remote host closed the connection]
eldariof has joined #ruby
<sent-hil>
justinlilly: try 1.9.3, if it doesn't work then try 1.8.7
ph^ has joined #ruby
<justinlilly>
sent-hil: I've tried 1.9.3 and 1.9.1 and got random errors that I didn't understand.
<justinlilly>
I'll try again though.
<sent-hil>
justinlilly: 1.8.7 then
<sent-hil>
do you've rvm?
<justinlilly>
sent-hil: yes, I'm doing rvm.
<nesoi1>
I'm trying to install ruby 1.9.2 on osx 10.6.8 by doing: xcode command line tools -> homebrew -> rbenv -> rubybuild, hoping that this will fix the library errors I got last time when installing some gems
<sent-hil>
it should be easy to change versions then
<nesoi1>
but I can't even get brew to install due to… library errors
<nesoi1>
anyone have any tips?
<bnagy>
yeah, use ports
<nesoi1>
bnagy: just ports instead of homebrew?
<bnagy>
yes
<nesoi1>
where would I look for the docs to that?
<sent-hil>
justinlilly: its possible the errors aren't 1.9 related, you should gist it
<bnagy>
your error before was an outdated libcurl
wobr has joined #ruby
<bnagy>
nesoi1: the internets :) "install macports osx" should do
<nesoi1>
right, so that implies I have other outdated libraries
<bnagy>
nesoi1: there was some third party toolchain I gave you a link for a few days ago, otherwise I dunno
<bnagy>
personally I just run up to date software
<justinlilly>
sent-hil: I feel like I'm just fighting their library which (guessing) doesn't play well with RVM?
<sent-hil>
it seems to be bundler related rather than ruby 1.9
<bnagy>
the full, old, xcode should still work
<bnagy>
but 'should' is just a guess
<justinlilly>
if I'm reading the code correctly, it expects some gems to be installed (rake, for instance), but not everything b/c it wants to install some of its own things via this bundler magic.
<sent-hil>
i've no clue what "when :unavailable: :unavailable" is
gloomer has quit []
<Hanmac>
sent-hil no its old 1.8 syntax
pskosinski has quit [Read error: Connection reset by peer]
<nesoi2>
bnagy: the problem is, I don't know how to uninstall the xcode command tools
<justinlilly>
how can I list the gems available to my ruby?
<sent-hil>
Hanmac: really...what is ":unavailable:"
nesoi1 has quit [Ping timeout: 276 seconds]
<sent-hil>
gem list
<Hanmac>
in 1.8 you could do: "when a : doo" which is not allowed anymore, so you need "when a; doo"
quazimodo has quit [Ping timeout: 272 seconds]
<justinlilly>
sent-hil: and that will show it specific to the rvm I'm in?
<sent-hil>
oh the teranary operator
<Hanmac>
sent-hil no
<justinlilly>
I'm getting the error: /Users/justinlilly/src/github-services/config/load.rb:88:in `require': no such file to load -- addressable/uri (LoadError) , despite having addressable as an installed gem.
<sent-hil>
justinlilly: yes
* justinlilly
doesn't know enough ruby to know how to inspect the 'addressable' plugin he has installed :-/
SCommette has joined #ruby
bluOxigen has joined #ruby
<whowantstolivefo>
hiya people when i have windows 7 OS and i installed ruby on rails via rails installer and i installed gems etc. today when i try to create projects from ruby i get some error. when i try " gem -v , rails -v " i get this error http://pastebin.com/4DppGYr1 <<< what is the problem can be ?
<whowantstolivefo>
hey help me about my issue please.
bradhe has joined #ruby
<sent-hil>
there's addressable.rb in that gem, so I'm guessing bundler is trying to require it and its causing an error
SCommette has quit [Quit: SCommette]
<sent-hil>
justinlilly: also you should switch to 1.8.7, since that :unavailable: syntax isn't valid anymore
coyo has quit [Quit: Heaven is not a place, it's being with people who love you.]
SCommette has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<justinlilly>
sent-hil: yea, I switched. Just reinstalled its actually which is what's taking so long
Xeago has joined #ruby
<arkiver>
Why would a [nil] appear in a obj_name.errors.full_messages ? I created an object of a class. And trying to save it. AFAIK i've included all the required properties of the model .
<arkiver>
But its not getting saved and .valid? returns false
jorge has quit [Ping timeout: 260 seconds]
<arkiver>
and [nil] appears in the objectname.errors.full_messages
xorigin has joined #ruby
<Hanmac>
the creator of the xmpp4r-simple should be blamed for that ... or the github-services maker
<sent-hil>
arkiver: is this an ActiveRecord object?
<arkiver>
sent-hil, Datamapper
<sent-hil>
arkiver: do you've any validations on the model?
<arkiver>
yes there are validations in the model
<arkiver>
sent-hil, ^
mrdodo has quit [Remote host closed the connection]
<sent-hil>
arkiver: does it save properly without the validations?
jamesaa has quit [Ping timeout: 246 seconds]
r0bby has quit [Ping timeout: 246 seconds]
<sent-hil>
justinlilly: you could copy over the files from 1.9 gems to here, but its prob. too late now
<justinlilly>
I just really feel like .bundle/loadpath should have stuff in it. (its currently empty)
<justinlilly>
btw, doesn't work.
SCommette has quit [Quit: SCommette]
r0bby has joined #ruby
<Hanmac>
why dont you try to ask bundler questions at #bundler?
<arkiver>
sent-hil, Hey just found out where it was breaking. I accidently messed up something in my model validations ;)
jamesaa has joined #ruby
<becom33>
i wanna use yaml in all methods inside my class . without making it a public variable how can I use it
Averna has quit [Quit: Leaving.]
<sent-hil>
arkiver: woo hoo
mrdodo has joined #ruby
s1n4 has quit [Client Quit]
<justinlilly>
sent-hil: I'll probably take Hanmac's advice and head over to bundler to ask my question, but I can't use pry as I can't require 'pry' b/c I can't require anything (which is the error I'd want to debug :-P)
<sent-hil>
lol
<Hanmac>
maybe you installed it wrong? or something in rvm is broken?
<justinlilly>
Hanmac: /Users/justinlilly/src/github-services/config/load.rb:86:in `require': no such file to load -- pry (LoadError)
ly_gs has joined #ruby
<sent-hil>
pry installed in vendor/ ?
leoncamel has joined #ruby
<justinlilly>
no, its in rvm
<Banistergalaxy>
Justinlilly pry is the best thingy ever!
<sent-hil>
he should know, he wrote it :)
hipertracker has joined #ruby
<justinlilly>
its at /Users/justinlilly/.rvm/gems/ruby-1.8.7-p370/gems/pry-0.9.10/lib/pry
<sent-hil>
did you put the require 'pry' before requiring the config/load file?
<shevy>
becom33 what do you mean - with YAML.load_file() you can load a yaml data, then use this dataset
<becom33>
where did i say load_file ?
<justinlilly>
sent-hil: as the first line in github-services.rb .. still no dice.
<shevy>
becom33 it does not matter, yaml stores information. you access that information.
zodiak has joined #ruby
<becom33>
shevy, without building a global variable how can access one variable value in every method inside the class
<whowantstolivefo>
hiya people when i have windows 7 OS and i installed ruby on rails via rails installer and i installed gems etc. today when i try to create projects from ruby i get some error. when i try " gem -v , rails -v " i get this error http://pastebin.com/4DppGYr1 <<< what is the problem can be ?
<shevy>
becom33 assign it to an instance variable like @data = YAML.load_file('bla.yml')
<shevy>
becom33 typically I put that into a method, like read_yaml_dataset; @data = YAML.load_file('bla.yml')
<shevy>
def read_yaml_dataset
<shevy>
usually shorter
<shevy>
def read_dataset or just def read_data
twinturbo has joined #ruby
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
<becom33>
i see
<Hanmac>
whowantstolifefo it seem that rails is not currect installed ...
<becom33>
thanks shevy
<whowantstolivefo>
Hanmac but i created some sampple projects yesterday ?
<shevy>
whowantstolivefo seems like rails gem was not installed correctly. you probably must have missed an error. the folks who know most about rails are on #rubyonrails btw
Takehiro has joined #ruby
<shevy>
then something must have been done automagically
<shevy>
also look at output from "gem env" and "gem list"
<whowantstolivefo>
shevy so i must reinstall gems and rails
<shevy>
why?
<shevy>
the way I do this usually is, I copy the .gem files and back them up
<shevy>
they reside in the cache/ subdirectory
<shevy>
PREFIX_HERE/lib/ruby/gems/1.9.1/cache/
ph^ has joined #ruby
<shevy>
dunno where it is for your windows installation... C:/Ruby187/lib/ruby/gems/1.9.1/cache/ possibly
<withnale>
Hello. Can anyone tell me how I can use a variable to replace to 20 width in the following example.... 'puts %| <component name="%20s" version="%s" /> \n| % [ k, v]'
x0F has quit [Disconnected by services]
<Banistergalaxy>
Vectorshelve sup babe
x0F_ is now known as x0F
<vectorshelve>
Banistergalaxy: nothing honey... how you ? :D
meiosis has quit [Remote host closed the connection]
t76047 has quit [Remote host closed the connection]
<bnagy>
oh, knapsack
<bnagy>
what does ruby have to do with it?
t52144 has joined #ruby
<dagobah>
Just wondered whether anyone had done any solutions in ruby before.
<bnagy>
well they give you the algorithm, no? Just write it out?
mrdodo has quit [Ping timeout: 272 seconds]
<dagobah>
I understand, there are just many algorithms to do it, guess I wanted to explore ones other than "first fit".
<bnagy>
I think you'll have a bad time if you restrict yourself to looking for ruby, IME anyway
<dagobah>
Thanks.
<bnagy>
usually for compsci stuff I end up porting pseudocode / java / whatever
codefriar has joined #ruby
charliesome has joined #ruby
<bnagy>
there's a good stackexchange
<bnagy>
esp. if it's a classic problem
matrixise has joined #ruby
und3f has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
arkiver has quit [Quit: Leaving]
Taichouchou2 has joined #ruby
rakunHo has quit [Read error: Connection reset by peer]
mxweas has quit [Quit: Computer has gone to sleep.]
deryl has joined #ruby
mxweas has joined #ruby
chendo_ has quit [Ping timeout: 252 seconds]
TPFC-SYSTEM has joined #ruby
chendo_ has joined #ruby
freeayu has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
chendo_ has quit [Ping timeout: 272 seconds]
dekroning has joined #ruby
ananthakumaran has joined #ruby
hemanth has quit [Ping timeout: 246 seconds]
<workmad3>
bnagy: yeah, I tend to find that java is the lingua-franca for most algorithms
chendo_ has joined #ruby
<workmad3>
and knapsack problem? always fun :) isn't that an NP-complete one?
leoncame` has joined #ruby
und3f has joined #ruby
arkiver has joined #ruby
<hoelzro>
I believe so
<hoelzro>
it might even be NP-hard
* hoelzro
checks
d3vic3_ has joined #ruby
<hoelzro>
sure enough
mxweas_ has joined #ruby
freeayu has joined #ruby
<shevy>
ruby ruby ruby
<hoelzro>
dur. NP-complete ⊢ NP-hard
fearoffish has joined #ruby
bigkm has quit [Ping timeout: 240 seconds]
chimay has quit [Quit: WeeChat 0.3.9-rc1]
mxweas has quit [*.net *.split]
ananthakumaran1 has quit [*.net *.split]
berserkr has quit [*.net *.split]
voodoofish has quit [*.net *.split]
leoncamel has quit [*.net *.split]
saispo has quit [*.net *.split]
Affix has quit [*.net *.split]
d3vic3 has quit [*.net *.split]
mxweas_ is now known as mxweas
<matti>
shevy shevy shevy
<shevy>
matti matti matti
<shevy>
hey you plenked
<shevy>
matti matti matti
<shevy>
there
t52144 has quit [Remote host closed the connection]
t96942 has joined #ruby
<matti>
Haha
bigkm has joined #ruby
<matti>
:)
<shevy>
I am reading up on bash
<shevy>
"conforms to the POSIX 2 shell specifications"
<shevy>
do you think this is available somewhere? hmmm
<shevy>
hah cool... crtl-t swaps the characters
<matti>
It is.
<matti>
Most POSIX documents are public.
<vlad_starkov>
Question: Does anyone know how to check that one array has element(s) of another array? I need something like: [:one, :two, :three].test([:one, :three])
<matti>
vlad_starkov: .includes?
<vlad_starkov>
NoMethodError: undefined method `includes?' for #<Array:0x007fbf745132f0>
<matti>
Oh, sorry.
tww has quit [Remote host closed the connection]
<hoelzro>
[:one, :three].any? { |e| [:one, :two, :three].include? e }
<hoelzro>
or the other way around
<matti>
Not plural.
<hoelzro>
depending on how you're testing
chendo_ has quit [Ping timeout: 240 seconds]
<shevy>
vlad_starkov I think I added a method like .partial_include? or .includes_any? for that
<heftig>
vlad_starkov: (a & b).empty?
<matti>
heftig: .any?
<vlad_starkov>
hoelzro: I need to be sure that every element of one array exists in another.
<heftig>
matti: what?
<vlad_starkov>
heftig: no, it does not work in my case
<deryl>
no .any?
<matti>
heftig: I mean, why .empty?
<matti>
Oh.
<matti>
Not my best day today.
* matti
too tired.
voodoofish has joined #ruby
<vlad_starkov>
Both arrays can have different size
<heftig>
vlad_starkov: oh, then (b - a).empty?
chendo_ has joined #ruby
<heftig>
if that is empty, "b" is a subset or equal to "a"
* matti
apologises for reading IRC on a mobile and missing on half of the conversation.
IPGlider has quit []
<vlad_starkov>
heftig: nope, I'll show
chimay has joined #ruby
berserkr has joined #ruby
<deryl>
i'll apologize for a bad joke attempt. (he said .any? matti said .any? heftig said what? so I said no .any?)
<shevy>
lol
<shevy>
.what?
<matti>
deryl: LOL
<matti>
deryl: :)
<deryl>
:)
<deryl>
think i should have at least one cup of coffee before cracking funny ;)
<matti>
deryl: I am actually glad you said it was a joke attempt.
<matti>
deryl: I was confused ;p
<deryl>
ahh heh
<matti>
;]
<vlad_starkov>
We have first array [:red, :yellow, :green] and the second [:red, :green]. It is required that second array can have any number of elements from the first array. It is not allowed for the second array to have value which is not included in the first array. For example: [:red, :green] is valid, but [:red, :green, :purple] is invalid.
<hoelzro>
vlad_starkov: then my solution should work
<hoelzro>
although heftig's solution with intersection is pretty cool.
<vlad_starkov>
hoelzro: BINGO! =)
<vlad_starkov>
Thank you guys! You helped me so much :-)
juancabrito has joined #ruby
qwerxy has quit [Quit: offski]
<Mon_Ouie>
I benched it once, set-intersection turned out to be slightly faster IIRC
chendo_ has quit [Ping timeout: 252 seconds]
darkfox83 has joined #ruby
nanderoo has joined #ruby
JonnieCache has joined #ruby
ringotwo has joined #ruby
BiHi has joined #ruby
<shevy>
the eternal battle
<shevy>
.any? vs .all?
justinlilly has joined #ruby
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
<Xeago>
shevy, different uses
Virunga has joined #ruby
<Xeago>
anyone good in english can tell me if the use of 'As to' is approriate in the following sentence? "As to not forget about security bla herp and derp"
<Hanmac>
shevy dont forget one? and none?
<shevy>
hmm
<shevy>
these exist?
<Hanmac>
yeah :P
mneorr_ has quit [Remote host closed the connection]
Virunga has quit [Client Quit]
Virunga_ has joined #ruby
<shevy>
I hate herp and derp
<deryl>
Xeago: So as to
Virunga_ has quit [Client Quit]
Virunga has joined #ruby
<Hanmac>
>> [1,1].one? {|i| i == 1}
<al2o3cr>
(FalseClass) false
<deryl>
Xeago: that 'sounds' a bit off to the ear, but its proper with the So
mneorr has joined #ruby
<JonnieCache>
"so as to" yes
Virunga is now known as LennyLinux
<JonnieCache>
but you generally wouldnt start a sentance like that
<deryl>
right
<JonnieCache>
it would normally come after a comma
<JonnieCache>
i would do xyz, so as to ensure abc
<deryl>
unless you did something like So as to remember things, don't forget to make a list.
<JonnieCache>
that kinda sounds backwards to me
<deryl>
or what JonnieCache said
<deryl>
JonnieCache: yeah tahts what i meant about sounding off to the ear
<deryl>
err thats
<deryl>
but its proper english syntax (if you include the comma portion)
ping-pong has joined #ruby
<Xeago>
full stuff:
<Xeago>
I will design and deploy a distributed architecture for future extensibility and scalability. As to not forget about security and search scraping, the search index will not be open to the public.
t96942 has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
t52109 has joined #ruby
<Xeago>
I don't think "so" is warrented there as it is not as a direct followup, it's more like besides it
<deryl>
yeah there you want So. not normal to start witht he So but you *can*. *I* would reverse the parts separated by the comma personally
<deryl>
basically flipflop them
<deryl>
would 'read' and sound better as well
<Xeago>
I will design and deploy a distributed architecture for future extensibility and scalability. The search index will not be open to the public as to not forget about security and search scraping
<deryl>
no you need the so still
<deryl>
but that would be right once you re-add it
geekbri has joined #ruby
<Xeago>
regardless, the emphasis looks wrong if I flip it ove rlike this
<Xeago>
as security/scraping is more important then what I do to yield it
<deryl>
well, the human mind tends to remember the 2nd half as the stressor
<JonnieCache>
if its a pitch then you should be clear and simple and avoid fancy phrasings
<deryl>
so putting the important part second like that would stick it in the mind
<deryl>
yeah even better approach
<Xeago>
JonnieCache: as a pitch, what does that mean?
und3f1 has joined #ruby
<deryl>
meaning you're 'pitching' yourself or some skill for say a job
<Xeago>
nah, it's my internship assignment to be read by a committee
<JonnieCache>
oh right
<Xeago>
of old lazy duff people who will get it read out and fall asleep during
<deryl>
a 'pitch' is slang for selling an idea or yourself to someone
<JonnieCache>
whats the proper word i want in this scenario, not pitch, its when your company is applying for a contract in competition with other firms
<JonnieCache>
like "tendering" but not that
<juancabrito>
can anyone help me installing rails with rvm on ubuntu?
<heftig>
bidding?
<heftig>
solicitation?
<deryl>
can't think of a better one. tendering a bid
<deryl>
yeah there you go. solicitation
luist has joined #ruby
<JonnieCache>
those are all good answers but its not the one im thinking of
und3f has quit [Ping timeout: 252 seconds]
<JonnieCache>
how annoying. i imagine it will come to me later
<deryl>
hehe my mind does the same thing. be doing something totally different later and suddenly it pops into the head :)
<deryl>
I do a lot of proofing for people, and that happens all the time :)
robotmay has quit [Remote host closed the connection]
ringotwo has quit [Remote host closed the connection]
<Xeago>
The current search system is not satiable, does not find items reliable and is as hard to extend as it is slow. I will develop and implement search in a distributed manner. I will design and deploy a distributed architecture for future extensibility and scalability. The search index will not be open to the public so as to not forget about security and search scraping. Accessing the index will happen through the internal API
<Xeago>
that would be proper english, right?
<deryl>
reliably
Affix has joined #ruby
saispo has joined #ruby
Affix has quit [Max SendQ exceeded]
<JonnieCache>
it could do with a comma after "public"
<juancabrito>
my rails installation doesn't work, help please
<deryl>
i *think* 'and implement' should have commas around it. you're embedding a 2nd idea in with the first
<deryl>
and you're referring to a generic item (search vs. a search)
luist has quit [Client Quit]
Affix has joined #ruby
v0n has joined #ruby
juancabrito has quit [Quit: Leaving]
<Xeago>
yes, search not a search
<deryl>
hrmm that satiable seems off. you're trying to say that its to veracious? (eg eats too much memory etc)
<deryl>
err s/its to/its too/
mneorr has quit [Remote host closed the connection]
<Xeago>
crap, my uiserveragent crashed
<Xeago>
can't launch new applications
<deryl>
The current search system is extremely resource intensive
<Xeago>
:\
mneorr has joined #ruby
elux has joined #ruby
mark_locklear has joined #ruby
aristidesfl has joined #ruby
<deryl>
and don't forget to change 'reliable' to 'reliably'
<Xeago>
deryl: it doesn't fullfill our and our users' desires
<Xeago>
remind me to never login as root again
<Xeago>
and use sudo again please
<deryl>
The current search system does not meet established requirements, (that better?)
<Xeago>
then I'd have to define requirements
<Xeago>
:\
iamjarvo has joined #ruby
<deryl>
no not really. saying 'established requirements' informs implicitly that the requirements _are_ documented somewhere
<deryl>
there you would usually add a footnote
<deryl>
whats it called? a bibilography? no thats wrong. references?
<Xeago>
I am not in a stage where I can have established requirements yet
<Xeago>
only what it should not be
<Xeago>
which is the current implementation
<deryl>
ah
<deryl>
The current search system is inadequate, in that it...
<deryl>
or, insofar as it..
awarner has joined #ruby
<Xeago>
then a reasoning has to follow, I don't feel that satiable has such needs to explain itself
<Xeago>
as it's more from a common perspective
chussenot has joined #ruby
chussenot has quit [Client Quit]
<deryl>
i understand. its just the word is one where someone has to try to apply multiple contexts rapidly in order to understand what you're trying to say before continuing on witht he rest of of the sentence. It makes it a 'stopper' item.
<deryl>
messes with the flow
<deryl>
only reason i said something
vectorshelve has quit [Quit: Page closed]
<Xeago>
hmm, I guess it does
mxweas has quit [Quit: Leaving...]
<Xeago>
but is it needed to continue the flow as we're listing out shortcomings?
<deryl>
i'm taking it that the readers will be people wanting to understand the nuances of what you're trying to say. Slowing them down like that throws the canter off
<deryl>
hmm, good question
chussenot has joined #ruby
<deryl>
i'm seriously thinking "The current search system is inadequate as it.." would be a better choice of wording.
<Xeago>
as it is not satiable and d e amnd f?
<deryl>
explicitly states the issue and leads right into the listing
<Xeago>
ah so you meant not to replace it, but add to it
josh^ has quit [Remote host closed the connection]
<deryl>
no no. sec. let me build the replacement
<Xeago>
During my internship at VideofyMe I shall fulfill a request by the users: search. The current search system is inadequate as it is not satiable, does not find items reliably and is as hard to extend as it is slow.
<Xeago>
crap, now I gave away my company, what the hell
<Xeago>
it's just irc
<Xeago>
;D
<deryl>
The current search system is inadequate as it does not find items reliably, and is as hard to extend as it is slow.
<deryl>
hehehe
<deryl>
IRC == I Raid Companies!
<deryl>
muahaha
<Xeago>
The current search system is inadequate because: it is not satiable, does not find items reliably and is as hard to extend as it is slow.
<Xeago>
how about that/
<deryl>
ahh yeah that would definitely work too
<Xeago>
because hten we list the reasoning for inadequate
<deryl>
now, what do you mean by satiable there?
<deryl>
see the word doesn't lend itself to quick analysis of what you actually mean
lkba has joined #ruby
<Xeago>
I actually said it when I looked it up again
<Xeago>
lemme scroll
wo66le has joined #ruby
<deryl>
satiable - definition of satiable by the Free Online Dictionary ...
t52109 has quit [Remote host closed the connection]
<deryl>
damn it
t55789 has joined #ruby
<Xeago>
yea, basically
<deryl>
yeah see resource intensive would be much more realistic there than satiable
sailias has joined #ruby
<Xeago>
the resource insensitivity comes later in the list
<Xeago>
well not explicitly
bwwrd has joined #ruby
<deryl>
that is what comes to mind but only after rereading that part a couple times and trying to mentally apply contextual possibilities
<Xeago>
well
<Xeago>
I've been rereading it for like 2 days now ;O
<deryl>
hehe
v0n has quit [Ping timeout: 246 seconds]
<deryl>
yeah. You the writer know what you mean. Plus, you have been rereading it so you have the context firmly implanted. Others won't.
<deryl>
Especially a first time reader
<Xeago>
which is my problem
<deryl>
right.
<deryl>
Thats the reason behind me harping on that one little bit.
freeayu has quit [Quit: 离开]
<JonnieCache>
satiable specifically refers to food, or sex. if you want to use it in a metaphorical sense you'll have to be very clear, or people will get confused
<deryl>
its a small word but big enough conceptually to halt the overall flow enough to make the canter of the message be off
<Xeago>
the current system does not fullfill our/users desires
<deryl>
choose one and go with that
<Xeago>
but how about the question I asked about flow, it's in a list so it doesn't flow?
<deryl>
I would say user desires
und3f1 has quit [Read error: Connection reset by peer]
arkiver has quit [Ping timeout: 248 seconds]
<deryl>
no the rest of the paragraph flows fine now. its that one section that causes a choking point
<Xeago>
the satiable still right?
arkiver has joined #ruby
<deryl>
right
<Xeago>
but that's int he list
QKO has joined #ruby
und3f has joined #ruby
<Xeago>
I killed something in my mac
<Xeago>
random applications start failing
<deryl>
right but you're trying to put a mental construct of the issue(s) into the reader's mind.
<Xeago>
been removing stuff from /private/..
<deryl>
a single choke point like that throws the listing off. It makes them mentally segment that out of the list
<JonnieCache>
whats even in there?
<Xeago>
/private/var/db/mds/system/
<Xeago>
iirc it's where memory flushing happens aswell
tommyvyo has joined #ruby
QKO_ has quit [Ping timeout: 245 seconds]
johnjohnson has joined #ruby
<JonnieCache>
oh yeah i use the symlinks for those dirs
<JonnieCache>
theres still /etc and /var theyre just symlinks to dirs in /private
awarner has quit [Remote host closed the connection]
<Xeago>
The current search system is inadequate as it does not fullfill the users' desire, does not find items reliably and is as hard to extend as it is slow.
<Xeago>
been opensnoop'ing a trial application
<Xeago>
to get rid of the file htat detects if it has been started before
<Xeago>
so it doesn't prompt buy now bla
<Xeago>
got it working 14 days ago ;p
<deryl>
you don't have quotas turned on do you? Are you hitting root reserved space, or actually low on, or completely filled, disk space?
<Xeago>
no
<deryl>
yeah, now *that* sentence flows right
<deryl>
ok
<Xeago>
flushes is just one of the things that get stored, and that I know
<Xeago>
ty deryl
<deryl>
and change desire to desires since you are using a pluralized user
<deryl>
no problem :)
<Xeago>
JonnieCache: got any comments on it aswell?
justinlilly has quit [Quit: justinlilly]
<deryl>
and iirc it needs a comma after reliably. (I always have to review the comma rules even when I proof others hehe)
<Xeago>
I opted to leave the comma out because I finish the listing directly after
<Xeago>
1, 2 and 3
<deryl>
ok
<JonnieCache>
seems good
<deryl>
yeah. can you repost the updated paragraph?
<deryl>
so i can read it in full flight
<Xeago>
During my internship at VideofyMe I shall fulfill a request by the users: search. The current search system is inadequate as it does not fullfill the users' desires, does not find items reliably and is as hard to extend as it is slow. I will develop, and implement, search in a distributed manner. I will design and deploy a distributed architecture for future extensibility and scalability. The search index will not be open to the public, so as t
<Xeago>
o not forget about security and search scraping. Accessing the index will happen through the internal API of VideofyMe.
<shevy>
wat
freeayu has joined #ruby
<juha_>
nice to know
<Xeago>
what was the wat about :O?
<deryl>
yeah now that rolls just fine
<deryl>
good job
<Xeago>
btw, blog.xeago.nl critics on the dynamic styling/scaling
Hanmac has quit [Read error: Connection reset by peer]
jrajav has joined #ruby
wo66le has quit [Quit: Computer has gone to sleep.]
<matti>
;]
<deryl>
cool!
<Xeago>
took me almost 2 years to style that blog
<Xeago>
2 html/css complete rewrites
<Xeago>
:\
<deryl>
I'll read it when I get back from taking the 2 boys to the doctors. craploads of bug bites on them. gotta find out whats up.
<deryl>
but its in my browser. will read through when i'm back
<Xeago>
try window sizing/viewing on iphone
<Xeago>
or similar handheld
Hanmac has joined #ruby
<deryl>
I only have an Android tablet. (ASUS 32GB Transformer HD Tablet running Chrome Beta)
<deryl>
well, other than this MBP :)
LennyLinux has quit [Quit: Sto andando via]
t55789 has quit [Remote host closed the connection]
<Xeago>
well that'll do
t1048 has joined #ruby
<Xeago>
<480 <720 <960 and 960+ have different layouts
noyb has joined #ruby
_bart has joined #ruby
<deryl>
ok will do when I get back. Gotta rocket off at the moment and get these kids over to the doctor's. Later &
bigkm has quit [Quit: Computer has gone to sleep.]
darkfox83 has quit [Quit: Ex-Chat]
thaz has joined #ruby
CarlB_the_great has joined #ruby
olrrai has joined #ruby
manizzle has quit [Ping timeout: 240 seconds]
lolmaus has quit []
manizzle has joined #ruby
olrrai has quit [Client Quit]
robustus has quit [Read error: Connection reset by peer]
robustus has joined #ruby
davidpk has quit [Quit: Asleep at the keyboard.]
tk__ has joined #ruby
BrokenCog has quit [Quit: leaving]
ly_gs has joined #ruby
cakehero has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
hipertracker has quit [Quit: hipertracker]
statix_ is now known as stat1x
fantazo has joined #ruby
nacengineer has quit [Quit: Leaving.]
CarlB_the_great has quit [Ping timeout: 240 seconds]
Agis__ has joined #ruby
hipertracker has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
BrokenCog has quit [Client Quit]
ly_gs has quit [Remote host closed the connection]
bigkm has joined #ruby
manizzle has quit [Ping timeout: 244 seconds]
specialGuest has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
kiyoura has joined #ruby
BrokenCog has quit [Client Quit]
BrokenCog has joined #ruby
luist has joined #ruby
tommyvyo has joined #ruby
BrokenCog has quit [Client Quit]
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
mercwithamouth has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Client Quit]
`brendan has joined #ruby
seanyo has joined #ruby
becom33 has quit [Read error: Connection reset by peer]
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
becom33 has joined #ruby
miho has joined #ruby
linoj has joined #ruby
t1048 has quit [Remote host closed the connection]
t34536 has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
miho has quit [Client Quit]
uris has joined #ruby
juancabrito has joined #ruby
jrist-afk is now known as jrist
jonathanwallace has quit [Ping timeout: 276 seconds]
juancabrito has quit [Quit: Leaving]
GoGoGarrett has joined #ruby
griffindy has joined #ruby
qwerxy has joined #ruby
juancabrito has joined #ruby
ciopte7 has joined #ruby
ciopte7 has quit [Client Quit]
nwest has joined #ruby
peregrine81 has joined #ruby
maesbn has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
Progster has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
<juancabrito>
can give me a hand installing rails with rvm? I'm having problems
ctevie has joined #ruby
ctevie has quit [Changing host]
ctevie has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
<Hanmac>
juancabrito: #rvm #rubyonrails
<juancabrito>
I'm on those too
__main__ has quit [Ping timeout: 248 seconds]
dev_ryan70 has joined #ruby
chussenot has quit [Read error: Connection reset by peer]
chussenot_ has joined #ruby
* lupine_85
is using minitest in 1.8.7 and is having a weird issue where I have an assert condition, msg line, and upon hitting that line, the process goes absolutely bananas and starts outputting the message constantly
<lupine_85>
anyone come across this before ?
<hoelzro>
fg
<hoelzro>
oops
<lupine_85>
-bash: fg: current: no such job
binaryplease has quit [Ping timeout: 276 seconds]
Agis__ has quit [Quit: Agis__]
workmad3 has joined #ruby
binaryplease has joined #ruby
banisterfiend has joined #ruby
nateberkopec has joined #ruby
LBRapid has joined #ruby
Danielpk has joined #ruby
yonggu has joined #ruby
johnlcox has joined #ruby
specialGuest has quit [Quit: WeeChat 0.3.8]
ranjan has joined #ruby
berkes has joined #ruby
Virunga has joined #ruby
kvirani has quit [Remote host closed the connection]
<shevy>
juancabrito down with rvm, compile ruby from source ;)
<shevy>
hmm got a shell question
<shevy>
./configure && make && make install
<shevy>
vs
<shevy>
./configure; make; make install
<shevy>
the first version only continues if no error is found right?
<shevy>
my question is... what is the error determined there? a return value of non-0 ?
stopbit has joined #ruby
<shevy>
reason I am asking is, I want to clone the behaviour of bash in my ruby shell
David_Miller has joined #ruby
<Muz>
14:47 < shevy> the first version only continues if no error is found right? # Yes.
<shevy>
hmm ok
<Muz>
"a return value of non-0 ?" # Yes.
<David_Miller>
Is there a nice way to develop gems in subversion and have them automagically published to my in-house gem server?
<Muz>
David_Miller: We use Hudson/Jenkins for that.
<Muz>
Develop code, commit and push, Jenkins or Hudson polls the repo, automatically runs the tests. If the tests succeed, builds the gem, copies it to the correct folder and does a gem server reindex.
<JonnieCache>
and plays the sound of a round of applause
<JonnieCache>
thats the real reason to have a CI server: playing sound effects in the office when builds pass
<David_Miller>
heh
<shevy>
appleause?
<David_Miller>
interesting, I will look at hudson, Is there a more bare-bones way to do it? hudson looks big
topo has joined #ruby
<Muz>
You could probably cron a bash script. But that gets a bit unwieldy with multiple users, and many projects.
v0n has joined #ruby
<JonnieCache>
when you look at a big system and think "i could do that with a bash script" then that bash script inevitably ends up turning into a really shit version of that big system
asobrasil has joined #ruby
<JonnieCache>
and eventually you have to waste a week transferring over to that big system anyway, and you feel a fool
adeponte has joined #ruby
<Muz>
Or you just do a runner and leave the company.
<JonnieCache>
lol yeah why not :)
ttilley has quit [Quit: ttilley]
<JonnieCache>
but i think its probably better to just do things properly
ttilley has joined #ruby
iamjarvo has joined #ruby
thaz has quit [Quit: thaz]
<shevy>
RUN
invisime has joined #ruby
<JonnieCache>
the real question is why do you have an in house gem server, yet are still using svn?
<Muz>
Is it?
<kiyoura>
gem server?
sailias has joined #ruby
<invisime>
svn? that's like, sooo 1.8.6. >_>
lusory has joined #ruby
<JonnieCache>
you would have thought if one was cutting edge enough to be running ones own gem server then one would have made the move to git
<invisime>
^
<Muz>
Running an apache instance is cutting edge? ;)
<JonnieCache>
you know what i mean
<Muz>
No, I honestly don't.
<Muz>
Corporate environments suck, and often force asinine restrictions on employees.
t34536 has quit [Remote host closed the connection]
t8006 has joined #ruby
<JonnieCache>
it was just a throwaway comment
awarner has joined #ruby
<JonnieCache>
your right if anything they go hand in hand
quest88 has joined #ruby
<shevy>
notice
<shevy>
Muz uses a '.' whereas JonnieCache does not :)
<JonnieCache>
and i got the wrong you're
<JonnieCache>
what a bastard
frogstarr78 has quit [Remote host closed the connection]
jmorton_ has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
<shevy>
perfection starts with little things!
<shevy>
also I think when one is naturally lazy, perfection is hard to achieve
jorge__ has joined #ruby
<shevy>
but I still have hope
<shevy>
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man."
<shevy>
see! progress depends on the LAZY MAN
<invisime>
perfection is the enemy of done.
<shevy>
laziness is the new jersey approach
<shevy>
yeah invisime
BrokenCog has quit [Quit: leaving]
<JonnieCache>
i pride myself on being a lazy person. it takes a great deal of time and effort.
ananthakumaran has quit [Quit: Leaving.]
<invisime>
if necessity is the mother of invention, laziness is the deadbeat dad.
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
<koshii>
Hey guys from the Ruby Koans, I don't think I understand this "THINK ABOUT IT" part: Why do we convert the list of symbols to strings and then compare against the string value rather than against symbols? It relates to this: def test_method_names_become_symbols ; symbols_as_strings = Symbol.all_symbols.map { |x| x.to_s }; assert_equal true, symbols_as_strings.include?("test_method_names_become_symbols"); end ...Can anyone explain?
freeayu has quit [Ping timeout: 244 seconds]
Virunga has quit [Remote host closed the connection]
<shevy>
I dont know
<shevy>
symbols go on my nerve
<koshii>
:-)
<shevy>
strings I like
<invisime>
<3 symbols.
Takehiro has quit [Remote host closed the connection]
freeayu has joined #ruby
<invisime>
koshii: they're probably trying to highlight some difference in equality operators.
<invisime>
which are being called via the include? method.
wobr1 has joined #ruby
<koshii>
invisime: But it is unclear to you too, what exactly they're highlighting?
<koshii>
I'm increasingly puzzled by this.
johnjohnson has quit [Ping timeout: 240 seconds]
kvirani has joined #ruby
<invisime>
koshii: can you link to the page you found it on?
asteve has joined #ruby
paolooo has joined #ruby
wobr has quit [Ping timeout: 244 seconds]
<Hanmac>
hihi i knew why :P
johnjohnson has joined #ruby
<David_Miller>
JonnieCache: we use svn because thats what we've always used :)
<David_Miller>
Muz: I think I will end up with a bash script, unless I can find it already implemented somehwere
<Hanmac>
"we use Stick & Stones because that what we've aways used"
<koshii>
I finally watched that Linus video about the reasons for git... He's so funny.
<Muz>
David_Miller: you're digging your own hole. :)
<koshii>
The Google talk from 2007. Anyway he convinced me.
adeponte has quit [Remote host closed the connection]
<David_Miller>
We do just a tiny bit of gem development, so hudson seems overkill
<David_Miller>
sticks and stones are usefull too
<Muz>
Hudson is useful for other things too.
<invisime>
David_Miller: what are you actually trying to accomplish with this bash script?
joshman_ has joined #ruby
<invisime>
(I came in late.)
jjbohn has joined #ruby
<Hanmac>
koshii in this test case it tests if an symbol with a given name exist ... you cant do it the other direction without creating the symbol you want to test
<David_Miller>
We have a gem in subversion, I am just looking for a nice way to publish it to my gem server automatically
<David_Miller>
hudson seems perfect but bigger than I want
digitalcakestudi has joined #ruby
Takehiro has joined #ruby
answer_42 has joined #ruby
<becom33>
i have text file the content line are catogorised . example http://pastebin.com/1kkSvTkX. I wanna read those lines by the catagories . is there any lib for this
cakehero has quit [Quit: Computer has gone to sleep.]
<koshii>
Hanmac: I guess I don't understand the point of a test/koan like that. It's obvious right?
deryl has quit [Quit: deryl]
<koshii>
Hanmac: Which is why I keep feeling like I'm missing something...
<invisime>
David_Miller: you're correct in that a bash script is probably the best way to do that. unless you really want to write it in ruby using some kind of svn gem.
<invisime>
becom33: tools are tools. you can use yaml for other stuff besides just configs. it really depends on the size of the problem. if you're solving something small-ish (like is this string an email or is this line of a logfile an error), then you want to use a regex. if it's a bigger problem, something like yaml might be better. if it's bigger still, you probably need a database.
eighty4 has joined #ruby
<becom33>
its not big . its much of a text file . need to read line by line thats all
ph^ has quit [Remote host closed the connection]
<shevy>
becom33 why dont you use yaml
_bart has quit [Quit: _bart]
pskosinski has joined #ruby
rakuN has joined #ruby
freeayu has joined #ruby
Virunga has quit [Remote host closed the connection]
tdelam has joined #ruby
nari_ has joined #ruby
fayimora has joined #ruby
yonggu has quit [Quit: yonggu]
nacengineer has joined #ruby
Virunga has joined #ruby
juancabrito has left #ruby [#ruby]
m_3 has joined #ruby
tagrudev has quit [Remote host closed the connection]
arkiver has quit [Ping timeout: 244 seconds]
freeayu has quit [Quit: 离开]
_bart has joined #ruby
_bart has quit [Client Quit]
himsin has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 246 seconds]
cakehero has joined #ruby
<iamjarvo>
does anyone know of a programming dictioanry. i basiacally want to get the definition of a word in a programming context
<David_Miller>
Muz: can you explain a little more about how you use jenkins to build gems, what plugins do you use
<workmad3>
iamjarvo: c2.com/wiki
<workmad3>
iamjarvo: closest I've ever come to a programming jargon dictionary
rins has joined #ruby
griffindy has quit [Read error: Connection reset by peer]
<quazimodo>
can I 1.upto(100) do stuff; other stuff; end until my_condition
<quazimodo>
?
griffind_ has joined #ruby
<invisime>
iamjarvo: also, if you just want one word, you could just ask us. some of us know programming. ;-)
<shevy>
quazimodo yeah
Takehiro has quit [Remote host closed the connection]
<iamjarvo>
workmad3: thanks
<shevy>
invisime what if the word he is seeking is "programming while having sex"
<quazimodo>
shevy: and when I break out of that loop how do I do a conditional, if until t==true; if t==true then do stuff
<invisime>
>> 1.upto(10) do puts 'stuff'; puts 'other stuff' end
<al2o3cr>
(Fixnum) 1, Console: stuff, other stuff, stuff, other stuff, stuff, other stuff, stuff, other stuff, stuff, other stuff, stuff, other stuff, stuff, other stuff, stuff, other stuff, stuff, other stuff, stuff, other stuff
<quazimodo>
sorry i mean
<shevy>
quazimodo, I dont like until and while loops
<shevy>
but say you have a method like foo
<workmad3>
invisime: really? people in here know programming? :P
<iamjarvo>
invisime: thanks, but i tend to have them all the time
<shevy>
loop { foo } unless @game_over
<shevy>
and @game_over could be set/handled inside foo() method
<quazimodo>
shevy: loop { foo } unless @game_over; if @game_over stuff end ?
<quazimodo>
nicer way?
<invisime>
shevy: they're occasionally necessary/useful for things like IO.
centipedefarmer has joined #ruby
<shevy>
quazimodo you usually dont use if until
<quazimodo>
?
<shevy>
you wrote: if until t==true
<shevy>
that strikes me as incorrect ruby code, without having tested it
Takehiro has joined #ruby
<shevy>
if until unless while x > y
<quazimodo>
i want to loop from 1 to 100, if if @game_over before 100, do something else
<quazimodo>
ill just use an if ffs
<shevy>
if if?
<shevy>
hehe
<shevy>
1.upto(100).each {|number| puts number }
bwlang has joined #ruby
[Neurotic] has quit [Remote host closed the connection]
jorge__ has quit [Remote host closed the connection]
kuzushi has joined #ruby
und3f has quit [Ping timeout: 276 seconds]
_mak has joined #ruby
<_mak>
Hi there!
<_mak>
There is any tool (or method) to integrate visually the logic workflow with the source code? I mean, in the workflow I have a process 'Verify user credentials', there is a tool that links me this process to the source code that execute it?
null- has left #ruby [#ruby]
Nanuq has quit [Ping timeout: 245 seconds]
elux has quit [Quit: Bye!]
elux has joined #ruby
CarlB_the_great has joined #ruby
CarlB_th_ has joined #ruby
noyb has quit [Ping timeout: 246 seconds]
jorge_ has joined #ruby
binaryplease has quit [Quit: WeeChat 0.3.8]
aganov has quit [Remote host closed the connection]
CarlB_the_great has quit [Ping timeout: 268 seconds]
noyb has joined #ruby
davidcelis has quit [Quit: K-Lined.]
wedgeV_ has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
<quazimodo>
HRM
<quazimodo>
so
und3f has joined #ruby
<quazimodo>
im getting the feeling that, in general, one has to be careful with too much of foo.bar.zed.etc.bla
<quazimodo>
im going to go over my code and encapsulate it to get foo.bar's mostly
berkes has quit [Quit: Ex-Chat]
wedgeV_ has quit [Client Quit]
m1d0 has joined #ruby
<m1d0>
whyy doesnt my rails app want to work on heroku.. i'm a ruby newbie, but this is a really simple app. it's just a static page. the heroku logs don't really tell me much: http://173.255.214.135/dump/grab/12-8-31-heroku-logs.png
Agis__ has joined #ruby
t91969 has quit [Remote host closed the connection]
<m1d0>
is there another log or anything i can check to find out what's wrong?
t4202 has joined #ruby
<JonnieCache>
that error is telling you the problem: some of your assets arent precompiled
<JonnieCache>
but you should probably ask in #rubyonrails
<jsmonkey>
matti: thanks. I have done it with Growl a while back but want it to work with the new os
<jsmonkey>
thanks for the url
<jsmonkey>
will check it out
<jsmonkey>
gonna update our deploy scripts :)
wangr has quit [Read error: Connection reset by peer]
t0rc has joined #ruby
mucker has joined #ruby
pu22l3r has quit [Remote host closed the connection]
davidcelis has joined #ruby
wangr has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
<t0rc>
I am trying to check if a command exists on the system. If it doesn't, I want to leave my program as it depends on this command. I can check if the command exists but I am having difficulty writing a test for TDD that simulates the command missing on the system. How can I write a test that simulates the lack of this commands presence?
ken_barber has joined #ruby
jasonkuhrt has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
johnjohnson has joined #ruby
timonv has quit [Remote host closed the connection]
eldariof has quit [Ping timeout: 260 seconds]
adamkittelson has joined #ruby
Agis__ has joined #ruby
<_br_>
t0rc: You could play with the ENV variable before executing your program, eliminating the paths where the program can be found ?
poppiez has joined #ruby
<matti>
t0rc: Save PATH, then clear it, then call binary, then restore PATH.
Vert has quit [Remote host closed the connection]
GoGoGarrett has quit [Remote host closed the connection]
savage- has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
paulovittor23 has joined #ruby
<t0rc>
matti, _br_ : that was my first though too but there is no contract with the user to say where the binary could be so I cannot eliminate things from the path, I have to clear the whole thing. However, when I clear the whole PATH, I end up with errors as minitest feels env and ruby are no longer valid commands since they cannot be found when needed to execute the binary.
cdepue has quit [Remote host closed the connection]
<matti>
t0rc: Save and restore.
noyb has joined #ruby
<matti>
t0rc: Every child by default inherits its parent environment.
<matti>
>> p 'test'
<al2o3cr>
(String) "test", Console: "test"
<matti>
>> p = ENV['PATH'] ; %x{ date } ; ENV['PATH'] = p ; %x{ date }
<al2o3cr>
-e:1:in `eval': No such file or directory - date (Errno::ENOENT), from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<matti>
Oh, dear.
<matti>
;]
<koshii>
:=)
<matti>
It terminates on first error, bah.
<matti>
You get the idea
<matti>
Hi koshii
<koshii>
Hi matti :-)
twinturbo has quit [Quit: twinturbo]
jsmonkey has quit [Quit: Lost terminal]
<t0rc>
matti: right so I save the path, clear it, run the binary, restore the path in my spec. When I run the binary, the path would be cleared, thus it would not know where to find ruby at to run the binary. Right? or am I missing something you're saying?
<t0rc>
matti: oh I already wrote a test that matches the description I gave you and it fails miserably. Write one simulating what you gave me? alright.
jrajav has quit []
mohits has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
<t0rc>
matti: using what you gave, the command is located both times.
<matti>
Hm.
shevy has quit [Ping timeout: 252 seconds]
nwest has joined #ruby
artOfWar has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<matti>
t0rc: I am not sure how do you call it :/
dhruvasagar has quit [Ping timeout: 272 seconds]
<matti>
t0rc: Said that, Ruby seems to abort then a command is not found. Hm.
<matti>
At least %x{ } does.
punkrawkR has joined #ruby
cfs has left #ruby [#ruby]
mucker has quit [Quit: leaving]
<t0rc>
matti: I am using Open3.popen3 to call it but I just tried with %x{date} in irb and it gave me the date just fine after clearing ENV['path']
<matti>
Eh.
<matti>
path != PATH
<matti>
t0rc: This is like Linux/Unix 101
<matti>
:)
<matti>
Plus, this magic popen3 might be setting PATH or whatnot, make sure it does not.
mucker has joined #ruby
mucker has quit [Client Quit]
jgrevich has joined #ruby
dhruvasagar has joined #ruby
BiHi has quit [Quit: bye]
jmorton_ has quit [Quit: jmorton_]
<t0rc>
matti: wow; interestin that I got any of these results then using it. Indeed, the difference is known. hmm.
replore has quit [Remote host closed the connection]
<Hanmac>
"Question:e" is the problem what should that do?
johnlcox has joined #ruby
<Hanmac>
this is valid as sample: ( questions.each {|r|a.create(:inquiry=>r)} )
<AlRazi>
it's not my code, so i'm trying to figure it out, it's the only appearance of ( Question ) in the rb file
<AlRazi>
what do the colon stand for ?
<AlRazi>
x:y
<Hanmac>
x:y is a new hash syntax
<Hanmac>
but in your case its used totaly wrong
<AlRazi>
new hash, as in ( x: :item ) ?
havenn has joined #ruby
<AlRazi>
or ( :x => :item ) ?
<fowl>
ol
mohits has quit [Ping timeout: 246 seconds]
k0m has quit [Quit: Computer has gone to sleep.]
bapa has quit [Remote host closed the connection]
<Hanmac>
AlRazy yeah but it only works on a method call
<Hanmac>
in your case: there is NO method
recycle has joined #ruby
Takehiro has quit [Remote host closed the connection]
awarner has quit [Remote host closed the connection]
<shevy>
AlRazi Question::e
<shevy>
AlRazi, if you took code like that, which sucks, from someone else, you should assume that it never ever worked and simply discard it
internet_user has joined #ruby
BrokenCog has quit [Quit: leaving]
<shevy>
e() is most likely a method
Zolrath has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
havenn has quit [Remote host closed the connection]
specialGuest has joined #ruby
<the_jeebster>
any discount codes floating around for rubyconf tix?!
shadoi has joined #ruby
vjt has quit [Quit: gazzurbo]
seanyo_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<fowl>
discount codes :)
<Hanmac>
shevy lets hope he did not pay for that shit :P
vjt has joined #ruby
saltnvinegar has left #ruby [#ruby]
seanyo__ has joined #ruby
Foxandxss has joined #ruby
seanyo has quit [Ping timeout: 246 seconds]
itnomad has joined #ruby
<the_jeebster>
who, me?
jgrevich has quit [Ping timeout: 264 seconds]
<the_jeebster>
I'm hoping my company will subsidize the cost but I want to buy upfront so I don't miss out :)
<shevy>
the_jeebster, no he mant AlRazi
<shevy>
*meant
mattonrails has joined #ruby
<shevy>
because AlRazi tries to fix non-working, awful code written by someone else
allan_hills_ has joined #ruby
<the_jeebster>
that sounds like a torrid developer existence
bapa has joined #ruby
seanyo_ has quit [Ping timeout: 246 seconds]
zigomir has quit [Ping timeout: 268 seconds]
<allan_hills_>
i'm backticking a process that shows some dynamic console output (realtime file upload status display) - can I somehow tell Ruby not to capture STDOUT, but instead just let the subprocess output to it as normal?
juarlex_ has quit [Remote host closed the connection]
recycle has quit [Remote host closed the connection]
<fowl>
allan_hills_: use system()
<allan_hills_>
awesome ty fowl
juarlex has joined #ruby
t29174 has quit [Remote host closed the connection]
t22145 has joined #ruby
imami|afk is now known as banseljaj
DarkFoxDK has quit [Write error: Broken pipe]
UdontKnow has quit [Write error: Broken pipe]
velikasha has joined #ruby
Pip has joined #ruby
johnjohnson has joined #ruby
yosafbridge has quit [Ping timeout: 244 seconds]
<shevy>
so quiet today
<Pip>
Really?
<libryder>
it's friday
<the_jeebster>
Friday funday
<the_jeebster>
not sunday funday
vjt has quit [Quit: brb]
<the_jeebster>
I'm in iOS land :O
no_i_wont has quit [Ping timeout: 246 seconds]
ohdae_ has quit [Ping timeout: 240 seconds]
<libryder>
plus labor day weekend
zigomir has joined #ruby
hoelzro|away has quit [Ping timeout: 272 seconds]
Scub has quit [Ping timeout: 246 seconds]
nuba has quit [Ping timeout: 248 seconds]
cid^ has quit [Ping timeout: 268 seconds]
AnswerGuy has quit [Ping timeout: 260 seconds]
<Pip>
What's fun in it?
pradeepto has quit [Ping timeout: 246 seconds]
SirFunk has quit [Ping timeout: 245 seconds]
wang has quit [Ping timeout: 245 seconds]
mephux has quit [Ping timeout: 272 seconds]
elliottc1ble has quit [Ping timeout: 265 seconds]
oddraisin has quit [Ping timeout: 246 seconds]
AlRazi has quit [Remote host closed the connection]
mlue has quit [Ping timeout: 268 seconds]
<shevy>
oh
<krion>
hi, if there is any french here, we are offering a "stage" offer
<shevy>
le baguette
<reactormonk>
krion: what's a stage offer?
<shevy>
le big mac´e
recycle has joined #ruby
<johnjohnson>
lol
<krion>
shevy: la baguette
<shevy>
:<
<johnjohnson>
Ohhh, told
Zolrath has joined #ruby
bricker88 has joined #ruby
<krion>
reactormonk: hmm, sort of junior job that's not pay much, and short time (like 2 month)
<bricker88>
Is "run" a special instance method for ruby classes?
<johnjohnson>
short-term job that doesn't pay much
<reactormonk>
krion: oh, you're looking for a slave?
<johnjohnson>
sounds intriguing
bluOxigen has quit [Ping timeout: 255 seconds]
<krion>
reactormonk: not really
havenn has joined #ruby
<krion>
it's very usual here
<reactormonk>
krion: slavery was very usual in Roman as well
<reactormonk>
ehh in the Roman Empire
<krion>
i can guarantee that would not be the case
<Hanmac>
bricker88 no, there is no "run" in ruby
<reactormonk>
krion: marginal pay, lot of work is kinda slavery? ;-)
<bricker88>
Hanmac: I do understand. I am trying to turn lines 3-5 into just one line: https://gist.github.com/3558073 this works fine I just want to clean it up a bit
<Hanmac>
t0rc: i dont tell it because "i want you" to use 1.9.3
<havenn>
t0rc: In 1.8 you'll need to 'gem install open4' and 'require "open4"'.
<havenn>
t0rc: Use 2.0, live in the now... man!
<t0rc>
Hanmac: lol I am using 1.9.3 just offereing back support for default installed on OSX.
<t0rc>
havenn: well I did those...and irb still dies a painful death.
<havenn>
t0rc: Then 'sudo gem install open4' =P
<t0rc>
havenn: did that one too
<t0rc>
I've got open4 all over the place hah
<havenn>
t0rc: Just tested on my OS X 1.8 and works fine for me.
<Hanmac>
t0rc ... did you reguire "rubygems" ?
<t0rc>
Hanmac: ah there you go. The rubygems bit worked. Why? I haven't had to do that for any other gem.
recycle has joined #ruby
<Hanmac>
t0rc what do you mean with other gem? open3 as sample is NOT a gem
Takehiro has quit [Ping timeout: 246 seconds]
mattonrails has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
Know1edge has joined #ruby
Know1edge has quit [Changing host]
Know1edge has joined #ruby
<Hanmac>
t0rc in 1.9 or 1.8? in ruby1.8 you need the require "rubygems"
<t0rc>
Hanmac: in 1.8
geekbri has quit [Remote host closed the connection]
<t0rc>
err
<t0rc>
1.9
<t0rc>
ah ok
<t0rc>
so it's automated in 1.9
<bricker88>
Hanmac: I see, I'll try that, thanks!
<Hanmac>
t0rc but this is the last bit ... i dont want to help people with 1.8 anymore
<t0rc>
Hanmac: well that makes two of us
<t0rc>
Hanmac: and I don't want to write code for it.
machty_ has joined #ruby
<t0rc>
Hanmac: but I'm contributing to a project that offers support for 1.8.7 and it would be poor form to submit code that was not adhering to the project standard.
fearoffish has joined #ruby
machty has quit [Ping timeout: 240 seconds]
machty_ is now known as machty
paolooo has quit [Ping timeout: 245 seconds]
recycle has quit [Remote host closed the connection]
Guest5516 has quit [Ping timeout: 246 seconds]
LBRapid has joined #ruby
hashpuppy has joined #ruby
joshman_ has quit [Ping timeout: 240 seconds]
<hashpuppy>
str = "abc:123:foo:bar" what's an easy way to remove everything before the last ":" and get "abc:123:foo"
pricees has joined #ruby
seanyo__ has quit [Ping timeout: 276 seconds]
<cirwin>
hashpuppy: str.split(":").pop.join(":")
vjt has joined #ruby
<hashpuppy>
that works :)
<cirwin>
or str.sub(/([^:]+)$/, "")
becom33 has quit [Ping timeout: 245 seconds]
<hashpuppy>
i prefer the first
<Hanmac>
>> str = "abc:123:foo:bar"[/(.+):/,1]
<al2o3cr>
(String) "abc:123:foo"
w400z has joined #ruby
<hashpuppy>
wait, cirwin, i don't think that works
<hashpuppy>
pop will return the last element
<cirwin>
hashpuppy: good point :)
<hashpuppy>
i'm sure there's something else, though
mephux has joined #ruby
sn0wb1rd_ has quit [Read error: Connection reset by peer]
<cirwin>
I don't think there's a shortcut for "all except last"
<Hanmac>
Phibs why cant you upgrade? because you are to lazy? or is your OS shitty?
<Phibs>
the latter
<Phibs>
Running C6 in production
<hashpuppy>
Hanmac: why must those be mutually exclusive?
<Phibs>
lol
<Phibs>
I'm lazy too, that's why I use puppet :)
lae has quit [Quit: fix'n smth]
<yxhuvud>
phibs: there are fedora packages you might be able to use, theoretically speaking.
lae has joined #ruby
<Phibs>
yxhuvud: haven't tried lately, I had to backport 1.8.7p299 or w/e to CentOS5 heh
<shevy>
ack
<Phibs>
I love RHEL but their release cycle/support sucks
<shevy>
you poor man
cirwin has left #ruby [#ruby]
<Phibs>
software, especially programming languages evolve much faster these days
<shevy>
I always suspected distributions are like StalinOS
<Phibs>
ha
<shevy>
well that's only one side
<shevy>
distributions like debian are so notoriously slow
<shevy>
after 10 years comes a minor version upgrade
ngoldman has quit [Ping timeout: 240 seconds]
* Hanmac
uses the next ubuntu
rcloak has joined #ruby
becom33 has joined #ruby
<koshii>
What does 'word' mean in RegEx terms?
dev_ryan70 has joined #ruby
<koshii>
For example if I have "Name: Gray, James"[/(\w+), (\w+)/] why do $1 and $2 == "Gray" and "James" respectively... Rather than one of them being "Name"?
jasonkuhrt has joined #ruby
mneorr has quit [Remote host closed the connection]
Pip has quit [Read error: Connection reset by peer]
<davidcelis>
letters, numbers, underscores
<Phibs>
Hanmac: I'm not a fan of ubuntu yet in production, but its getting there
<Phibs>
I use it personally on a lot of my VMs
<davidcelis>
whitespace is not a word character, so that first (\w+) only matches "Gray"
Pip has joined #ruby
Pip has quit [Changing host]
Pip has joined #ruby
mercwithamouth has joined #ruby
t78317 has quit [Remote host closed the connection]
t2550 has joined #ruby
<matti>
koshii: It also a best-effort left-most match.
<matti>
koshii: Your ", " is narrowing possible match criterion.
johnjohnson has quit []
Pip_ has joined #ruby
Pip_ has joined #ruby
Pip_ has quit [Changing host]
LouisGB has quit [Ping timeout: 244 seconds]
ngoldman has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
ph^ has joined #ruby
k0m has joined #ruby
jbw has quit [Ping timeout: 248 seconds]
<koshii>
matti: Just because it is actually connected to the word without a space?
Pip has quit [Ping timeout: 264 seconds]
<RubyPanther>
I also never use an ascii space in regex, I always use \s* if I can, or \s if I have to
<koshii>
Oh never mind, I see.
<koshii>
Okay, makes sense. :-)
<koshii>
Thanks guys!
no_i_wont has joined #ruby
Pip has joined #ruby
Pip has quit [Changing host]
Pip has joined #ruby
nanderoo has quit [Quit: Leaving.]
sneakyness_wk has quit [Read error: Connection reset by peer]
<matti>
;]
flip_digits has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
Pip_ has quit [Ping timeout: 240 seconds]
ph^ has quit [Remote host closed the connection]
Rikkit has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
hipertracker has quit [Quit: hipertracker]
fyolnish has joined #ruby
DarkFoxDK has joined #ruby
sirish has joined #ruby
yxhuvud has quit [Ping timeout: 244 seconds]
Pip has quit [Read error: Connection reset by peer]
Pip has joined #ruby
Pip has quit [Changing host]
Pip has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
artOfWar has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
zodiak has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
fyolnish has quit [Ping timeout: 244 seconds]
k0m has quit [Quit: Computer has gone to sleep.]
rob__ has joined #ruby
rob__ is now known as hoelzro
hoelzro is now known as hoelzro|away
jbw has joined #ruby
<shevy>
matti I am bored
w400z has quit []
t0rc has quit [Quit: WeeChat 0.3.8]
artOfWar has joined #ruby
LouisGB has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
nadirvardar has quit [Quit: Computer has gone to sleep.]
cableray has joined #ruby
workmad3 has joined #ruby
johnlcox has joined #ruby
Takehiro has joined #ruby
cbuxton has quit [Quit: Leaving.]
rippa has quit [Ping timeout: 244 seconds]
answer_42 has quit [Remote host closed the connection]
Bosma has quit [Quit: leaving]
juarlex has quit [Remote host closed the connection]
Taichouchou2 has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 246 seconds]
juarlex has joined #ruby
<ElderFain>
write some code for me
<ElderFain>
then =)
artOfWar has quit [Ping timeout: 240 seconds]
headius has quit [Quit: headius]
CarlB_th_ has joined #ruby
<ElderFain>
actually I don't have any particular code problems to solve, i just need time to sit down and write them, they aren't difficult problems. ah well, guess you have to remain bored =)
h4mz1d has quit [Ping timeout: 244 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
recycle has joined #ruby
<shevy>
ElderFain hehe I am trying to write code for me right now...
<shevy>
expand a string from "temp{1,2,3,4}" to an array being ["temp1","temp2","temp3","temp4"]
internet_user has quit [Remote host closed the connection]
artOfWar has joined #ruby
t2550 has quit [Remote host closed the connection]
Erdos1 has quit [Read error: Connection reset by peer]
t50876 has joined #ruby
Erdos1 has joined #ruby
devnull_ has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Computer has gone to sleep.]
CarlB_the_great has joined #ruby
zommi has quit [Quit: Leaving.]
CarlB_th_ has quit [Ping timeout: 244 seconds]
tdelam has quit [Remote host closed the connection]
Ontolog has joined #ruby
LBRapid has quit [Quit: Farewell.]
<Ontolog>
omg what's the regex for "not ascii"?
asklov has joined #ruby
<koshii>
In the example grays = /(James|Dana|Summer) Gray/ can we say that the | is an element separator?
<koshii>
The pipe I mean
<asklov>
hi everyone, I'd like to know if there is a way to call a ruby code from java. For example, I create a function in ruby and I'd like to call this function in a java code, is it possible ?
<Hanmac>
Ontolog: /[^[:ascii:]]/
carloslopes has joined #ruby
<shevy>
koshii it means "or" as far as I know
sailias has quit []
carloslopes has quit [Client Quit]
<Hanmac>
asklov maybe you should try it in #jruby
<Ontolog>
Hanmac: thanks!
<fowl>
asklov: I believe that is what JRuby is furr
carloslopes has joined #ruby
<asklov>
Hanmac: isn't JRuby only one way ? I mean, I can create code in java that is called from ruby, but not the other way
ph^ has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
<asklov>
fowl: the same answer I gave to fowl :)
<asklov>
fowl: Hanmac *
<koshii>
pipe is OR?
<koshii>
Like, always?
<matti>
shevy: Hm.
<matti>
shevy: Write something ;]
stopbit has joined #ruby
<shevy>
matti :<
<koshii>
Surely it isn't, since you can also have |a| variables?
<Hanmac>
in my bindings i can let the c++ calls some ruby methods
<shevy>
koshii what are you talking // is a regex with special syntax
<koshii>
True. :-)
c0rn_ has quit [Quit: Computer has gone to sleep.]
<koshii>
You're right shevy!
outworlder has joined #ruby
<asklov>
Hanmac: is there any binding that allow me to call ruby code from java ?
<shevy>
I think the regexes in use are quite similar between most different languages
<asklov>
Hanmac: something already coded
Morkel has quit [Quit: Morkel]
<fowl>
koshii: i dont have experience, but i hear there is much love for jruby so.. good luck
cakehero has quit [Quit: Computer has gone to sleep.]
<Hanmac>
not that i knew ... i dont code java ...
kiyoura has joined #ruby
<koshii>
fowl: What what? :-)
c0rn_ has joined #ruby
paolooo has joined #ruby
jasonkuhrt has joined #ruby
ph^ has quit [Read error: No route to host]
artOfWar has quit [Ping timeout: 252 seconds]
<fowl>
koshii: o mb
<Hanmac>
i dont see good points in using java ... everything they could can i do with C/C++ & ruby better
CarlB_the_great has quit [Ping timeout: 244 seconds]
ph^ has joined #ruby
CarlB_the_great has joined #ruby
workmad3 has joined #ruby
c0rn_ has quit [Client Quit]
ph^ has quit [Remote host closed the connection]
thaz has quit [Quit: thaz]
ph^ has joined #ruby
<Ontolog>
In Ruby, I want to take a unicode string and encode it into ASCII, so it looks something like "\xE4\xB8\x89\xE8\xB0\xB7\xE3\x81\x9F\xE3\x81\x8F\xE3\x81\xBF" when given "三谷たくみ"
<Hanmac>
" But, there is one subversion. Most native Australian bees either have no stingers or stingers too small to penetrate human skin. Australia has a most ironic sense of humor. " :P
autojack has joined #ruby
<autojack>
is there a good way to install just one specific bundled gem (bundler 1.1.3), rather than everything in the Gemfile? it looks like unless I put EVERYTHING in a group, I can't do this.
<autojack>
I also tried creating a separate Gemfile.foo with just the gem I want, but then when I install that bundler deletes everything else from my vendor/cache
t50876 has quit [Remote host closed the connection]
t60576 has joined #ruby
outworlder has quit [Ping timeout: 240 seconds]
recycle has joined #ruby
recycle has quit [Remote host closed the connection]
jjbohn has quit [Ping timeout: 245 seconds]
johnjohnson has quit []
c0rn_ has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
<autojack>
wow deafening silence :)
<Pip>
autojack, :D
stat1x has quit []
<Hanmac>
autojack try #bundler
recycle has joined #ruby
jrajav has joined #ruby
specialGuest has quit [Quit: WeeChat 0.3.8]
BetaPinky has joined #ruby
fyolnish_ has joined #ruby
recycle has quit [Remote host closed the connection]
stat1x has joined #ruby
stat1x has quit [Client Quit]
axl_ has quit [Quit: axl_]
<matti>
Any native Japanese speaker here, maybe?
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
Danielpk has quit [Quit: Danielpk]
mengu has joined #ruby
bradhe_ has quit [Read error: Connection reset by peer]
stat1x has joined #ruby
bradhe has joined #ruby
dev_ryan70 has quit [Remote host closed the connection]
noyb has quit [Ping timeout: 252 seconds]
fyolnish_ has quit [Ping timeout: 268 seconds]
jorge has joined #ruby
Axsuul has joined #ruby
cakehero has joined #ruby
recycle has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
burgestrand has joined #ruby
SQLStud has quit [Quit: Leaving]
recycle has quit [Remote host closed the connection]
<autojack>
oh I didn't know there was #bundler
<autojack>
however I have since been told that what I am trying to do makes no sense and runs counter to the whole point of bundler itself :)
<autojack>
so I have a better simpler solution.
<autojack>
thanks though!
autojack has left #ruby [#ruby]
jorge has quit [Ping timeout: 246 seconds]
blazes816 has quit [Quit: This computer has gone to sleep]
wendallsan has quit [Remote host closed the connection]
sailias has joined #ruby
Takehiro has joined #ruby
carloslopes has quit [Quit: Leaving.]
mrdodo has joined #ruby
deryl has joined #ruby
Takehiro has quit [Ping timeout: 246 seconds]
mikepack has quit [Remote host closed the connection]
jenrzzz has quit [Quit: i just don't know what went wrong]
cakehero has quit [Quit: Computer has gone to sleep.]
t60576 has quit [Remote host closed the connection]
dmiller has joined #ruby
t95400 has joined #ruby
tds has joined #ruby
artOfWar has quit [Ping timeout: 252 seconds]
wmoxam has quit [Quit: leaving]
paulovittor23 has quit [Remote host closed the connection]
<tds>
i'm having a strange error
<tds>
stack level too deep (SystemStackError)
<tds>
this occurs with just executing `ruby test.rb`
<tds>
even though this seemingly should not cause any looping at all.. it's a simple print
<davidcelis>
hm
machty has quit [Ping timeout: 246 seconds]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<tds>
i think it's not respecting local variables in the block's closure
<davidcelis>
ahh
<tds>
which makes sense because it's a method, not a proc
<davidcelis>
it's implicitly selfing
<tds>
yep
<davidcelis>
so it's trying to do `self.proxied`
<tds>
yeah
<davidcelis>
nice catch
recycle has quit [Remote host closed the connection]
<tds>
had to paste it here before i thought of that… always seems to happen that way :-)
<tds>
back to the drawing board
<davidcelis>
makes sense because it's in the instance_eval
blazes816 has joined #ruby
<tds>
yeah
cakehero has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
alanp_ has joined #ruby
alanp has quit [Read error: Connection reset by peer]
codespectator has joined #ruby
kvirani has quit [Remote host closed the connection]
nuba has joined #ruby
<tds>
davidcelis: modify to use define_singleton_method and it works fine
<tds>
but i don't think that's available in < ruby 1.9
<tds>
:/
jrajav has quit []
und3f has quit [Quit: Leaving.]
jenrzzz has joined #ruby
stdev has quit [Ping timeout: 244 seconds]
sn0wb1rd_ has joined #ruby
moshef has joined #ruby
<shevy>
where is apeiros
stopbit has quit [Quit: Leaving]
<moshef>
trying to initialize an object with initialize(*args) and then in the method args.each do |k,v| instance_variable_set("@#{k}", v) unless v.nil? ; but it doesn't work. I'm creating objects w/o any instance variables...
<moshef>
any idea whats wrong?
jasonkuhrt has joined #ruby
<davidcelis>
moshef: how are you calling .new
<moshef>
when I'm using @attribute = attribute, it initializes the object perfectly...
<moshef>
just method.new
<davidcelis>
moshef: copypaste exactly what oyu're doing
<davidcelis>
in a gist or something
sn0wb1rd has quit [Ping timeout: 276 seconds]
sn0wb1rd_ is now known as sn0wb1rd
<davidcelis>
you probably don't want a splatted *args though
<moshef>
ClassName.new(Object)
<davidcelis>
seems like you're passing a single Hash
<moshef>
why not?
Erdos1 has quit [Ping timeout: 244 seconds]
<moshef>
I'm not passing a hash, just objects with commas
<moshef>
should I pass a hash?
<davidcelis>
moshef: make a Gist of your code, please
Erdos1 has joined #ruby
daniel_hinojosa has joined #ruby
cakehero has quit [Quit: Leaving...]
iamjarvo has joined #ruby
pdelgallego has quit [Quit: pdelgallego]
sailias has quit [Ping timeout: 246 seconds]
stdev has joined #ruby
recycle has joined #ruby
<moshef>
davidcelis: think I just didn't pass the attributes properly, checking now
<davidcelis>
you're just assigning Class.new to a constant
RudyValencia has quit [Quit: My IRC client doesn't advertise in /quit messages.]
<shevy>
libryder everything that starts with an upcased token in ruby is considered a constant
FifthWall has joined #ruby
uris has quit [Quit: leaving]
<shevy>
THIS_IS_ONE = "hi", ThisAsWell = "yeah", class Foo, module Bla
t75586 has quit [Remote host closed the connection]
<fowl>
shevy: incorrect
t19622 has joined #ruby
<fowl>
>> Integer(40.43)
<al2o3cr>
(Fixnum) 40
<fowl>
that's a method call
<shevy>
yeah but you use ()
<davidcelis>
Integer is a constant
<davidcelis>
ಠ_ಠ
<fowl>
davidcelis: indeed ;)
bapa has quit [Remote host closed the connection]
<shevy>
good, so all without the (). THIS_IS_ONE() ruby will think is a method call
<shevy>
and from now on I shall make a lib called fowllib and I will use only UPCASED code
<fowl>
>> Float(420)
<al2o3cr>
(Float) 420.0
<libryder>
every time i feel like i get a step closer to understanding ruby's insides, i am given a dafuq i have to deal with
mascool has quit [Ping timeout: 250 seconds]
<shevy>
libryder why
yasushi has joined #ruby
<davidcelis>
but we just explained the dafuq
<libryder>
i'm past that
bapa has joined #ruby
<shevy>
you think so today
<fowl>
davidcelis: you know there's Integer() and Float() methods too, those arent classes in this case
<shevy>
but in one year perhaps not
<shevy>
:D
<bricker88>
Why doesn't this work the way it seems it should? `var = defined?(var) ? var : true` var is then nil, but not true, if it's not already defined
<fowl>
>> Fixnum(30) #not a method
<al2o3cr>
-e:1:in `eval': undefined method `Fixnum' for main:Object (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
maletor has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Remote host closed the connection]
hipertracker has joined #ruby
workmad3 has quit [Quit: Lost terminal]
<fowl>
>> puts defined?(x); x = defined?(x) ? x : true; puts defined?(x)