<kandinski>
I am trying to install a gem so the line "import URI" works in a script I just downloaded. However, neither "gem search uri" nor "gem search URI" tell me there is such a thing. What am I doing wrong? Thanks in advance for your attention.
freezey has quit [Quit: freezey]
bbttxu has joined #ruby
<kandinski>
also, I am using Ubuntu 12.04, if that makes a difference.
nitti has quit [Ping timeout: 246 seconds]
<davidcelis>
12.10 came out bro, time to upgrade
<Spaceghostc2c>
Lolk.
<Spaceghostc2c>
davidcelis: Upgrading your OSX to Ubanto 12.04?
<Spaceghostc2c>
trololol.
<kandinski>
nice
vlad_starkov has joined #ruby
Konboi has joined #ruby
<davidcelis>
my OSX is on ubonta 13.04
KillerFox has quit [Ping timeout: 244 seconds]
h4mz1d has quit [Ping timeout: 272 seconds]
dhonig has quit [Remote host closed the connection]
KillerFox has joined #ruby
<waxjar>
kandinski, the uri library is part of the standard library, there's no need to install a gem for it :)
<davidcelis>
there's no "import" in Ruby
<kandinski>
waxjar: thanks. This means I have another problem: /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- URI (LoadError)
<davidcelis>
kandinski: open-uri
<kandinski>
davidcelis: yeah, require
vlad_starkov has quit [Ping timeout: 240 seconds]
<davidcelis>
require 'open-uri'
<kandinski>
and about open-uri, I was hoping this script I just downloaded would work
<waxjar>
ah, stupid, i could have seen that from the error message :P
pskosinski has quit [Ping timeout: 272 seconds]
<davidcelis>
waxjar: not necessarily
<davidcelis>
waxjar: 1.9.2 and 1.9.3 use 1.9.1 as the directory too
cableray has quit [Quit: cableray]
<waxjar>
oh, didn't know that.
<kandinski>
davidcelis: you were right. ruby --version says 1.9.3p0, sorry waxjar
<shadewind>
how can I find the rightmost match in a string for a regex?
<shadewind>
and I mean full match data
dnstbr has quit [Quit: Computer has gone to sleep.]
uuair has joined #ruby
<waxjar>
kandinski, idk man, i'm on 1.9.3 too. it should just work
Progster has joined #ruby
lewis is now known as lewix
<kandinski>
waxjar: thanks. also grumble grumble /me shakes fist at computer
Banistergalaxy has quit [Ping timeout: 265 seconds]
<waxjar>
ah, i get it, it does require "URI", which should be require 'uri'
<waxjar>
i think that should fix it
cableray has joined #ruby
cableray has quit [Client Quit]
uuair has quit [Client Quit]
bitri has quit [Quit: Computer has gone to sleep.]
baphled has joined #ruby
bradhe has joined #ruby
yxhuvud has quit [Ping timeout: 246 seconds]
ecksit has quit [Quit: Gone to sleep.]
bradhe has quit [Read error: Connection reset by peer]
lockweel has quit [Remote host closed the connection]
bradhe has joined #ruby
daniel_-_ has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
<davidcelis>
lol
<davidcelis>
cool script
chin-tastic has joined #ruby
deadalus has quit [Ping timeout: 268 seconds]
bradhe has quit [Read error: Connection reset by peer]
bairui has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
hbpoison has joined #ruby
<kandinski>
davidcelis: maybe, but I can't make it run
<kandinski>
the pluggable parser Mechanize::Download wasn't installed with the mechanize gem
Faris has quit [Read error: Operation timed out]
hbpoison has quit [Ping timeout: 248 seconds]
h4mz1d has joined #ruby
Konboi has quit [Remote host closed the connection]
telagraphic has quit [Quit: Page closed]
brianpWins has quit [Quit: brianpWins]
daniel_-_ has quit [Ping timeout: 246 seconds]
hadees has quit [Quit: hadees]
<davidcelis>
i was being sarcastic
<davidcelis>
this script sounds like a piece of shit
akem has joined #ruby
g-ram has joined #ruby
Takehiro has joined #ruby
jimeh has joined #ruby
mikepack has quit [Remote host closed the connection]
caleb_io has joined #ruby
jslowe has quit [Quit: Leaving]
siyusong has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Ping timeout: 256 seconds]
bairui has joined #ruby
dnstbr has joined #ruby
h4mz1d has quit [Ping timeout: 248 seconds]
nitti has joined #ruby
cakehero has joined #ruby
Trioke has quit [Quit: leaving]
<kandinski>
davidcelis: gotcha, thanks
uuair has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
kiyoura has joined #ruby
rcosta has joined #ruby
nuclearblast has quit [Read error: Connection reset by peer]
mkillebrew has quit [Ping timeout: 246 seconds]
rcosta has quit [Client Quit]
rcosta has joined #ruby
rellin has quit [Read error: Connection reset by peer]
mkillebrew has joined #ruby
rellin has joined #ruby
jeffreybaird has joined #ruby
fir_ed has joined #ruby
__main__ has quit [Ping timeout: 246 seconds]
Sou|cutter has quit [Ping timeout: 246 seconds]
Banistergalaxy has joined #ruby
__main__ has joined #ruby
sebastianb has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
chin-tastic has quit [Ping timeout: 264 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
siyusong has joined #ruby
h4mz1d has joined #ruby
mmlac has quit [Quit: mmlac]
hadees has joined #ruby
ewandje has quit []
hbpoison has joined #ruby
SegFaultAX|work has quit [Ping timeout: 256 seconds]
sakh has quit [Ping timeout: 272 seconds]
bbttxu has quit [Quit: bbttxu]
hbpoison has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby
h4mz1d has quit [Read error: Operation timed out]
caleb_io has quit [Quit: Leaving...]
reuf has quit [Quit: Leaving]
under_my_shoes has quit [Quit: Leaving]
under_my_shoes has joined #ruby
caleb_io has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
<under_my_shoes>
:)
_cheney has quit [Ping timeout: 246 seconds]
ryanlecompte has joined #ruby
_cheney has joined #ruby
bbttxu has joined #ruby
nari_ has joined #ruby
caleb_io has quit [Client Quit]
Jellyg00se has quit [Quit: Leaving]
roadt has joined #ruby
dnstbr has quit [Quit: Computer has gone to sleep.]
chin-tastic has joined #ruby
quest88_ is now known as kevinw
Banistergalaxy has joined #ruby
pipopopo has joined #ruby
Ruler_Of_Heaven_ has quit [Ping timeout: 272 seconds]
weasels has joined #ruby
dnstbr has joined #ruby
pipopopo has quit [Ping timeout: 246 seconds]
vhd has quit [Ping timeout: 246 seconds]
otters has quit [Ping timeout: 245 seconds]
pipopopo has joined #ruby
artnez has joined #ruby
dnstbr has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
bigmcq77 has joined #ruby
fyolnish has quit [Remote host closed the connection]
nitti has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
chin-tastic has quit [Ping timeout: 256 seconds]
sakh has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
h4mz1d has joined #ruby
drago757 has quit [Quit: drago757]
jrajav has quit []
Banistergalaxy has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby
g-ram has joined #ruby
radic has joined #ruby
FifthWall has quit [Quit: Zzzzzzzzzzzzz]
rabidpraxis has quit [Remote host closed the connection]
reuf has joined #ruby
radic_ has quit [Ping timeout: 252 seconds]
perryh has quit [Excess Flood]
perryh has joined #ruby
fyolnish has joined #ruby
luckyruby has joined #ruby
slainer68 has joined #ruby
bradhe has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
bradhe has joined #ruby
<yakko>
hey guys, my capistrano just hangs sometimes, no commands ever run, does anybody have a workaround?
hbpoison has joined #ruby
robertotauille has joined #ruby
foo-bar- has joined #ruby
abstrusenick has joined #ruby
freeayu has joined #ruby
hsbt has quit [Ping timeout: 255 seconds]
hbpoison has quit [Ping timeout: 260 seconds]
slainer68 has quit [Ping timeout: 256 seconds]
hsbt has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
robbyoconnor has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
h4mz1d has quit [Ping timeout: 256 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
shammancer has quit [Remote host closed the connection]
robertotauille has quit [Quit: Leaving...]
weasels has quit [Ping timeout: 248 seconds]
weasels has joined #ruby
ryanlecompte has joined #ruby
hsbt is now known as hsbt_away
Takehiro_ has joined #ruby
hbpoison has joined #ruby
hsbt_away has quit [Ping timeout: 276 seconds]
Spooner has quit [Ping timeout: 265 seconds]
Takehiro_ has quit [Ping timeout: 244 seconds]
nitti has joined #ruby
hsbt_away has joined #ruby
hbpoison has quit [Ping timeout: 276 seconds]
nitti has quit [Ping timeout: 256 seconds]
kaawee has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
under_my_shoes has quit [Quit: Leaving]
kaushik_ has joined #ruby
under_my_shoes has joined #ruby
ZubKonst_ has joined #ruby
emmanuelux has quit [Remote host closed the connection]
ZubKonst has quit [Ping timeout: 246 seconds]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
shammancer has joined #ruby
GranMal has joined #ruby
ben_alman has quit [Excess Flood]
Sou|cutter has joined #ruby
boxy has joined #ruby
<boxy>
I'm having issues with using link_to to pass an array %th{:class=>@sorted_by_title}= link_to "Movie Title", "?sort=title&ratings=#{@filtered}", :id=>"title_header" is there a better way to do this?
robbyoconnor has quit [Ping timeout: 246 seconds]
tjbiddle has joined #ruby
ben_alman has joined #ruby
justinmcp has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
siyusong has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
Targen has quit [Ping timeout: 264 seconds]
hsbt_away is now known as hsbt
aldodelgado has joined #ruby
weasels is now known as otters
Targen has joined #ruby
slainer68 has quit [Ping timeout: 268 seconds]
siyusong has joined #ruby
hsbt has quit [Ping timeout: 272 seconds]
mikepack has joined #ruby
uuair has quit [Quit: uuair]
Apocalypse has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
rcosta has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
mikepack has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
sent-hil has quit [Remote host closed the connection]
h4mz1d has joined #ruby
nappy has joined #ruby
deo_ has quit [Client Quit]
hsbt has quit [Ping timeout: 244 seconds]
Takehiro has joined #ruby
justinmcp has quit [Remote host closed the connection]
hsbt_away has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
c0rn_ has joined #ruby
bigmcq77 has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
kaawee has quit [Read error: Operation timed out]
bigmcq77 has quit [Read error: Connection reset by peer]
hsbt_away is now known as hsbt
nitti has joined #ruby
joeycarmello has quit [Remote host closed the connection]
shammancer has quit [Read error: No route to host]
cakehero has joined #ruby
nitti has quit [Ping timeout: 260 seconds]
shammancer has joined #ruby
cakehero has quit [Client Quit]
hsbt has quit [Ping timeout: 268 seconds]
bigmcq77 has joined #ruby
jamesaxl has quit [Ping timeout: 265 seconds]
bradhe has joined #ruby
kiyoura has quit [Quit: Leaving]
Progster has quit [Ping timeout: 265 seconds]
Kruppe has quit [Remote host closed the connection]
cakehero has joined #ruby
hsbt has joined #ruby
cakehero has quit [Client Quit]
cakehero has joined #ruby
kuzushi has quit [Ping timeout: 276 seconds]
nappy has quit [Read error: Connection reset by peer]
cakehero has quit [Client Quit]
hsbt has quit [Ping timeout: 260 seconds]
luckyruby has quit [Remote host closed the connection]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
RurouniJones has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
dnstbr has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
h4mz1d has quit [Ping timeout: 260 seconds]
syskk has joined #ruby
syskk has quit [Changing host]
syskk has joined #ruby
boxy_ has joined #ruby
dnyy has quit [Remote host closed the connection]
medik has quit [Ping timeout: 246 seconds]
boxy has quit [Ping timeout: 246 seconds]
boxy_ has quit [Client Quit]
hsbt has quit [Ping timeout: 256 seconds]
bradhe has quit [Remote host closed the connection]
elico has quit [Quit: elico]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
jenrzzz has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
cableray has joined #ruby
bluOxigen has joined #ruby
syskk has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
RurouniJones has quit [Remote host closed the connection]
hsbt has quit [Ping timeout: 268 seconds]
drago757 has joined #ruby
leoncamel has joined #ruby
syskk has joined #ruby
syskk has quit [Changing host]
syskk has joined #ruby
delinquentme has joined #ruby
<delinquentme>
ruby script/plugin install git://github.com/dchelimsky/rspec.git -r 'refs/tags/1.2.9' could someone tell me whats going on here?
joeycarmello has joined #ruby
joeycarmello has quit [Ping timeout: 240 seconds]
Araxia has quit [Quit: Araxia]
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
bradhe has quit [Remote host closed the connection]
Takehiro has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
perryh has quit [Excess Flood]
<carlzulauf>
delinquentme: Looks like you are trying to clone the 1.2.9 tag directly from the dchelimsky/rspec repo on github into the plugin directory in your rails project using the script/plugin installer
shammancer has quit [Ping timeout: 252 seconds]
<delinquentme>
carlzulauf, that is a git operation then?
<lewix>
i need someone who managed to install rvm on debian squeeze
scx has joined #ruby
perryh has joined #ruby
bradhe has joined #ruby
hbpoison has joined #ruby
nitti has joined #ruby
cableray has quit [Quit: cableray]
jenrzzz has quit [Ping timeout: 268 seconds]
hsbt has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
<carlzulauf>
delinquentme: it involves a git operation. i'm not sure what else that script does to install the gem as a plugin
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
nitti has quit [Ping timeout: 246 seconds]
h4mz1d has joined #ruby
d2dchat has joined #ruby
drago757 has quit [Quit: drago757]
jenrzzz has quit [Ping timeout: 260 seconds]
hbpoison has quit [Ping timeout: 248 seconds]
hsbt has quit [Ping timeout: 244 seconds]
SegFaultAX|work has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
GranMal has quit [Quit: GranMal]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
lurraca has joined #ruby
jrajav has joined #ruby
lurraca has quit [Client Quit]
c0rn_ has quit [Ping timeout: 246 seconds]
hsbt has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
siyusong has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
SegFaultAX|work has quit [Ping timeout: 265 seconds]
<ecksit>
i am attempting to install the rugged gem but unfortunately i am getting an "ERROR: Error installing rugged: ERROR: Failed to build gem native extension." so i checked the mkmf.log file and the contents are as follows: https://gist.github.com/6cd211f5485157dcdaeb
jgrevich has quit [Ping timeout: 256 seconds]
jgrevich_ is now known as jgrevich
nitti has joined #ruby
ecksit has quit [Read error: Connection reset by peer]
ninegrid has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
nitti has quit [Ping timeout: 246 seconds]
tomsthumb has joined #ruby
hbpoison has joined #ruby
JonnieCache has quit [Ping timeout: 260 seconds]
nemesit has joined #ruby
jenrzzz has joined #ruby
fyolnish has quit [Remote host closed the connection]
siyusong has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Ping timeout: 276 seconds]
robbyoconnor has joined #ruby
matrixise has joined #ruby
SegFaultAX|mobi has quit [Ping timeout: 244 seconds]
Takehiro has quit [Remote host closed the connection]
ecksit has joined #ruby
greenarrow has joined #ruby
Takehiro has joined #ruby
SegFaultAX|mobi has joined #ruby
ecksit has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
pskosinski has joined #ruby
dnstbr has quit [Quit: Computer has gone to sleep.]
bluOxigen has joined #ruby
lewix has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
delinquentme has quit [Ping timeout: 260 seconds]
hbpoison has joined #ruby
d2dchat has joined #ruby
linusoleander has joined #ruby
nemesit|osx has joined #ruby
miso1337 has joined #ruby
nemesit has quit [Ping timeout: 245 seconds]
miso1337 has quit [Client Quit]
lewix has joined #ruby
ABK has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
fantazo has joined #ruby
uuair has joined #ruby
nari_ has quit [Ping timeout: 256 seconds]
Erfankam has joined #ruby
fantazo has quit [Remote host closed the connection]
thone has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
thone_ has quit [Ping timeout: 244 seconds]
linusoleander has quit [Quit: linusoleander]
vectorshelve has joined #ruby
<vectorshelve>
how to find median of two sorted arrays
mahmoudimus has quit [Quit: Computer has gone to sleep.]
c0rn_ has quit []
<lewix>
i get an error message when i run gem update --system 1.8.24
nitti has joined #ruby
syskk has quit [Ping timeout: 256 seconds]
piotr_ has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
<vectorshelve>
lewix: what error message?
Takehiro has quit [Read error: Connection reset by peer]
Takehiro_ has joined #ruby
TomRone has quit [Ping timeout: 264 seconds]
moshee has quit [Remote host closed the connection]
<lewix>
Latest version currently installed. Aborting.
<vectorshelve>
lewix: This indicates there's an issue at Rubygems.org at the moment. There's almost certainly nothing wrong on your end. Try again in a little while and it should be ok. I just tried myself on a mac and it worked fine.
matrixise has quit [Ping timeout: 252 seconds]
<lewix>
vectorshelve: oh thanks. but why did you do it though, you don't want to downgrade your version. do you
<vectorshelve>
lewix: I tried downloading gem :) if you want you can manuallly download gems from rubygems.org
<lewix>
vectorshelve: now it works but it does not downgrade. here's the message i get
margle has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Remote host closed the connection]
hsbt_away has joined #ruby
vlad_starkov has quit [Ping timeout: 244 seconds]
icooba has quit [Quit: Computer has gone to sleep.]
hsbt_away is now known as hsbt
margle has joined #ruby
kevinw has quit [Ping timeout: 246 seconds]
hsbt has quit [Ping timeout: 248 seconds]
vonsar has joined #ruby
symeog has joined #ruby
<symeog>
Hi fellow rubyists!
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
Takehiro has joined #ruby
waydotnet has quit [Read error: Operation timed out]
emergion has joined #ruby
<symeog>
i begun my journey to ruby just yesterday and i am already confident that it is a very modern and potential language.
jimeh has quit [Ping timeout: 248 seconds]
anderse has quit [Quit: anderse]
<shevy>
symeog hehe
<shevy>
symeog did you use another scripting language before?
<atmosx>
symeog: I believe is the best thing that happened in human kind after pizza and coca-cola ofcourse!
hsbt has quit [Ping timeout: 255 seconds]
nitti has joined #ruby
<whackatre>
:P
pmros has joined #ruby
<pmros>
hi!
nitti has quit [Ping timeout: 260 seconds]
hamed_r has quit [Ping timeout: 246 seconds]
GoldenCider has quit [Quit: GoldenCider]
workmad3 has quit [Ping timeout: 252 seconds]
Virunga has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
Takehiro has quit [Remote host closed the connection]
Vinz_` is now known as Vinz_
<symeog>
sorry i was ark….scripting language NO
<symeog>
only c# and DONT NET
timonv has joined #ruby
dogweather has quit [Remote host closed the connection]
<symeog>
i didn't misspell haha
und3f has quit [Quit: Leaving.]
margle has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie>
You didn't misspell "haha", because you misspelled "dot"!
<symeog>
no didn't haha
Zai has joined #ruby
<symeog>
anyways...
<symeog>
hahah
Takehiro has joined #ruby
<symeog>
ok so yes i come from microsoft world yaeh
<symeog>
it all started when i did the big leo and i bought myself a mac
<pmros>
congratulations, symeog
<symeog>
thanks pmros !
<symeog>
so can i ask ur opinion ?
<pmros>
about waht?
<pmros>
*what
<symeog>
because as i said i want to start building something useful i order to lear ruby
<pmros>
oh
<symeog>
i was thinking to start building the first part of a future order management application
<pmros>
do you know troshka? it could help you
<symeog>
i am thinking to start with the model of course
<symeog>
troshka ? who's that ?
<pmros>
a graphical repl
<pmros>
an alternative to irb
<symeog>
nope!
<symeog>
nope!
<pmros>
lol
<symeog>
how cani install /download that ?
<pmros>
gem install troshka
<symeog>
sec
<symeog>
with sudo ?
<pmros>
you need qt
<symeog>
qt ? whats that again ?
<pmros>
do you have homebrew?
<symeog>
yes i do
<pmros>
mmm try hombrew install qt
hbpoison has joined #ruby
<symeog>
ok sec
<pmros>
qt is a widget library
hsbt has quit [Ping timeout: 252 seconds]
<symeog>
aha…for client apps u mean ???? like forms buttons etc ???
<pmros>
yes
margle has joined #ruby
<symeog>
great….cause so far i was thinking only web !!!
<pmros>
I like desktop
<symeog>
i mean rails, sinatra…and other things i don't know yet!!!
<pmros>
but an repl is always useful
<pmros>
to learn
<symeog>
look…i rally do like desktop too
<pmros>
*a
<symeog>
sure i ll use that just tell me how to install it right ok ?
<pmros>
I have no mac
<pmros>
but... one moment
<symeog>
ok...tahnks
<symeog>
but i guess gem install works everywhere right ?
<symeog>
qt is downloading…50%
<pmros>
great!
<pmros>
you need
<pmros>
gem install qtbindings
hbpoison has quit [Ping timeout: 260 seconds]
<symeog>
i think your idea with qt and troshka is great for me now since i am just learning and i surely don't want to put a MVC framework on my head just yet!
<symeog>
after qt right ?
<pmros>
yes, right
cantonic has joined #ruby
<symeog>
ok and then i instal troshka ?
<pmros>
yes
<pmros>
gem install troshka
<pmros>
I cross my fingers
<symeog>
ok i got it
<pmros>
it tested on windows and linux (arch)
baphled has quit [Ping timeout: 268 seconds]
<symeog>
its still qt 80%
<symeog>
so its the same
<symeog>
but i have a question here…should i install with gem plain or sudo gem ?
<pmros>
gem plain
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<shevy>
symeog odd question :D
<symeog>
why shevy ?
<pmros>
I use gem plain in arch
hsbt is now known as hsbt_away
<shevy>
because if you use ruby in /usr prefix, then you need superuser priviledges anyway or?
hsbt_away is now known as hsbt
timonv has quit [Remote host closed the connection]
<symeog>
so i wanna tell what i want to achieve for starters and tell me if this is possible for a beginner ok ?
<shevy>
shoot
<shevy>
usually everything is possible, just takes time and effort
Vinz_ is now known as Vinz_`
<shevy>
advanced folks just often know how to solve something, still takes time and effort for them as well (unless they reuse code that was already written)
<symeog>
wow is it like an ice with intelligence ??? great help…can u pls show me around a bit after i install it ?
<symeog>
i can understand that
Progster has joined #ruby
waydotnet has joined #ruby
<symeog>
but what i want to achieve is very basic i guess
<symeog>
just let me tell u what i have in mind ok?
<shevy>
will you do so or will you not do so :)
Takehiro has quit [Remote host closed the connection]
<symeog>
number one step i want to build a plain model with Customer, Product, Order, OrderDetail model….is that easy ?
leoncamel has quit [Remote host closed the connection]
<shevy>
this is rails specific?
<symeog>
nope
<shevy>
but sounds like rails!
<symeog>
i don't know yet nooo
<shevy>
it's so raaaaaails.....!
<symeog>
maybe in another step
<pmros>
model is not rails dependent
<shevy>
raaaaaaaaaaaaaaaaaaaaails
<pmros>
it's just a model
<shevy>
for use in?
<shevy>
:)
<pmros>
whatever
<symeog>
yes model is a pattern…i maybe use qt after all
<shevy>
symeog, typically you will write a class in ruby that does that
<symeog>
or commandline
<symeog>
ok shevy thats what i was thinking
hbpoison has joined #ruby
<symeog>
so this one is right ok ?
<shevy>
so first get the basic classes with your datastructures ready
<shevy>
afterwards you can use qt or anything else
<symeog>
right!!!!
<shevy>
I dunno, you did not provide much details, only the names so far
<symeog>
no let me tell u the next step..its not the ui
<shevy>
kk
Tuxist64bit has joined #ruby
<symeog>
i know the class details don't worry
<symeog>
the next step i would like to...
hsbt has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
Tuxist64bit has quit [Read error: Connection reset by peer]
<symeog>
create CRUD functionality for this model against mysql
<symeog>
thats ist
<symeog>
don ask me about ui..cause i don't know just yet!!
<pmros>
I don't like relational databases
<symeog>
ok give me opinions
<pmros>
nosql like...
<pmros>
mongodb
<symeog>
mysql is not mandatory
<pmros>
couchdb
<pmros>
redis
<symeog>
ok which one is easier with rails ?
<symeog>
hahahaha
<symeog>
sorrry
<symeog>
i meant RUBY
<symeog>
damn!
<shevy>
haha
baphled has joined #ruby
<shevy>
see pmros :)
<shikamaru>
tokyocabinet provides bindings for ruby
<shikamaru>
and it’s sequel, kyotocabinet as well
<symeog>
never heard of them…are they document based ?
hsbt has joined #ruby
<symeog>
i would like some of the most well known i guess like mongo...
hsbt is now known as hsbt_away
Tuxist has quit [Ping timeout: 252 seconds]
hsbt_away is now known as hsbt
<symeog>
anyways…so that i have in mind for starters…a model and a persistence
<symeog>
after i achieve that i want MODEL validation independent of ui
<symeog>
and after that we can happily discuss what UI options i have....
<symeog>
thats all…i need opinions here pal!
mucker has joined #ruby
<symeog>
pls1
<symeog>
pls!
<symeog>
btw pmros i installed everything
<symeog>
how do i run ?
<pmros>
sure
<pmros>
troshka
<symeog>
hahah sec
jimeh has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
tolbkni has joined #ruby
<symeog>
Library not loaded: /usr/local/lib/libpng15.15.dylib (LoadError)
<pmros>
!
<symeog>
maybe i need to run all over agin as sudo ???
<pmros>
qt and qtbindings should need sudo
<symeog>
aha
<symeog>
ok then
hsbt has quit [Ping timeout: 255 seconds]
<symeog>
but u can't install things with brew as sudo i guess
<symeog>
but let me reinstall the gems as sudo then we ll see
<pmros>
ok
vlad_starkov has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<symeog>
so a model and its persistence, ui agnostic…is this a a good start for learning ruby i guess ?
mucker has quit [Quit: leaving]
<pmros>
sure
<symeog>
and pls give me good db options here…i said mysql cause it happens to know it among oracle and sqlserver
<symeog>
but i am keen in the doc dbs too but never knew one so far
<symeog>
so mongo, couch or redis ?? which one is more popular ? do u know ?
<pmros>
mongo maybe
<symeog>
and which one is easiest one ?
timonv has joined #ruby
<pmros>
I've check out couch,,, it seems mongo and redis are easier
vlad_starkov has quit [Ping timeout: 252 seconds]
<symeog>
ok..i ll check it out when the time comes
<symeog>
first is the model
<symeog>
and i sure need a thing like troshka here !!!!!
<symeog>
i have to get i installed !!
<pmros>
hehe
hikimonk has joined #ruby
<pmros>
other repls: irb, ripls, pry
<pmros>
(text mode)
<symeog>
nook text mode i have rib...
<symeog>
irb
<symeog>
what editor u use ?
eldariof has joined #ruby
<pmros>
*ripl
eldariof has quit [Client Quit]
<symeog>
is that an editor??? i mean an editor
<pmros>
I use aptana but...
<symeog>
isn't that one heavy ???
<pmros>
it could be better
<pmros>
yes
<pmros>
it's heavy
<symeog>
i guess i don't want an eclipse candidate here
<pmros>
I'm looking for something better
guardian has joined #ruby
eldariof has joined #ruby
<guardian>
hello
sertaconay has joined #ruby
<symeog>
hi
<pmros>
hello
<guardian>
is it expected ::URI.parse("http://example.com").path returns ""
<guardian>
instead of nil
hbpoison has quit [Ping timeout: 260 seconds]
<guardian>
that makes ::URI.parse("http://example.com").hierarchical? return true
eboaz has joined #ruby
<pmros>
time to lunch
hsbt is now known as hsbt_away
<pmros>
I'll come back
hsbt_away is now known as hsbt
elico has joined #ruby
<symeog>
bob apetite
<symeog>
bon*
eldariof has quit [Client Quit]
hsbt is now known as hsbt_away
elico has quit [Client Quit]
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
eboaz has quit [Quit: Leaving]
hbpoison has joined #ruby
eldariof has joined #ruby
eldariof has quit [Remote host closed the connection]
eboaz has joined #ruby
hsbt has quit [Ping timeout: 255 seconds]
Takehiro has quit [Remote host closed the connection]
nitti has joined #ruby
<symeog>
if anyone here is a mac user i beg him to help me uninstall and reinstall a good and stable version of ruby on mountain lion.
kaawee has joined #ruby
<atmosx>
away afk
<atmosx>
symeog: use rvm and pray.
<symeog>
pray ?
<atmosx>
yes, clang vs gcc is a huge pain in the ars
hsbt has joined #ruby
<symeog>
ok can u give me instructions step by step pls ?
<symeog>
please!
Takehiro has joined #ruby
hsbt is now known as hsbt_away
timonv has quit [Remote host closed the connection]
<atmosx>
xcode tools use clang, ruby should be compiled using gcc. If you do that though, you can't workout macports properly.
hsbt_away is now known as hsbt
<atmosx>
I'm having issues with octopress which is written in ruby. ayway
<atmosx>
we'll see how it goesonce xcode is down again.
<atmosx>
bb
eldariof has joined #ruby
mfridh has quit [Ping timeout: 248 seconds]
<symeog>
i guess i can't install troshka too
akem has quit [Ping timeout: 246 seconds]
vitor-br has quit [Remote host closed the connection]
Eldariof40-ru has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
mfridh has joined #ruby
Eldariof40-ru has quit [Remote host closed the connection]
eldariof has quit [Remote host closed the connection]
kaawee has quit [Quit: Konversation terminated!]
kramutils has joined #ruby
kaawee has joined #ruby
hsbt has quit [Ping timeout: 264 seconds]
cantonic has quit [Quit: cantonic]
hamed_r has joined #ruby
bluOxigen has joined #ruby
vitor-br has joined #ruby
uuair has joined #ruby
Zai has quit [Quit: Zai]
vonsar has quit [Quit: This computer has gone to sleep]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
xbayrockx has quit []
cantonic has joined #ruby
awestroke has joined #ruby
Eldariof40-ru has joined #ruby
matrixise has joined #ruby
kirun has joined #ruby
Eldariof40-ru has quit [Remote host closed the connection]
vhd has quit [Ping timeout: 246 seconds]
Eldariof40-ru has joined #ruby
Eldariof40-ru has quit [Remote host closed the connection]
Eldariof40-ru has joined #ruby
Eldariof40-ru has quit [Remote host closed the connection]
hsbt has quit [Ping timeout: 240 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
emmanuelux has joined #ruby
eldariof has joined #ruby
tweedledumber has joined #ruby
eldariof has quit [Remote host closed the connection]
mengu has joined #ruby
tungd has quit [Quit: tungd]
eldariof has joined #ruby
kil0byte has joined #ruby
_md has joined #ruby
<pmros>
sorry, symeog
<symeog>
its ok :)
<pmros>
what's the problem?
<symeog>
yeah still no luck with the QT
<symeog>
and troshka
<symeog>
they install correctly but they don't run
<pmros>
libpng error?
<symeog>
i assume there is nothing easy we can do..its a mountain lion thing...
<symeog>
YES!!
<symeog>
thats it
hsbt has quit [Ping timeout: 264 seconds]
<symeog>
u know the solution ?
<symeog>
it says it can't find some image
<pmros>
no, I have no mac
emergion has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Remote host closed the connection]
<symeog>
ok i think i should do my work without it and not loose more time i guess :(
<symeog>
maybe i install pry ???
nari_ has joined #ruby
<pmros>
it's a good repl
Takehiro has joined #ruby
<pmros>
I prefer ripl
<symeog>
ko let me install that too pls.
medik has joined #ruby
<pmros>
it's very easy
<pmros>
gem install ripl
<pmros>
gem install pry
<symeog>
so as far as i understand i start to develop on those instead of an editor ??? thats the good practice ?
<pmros>
I'm pretty sure you don't need sudo
<symeog>
i am sure too
<pmros>
no, I just use repl to check out some apis
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<symeog>
ok nice so i understood correctly then :)
<pmros>
imagine you are learning ruby arrays
<symeog>
Bond has detected EditLine and may not work with it.
Agis__ has joined #ruby
<symeog>
yes yes i see what u mean :)
uuair_ has joined #ruby
<symeog>
can u tell me if thats a problem ?
<pmros>
bond is the autocompletor of ripl
<symeog>
oh noooooo
matrixise has quit [Ping timeout: 255 seconds]
JohnBat26 has quit [Ping timeout: 240 seconds]
<symeog>
it means it doesn't work ?????
<pmros>
try pry
cantonic has quit [Quit: cantonic]
<pmros>
pry has an autocompleter too
<symeog>
it still enters the prompt though
<pmros>
yes
<symeog>
before i exit can u give something to write to see if ac works ?
somazero has joined #ruby
<pmros>
try it
<symeog>
i ll try that in pry too..but pls gimme a line of code to test
uuair has quit [Ping timeout: 244 seconds]
uuair_ is now known as uuair
<pmros>
puts 'hello'
<symeog>
ok sec
<symeog>
no ac in ripl
<symeog>
i l ltry pry now
<pmros>
ok
<symeog>
still no luck
<symeog>
am i doing something wrong maybe ?
<symeog>
i write put then control space right ?
Eldariof40-ru has joined #ruby
<pmros>
tab
<symeog>
ohh yes it works with tab lol
<symeog>
rill works too
<pmros>
great!
<symeog>
so i guess we have that out of the way
<symeog>
i have another question
<pmros>
say
<pmros>
tell me
<symeog>
why in editors we put !#usr/bin/env ruby as a beginning line ? is that mandatory ?>
Eldariof40-ru has quit [Client Quit]
hsbt has quit [Ping timeout: 248 seconds]
<pmros>
oh
<pmros>
is that is the first line
Eldariof40-ru has joined #ruby
Eldariof40-ru has quit [Remote host closed the connection]
<pmros>
you can run script like any other program
Eldariof40-ru has joined #ruby
<pmros>
otherwise you have to type "ruby <script.rb>"
<hikimonk>
google shebang
<symeog>
yes…how can it be run without ruby in front ?
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<symeog>
just script.rb ?
<pmros>
./script.rb
<hikimonk>
just ./script.rb
<pmros>
if script,tb is executable
<symeog>
ohh script running..i see !!!
Eldariof40-ru has quit [Remote host closed the connection]
eldariof has quit [Remote host closed the connection]
<pmros>
*script.rb
<symeog>
chmod +x script.rb right ?
<hikimonk>
yep
<symeog>
i got it now...
<pmros>
hello, hikimonk
<hikimonk>
hello
<symeog>
hello hikimonk
<pmros>
hikimonk, have you a mac too?
<hikimonk>
linux
<pmros>
you are a good boy
<pmros>
distribution?
<hikimonk>
arch
<pmros>
oh, me too
<hikimonk>
great
<pmros>
I'm really excited
<symeog>
arch is like centos 6 ?
<shevy>
you guys are hilarious :D
<uuair>
i can't install ruby in my osx when i used rvm install 1.9.3
<guardian>
why does ::URI.parse("http://example.com").hierarchical? return true (well I know it's because path returns the empty string and hierarchical? tests again nil and not against empty string) doesn't it look like a bug to you?
eldariof has joined #ruby
<symeog>
if u have lion < u r lucku though
eldariof has quit [Client Quit]
<symeog>
cause ruby still compile with gcc and from mountain lion Xcode tools use clang
deadSnowman has quit [Ping timeout: 244 seconds]
<pmros>
hikimonk, do you hate gui apps?
eldariof has joined #ruby
deadSnowman has joined #ruby
eldariof has quit [Read error: Connection reset by peer]
<symeog>
now i am doing the tutorials in rubymonk.org
<symeog>
after that i ll start building my own app
<hikimonk>
I'm not a big fan of gui
abionic has quit [Read error: Connection reset by peer]
<symeog>
but if i see another problem until then i am installing cents 6 in employer….cool ?
<symeog>
vmplayer*
eldariof has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
<symeog>
i guess cents will play ruby and related gems smoothly right ?
arietis has joined #ruby
<symeog>
pmros: ?
<pmros>
centos?
eldariof has quit [Remote host closed the connection]
<pmros>
why centos?
<symeog>
i heard its the best professional
<symeog>
what else ?
Serial_Killer_C has quit [Remote host closed the connection]
hikimonk has quit [Ping timeout: 244 seconds]
<pmros>
mmmm it seems is very stable
<symeog>
u have a better distro in mind ? what u use ?
<pmros>
but ubuntu is friendlier
<davorb>
what's wrong with clang? work's fine for me.
<symeog>
did u try to install troshka davorb ?
eldariof has joined #ruby
<symeog>
it needs qtbindings gem
<symeog>
and qt
und3f has joined #ruby
Agis__ has quit [Quit: Agis__]
<pmros>
davorb, what os do you use?
<symeog>
i tried to install qt with home-brew and qtbinding and trosha gems…they installed correctly but they trosha doesnt run…can u confirm that to me ?
ephemerian has joined #ruby
cantonic has joined #ruby
hsbt has quit [Ping timeout: 260 seconds]
<symeog>
davorb: answer pls
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<symeog>
pmros: i went to ubuntu page and i saw 12.10
<symeog>
but it says that recommended is 32 bit…why ??? i have 64 bit machine
<pmros>
yes, the last one
guardian has left #ruby [#ruby]
<pmros>
I used ubuntu 64 bits
<pmros>
before I go to arch
<Cool_Fire>
symeog: maybe you're running a 32 bit version now>
<Cool_Fire>
Or 32 bit install of your browser
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<symeog>
i have the new iMac which is 64bit with the mountain lion os
<symeog>
i need ubuntu just for VM
<symeog>
which one is better ? 32 or 64 ?
hikimonk has joined #ruby
<pmros>
64
<pmros>
virtualbox?
<symeog>
ok pmros i start downloading this….i won't loose to try it out in a vm :) nothing to loose but a little time right ?
Eldariof40-ru has quit [Remote host closed the connection]
eldariof has quit [Remote host closed the connection]
<Spooner>
symeog : If you are installing a VM, use something like Lubuntu, not Ubuntu. It is that much more lightweight, so it will run a lot more comfortably.
<symeog>
thanks Spooner
<symeog>
how can i get that ?
uuair has quit [Ping timeout: 268 seconds]
uuair_ is now known as uuair
<Spooner>
I found the full Ubuntu a bit sluggish in a VM.
<Spooner>
There are other lightweight distros, of course. Just I've used lubuntu and it works really well in VirtualBox.
nitti has quit [Ping timeout: 246 seconds]
graft has quit [Ping timeout: 246 seconds]
<symeog>
can i use it in vm player ?
<symeog>
i have virtual box too though
kidoz has joined #ruby
<symeog>
but i don't like oracle haha
<Spooner>
I would imagine you can use any distro in any VM system.
<symeog>
and vm is better anyways
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<symeog>
ok...
Virunga has quit [Remote host closed the connection]
ZubKonst has joined #ruby
Virunga has joined #ruby
<symeog>
can u tell me what settings should i have to work with ruby related programming ? + some db i guess
waydotnet has quit [Quit: Sto andando via]
<symeog>
and maybe rails or similar in the future
<symeog>
512 or 1gb memory ?
<symeog>
10gigs of disk is ok ?
hsbt has joined #ruby
<symeog>
thats all i need to know
<hikimonk>
10gigs is ok
<symeog>
btw i am downloading the 64bit mac distro
<Spooner>
10 gig is more than enough for Lubuntu, at least. Probably just about fine for Ubuntu.
erichmenge has joined #ruby
<symeog>
i ll try Lubuntu for starters
<symeog>
i just want it as my distribution platform to run my ruby code
<symeog>
i ll still develop on my mac of course!!
<Spooner>
symeog : You can alter memory after installation. If you have a quad-core, it is worth giving the VM 2 cores to work with.
makelele has joined #ruby
emacsen has joined #ruby
<symeog>
ok 2 cores then
<symeog>
i have i5
ZubKonst_ has quit [Ping timeout: 272 seconds]
Erfankam has quit [Quit: Leaving.]
hsbt is now known as hsbt_away
reuf has quit [Quit: Leaving]
<emacsen>
I have a (hopefully) simple question... I want to take a code block and apply each of the statements in that code block to an object, ala {foo "bar"} becomes obj.foo("bar") - how can I do that?
hsbt_away is now known as hsbt
linusoleander has joined #ruby
atmosx has quit [Quit: quiting...]
Xeago has quit [Remote host closed the connection]
`brendan has joined #ruby
Xeago has joined #ruby
graft has quit [Ping timeout: 265 seconds]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<Spooner>
emacsen : Just pass the object into the block: block = lambda {|x| x.foo "bar" }; block.call(object)
Virunga has quit [Remote host closed the connection]
eldariof has quit [Remote host closed the connection]
Eldariof40-ru has quit [Remote host closed the connection]
<Spooner>
emacsen : Or you mean in a method - maybe you mean something else?
<emacsen>
Spooner, how do I do that with the "do, end" syntax?
<emacsen>
Spooner, let me pseudo-code what I want up... hold on
<Spooner>
emacsen : {...} is just a synonym for do...end
<Spooner>
def feature(name, &block); obj = FooObj.new(name); obj.instance_eval █ end
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
Eldariof40-ru has joined #ruby
<emacsen>
Spooner, okay. and the containing class, what about it?
<Spooner>
Sorry?
<emacsen>
Spooner, does that function need a class, or can it stay in the method of a file? (sorry I'm a bit of a Ruby newbie)
<emacsen>
module method
<Spooner>
It depends where you want to be able to call #feature.
<emacsen>
Spooner, I want to iterate over several files and load them up like that
<emacsen>
Spooner, basically using this as a DSL
vonsar has joined #ruby
<Spooner>
Well, if your iteration is going on in a class method, then put feature there. If you are not using classes, just put it in the global space.
<emacsen>
Spooner, okay, I think I follow, or, I'll figure it out. I needed instance_eval- thanks
Banistergalaxy has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
<Spooner>
Ask again if you are lost. I don't really have enough information about your overall design to help with the program design ;)
<emacsen>
Spooner, well I appreciate it, I've been going through block tutorials and not getting it. People are asking me to port my code from Python to Ruby, so I am trying to not just make a straight port but use Ruby idioms
<Spooner>
Yep, good idea.
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
colinbm has quit [Quit: colinbm]
graft has quit [Ping timeout: 260 seconds]
TomJ has left #ruby [#ruby]
hsbt has quit [Ping timeout: 256 seconds]
Eldariof40-ru has quit [Remote host closed the connection]
eldariof has quit [Remote host closed the connection]
havenn has joined #ruby
hamed_r has quit [Quit: Leaving]
<uuair>
hi anyone used textmate2?
tk__ has joined #ruby
dv_ has quit [Ping timeout: 246 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
margle has joined #ruby
_md has quit [Quit: Leaving...]
haxrbyte has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<GranMal>
I'm trying to require some gems in a Shoes app … Keep getting initialized constant error Encoding::US:ASCII … Anyone know of a workaround? Using ruby 1.9.3 on OS X
_cheney has quit [Read error: Connection reset by peer]
yxhuvud has quit [Read error: Connection reset by peer]
<GranMal>
Spooner: I've been googling all morning … I realize google is my friend … Just thought I'd ask here also.
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
sertaconay has quit [Ping timeout: 246 seconds]
syskk has quit [Quit: syskk]
syskk has joined #ruby
vitoravelino has quit [Quit: Coyote finally caught me]
Iszak has quit []
uuair_ has joined #ruby
<Spooner>
GranMal : Actually, it is a problem I've had myself (though not with Shoes; it is an OSX issue) and that solution is more elegant than the one I used. Thanks for making me look ;)
Xeago has quit [Remote host closed the connection]
nari_ has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
drago757 has joined #ruby
uuair has quit [Ping timeout: 244 seconds]
uuair_ is now known as uuair
<GranMal>
Spooner: Thanks for making me take a second look too … Seems there is a monkey patch for it … Just wondering if it will have any unwanted side-effects. Giving it a shot anyways. :)
vlad_starkov has joined #ruby
syskk has quit [Read error: Connection reset by peer]
syskk has joined #ruby
syskk has joined #ruby
syskk has quit [Changing host]
mfridh has quit [Ping timeout: 256 seconds]
hikimonk has quit [Quit: Leaving.]
<Spooner>
GranMal : I used something like the second one Jurapong suggests, though you can put that code anywhere before you start requiring gems rather than needing to edit shoes.rb
<_bart>
the world is only functioning partially correct today
nappy has joined #ruby
awc737 has joined #ruby
sertaconay_ has quit [Remote host closed the connection]
frogprince_mac has joined #ruby
haxrbyte has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 246 seconds]
haxrbyte has joined #ruby
ryanlecompte has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
Vinz_` is now known as Vinz_
haxrbyte has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
nari_ has joined #ruby
GranMal has left #ruby [#ruby]
Takehiro has quit [Remote host closed the connection]
freeayu has quit [Remote host closed the connection]
hsbt has quit [Ping timeout: 256 seconds]
<Spooner>
_bart it has been like that for a few days. Whole thing is a bit wobbly, not just deps.
minver has joined #ruby
hsbt has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
Takehiro has joined #ruby
<minver>
Dir["/Users/foo/Downloads/hubot 2/*"] does not return anything even if there is files in that folder. Is it because of the whitespace? What chars do I have to escape in a filename? Is there a method for that?
iamjarvo has joined #ruby
<neilco>
You could try escape 'hubot 2' to 'hubot\ 2' to see if that helps. Both should work though.
graft has quit [Ping timeout: 246 seconds]
GranMal has joined #ruby
daniel_-_ has joined #ruby
hsbt has quit [Ping timeout: 255 seconds]
<Spooner>
minver : Spaces don't need to be escaped in Dir#[].
vitoravelino has joined #ruby
vitoravelino has quit [Changing host]
vitoravelino has joined #ruby
kaainaath has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<minver>
Spooner: strange, do you have any idea why it's an empty array then?
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
d2dchat has joined #ruby
Takehiro has quit [Remote host closed the connection]
vonsar has quit [Quit: This computer has gone to sleep]
<Spooner>
Nope.
<Spooner>
It will be an empty array if that path is invalid. Try File.directory? "/Users/foo/Downloads/hubot 2"
ScottNYC has joined #ruby
JohnBat26 has joined #ruby
vlad_starkov has joined #ruby
Vinz_ is now known as Vinz_`
Vinz_` is now known as Vinz_
Vinz_ is now known as Vinz_`
vlad_starkov has quit [Remote host closed the connection]
Takehiro has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
Jellyg00se has joined #ruby
tungd has joined #ruby
d2dchat has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
kaainaath has quit [Remote host closed the connection]
GranMal_ has joined #ruby
dpk is now known as seems
seems is now known as Morus
Morus is now known as dpk
hsbt has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
kaainaath has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
daniel_-_ has quit [Read error: Operation timed out]
<awestroke>
havenn: stable yet?
<love_color_text>
since RAD (ruby arduino development) was abandoned, i am curious to know if mruby can be used to enter microcontroller programming space.
uuair has quit [Remote host closed the connection]
marius has joined #ruby
dnyy has joined #ruby
<love_color_text>
im a rails developer though, i dont really know about low level stuff except making a couple ardunio sketches in C... thats why i brought it up but id idn't know what to ask :)
uuair has joined #ruby
noyb has quit [Ping timeout: 260 seconds]
SegFaultAX|mobi has joined #ruby
soulcake has joined #ruby
icooba has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
irleif has joined #ruby
v0n has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
uuair has quit [Quit: uuair]
<havenn>
awestroke: I haven't actually used it for anything, just played around with mirb. Easy enough to build and try out!: git clone https://github.com/mruby/mruby.git && cd mruby && make && ./bin/mirb
syskk has quit [Read error: Connection reset by peer]
katherinem13 is now known as katherinem13_out
SegFaultAX|mobi has quit [Ping timeout: 260 seconds]
syskk has joined #ruby
aharris6 has joined #ruby
fantazo has joined #ruby
<aharris6>
anyone have a moment to help me get debugger running?
hsbt has quit [Ping timeout: 264 seconds]
kaawee has quit [Ping timeout: 260 seconds]
hsbt has joined #ruby
timonv has quit [Remote host closed the connection]
<_bart>
it's weird because rvm list tells me that =* ruby-1.9.3-p194
slainer68 has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
Elhu has joined #ruby
LouisGB has joined #ruby
<_bart>
hmm restarting terminal worked!
LouisGB has quit [Client Quit]
slainer68 has quit [Ping timeout: 246 seconds]
Sou|cutter has quit [Changing host]
Sou|cutter has joined #ruby
joeycarmello has joined #ruby
dangerousdave has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
Elhu has quit [Client Quit]
symeog has quit [Quit: symeog]
irleif has quit [Quit: Computer has gone to sleep.]
pjb1 has quit [Quit: pjb1]
joeycarmello has quit [Ping timeout: 244 seconds]
love_color_text has quit [Remote host closed the connection]
sheerun has joined #ruby
DarkStar1 has joined #ruby
<aharris6>
An error occurred while installing debugger-linecache (1.1.2), and Bundler cannot continue.
<aharris6>
Make sure that `gem install debugger-linecache -v '1.1.2'` succeeds before bundling.
hmans has joined #ruby
<aharris6>
and then when i run that gem install:
<aharris6>
" You don't have write permissions into the /Library/Ruby/Gems/1.8 directory. "
<DarkStar1>
Hello. How After install/updating ruby on rails I find that, the php based cms sites I'm working on cannot detect the underlying database anymore
<DarkStar1>
Anyone had this problem on osx Lion?
<havenn>
aharris6: Might be you need to: sudo gem install debugger-linecache -v '1.1.2
pjb1 has joined #ruby
love_color_text has joined #ruby
irleif has joined #ruby
<aharris6>
havenn: thanks. this returns a long error.
<aharris6>
Could not create Makefile due to some reason, probably lack of
<aharris6>
*** extconf.rb failed ***
otters has quit [Ping timeout: 245 seconds]
<aharris6>
necessary libraries and/or headers. Check the mkmf.log file for more
<aharris6>
details. You may need configuration options.
<aharris6>
OS X 10.8.1
<havenn>
aharris6: Do you have Xcode with command-line-tools installed?
<aharris6>
I think so, but how can I check?
robustus has joined #ruby
<havenn>
aharris6: Open Xcode < Preferences < Downloads
<Spooner>
aharris6 : Or "which make"
<havenn>
^
<aharris6>
"/usr/bin/make"
<aharris6>
I do not have a "downloads" section in my xcode preferences
symeog has joined #ruby
<havenn>
aharris6: What is your Xcode version (Version 4.5.1 is current(
<aharris6>
3.2.6 :( guess i shall upgrade
<havenn>
aharris6: Assuming you're using homebrew: brew update && brew tap homebrew/dupes && brew install autoconf automake apple-gcc42
<havenn>
aharris6: New Xcode should have Command Line Tools download option =)
<aharris6>
ok I will upgrade right now
IrishGringo has joined #ruby
<symeog>
havenn: can u help me too with mountain lion ?
<Sou|cutter>
xcode breakage has gotten rather annoying
<havenn>
Mmmm, brunch... I'm looking forward to it!
<havenn>
symeog: What's your issue?
<symeog>
i have 1.9.3 p 194 with rails 3.2.8 but some gems fail to install
<Sou|cutter>
I ran into an issue with apple-gcc42 installed and xcode cli installed, and still having broken native gems. I had to create a symlink from /usr/local/bin/gcc-4.2 to /usr/bin
<symeog>
such as troshka that need qtbindings and qt
kaawee has joined #ruby
cakehero has joined #ruby
<symeog>
the funny thing is that they install successfully but they don't play
<Sou|cutter>
really shouldn't need to go through that crap
<symeog>
i really don't care that much about troshka..all i need from u is to tell me how to go back factory settings and then reinstall everything the right way…i have Xcode with command line tools and i installed ruby and rails with rubyinstaller
h4mz1d has joined #ruby
<symeog>
ok i am doing that nboe
<symeog>
now*
<havenn>
symeog: Ahh. I'd highly recommend using RVM, rbenv or rufu. RVM is path of least resistance imho.
methoddk has quit [Ping timeout: 244 seconds]
<havenn>
symeog: Using a ruby version manager now?
otters has joined #ruby
<symeog>
i am new to ruby world..just one day now..so if u can be more detailed i would appreciate :)
<symeog>
i have rubygems too
<symeog>
but as a default i have 1.9.3
<havenn>
symeog: RVM helps install and manage rubies: https://rvm.io/
<symeog>
all in all i have installed everything hahahah
<havenn>
symeog: The install script for RVM is: \curl -L https://get.rvm.io | bash -s stable --ruby
<symeog>
thats what i would like u to help me clean/reset everything back
awestroke has quit [Remote host closed the connection]
niklasb has joined #ruby
v0n has quit [Read error: No route to host]
<havenn>
symeog: I would recommend leaving system ruby in place, install RVM, set default to 1.9.3 or 2.0.0 :)
fduf has joined #ruby
<symeog>
2 ?? is there a 2 ???
methoddk has joined #ruby
<symeog>
what about clang vs gcc ?
<havenn>
symeog: Yes, 2.0.0-dev. Will be released in February on Ruby's 10th birthday.
<Spooner>
2.0 isn't a released version yet.
<symeog>
February is by birthday too !!!!!
<symeog>
my*
<havenn>
symeog: In RVM ruby-head is 2.0.0. Stable is ruby-1.9.3-p286
syskk_ has joined #ruby
syskk_ has quit [Client Quit]
<symeog>
ok so i run the curl above for starters ?
syskk has quit [Ping timeout: 276 seconds]
<havenn>
symeog: Yup, that should get you started!
<symeog>
sudo or not ?
<havenn>
symeog: No. No sudo's at all.
DarkStar1 has left #ruby [#ruby]
<symeog>
ok wait pls.....
<havenn>
symeog: Default rvm install is single user, so you don't use sudo before 'gem install' or anything.
<symeog>
ok havenn i got it..just let me try it pls….
<symeog>
it downloaded ….p286
<symeog>
now what ?
<havenn>
symeog: rvm --default use 1.9.3-p286
<havenn>
symeog: ^ will set your default ruby to the one you just installed (did it compile?)
<havenn>
symeog: Check that you have all requirements installed: rvm requirements
dbeest has joined #ruby
<havenn>
symeog: You can now install other rubies if you want, to see the available ones: rvm list known
<havenn>
symeog: There is a #rvm channel if you hit roadblocks.
somazero has quit [Quit: Leaving]
<dbeest>
Hi, I'm having problems installing ruby19 on freebsd using ports; my version wont change from 1.8.7 even after make deinstall-ing both ruby18 and ruby19
<symeog>
it begins a big text with : Notes for Mac OS X 10.8.2, Xcode 4.5.1.
<symeog>
is that ok ?
<havenn>
symeog: Yes, that is just the wall-of-text as intended >.>
GranMal has quit [Quit: GranMal]
<symeog>
ok it tells me to install libksba with brew
<symeog>
should i do it ?
<havenn>
symeog: Do eet!
<symeog>
ok
fduf has quit [Quit: leaving]
Morkel has joined #ruby
<symeog>
Error: libksba-1.2.0 already installed
<symeog>
correct so far ?
<havenn>
symeog: Yup, all good.
<symeog>
rvm install 1.8.7 # installs patch 357: closest supported version should i do those ?
love_color_text has quit [Remote host closed the connection]
<symeog>
i don't think its relevant,,,'
futilegames has joined #ruby
<havenn>
symeog: You don't really need 1.8.7, it is ooollld
linusoleander has quit [Quit: linusoleander]
<symeog>
ok so i guess i now have to uninstall x code right ?
<havenn>
symeog: The old one?
<symeog>
and then brew cog… ?
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
<symeog>
no the new one
dbeest has left #ruby ["Konversation terminated!"]
<havenn>
symeog: You should be fine leaving it in place.
<symeog>
it says that i have to install the old gcc 42
<symeog>
but uninstall Xcode first
<symeog>
then reinstall it
daniel_-_ has joined #ruby
<havenn>
symeog: >.> Wierd, that might be one to ask #rvm.
<symeog>
read this pls...
<havenn>
symeog: Try compiling a gem, see if you are g2g?: gem install nokogiri
<havenn>
symeog: *a gem with native extensions
<symeog>
Warning: Installing osx-gcc-installer on top of a recent Xcode is known to cause problems, so you must uninstall Xcode before installing osx-gcc-installer. Afterwards you may install Xcode 4.2+ or Command Line Tools for Xcode if you desire.
<symeog>
ok i am doing it now
niklasb has quit [Ping timeout: 268 seconds]
<symeog>
nokogiri installed
<symeog>
should i verify it somehow that it works ?
<havenn>
symeog: Sounds all good to me, if it compiled it should work. :)
ryanlecompte has quit [Remote host closed the connection]
<symeog>
should i run irb and test it ? can u give me a sample code for that ?
<havenn>
symeog: Use pry: gem install pry pry-doc jist
<symeog>
ok should i try install troshka then ?
<symeog>
ok sec
nitti has joined #ruby
kaawee has quit [Ping timeout: 246 seconds]
<havenn>
symeog: troshka *should* install fine now :)
<symeog>
all good with pry too i guess
<havenn>
symeog: Pry is awesome. Just use 'pry' instead of 'irb'
<symeog>
i wil!!!!
<havenn>
symeog: 'pry help' from inside pry for goodies
<symeog>
yes pls show me around
aharris6 has quit [Remote host closed the connection]
linoj has quit [Quit: linoj]
<symeog>
any other hints ?
<havenn>
symeog: E.g., to see the C-code of a Ruby method: show-method Array#sort
<havenn>
symeog: If you install rbx (rvm install rbx-head --1.9) you can use pry with it to look at ruby methods implemented in ruby, which I love
<symeog>
sounds very cool…but how i leave help ? lol
Procore has joined #ruby
<havenn>
q
<symeog>
right !!!
<symeog>
let me install rbi too pls
nitti has quit [Ping timeout: 246 seconds]
i8igmac has joined #ruby
<havenn>
symeog: Check your current ruby with 'rvm current' or 'rvm list', switch rubies with 'rvm use ruby_name_here'. If you want to install a gem on all your rubies: rvm all do gem install gem_name_here
<havenn>
symeog: Well, I'm off to brunch. Happy hacking!
RudyValencia- has quit [Read error: Connection reset by peer]
<symeog>
u r wonderful!
RudyValencia has joined #ruby
<symeog>
thank u !!!
<symeog>
we ll talk later
havenn has quit [Remote host closed the connection]
<i8igmac>
does any one have experience with metasploit framework
<i8igmac>
im sure you could use libs for just about any server/client
<symeog>
ok i8igmac really thank you
<Spooner>
Yes, I know that, but why do you need to know networking with other languages *unless you need to network with other languages*? (there are much better ways to network between Ruby processes than sockets and symeog didn't express any interest in any networking).
<symeog>
actually yeah my first interest is in building database driven applications with ui (client or web)
<i8igmac>
most all my projects are using ruby sockets... its a lot of fun
<Spooner>
symeog : If you are i8igmac, then learn sockets. If you aren't then you probably don't need to ;)
<Spooner>
Not saying never learn them, but they seem a very odd "first thing to learn".
<symeog>
i guess socket programming is no useful for me right now but i know it ll come in handy for sure and i am glad that i know now that ruby has socket programming too like other languages
<i8igmac>
one of my first projects was a remote control, file upload, download and system commands
<symeog>
all hints i want for now though is tell me what persistence should i use for my model ?
<symeog>
that will be my ned step and i am all lost here
<Spooner>
i8igmac: Nothing there needs sockets though. Just the way you chose to implement them ;)
<i8igmac>
true,
levabalkin has joined #ruby
<i8igmac>
no need to rebuild any protocol (im starting to figure this out )
<symeog>
ok lets drop this socket thing for now pls and tell me if u have any suggestions on ruby and db's ?
<symeog>
i was thinking mysql....
<i8igmac>
are you talking about mysql type stuff?
<i8igmac>
client stuff? server stuff?
<symeog>
no i just need persistence for my apps…thats all
<symeog>
server database
<symeog>
not client persistence
`brendan has joined #ruby
Xeago has joined #ruby
<Spooner>
If it is an app (not a web server), then a processless db might make more sense. You are asking a very wide-reaching question that we can't answer.
chrishunt has quit [Quit: WeeChat 0.3.8]
chrishunt has joined #ruby
<symeog>
i need something that is suited easily to a web server too cause maybe my app will be a web app..dont know for sure now
<Spooner>
symeog : Ruby doesn't care which db you use so make whatever choice suits you ;)
<symeog>
doesn't need drivers ?
<Spooner>
If you don't know if your app will be desktop or web, then you probably want to think about it a bit more before deciding on a db.
<symeog>
ok can u tell me at least the most popular choices in ruby world ? i have only mysql on my mind
<Spooner>
For what? There isn't just one "best db".
<symeog>
ok for a database driven web app then !
<waxjar>
i'd suggest some abstraction layer at least, that let's you interact with a bunch of database softwares with the same API
<symeog>
like an ORM ? ok ? can u give me pointers ? tutorials ? refs ? anything ? where do i start ?
futilegames has quit [Quit: futilegames]
lerubik has joined #ruby
jgrevich has joined #ruby
lerubik has quit [Client Quit]
hbpoison has quit [Remote host closed the connection]
<symeog>
i know how to do those things in .net guys..i am just new to ruby world...
lecreme has joined #ruby
<waxjar>
the big ones are DataMapper, ActiveRecord and Sequel. i prefer datamapper
<Spooner>
symeog : data_mapper, sequel or activerecord are the common ORM gems. The latter I woulnd't recommend though.
linusoleander has joined #ruby
<waxjar>
you can define models that you interact with as a regular ruby object, but you can just execute pre-written queries as well
lecreme has quit [Client Quit]
lecreme has joined #ruby
lecreme has quit [Client Quit]
<symeog>
so this way i don't have to write code and search for drivers for specific db right ?
lecrema has joined #ruby
seme has joined #ruby
cakehero has quit [Ping timeout: 255 seconds]
<waxjar>
nope
lecrema has quit [Client Quit]
lecreme has joined #ruby
<waxjar>
well, you have to install a gem that hooks into the ORM you're using, but that's it
<symeog>
all right…i guess i have a starting point then :)
<seme>
hey guys... can anyone help me... I don't know much about security or encryption but I know I don't want to store my passwords in plain text for things like my database connection, etc... is there a way to do this properly?
dagnachewa has joined #ruby
<lecreme>
hi
carlyle has joined #ruby
<seme>
I'm trying to develop a command line app that needs to log in when a user makes a request and then it needs to pass those same credentials for each subsequent request and I don't want the user to have to enter their password again until it times out on the server
<symeog>
i ll look it up waxjar when the time comes…i have to design my model first…..one day in ruby so far ….but i feel very confident though :)
<seme>
any pointers or examples would be greatly appreciated.
Banistergalaxy has quit [Ping timeout: 268 seconds]
<seme>
I'm not sure how to cache it and then reuse it on subsequent calls though...
pjb1 has quit [Quit: pjb1]
d2dchat has quit [Remote host closed the connection]
<waxjar>
if you eventually need the password in plaintext bcrypt isn't an option.
<Spooner>
Yeah, but if it can be decrypted by the program, then it might as well not be encrypted.
cakehero has joined #ruby
dagnachewa has quit [Read error: Connection reset by peer]
<waxjar>
^ indeed
<seme>
well I immagine the user entering the command like... mycommand login ... and then I'll use ncurses or something so they enter their username and password... The program will make web service calls repeatedly and they each need the username and password...
<seme>
so i was thinking to cache it... but the program basically exits between each call
dagnachewa has joined #ruby
Banistergalaxy has joined #ruby
<seme>
I don't like hte approaches I've seen which have people storing passwords in env variables or having to type them on the command line (which stores them in the history)
arturaz has joined #ruby
<waxjar>
there might be a way to access some system-wide password manager (a la keychan on os x), idk anything about that though.
kil0byte has quit [Ping timeout: 256 seconds]
<waxjar>
doesn't the service you're using support oath?
<waxjar>
*oauth
<seme>
it is using oauth2... don't know much about it though
<seme>
does oauth2 already solve this problem?
<waxjar>
partly, it uses tokens that the server gives out
h4mz1d has quit [Ping timeout: 255 seconds]
<waxjar>
if a user gets hacked or something, they can disable that token, so their account isn't accessible anymore
<lecreme>
now user has_secure_password does the trick
jipiboily has quit [Quit: Leaving.]
mars has joined #ruby
mars is now known as Guest82398
khakimov has joined #ruby
symeog has quit [Quit: symeog]
bitri has joined #ruby
Elhu has joined #ruby
Elhu has quit [Client Quit]
SegFaultAX|mobi has joined #ruby
mva3212 has joined #ruby
linuscash has joined #ruby
LucidDreamZzZ has joined #ruby
Banistergalaxy has joined #ruby
symeog has joined #ruby
sepp2k1 has joined #ruby
daniel_- has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
symeog has quit [Client Quit]
h4mz1d has joined #ruby
allsystemsarego has joined #ruby
<Spooner>
lecreme : Yeah, that allows you to verify with a password, but the requirement is to cache that password, so it can be used by the app.
shevy has quit [Ping timeout: 256 seconds]
Nanuq has quit [Ping timeout: 245 seconds]
<allsystemsarego>
Hello! I've been learning some Ruby lately and I wrote a toy program, a text-based StackOverflow simulator, where is a good place to ask for a code review by experienced Rubyists?
<Spooner>
allsystemsarego : Depends how long it is ;) I'd review it, but not if it is 100s of LoC.
<Spooner>
allsystemsarego : I'd put all the data in a yaml file rather than in the code and generate those objects from it.
mmlac has joined #ruby
cakehero has joined #ruby
nitti has quit [Ping timeout: 260 seconds]
tungd has quit [Quit: tungd]
bbttxu has joined #ruby
yakko has joined #ruby
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Disconnected by services]
My_Hearing is now known as Mon_Ouie
My_Hearing has joined #ruby
<Spooner>
All your ifs in your loop do are exclusive, so either use elsif or use a few case expressions. Don't use @ivars in the global scope. You might as well use constants or local variables (or use objects ;) ).
Neomex has quit [Quit: Neomex]
<allsystemsarego>
re: @ivars, that means I would need to call those functions by value instead of by reference
linuscash has quit [Quit: Leaving]
<Spooner>
allsystemsarego : Yeah, so make it all a class. Most of your @ivars are locals anyway (e.g. @prompt_with = "Ask a question:"; puts @prompt_with; @keyboard_input = gets.chomp; use @keyboard_input here)
<Spooner>
Actually, I'll move to PM because I'm bored enough to go into detail ;)
Goles has quit [Read error: Operation timed out]
SegFaultAX|mobi has quit [Ping timeout: 268 seconds]
pjb1 has joined #ruby
robertotauille has quit [Quit: Leaving...]
carlyle has quit [Remote host closed the connection]
pjb1 has quit [Client Quit]
btl has joined #ruby
futilegames has joined #ruby
futilegames has quit [Client Quit]
Zai has joined #ruby
<btl>
i'm getting segmentation faults when running bundler. trying different versions of bundler isn't fixing the issue. could the problem be the specific build/version of ruby i'm using?
yakko has quit [Read error: Connection reset by peer]
jeff_sebring has joined #ruby
yakko has joined #ruby
coffer has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 246 seconds]
hsbt_away has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
love_color_text has quit [Remote host closed the connection]
love_color_text has joined #ruby
havenn has joined #ruby
chimay has quit [Quit: WeeChat 0.4.0-dev]
love_color_text has quit [Ping timeout: 272 seconds]
margle has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 246 seconds]
love_color_text has joined #ruby
fermion has joined #ruby
Vinz_` is now known as Vinz_
<Mon_Ouie>
Checking the C-level backtrace might be more helpfpul
irleif has quit [Quit: Computer has gone to sleep.]
fermion has quit [Client Quit]
<Spooner>
ebragaparah : Sounds like a #rubyonrails question (not a Ruby one).
wallerdev has joined #ruby
h4mz1d has quit [Ping timeout: 272 seconds]
irleif has joined #ruby
robbyoconnor has joined #ruby
CaptainJet has quit []
rboyd has quit [Quit: rboyd]
jbw has joined #ruby
cakehero has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
allsystemsarego has quit [Quit: Leaving]
answer_42 has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
c0rn_ has quit []
Araxia has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
ryanf_ has joined #ruby
nitti has joined #ruby
<btl>
Mon_Ouie: ended up updating ruby. working great now. thanks
ryanf_ has quit [Client Quit]
Takehiro has quit [Read error: Connection reset by peer]
SegFaultAX|mobi has joined #ruby
_md has quit [Quit: Leaving...]
Takehiro has joined #ruby
btl has quit []
nitti has quit [Ping timeout: 256 seconds]
nyuszika7h has quit [Ping timeout: 245 seconds]
Monie has quit [Quit: Quit]
mmlac has quit [Quit: mmlac]
kzrl has quit [Ping timeout: 240 seconds]
medik_ is now known as medik
kzrl has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
Morkel_ has joined #ruby
SegFaultAX|mobi has quit [Ping timeout: 256 seconds]
robbyoconnor has quit [Ping timeout: 246 seconds]
siyusong has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
symeog has joined #ruby
maletor has joined #ruby
tjbiddle has joined #ruby
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
slainer68 has quit [Read error: Connection reset by peer]
h4mz1d has joined #ruby
slainer68 has joined #ruby
piotr_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
piotr__ has quit [Ping timeout: 260 seconds]
dagnachewa has quit [Quit: Leaving]
wallerdev has joined #ruby
siyusong has joined #ruby
c0rn_ has joined #ruby
richwestcoast has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
kaawee has joined #ruby
sertaconay has joined #ruby
el_diablo has joined #ruby
Bosox20051 has joined #ruby
roadt_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<lintsu>
hey could someone help me with installin jruby? i got error message configure: error: C compiler cannot create executables (10.8 snow lion)
Banistergalaxy has joined #ruby
roadt has quit [Ping timeout: 246 seconds]
<lintsu>
i have xcode command line tools installed
siyusong has quit [Quit: Computer has gone to sleep.]
shtirlic has joined #ruby
cbuxton1 has joined #ruby
cbuxton1 has left #ruby [#ruby]
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
<waxjar>
perhaps sudo it?
symeog has quit [Read error: Connection timed out]
_kW has joined #ruby
<twopoint718>
Does anybody know if anyone has done any work on stream fusion in ruby?
_kW is now known as Guest64217
maletor has joined #ruby
<lintsu>
waxjar: I'm using rvm to install
el_diablo has quit [Remote host closed the connection]
irleif has quit [Quit: Computer has gone to sleep.]
c0rn_ has quit []
JonnieCache has quit [Ping timeout: 246 seconds]
kaawee has quit [Ping timeout: 246 seconds]
elico has joined #ruby
love_color_text has quit [Remote host closed the connection]
scx has quit [Read error: Connection reset by peer]
mmlac has joined #ruby
ebragaparah has quit [Ping timeout: 244 seconds]
emmanuelux has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
mahmoudimus has joined #ruby
GranMal has joined #ruby
timonv has joined #ruby
nyuszika7h has joined #ruby
vlad_starkov has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
vlad_starkov has quit [Remote host closed the connection]
Iszak has joined #ruby
love_color_text has joined #ruby
vlad_starkov has joined #ruby
emmanuelux has quit [Max SendQ exceeded]
irleif has joined #ruby
emmanuelux has joined #ruby
<havenn>
Is there an elegant way to sort first by one criteria then by another? Porting Perl6 book to Ruby just cause and can't figure out a good way to sort first by Matches then by Sets: https://gist.github.com/3928203#comments
Guest64217 has quit [Ping timeout: 255 seconds]
<havenn>
Also, any suggestion on setting the initial value of @matches[p] and @sets[p] to 0? Perl6 cheats...
<burgestrand1>
havenn: use the default value for hash for that last one
burgestrand1 is now known as burgestrand
<yxhuvud>
sort_by {|..| [a,b]}
<burgestrand>
havenn: for the second one do that ^
<burgestrand>
first one, rather
Guest64217 has joined #ruby
<havenn>
Mmm, makes sense and makes sense. Thanks, will do!
imami|afk is now known as banseljaj
vlad_starkov has quit [Remote host closed the connection]
roadt_ has quit [Ping timeout: 246 seconds]
<arietis>
how do i check if string equals regexp?
<arietis>
match?
<workmad3>
arietis: strings don't equaly regexps
<workmad3>
arietis: the only match them
<workmad3>
*they
<arietis>
well yeah
<workmad3>
wow, just realised my typing is awful tonight
<arietis>
i has \d\d\/\d\d\/\d\d\d\d regexp
Mon_Ouie has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<arietis>
which method will return me boolean?
<arietis>
if string is matching or no
seme has quit [Ping timeout: 265 seconds]
<havenn>
Updated it, looks much nicer. :)
<workmad3>
arietis: regexp =~ string
<arietis>
what if i want it to be equal to regexp?
<workmad3>
arietis: see above
sertaconay_ has joined #ruby
<arietis>
so if string contains more chars it will be false?
<workmad3>
arietis: depends on the regexp
lkba has quit [Ping timeout: 252 seconds]
sagax has joined #ruby
<workmad3>
arietis: if you want to do an exact match... then do a string comparison
<arietis>
no
monkegjinni has quit [Ping timeout: 255 seconds]
<workmad3>
arietis: otherwise you're looking at pattern matching
cakehero has quit [Quit: Computer has gone to sleep.]
<arietis>
what's syntax of regexp?
<arietis>
"regexp"?
<twopoint718>
arietis: do you mean something like: s = "cat"; m = s.match(/cat/); m[0] == s
sertaconay has quit [Ping timeout: 246 seconds]
<twopoint718>
...i.e. checking that what matched is identical to the string?
<arietis>
i have calendar dates
<arietis>
01/01/1970
<arietis>
i wanna be able to check if it has such format and nothing else
<arietis>
perhaps it's overcomplicated
nitti has joined #ruby
havenn has quit [Remote host closed the connection]
cableray has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
<Spooner>
twopoint718 : Yours doesn't care about the ends of the string.
<arietis>
thanks
lecreme has joined #ruby
<Spooner>
twopoint718 : So "121201/01/19701" will match.
chrishun has joined #ruby
chrishun has quit [Read error: Connection reset by peer]
Guest82398 has quit [Quit: Leaving]
h4mz1d has quit [Ping timeout: 260 seconds]
<twopoint718>
Depends on what you mean, but maybe throw in word boundaries: Regexp.new('\b[0-9]{2}/[0-9]{2}/[0-9]{4}\b')
chrishunt has quit [Read error: Connection reset by peer]
nitti has quit [Ping timeout: 246 seconds]
chrishunt has joined #ruby
lkba has joined #ruby
<Spooner>
arietis : Though if you want to match properly, you should parse it as as a time, otherwise you end up accepting "99/13/1970" too.
<arietis>
Spooner: or i can just define acceptable digits for each char
bluOxigen has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
Bosox20051 has quit [Quit: Leaving]
pac1 has joined #ruby
<twopoint718>
Yeah if you want to be really picky, you could work up some kind of custom state machine.
Vinz_ is now known as Vinz_`
emmanuelux has quit [Quit: emmanuelux]
Guest64217 has quit [Ping timeout: 260 seconds]
<Spooner>
arielpts : Nope, since then you accept "31/02/1970" - it depends if you care if it is actually a date or just something that is numbers and slashes.
<arietis>
true
geargqaewrgaewrg has joined #ruby
<arietis>
wrong name btw
<arietis>
:)
<Spooner>
Poor arielpts ;( sorry.
<twopoint718>
There are things like "If the first digit of the month is a '1' then the second digit can only be a '0', '1', or '2'."
<Spooner>
Yes, but that logic already exists in date parsers, so you don't need to repeat it.
<twopoint718>
:) I hope I wasn't suggesting that.
workmad3 has quit [Ping timeout: 248 seconds]
cableray has quit [Quit: cableray]
<arietis>
so how do i parse date?
<arietis>
if date is invalid i get invalid date exception
havenn has joined #ruby
<Spooner>
date = Date.strptime '01/01/1970', '%d/%m/%Y' (or '%m/%d/%Y' of course, if you are perverse ;)
<arietis>
yeah
jmb_mad has joined #ruby
<arietis>
but what if date is invalid?
<geargqaewrgaewrg>
ruby ide for windows that have good debugger ( at least i need to see stacktrace, inspect varibles on current function stack, step in, step over, step out )
<Spooner>
arietis geargqaewrgaewrg : Actually, rubymine doesn't integrate with a debugger for 1.9 on Windows. Think it does for 1.8.7 though.
<arietis>
i'm using text editor, sorry
xcvd`` has joined #ruby
<arietis>
:)
<Spooner>
Actually, I'll try that again. HAven't checked in a while and it has new versions all the time.
lecreme has joined #ruby
el_diablo has joined #ruby
caleb_io has joined #ruby
sertaconay_ has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
jslowe has quit [Ping timeout: 246 seconds]
<Spooner>
geargqaewrgaewrg : pry (and its many extensions) are quite useful debugging tools, if not quite as nice as a GUI debugger. Oh, yay, Rubymine does support 1.9 debugging now :)
nitti has joined #ruby
<Spooner>
(On windows, I'm talking about).
somazero has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<love_color_text>
three times nicer probably.
<love_color_text>
or n times
<love_color_text>
pry is great, use it!
luckyruby has joined #ruby
caleb_io has quit [Quit: Leaving...]
Banistergalaxy has joined #ruby
rakl has joined #ruby
arturaz has quit [Remote host closed the connection]
khakimov has joined #ruby
Iszak has quit []
erichmenge has quit [Quit: Be back later]
robbyoconnor has joined #ruby
<Spooner>
arietis Actually might as well use (although it accepts "1/1/0" which is a bit dumber than it should be, so maybe better to sanity-check the actual date created instead): def date_is_valid?(date_str) Date.strptime date_str, '%d/%m/%Y'; true; rescue; false; end
Banistergalaxy has quit [Ping timeout: 245 seconds]
<dangerousdave>
i am using a yaml file with my ruby application, i can successfully access the result of "panda: true" with [panda], but how do i access panda if it is in a nested sequence, for example "animal:"
jeff_sebring has quit [Quit: Leaving]
joofsh has joined #ruby
<Spooner>
yaml['animal']['panda']
nitti has quit [Remote host closed the connection]
_md has joined #ruby
<dangerousdave>
Spooner: thanks, i thought i tried that, will try again
<Spooner>
dangerousdave: It is just a nested Hash once parsed, so treat it as such.
blacktulip has quit [Remote host closed the connection]
nitti has joined #ruby
anderse has joined #ruby
<Spooner>
dangerousdave : Use p, pp or ap to print out the actual Ruby data structure if it isn't working how you expect it to.
<dangerousdave>
Spooner: will do, thanks
emmanuelux has joined #ruby
chichou has joined #ruby
_md has quit [Client Quit]
lecreme has quit [Ping timeout: 260 seconds]
lecreme has joined #ruby
dmiller_ has joined #ruby
drago757 has quit [Quit: drago757]
SuperrMann has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
rippa has quit [Ping timeout: 246 seconds]
genshu has joined #ruby
<genshu>
hi
<genshu>
I have an Apache2 running with Virtual Servers and Mod Ruby. I have a file "test.rb" in my www-root. when I hit domain/test.rbx?parameters=value, it works well and I can work with it. Now I want to always implicitly call test.rbx, also calls like domain.com/path/to?parameters=value should be send to test.rbx. How to do this?
chichou has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
teedex has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
kirun has quit [Quit: Client exiting]
jamesaxl has joined #ruby
erichmenge has quit [Quit: Be back later]
jimeh2 has joined #ruby
greenarrow has quit [Quit: IRC is just multiplayer notepad]
IrishGringo has quit [Read error: Operation timed out]
Takehiro has joined #ruby
el_diablo has quit [Remote host closed the connection]
_veer has quit [Quit: Leaving]
jimeh has quit [Ping timeout: 256 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
maletor has quit [Quit: Computer has gone to sleep.]
robertotauille has joined #ruby
yxhuvud has quit [Ping timeout: 276 seconds]
c0rn_ has quit []
tomsthumb has joined #ruby
abbey has joined #ruby
chrishunt has joined #ruby
anderse has quit [Quit: anderse]
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
abbey has left #ruby [#ruby]
emergion has quit [Quit: Computer has gone to sleep.]
caleb_io has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
somazero has quit [Remote host closed the connection]
lushious has quit [Remote host closed the connection]
lushious has joined #ruby
[Neurotic] has joined #ruby
under_my_shoes has quit [Ping timeout: 260 seconds]
nitti has joined #ruby
tomsthumb has quit [Quit: Leaving.]
richwestcoast has quit [Read error: Connection reset by peer]
Jamone has joined #ruby
Jamone has quit [Changing host]
Jamone has joined #ruby
SegFaultAX|mobi has joined #ruby
caleb_io has quit [Quit: Leaving...]
Monie has quit [Ping timeout: 244 seconds]
nitti has quit [Ping timeout: 240 seconds]
Jamone has quit [Ping timeout: 260 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
Monie has joined #ruby
Astral has joined #ruby
Astral is now known as Guest17099
vlad_starkov has joined #ruby
artnez has joined #ruby
Guest17099 is now known as Astral__
SegFaultAX|work has quit [Ping timeout: 268 seconds]
Astral_ has quit [Ping timeout: 268 seconds]
vlad_starkov has quit [Remote host closed the connection]
el_diablo has joined #ruby
vlad_starkov has joined #ruby
apok has joined #ruby
FifthWall has joined #ruby
artnez has quit [Quit: artnez]
vlad_starkov has quit [Remote host closed the connection]
el_diablo has quit [Remote host closed the connection]
cbuxton1 has quit [Quit: Leaving.]
artnez has joined #ruby
teedex has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
tomsthumb has joined #ruby
siyusong has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
atmosx has joined #ruby
Orcris has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
alanp has quit [Read error: Connection reset by peer]
alanp has joined #ruby
Nss has quit [Quit: Sto andando via]
ddd has quit [Read error: Connection reset by peer]
vhd has joined #ruby
mercwithamouth has joined #ruby
robbyoconnor has joined #ruby
rmillerx has joined #ruby
vlad_starkov has joined #ruby
justinmcp has joined #ruby
tomsthumb has quit [Quit: Leaving.]
hakunin_ has joined #ruby
joofsh has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
justinlilly has quit [Ping timeout: 245 seconds]
hakunin has quit [Read error: Connection reset by peer]
justinlilly has joined #ruby
hikimonk has quit [Quit: Leaving.]
chichou has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
banseljaj is now known as imami|afk
tjbiddle has joined #ruby
<vhd>
excuse my poor hack (I dived head first into jekyll and not a ruby/rails person). I have modified a category pagination generator to work with tags here http://pastebin.com/NySAhWB8. I am now trying to adapt it to paginate on certain tags for any page with correct YAML front matter. I get the error "Liquid error: can't convert nil into String" for where the navigation for the pagination would be. Any pointers/help would be great! Thanks
<vhd>
tl;dr - I need help with "Liquid error: can't convert nil into String"
erichmenge has joined #ruby
justinmcp has quit [Remote host closed the connection]
jenrzzz has joined #ruby
SegFaultAX|work has joined #ruby
vonsar has quit [Quit: This computer has gone to sleep]
swarley has joined #ruby
Zai has quit [Quit: Zai]
bapa has joined #ruby
ryanlecompte has joined #ruby
gabrielrotbart has joined #ruby
cousine has joined #ruby
cousine has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
skaczor has joined #ruby
Takehiro has joined #ruby
deryl has joined #ruby
deryl has left #ruby [#ruby]
cbuxton1 has joined #ruby
ddd has joined #ruby
jslowe has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
chussenot has quit [Client Quit]
justinmcp has joined #ruby
und3f has quit [Quit: Leaving.]
h4mz1d has joined #ruby
CaptainJet has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
irleif has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
vonsar has joined #ruby
jmb_mad has quit [Ping timeout: 252 seconds]
rabidpraxis has quit [Remote host closed the connection]
SegFaultAX|work has quit [Ping timeout: 252 seconds]
miphe_ has joined #ruby
ryanlecompte has joined #ruby
Virunga has joined #ruby
Xeago has quit [Remote host closed the connection]
bapa has quit [Read error: Connection reset by peer]
robertotauille has quit [Read error: Connection reset by peer]
bapa has joined #ruby
amacgregor_osx has joined #ruby
<Spooner>
vhd : Well, obviously, Liquid is receiving a nil when it expects a String, but that is rather a lot of code to guess where the error is.
nitti has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
vonsar has quit [Quit: This computer has gone to sleep]
shtirlic has quit [Remote host closed the connection]
kramutils has quit [Quit: Leaving.]
nitti has quit [Ping timeout: 256 seconds]
Artheist has quit [Read error: Connection reset by peer]
luckyruby has joined #ruby
<vhd>
Spooner, thank you. I was being optimistic at best :)
piotr_ has quit [Ping timeout: 256 seconds]
<Spooner>
vhd And a more consistent indentation would be easier to read too. 2-spaces, not a mix of spaces and tabs ;)
GeekOnCoffee has quit [Ping timeout: 244 seconds]
<arietis>
i don't understand how to handle exceptions
<arietis>
i don't wanna define new method
<arietis>
in java there is try catch
<arietis>
what is analog in ruby?
chin-tastic has joined #ruby
<arietis>
and what's the syntax
<Spooner>
arietis : Same here, we just do begin; rescue; end
minver has quit [Quit: Page closed]
GeekOnCoffee has joined #ruby
<Spooner>
arietis You could find all that out just by searching for "ruby exceptions" or reading a book or whatnot. We aren't Google here, you know ;) We can help when you struggle, not before you try to struggle.
Xeago has joined #ruby
<atmosx>
arietis: there are really fine tutorials online did you try any?
<Spooner>
arietis : The method example I gave used the implicit exception block within a method, I think, but you could do it outside of a method if you hate the concept of methods.
<atmosx>
pretty self explainatory.
<atmosx>
try/catch exists in ruby also
<atmosx>
ah no my bad, I was confused by the keywords.. they have a diff meaning in Java.
<Spooner>
But is used for something entirely different (and very rarely in any code), just to irritate newbies ;)
joofsh has joined #ruby
<arietis>
yeah, works
<arietis>
thanks
FifthWall has quit [Quit: Zzzzzzzzzzzzz]
tpe11etier_ has joined #ruby
rabidpraxis has joined #ruby
dmiller_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<swarley>
try catch has its place, i could think of an application for it in my library if i were doing it in ruby
rmillerx has quit [Quit: rmillerx]
<swarley>
but it would not be used the same was as the general convention at all
<Spooner>
The only application I can think of is multi-breaking.
slainer68 has quit [Remote host closed the connection]
nari_ has joined #ruby
<swarley>
Spooner; well how i would use it would be a fast way to check state. But pry also uses it to check for an end of a valid block of code
swarley has left #ruby ["Leaving"]
<Spooner>
swarley How would it check state?
swarley has joined #ruby
<vhd>
Spooner, http://pastebin.com/sdfEh2De (consistent indents). Do you know where the Liquid data lives in the ruby/rails/jekyll stack?
<Spooner>
vhd Thanks, though I'd already scanned it and decided it could be fubar anywhere.
<Spooner>
swarley : Yeah, but stuff like that has an excuse (pry is trying to hack for the good of Ruby-kind, not just for lazy design :D ).
vlad_starkov has joined #ruby
<swarley>
xD
<swarley>
Well, also like you said, it traverses multiple scopes
levabalkin has quit []
blazes816 has joined #ruby
<Spooner>
vhd I never really liked the idea of Liquid (micro-language in a template). HAML/Slim or even mustache does it better.
robbyoconnor has quit [Ping timeout: 246 seconds]
awc737 has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
jamjam has quit [Ping timeout: 264 seconds]
<vhd>
Spooner, this is all new stuff to me, so far I like the idea of liquid but maybe I might change my mind once I try what you have listed.
h4mz1d has quit [Ping timeout: 256 seconds]
bier has quit [Ping timeout: 248 seconds]
<Spooner>
Well, the one (good) reason (inmy opinion, of course) to use Liquid is that it is safe and can be used to allow you to put a jekyll site on github, but I just use nanoc and upload the generated site to github and I have a lot more joy. And not using Liquid may not magically fix your issue ;)
sakh has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<vhd>
if only things did magically fix themselves :D
<Spooner>
"For this we developed Liquid which allows our customers complete design freedom while maintaining the integrity of our servers." - if you don't need that security, then Liquid is probably a bit limiting.
marienz has quit [Ping timeout: 624 seconds]
<Spooner>
Does anyone use Liquid and love it? Maybe I'm completel in the wrong (as usual!).
<vhd>
It wasnt a design decision really, I was just following some tutorials and just kept going
luckyruby has joined #ruby
<vhd>
but for future stuff id love to try other things.
kil0byte has joined #ruby
<Spooner>
Well, the slim/haml systems can be a revelation, since they do away with all that ugly html (well, sort of) http://slim-lang.com/
blazes816 has quit [Quit: blazes816]
<swarley>
for me, i'm a fan of HAML
maletor has joined #ruby
<Spooner>
They are very similar.
<swarley>
Small nuances
cj3kim has joined #ruby
sertaconay has joined #ruby
mosez has quit [Ping timeout: 246 seconds]
Takehiro has joined #ruby
<vhd>
"the slim/haml systems can be a revelation" - Quite right!
lkba has quit [Ping timeout: 264 seconds]
atmosx has quit [Quit: quiting...]
mahmoudimus has joined #ruby
<swarley>
i like them much more than ERB/Liquid
mahmoudimus has quit [Client Quit]
<Spooner>
What about mustache? It has mustaches! (but then again, so does Liquid).
mosez_ has joined #ruby
<swarley>
never looked at it before, let me look
robertotauille has joined #ruby
<vhd>
is there a good resource that I can bookmark to learn more about these kind of technologies?
<Spooner>
eric However, you probably want to use "opengl --pre" gem, not "ruby-opengl" now.
bier has joined #ruby
<Guest14528>
Ik thats what i use\
miphe_ has quit [Quit: Leaving]
<swarley>
who has two thumbs, an xml library he should be working on, and is curious to know why?
<swarley>
<- this guy
<Guest14528>
So do you know what voxels are? @Spooner
<Spooner>
Guest14528 : I know what voxels are, but before you ask it, Ruby isn't up to making anything like Minecraft ;)
gabrielrotbart has quit [Remote host closed the connection]
<Guest14528>
Ik anyway I started rendering voxels in it but I can't figure out how to render multiple cubes in the shape of a box
drbawb has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
<Spooner>
That isn't really a Ruby question, but an OpenGL one. You just need to apply translations to your cubes.
Virunga has quit [Remote host closed the connection]
<Guest14528>
Yes I know but I don't want to have to copy the same code over and over. I want to make a array which just places the cube in the right xyz
irleif has joined #ruby
<Spooner>
You don't have to. You just have a method that draws a cube and translate before each time you call it.
<Guest14528>
How do I do that?
SegFaultAX|mobi has quit [Ping timeout: 246 seconds]
<Guest14528>
The translate part is the part I don't get
<Guest14528>
I'm making a voxel with GlutSolidCube(1)
<Spooner>
Yeah, but your voxel data should have a cube in it if it wants to draw a cube, so it is your data generation that is at fault, which is really beyond the scope.
<swarley>
the globals
<Guest14528>
glutSolidCube is the cube dude
<Guest14528>
I want to make a cube using individual voxels
<Spooner>
Yeah, this isn't php/perl. '$a' means _global_ varialbe and 'a' means local.
<Guest14528>
o
<Guest14528>
doesn't make a difference
cakehero has quit [Quit: Computer has gone to sleep.]
<swarley>
$var will quickly make your program fail
<Guest14528>
ok changed it
havenn has quit [Remote host closed the connection]
<swarley>
okay question. Why are you doing this in ruby?
<Spooner>
But, we digress, I'm not sure why you are drawing voxels like this. If you know what shape things are, then they aren't really made up of voxels, in which case you might as well just draw a box as a series of planes.
<Chick>
ffd
<Chick>
Sexy
<Chick>
bitch
<Chick>
xe
<Chick>
xe
<Chick>
xe
<Chick>
x
<Chick>
ex
<Chick>
e
<Chick>
xe
<Chick>
xe
<Chick>
x
<Chick>
e
<Chick>
ex
<Chick>
ex
<Chick>
ex
<Chick>
e
<Chick>
xe
<swarley>
:|
<Chick>
e
<Chick>
e
<vhd>
:|
<Chick>
e
<Chick>
ee
<Chick>
ee
<Chick>
e
nari_ has quit [Ping timeout: 260 seconds]
<Chick>
e
<Chick>
e
<Chick>
x
<Chick>
ex
<Chick>
e
<Chick>
x
<Chick>
x
<Chick>
x
<Chick>
f
<Chick>
c
Chick has quit [Excess Flood]
jimeh2 has quit [Ping timeout: 246 seconds]
<swarley>
those moments when you would kill for an op
<Guest14528>
I like ruby thats why, and glutSolidCube is a type of voxel according to some people
Chick has joined #ruby
Chick has quit [Client Quit]
<swarley>
second question. Why are you not indenting your code
<Spooner>
No, it is a cube, but that doesn't make it a voxel.
<Guest14528>
So then what would a voxel code b?
nitti has joined #ruby
<Spooner>
Well, a naive implementation would have a 3D array of values, which told you what was at those positions, say "empty" or "earth" or "cheese" or whatever.
emacsen has quit [Quit: Leaving]
<Guest14528>
Well, then how would I make it in a cube using this way
<swarley>
a ton of iterators
sertaconay has quit [Read error: Connection reset by peer]
<vhd>
oh so a voxel is a unit of space in 3d modelling?
<Spooner>
Well, you'd fill the data with a cube (which may allow you to put pre-made shapes into it), then render the data, rather than what you are doing which is using code to just generate a series of cubes in a particular shape.
<Spooner>
vhd Think of the terrain in Minecraft.
<vhd>
yeah
siyusong has joined #ruby
<Guest14528>
A voxel is a volumized 3d pixel
<Guest14528>
And thats what glutSolidCube is
nitti has quit [Ping timeout: 246 seconds]
<Spooner>
Well, what I'd suggest if you are doing it in the way you are is instead of drawing an empty box, instead think of it as 6 planes. So have #draw_box which calls #draw_plane 6 times.
<Spooner>
As far as I can see there, you will have a diagonal line, which is not very close to being a box.
<Guest14528>
Omg glutSolidCube Is a cube with volume it is a VOXEL
<swarley>
:|
<swarley>
a voxel is a boxel
<swarley>
a box is a cube
cj3kim has quit [Quit: Leaving]
<swarley>
by the transitional property of equality. A voxel is a box
niklasb has quit [Read error: Operation timed out]
<swarley>
All cubes have a volume by the way. The only way around that would be to haev a 2 dimensional object, which would no longer make it a cube
<swarley>
have*
<swarley>
2 dimensional square*
<Spooner>
Yes, I know it is a cube, but you are saying you want to draw a box from voxels, which involves drawing 6 flat surfaces out of voxels (so a 10x10x10 box would be 6 10x10 shapes, well you could use 9x9, I think, since the edges don't need to be drawn twice, but I'm lazy)
<Guest14528>
Ok well just how can I use glutSolidCube to render a cube