drumsrgr8forn8 has quit [Ping timeout: 272 seconds]
aspiers has quit [Ping timeout: 268 seconds]
geggam has quit [Remote host closed the connection]
threesome has quit [Ping timeout: 245 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
rodan- has quit [Remote host closed the connection]
RORgasm has quit [Remote host closed the connection]
rodan- has joined #ruby
hiroyuki has quit [Ping timeout: 268 seconds]
dagnachew has quit [Quit: WeeChat 0.4.2]
ShellFu has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
nfk has quit [Quit: yawn]
pu22l3r has joined #ruby
ssvo_ has joined #ruby
rodan- has quit [Ping timeout: 252 seconds]
hiroyuki_ has quit [Read error: Connection reset by peer]
aspires has quit [Quit: sudo making a sandwich]
ssvo has quit [Ping timeout: 264 seconds]
petey has quit [Ping timeout: 268 seconds]
TheShaun|AFK is now known as TheShaun
rodan- has joined #ruby
tkuchiki has joined #ruby
Mars__ has quit [Read error: Connection reset by peer]
Mars__ has joined #ruby
_maes_ has joined #ruby
volty has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drag00n has joined #ruby
Zeeo has joined #ruby
labrute974 has joined #ruby
justsee has quit [Ping timeout: 260 seconds]
tharindu has joined #ruby
<volty>
hi, how can I generate (a separate) rdoc documentation, in a directory of mine, for all installed files?
mlpinit has joined #ruby
Kricir has quit [Remote host closed the connection]
filipe_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
sergicles has quit [Quit: sergicles]
filipe_ has quit [Client Quit]
<Zeeo>
volty: I don't know
<Zeeo>
good evening good sirs, I have a question for you: calling a method "remove" with an argument produces no changes. argument is a hash, method calls *my_array_of_hashes*.delete(hash)
sergicles has joined #ruby
vlad_starkov has joined #ruby
<Zeeo>
"puts hash" called inside the method puts my hash clean of any brackets, commas, etc
<Zeeo>
method raises no errors
vlad_starkov has quit [Read error: Connection reset by peer]
Guedes0 has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
wildroman2 has quit [Remote host closed the connection]
CaptainJet has joined #ruby
<volty>
check with arr.include?(hash)
aspires has joined #ruby
pu22l3r has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
pu22l3r has joined #ruby
<Zeeo>
volty: false, tho it does!
burlyscudd has quit [Quit: Leaving.]
VTLob has quit [Quit: VTLob]
mengu has quit [Quit: Leaving]
nfk has joined #ruby
danshultz has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
justsee has joined #ruby
danshultz has joined #ruby
freezey has joined #ruby
tomzx_mac has joined #ruby
bootcoder has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 268 seconds]
bootcoder has joined #ruby
mikesplain has joined #ruby
pu22l3r has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Eiam has quit [Ping timeout: 260 seconds]
freezey has quit [Ping timeout: 240 seconds]
danshultz has quit [Ping timeout: 246 seconds]
taternuts has joined #ruby
Lewix has joined #ruby
mikesplain has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
hamakn_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 244 seconds]
hamakn has joined #ruby
freezey has joined #ruby
rodan- has joined #ruby
RastaqWhere has joined #ruby
zz_michael_mbp is now known as michael_mbp
barratt has quit [Quit: Leaving...]
mlpinit has joined #ruby
ravster has left #ruby [#ruby]
alvaro_o has quit [Quit: Ex-Chat]
taternuts has quit []
freezey has quit [Ping timeout: 252 seconds]
hamakn has quit [Ping timeout: 252 seconds]
<shevy>
but haskell is only for the elite
<shevy>
ruby is for the masses!
<shevy>
we are like the roman empire
<shevy>
haskell are the british on an island
<shevy>
damn tea drinkers!
tharindu has joined #ruby
Mars__ has quit [Read error: Connection reset by peer]
falood has joined #ruby
Mars__ has joined #ruby
Kricir has quit [Remote host closed the connection]
RastaqWhere has quit [Ping timeout: 260 seconds]
zz_jrhorn424 is now known as jrhorn424
zz_karupanerura is now known as karupanerura
xk_id has joined #ruby
<shevy>
wow
<shevy>
Hanmac will be happy to see that wxwidgets 3.0 was released
wildroman2 has joined #ruby
nwertman has joined #ruby
tabolario has joined #ruby
iliketurtles has joined #ruby
hamakn has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
mlpinit has quit [Remote host closed the connection]
freezey has joined #ruby
advorak has joined #ruby
wildroman2 has quit [Ping timeout: 244 seconds]
starchild_ has quit [Ping timeout: 244 seconds]
mlpinit has joined #ruby
tharindu has quit [Ping timeout: 246 seconds]
zz_tsykoduk is now known as tsykoduk
jamblack has joined #ruby
danshultz has joined #ruby
CreativeEmbassy has joined #ruby
volty has quit [Quit: Konversation terminated!]
mlpinit has quit [Ping timeout: 268 seconds]
mlpinit has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has quit [Ping timeout: 252 seconds]
atrocitas has quit [Remote host closed the connection]
karupanerura is now known as zz_karupanerura
tharindu has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
c0rn has quit [Ping timeout: 260 seconds]
Tamal_Away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsykoduk is now known as zz_tsykoduk
err_ok has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zz_karupanerura is now known as karupanerura
mmcdaris has quit [Quit: mmcdaris]
mlpinit has quit [Remote host closed the connection]
ner0x has joined #ruby
mmcdaris has joined #ruby
mlpinit has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
phinfonet has quit [Quit: exitiing]
rodan- has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
louism2wash has joined #ruby
rodan-_ has joined #ruby
mikepack_ has quit [Remote host closed the connection]
mmcdaris has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
mlpinit has quit [Ping timeout: 260 seconds]
<louism2wash>
Is a process roughly the same as a thread except that a processes don't share memory with other processes while threads do?
Voodoofish4301 has quit [Quit: Leaving.]
ghostjangles has joined #ruby
<shevy>
hmm seems to be a good definition I think
<shevy>
though
<shevy>
you mean a thread as far as ruby is concerned? or as far as the host is concerned
freezey has quit [Remote host closed the connection]
<louism2wash>
ruby
<louism2wash>
shevy: would a unix os be an example of what you mean by 'host'?
<shevy>
yeah
wallerdev has quit [Quit: wallerdev]
<shevy>
louism2wash in regards to threads on ruby, I believe they are all local and variables are not shared by default or available outside the thread
<shevy>
>> a = Thread.new { raise("die now") }; a.status
<bnagy>
to be honest I think it's going to be pretty hard to pin down a good working definition of threads vs processes that is cross-platform and not easily nitpickable
<Guest2314>
if i was making a new ruby web app, should i use mysql or postgresql (clueless here)
Mars__ has quit [Remote host closed the connection]
<bnagy>
completely depends
<Guest2314>
:/
<bnagy>
first of all you should probably decide if you should be using SQL at all
Mars__ has joined #ruby
<Guest2314>
the data will be relational for this app and i am familiar with basic joins and normalization
<rjhunter>
Guest2314: as much as i like postgres, mysql has a *lot* of tutorials and stuff around so it's easier to find support.
benzrf has joined #ruby
<benzrf>
hi
<bnagy>
ok then if you know SQL then pick whichever DB you like :) The support is more or less equivalent
<shevy>
Guest2314 cool guys use postgre
<benzrf>
is there an existing method to see if an array starts with another array?
<rjhunter>
it's true, cool guys do use pg
<shevy>
benzrf cool idea
maycon_ has joined #ruby
<shevy>
benzrf dont think there is or perhaps ruby core team forgot it
<shevy>
really think noone had the idea before... hmm
bline79_ has quit [Read error: Connection reset by peer]
<shevy>
NoMethodError: undefined method `start_with?' for #<Array:0xb51f2ec>
<shevy>
"Matz mentioned during the 'Questions for Matz' section at RubyConf 2013 that he would like to the train emoji as an alternative to the stabby lambda operator."
<shevy>
wtf is an emoji
<shevy>
is that like a tamgochi on dope?
<shevy>
*tamagochi
<benzrf>
clearly it is requesting the ability to make lamabdas using the train emoji as an operator
<Zeeo>
but it's not really the issue, I just want to know why the argument doesn't work, but only in "delete()"
<shevy>
hissing like a snake
<h0rrorvacui>
benzrf: yep keep it to yourself.
<shevy>
can only be python
<h0rrorvacui>
Its going to be python X
<benzrf>
hue
<h0rrorvacui>
we all know it
banjara has quit [Quit: Leaving.]
<benzrf>
basically i cherrypicked the bits of ruby i like and figured out how I could integrate them into python in a way that i like
<shevy>
Zeeo but you answered your question yourself, did you not?
<shevy>
puts hashs.include?(hash) # returns false
<h0rrorvacui>
python version 666 imo
<shevy>
if it returns false, why do you think .delete() would work?
mudmaster has quit [Ping timeout: 268 seconds]
<shevy>
benzrf you still use explicit self?
<benzrf>
Nahra:
<benzrf>
*nah
vlad_starkov has joined #ruby
<h0rrorvacui>
python is the serpent in the biblical story of Adam and Eve
<benzrf>
sort of
<benzrf>
OH YOUR
<benzrf>
*YOU
<Zeeo>
shevy: indeed, but id does, trust me, and the argument isn't different in any way from the hash stored in the array
jamblack has joined #ruby
<shevy>
Zeeo no that can not be right, I showed you that the code works just fine above, your argument MUST be wrong
<shevy>
Zeeo if you want to debug, do this: at the top of your code
<shevy>
require 'pp'
<benzrf>
shevy: id make variable lookup attribute-based like in Io, then method binding can use a custom locals instead of passing in self, also like io
<benzrf>
:U
<benzrf>
of course that would be slow as FUCK
<shevy>
then inside your method: pp @hash; pp hash
nateberkopec has quit [Quit: Leaving...]
<shevy>
and show the results of those two
zeade has joined #ruby
<shevy>
I am 100% sure that hash is not inside of @hash
<shevy>
btw
<shevy>
Hash#delete wants a string
Mattx has joined #ruby
Targen has quit [Ping timeout: 252 seconds]
<Mattx>
Hi
vlad_starkov has quit [Read error: Connection reset by peer]
<shevy>
so perhaps your "hash" argument is totally wrong in the first place... also write pp @hash.class; pp hash.class and say what these four pp return
<Mattx>
can you think of any way to convert a string like "1010" into an integer, assuming the string is a binary representation of a number?
pu22l3r has quit [Remote host closed the connection]
<shevy>
benzrf speed of computation is not the only important part of speed
<Mattx>
(without looping)
<shevy>
benzrf companies showed that bootstrapping can be important, like using ruby to get started, lateron switch to a faster language
<rjhunter>
Mattx: yup, it's built-in. what have you googled so far?
pu22l3r has joined #ruby
<shevy>
Mattx you just want to treat this string as binary?
<Mattx>
I found some websites that proposes solutions which require .each, rjhunter
<shevy>
for a long time I did not even specify dependencies :\
Zesty has joined #ruby
robonerd has quit [Read error: Connection reset by peer]
<nobitanobi>
:)
ehc has quit [Quit: ehc]
<shevy>
and many years ago, I modified all of ruby core classes to make things more convenient for me, until I realized that, if I am to distribute anything, I'd have to distribute those modifications as well, which kinda sucks
<bnagy>
nobitanobi: a good trick is to look at gems by rubyists who write a lot
<shevy>
lemme count how many methods I added to class String ...
<nobitanobi>
shevy, wow, that's crazy
<bnagy>
not huge projects, just people who have like 50 gems
<nobitanobi>
bnagy, yes, that's why I asked for shevy's github :P
robonerd has joined #ruby
<nobitanobi>
bnagy, or yours would also be great
<nobitanobi>
hehe
<bnagy>
then you can just use their structure as a template
<shevy>
76 method definitions in class String that I added, and about 40 more aliases to that
<bnagy>
I only have one gem
<bnagy>
and a lot of stuff in my github is aaancient, needs removing tbh
<bnagy>
just can't be bothered archiving it :)
<nobitanobi>
:)
<nobitanobi>
it's alright
zz_michael_mbp is now known as michael_mbp
iliketurtles has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
<nobitanobi>
anyway guys, you were really helpful and encouraging
<nobitanobi>
it's always a pleasure to be in this channel
<shevy>
interesting... #rubygems tells me that bundler could be used for installing from github repositories
<shevy>
that would be the first useful thing bundler does, as far as I am concerned... ;)
pranny has joined #ruby
<sevenseacat>
it can
BraddPitt has quit [Read error: Connection reset by peer]
<sevenseacat>
you can also specify which branch of a repo
BraddPitt has joined #ruby
sayan has joined #ruby
<bnagy>
doesn't 'normal' gem do that?
<bnagy>
assuming you have github as a gem source?
<sevenseacat>
i dont know
<bnagy>
or did github kill their gem repo?
Bosox20051 has quit [Quit: Leaving]
xcess_denied has quit []
<shevy>
bnagy yeah I think it was killed
chrisbolton has quit [Quit: chrisbolton]
<shevy>
going to note down that bundler can do this...
Olipro has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Max SendQ exceeded]
lewis has joined #ruby
mjc_ has quit [Quit: No Ping reply in 180 seconds.]
mjc_ has joined #ruby
Martinez has quit [Ping timeout: 260 seconds]
virtualize has joined #ruby
lupine has quit [Ping timeout: 245 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<shevy>
could you try to use https://gist.github.com/ instead and denote what is the ruby code you use right now and what is result?
ewnd9 has joined #ruby
<swarmy>
I have never used that, but I can give it a shot
artm has quit [Ping timeout: 268 seconds]
dkamioka has joined #ruby
atno has quit [Ping timeout: 268 seconds]
rickruby has joined #ruby
xcess_denied has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
<sandeepk>
The return value of a route block determines at least the response body passed on to the HTTP client, or at least the next middleware in the Rack stack. Most commonly, this is a string
kizzx2 has joined #ruby
<sandeepk>
But in your case passing value is something else other than string
<shevy>
from your description there are two major steps where the error could happen (1) when you get the data back from the database, or (2) when you try to feed that into a json
thelorax123 has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
byprdct has joined #ruby
yacks has quit [Quit: Leaving]
dagobah has joined #ruby
kevinykchan has joined #ruby
royalty has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 244 seconds]
zoee has joined #ruby
thelorax123 has joined #ruby
Kricir has joined #ruby
zoee has quit [Client Quit]
<byprdct>
was hoping someone could help me out here in #ruby. I've decided to move many of my static html sites and rails sites to middleman. I've come across one bridge that I've been unable to cross. Currently, the url in a rails app is commonly example.com/segment/ and example.com/segment/other-segment etc. When middleman builds the site it generates the urls with the .html extension leaving me unable to keep the current directory structure which is very important
<byprdct>
to me. I was hoping I could get a reference to an article on how to implement this or if it's not a huge time killer to implement something like this, possible a helping hand from someone more experienced in rails/ruby than I.
yfeldblum has joined #ruby
zoee has joined #ruby
ewnd9 has joined #ruby
andikr has joined #ruby
LarsSmit has joined #ruby
banjara has quit [Quit: Leaving.]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
varfoo has quit [Ping timeout: 240 seconds]
vince_prignano has joined #ruby
krz has quit [Ping timeout: 244 seconds]
amritanshu_RnD has joined #ruby
Mars___ has quit [Remote host closed the connection]
Mars___ has joined #ruby
nonamehero has joined #ruby
Guest89003 is now known as fred
bronson has quit [Quit: bronson]
fred has quit [Changing host]
fred has joined #ruby
camilasan has joined #ruby
noname001__ has joined #ruby
Astralum has joined #ruby
pranny has quit [Quit: Leaving.]
Mars___ has quit [Ping timeout: 240 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
Elhu has quit [Quit: Computer has gone to sleep.]
xcess_denied has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
sandeepk has joined #ruby
fgo has quit [Remote host closed the connection]
fgo has joined #ruby
jhaals has joined #ruby
gustavo__ has joined #ruby
strax has quit [Quit: Connection closed for inactivity]
camilasan has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Max SendQ exceeded]
Mars___ has joined #ruby
datapolitical has quit [Read error: Connection reset by peer]
adamholt has quit [Ping timeout: 240 seconds]
r0bby_ has joined #ruby
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
Y_Ichiro has quit [Quit: No Ping reply in 180 seconds.]
jbpros has joined #ruby
icedp has joined #ruby
Y_Ichiro has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
psyl0n has joined #ruby
rhys has quit [Quit: No Ping reply in 180 seconds.]
jmeeuwen has joined #ruby
dhruvasagar has joined #ruby
dnyy has quit []
icedp is now known as Guest13269
rhys has joined #ruby
adamholt has joined #ruby
aagdbl0 has quit [Quit: This computer has gone to sleep]
sayan has joined #ruby
rrichardsr3 has joined #ruby
PhilK has joined #ruby
Martinez has joined #ruby
varfoo has joined #ruby
psyl0n has quit [Quit: psyl0n]
h_kon has joined #ruby
nhhagen has quit [Read error: Operation timed out]
marcgg has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
marcgg has joined #ruby
rrichardsr3 has quit [Client Quit]
weszlem has joined #ruby
huttan has joined #ruby
tonni has quit [Remote host closed the connection]
zigomir has joined #ruby
_Andres has joined #ruby
merickel has quit [Remote host closed the connection]
tonni has joined #ruby
<gustavo__>
anyone alive in here?
<swarmy>
yupyup
<gustavo__>
so i'm having a rather annoying ruby issue
vlad_starkov has joined #ruby
<gustavo__>
i set up chruby on mac 10.9
<gustavo__>
and then installed compass
<gustavo__>
fine
<gustavo__>
but it wont run when i type compass
<gustavo__>
i put ruby in ~/.rubies/
jmimi has joined #ruby
Kneferilis has quit [Quit: Leaving]
parduse has joined #ruby
<havenwood>
gustavo__: Does `gem env` look right? Works on my machine. :P
frerichs has joined #ruby
sandeepk has quit [Quit: Leaving...]
<havenwood>
gustavo__: If you just type `chruby`, the Ruby you want is selected and all?
<gustavo__>
* ruby-2.0.0-p247
<gustavo__>
* ruby-2.0.0-p247
<gustavo__>
i only have one version installed
einarj has joined #ruby
ahawkins has joined #ruby
huttan has quit [Ping timeout: 268 seconds]
<havenwood>
gustavo__: Just to double check, what is your?: command -v ruby
tonni has quit [Ping timeout: 260 seconds]
rurban has quit [Read error: Connection timed out]
jprovazn has joined #ruby
<gustavo__>
/usr/bin/ruby
jimmy_birer has joined #ruby
<gustavo__>
what should it be
rurban has joined #ruby
timonv has quit [Remote host closed the connection]
<jimmy_birer>
hello everyone
<gustavo__>
hello jimmy
timonv has joined #ruby
<jimmy_birer>
how's it going gustavo?
<gustavo__>
it's going
<gustavo__>
i'm trying to diagnose a faulty ruby install
<havenwood>
gustavo__: based on what you've said, i'd have expected: /Users/your_user_name/.rubies/ruby-2.0.0-p247/bin/ruby
<jimmy_birer>
at least the gears are grinding huh?
<gustavo__>
now it is
<gustavo__>
sorry
<gustavo__>
i was f*ing with it
Xiti has joined #ruby
<gustavo__>
i tried chruby system right before you asked
hiyosi has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gustavo__>
just switched it back, got what you expected
<havenwood>
gustavo__: What is your?: echo $GEM_ROOT
Mars___ has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 260 seconds]
Mars___ has joined #ruby
<gustavo__>
you're gonna hate me
<gustavo__>
i tried it again
<gustavo__>
gem install compass
<gustavo__>
it installed, again
<gustavo__>
and now it works
<havenwood>
:)
<jimmy_birer>
rofl
<jimmy_birer>
really?
<gustavo__>
yup
<gustavo__>
it must have installed when i had system ruby
frerichs has quit [Remote host closed the connection]
<gustavo__>
and then for some reason didn't work even when system ruby is loaded
<gustavo__>
but that's another matter (I think I know why)
<gustavo__>
anyway, i have a second question
apeiros has joined #ruby
<gustavo__>
since most of you are web app developers, and probably have blogs, where do you guys recommend going to find a good avatar?
mrfoto has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aganov has joined #ruby
<sevenseacat>
erm, pick an image you like?
<sevenseacat>
one that means something to you maybe?
scarolan has joined #ruby
jxw1024 has joined #ruby
<gustavo__>
okay, but where's a good place to source such images? (yea, google image search and such)
<tobiasvl>
this is the facebook age. i use a photo of myself.
<sevenseacat>
gustavo__: this is a really strange line of conversation
dangerousdave has joined #ruby
<tobiasvl>
gustavo__: how old are you? did you just discover the social web? :)
<jblack>
maybe it's a setup for "I know! I'll use a python"
soisson has joined #ruby
<sevenseacat>
tobiasvl: you presume everyone has photos of themselves as a facebook avatar :P
<gustavo__>
tobiasvl, i've considered that, but I'm not sure it works with my design
hiyosi has quit [Ping timeout: 272 seconds]
<tobiasvl>
sevenseacat: hehe!
* sevenseacat
has a cat photo as an avatar everywhere
<gustavo__>
i'm at cfn.io
Mars___ has quit [Ping timeout: 272 seconds]
h0rrorvacui has quit [Quit: ZQ]
fella5s has joined #ruby
wildroman has joined #ruby
jhaals has joined #ruby
Kneferilis has joined #ruby
wildroman has quit [Remote host closed the connection]
tonni has joined #ruby
wildroman has joined #ruby
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
sayan has quit [Ping timeout: 240 seconds]
t_p has joined #ruby
tharindu has quit [Quit: Leaving...]
graydot has quit [Quit: graydot]
kizzx2 has quit [Read error: Connection reset by peer]
iliketurtles has quit [Quit: zzzzz…..]
claymore has joined #ruby
wildroman has quit [Ping timeout: 240 seconds]
parduse has quit []
weszlem has quit []
kizzx2 has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
jrhe has joined #ruby
kevinykchan has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
dhruvasagar has joined #ruby
parduse has joined #ruby
graydot has joined #ruby
alup has joined #ruby
Kneferilis has quit [Quit: Leaving]
shvelo has joined #ruby
ezkl has joined #ruby
ezkl has quit [Client Quit]
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
starchild_ has joined #ruby
phinfonet has joined #ruby
gr33n7007h has joined #ruby
phinfonet has quit [Client Quit]
kaspergrubbe has joined #ruby
sandeepk has joined #ruby
wildroman has joined #ruby
tonni has quit [Read error: Connection reset by peer]
jrhe has quit [Quit: jrhe]
<rickruby>
does appending a ? to a method name limit my return to only a boolean value?
<rickruby>
I'm trying to return [true, slope] but only getting true..
<sevenseacat>
no
<sevenseacat>
its just a convention
pranny has joined #ruby
aryaching_ has quit []
<rickruby>
hmm, any idea why my return is only showing up as [true]? :
<apeiros>
rickruby: one of your statements is wrong
<apeiros>
you either defined both methods, or you're not in an instance.
<rickruby>
OH
<rickruby>
I see, I missed that completely
<tobiasvl>
09:53:42 jblack | You should consider setting up a test suite
<tobiasvl>
;)
<rickruby>
I left the old code to show how the refactored code is different, but forgot about that and wondering how I was getting this phantom true return
<apeiros>
do *never* leave old code sitting around.
mengu has quit [Write error: Broken pipe]
<apeiros>
kill it with impunity
JohnBat26 has joined #ruby
starchild_ has quit [Quit: Lämnar]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<apeiros>
I'll rephrase - you should not just "consider" using git. Use git!
eka has quit [Client Quit]
advorak has quit [Quit: Ex-Chat]
<rickruby>
aye aye
blooberr_ has quit [Quit: Connection closed for inactivity]
Kricir has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
dangerousdave has joined #ruby
barratt has joined #ruby
drumusician has joined #ruby
sayan has quit [Ping timeout: 252 seconds]
mengu has quit [Ping timeout: 252 seconds]
jrhe has quit [Quit: jrhe]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
hiyosi has joined #ruby
dweeb has joined #ruby
Deele has joined #ruby
tonni has quit [Remote host closed the connection]
tonni has joined #ruby
timonv has quit [Remote host closed the connection]
<mrfoto>
i have a method that fixes some text via some regexes and i have a way to call it without arguments to just get the replacement, but then also an option to call it with block so it yields to you so you can wrap the replacement into something like html tags
<Jadenn>
split will not do what i want without a regex, which i wish to avoid
<tobiasvl>
1. what do you want? 2. why do you wish to avoid regex?
workmad3 has joined #ruby
<Jadenn>
i have content from a database, that i need to shorten to 100 characters. i also add some dots to the end of the paragraph depending on wether there is data in the 2nd key of the array
<Jadenn>
and regex is evil.
amacgregor has quit [Ping timeout: 246 seconds]
<tobiasvl>
3. what exactly do you want to do? 4. why is regex evil? :P
zoee has joined #ruby
<tobiasvl>
that is, what do you want to split the string on?
tonni has quit [Read error: Connection reset by peer]
ekarlso has joined #ruby
<Jadenn>
how should i go about showing page generation time on there? if i only benchmark inside of the layout template the results wont be very accurate. i see no other way to benchmark the entire application and have it display in that template
coderhs has joined #ruby
<tobiasvl>
maybe sinatra has something built in?
<Jadenn>
nothing in the readme
<robonerd>
what's the diff between #ruby and #ruby-lang ?
dangerousdave has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
<Jadenn>
there is nothing time related that i can find with sinatra
<tobiasvl>
robonerd: weeeeeell, #ruby-lang requires nick registration :P
<robonerd>
ahhh
<tobiasvl>
it is also the official channel though
<robonerd>
and 1/3 the size hehe
<tobiasvl>
yeah, probably because of the nick requirement
rurban has quit [Read error: Connection timed out]
rurban has joined #ruby
mengu has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
<workmad3>
Jadenn: write a rack middleware that times the entire call and then inserts the time into the returned HTML
<Jadenn>
hey man, i've only been with ruby for 2 days
shay- has joined #ruby
DaniG2k has joined #ruby
<workmad3>
Jadenn: ;)
<Jadenn>
i really wanted to see if ruby is faster than php >.<
<workmad3>
haha
<robonerd>
i moved from php to ruby back in 2005
Soda has joined #ruby
<Jadenn>
im not really impressed with other benchmarks ive seen
<Jadenn>
ruby is very slow
<Jadenn>
but i have no comparison to php.
<robonerd>
well, ruby isn't about speed. ppl who use ruby use it because they enjoy the lang
<robonerd>
and the many langs
<Jadenn>
wish i would have know that before :P
<hoelzro>
I would say that Ruby is focused on optimizing for dev time rather than CPU time
h_kon has quit [Remote host closed the connection]
<shay->
hey, I am really new to ruby and have to following question: I use fork { Open.popen3(command) do |stdin, stdout, stderr, wait_thr| ..... end to run several commands in parallel. But I want to deal with the I/O seriell, so one command after another can aks for user prompt, but if there is no prompting they should do things in parallel. how can I do this?
<DaniG2k>
guys I'm trying to write a lambda function and store it in a variable but it doesnt seem to work...
<Jadenn>
eh, well. github scales fine with ruby. i should be alright
<hoelzro>
and if you're working with an I/O workload (which most web applications/scripts are), the tradeoff is acceptable
<DaniG2k>
I have rand = ->{ (rand(79)+47).char }
<workmad3>
Jadenn: exactly ;)
<workmad3>
Jadenn: just remember to think in terms of scaling out rather than scaling up
<DaniG2k>
which gets stored in a proc, #<Proc:0x007ff642a04930@(irb):6 (lambda)>
<DaniG2k>
but then I dont know how to call it or anything :X
<DaniG2k>
any advice?
<hoelzro>
DaniG2k: rand.()?
<workmad3>
DaniG2k: .call?
nhhagen has quit [Ping timeout: 246 seconds]
<workmad3>
'how do I call something? should I try .call?' :)
<DaniG2k>
workmad3: if I do call I get NoMethodError: undefined method `char' for 66:Fixnum
<workmad3>
DaniG2k: right
<workmad3>
DaniG2k: which, if you look, is because the proc got called
<DaniG2k>
lol
<workmad3>
DaniG2k: but numbers don't have a char method
nhhagen has joined #ruby
<DaniG2k>
workmad3: but doing (rand(79)+47).char works fine
<workmad3>
DaniG2k: or even '("a".."z").to_a.sample'
havenwood has joined #ruby
<workmad3>
(I'm aware that isn't the complete range you had available in that last example... but highlights the sample method for getting a random entry from an array :) )
<DaniG2k>
workmad3: thats only characters
<jrobeson>
workmad3 sames the goods
<DaniG2k>
alphabetical
<jrobeson>
samples*
havenn has joined #ruby
tonni has joined #ruby
<workmad3>
DaniG2k: btw, that's a pretty odd selection you have there anyway ;)
<workmad3>
DaniG2k: O to ~
JeanMertz has quit [Remote host closed the connection]
jhaals has joined #ruby
<workmad3>
DaniG2k: [*"A".."~"].sample may be to your liking ;)
havenwood has quit [Ping timeout: 245 seconds]
<workmad3>
DaniG2k: as long as you're not using this for real password generation anyway...
eka has joined #ruby
<DaniG2k>
workmad3: there are no numbers there
<DaniG2k>
:S
<workmad3>
DaniG2k: there weren't in your original
zoee has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Remote host closed the connection]
nomenkun has joined #ruby
<DaniG2k>
workmad3: what's that * at the beginning for?
<workmad3>
DaniG2k: splats the range into the array
<DaniG2k>
cool
jhaals has joined #ruby
camilasan has joined #ruby
platypine has quit [Ping timeout: 245 seconds]
includex has joined #ruby
h_kon has joined #ruby
newton has joined #ruby
<shevy>
DaniG2k it's ruby's way to kill a fly on the screen
<shevy>
*
<shevy>
*
<shevy>
see?
<shevy>
all flies on the screen captured in code
pranny has quit [Quit: Leaving.]
olivier_bK has quit [Quit: Quitte]
ldnunes has joined #ruby
olivier_bK has joined #ruby
funburn has quit [Quit: funburn]
Moosya has joined #ruby
<DaniG2k>
hh
<DaniG2k>
haha
lyanchih has joined #ruby
Moosya has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
gstamp has quit [Ping timeout: 256 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gstamp has joined #ruby
mengu has quit [Read error: Connection reset by peer]
Elhu has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
sepp2k has joined #ruby
skaflem has joined #ruby
jb41 has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Moosya has joined #ruby
Moosya has quit [Remote host closed the connection]
<shay->
hey, I am really new to ruby and have to following question: I use fork { Open.popen3(command) do |stdin, stdout, stderr, wait_thr| ..... end to run several commands in parallel. But I want to deal with the I/O seriell, so one command after another can aks for user prompt, but if there is no prompting they should do things in parallel. how can I do this?
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
Moosya has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
ohcibi has joined #ruby
hiyosi has joined #ruby
srji has joined #ruby
nism-pi has joined #ruby
Jetchisel has quit [Read error: Connection reset by peer]
guilleiguaran_ has quit [Quit: Connection closed for inactivity]
workmad3 has quit [Quit: leaving]
Moosya has quit [Remote host closed the connection]
Jetchisel has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
hiyosi has quit [Ping timeout: 246 seconds]
boboc has joined #ruby
zoee has joined #ruby
jb41 has quit [Ping timeout: 260 seconds]
tomasso has joined #ruby
pranny has joined #ruby
weszlem has quit []
pranny has quit [Client Quit]
lyanchih has quit [Ping timeout: 246 seconds]
soba has quit [Ping timeout: 260 seconds]
jbpros has quit [Quit: jbpros]
<Jadenn>
alright, so i have the basic querying down. how the heck do i do table joins with activerecord?
tomasso has quit [Remote host closed the connection]
<Jadenn>
ooo it supports joins
Moosya has joined #ruby
havenwood has joined #ruby
<DouweM>
it does! also, #RubyOnRails may be more appropriate for ActiveRecord-related questions
havenwood has quit [Ping timeout: 252 seconds]
<Jadenn>
im not using rails :S
Al__ has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
<DouweM>
AR is still part of the Rails family, so they may be able to help you bettet
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
nfk has quit [Quit: yawn]
Kricir has joined #ruby
carif has joined #ruby
vlad_starkov has joined #ruby
hogeo has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
echevemaster has quit [Ping timeout: 264 seconds]
DaniG2k has quit [Quit: leaving]
ckinni has joined #ruby
jbpros has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
iamjarvo_ has joined #ruby
Beoran__ has joined #ruby
shvelo has joined #ruby
ckinni has quit [Client Quit]
khushildep has joined #ruby
mixel has joined #ruby
graydot has quit [Quit: graydot]
falood has quit [Remote host closed the connection]
allsystemsarego has joined #ruby
falood has joined #ruby
Guest13269 has quit [Quit: _]
icedp has joined #ruby
Beoran_ has quit [Ping timeout: 272 seconds]
zipper_ has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
danguita has joined #ruby
<shay->
hey, I am really new to ruby and have to following question: I use fork { Open.popen3(command) do |stdin, stdout, stderr, wait_thr| ..... end to run several commands in parallel. But I want to deal with the I/O seriell, so one command after another can aks for user prompt, but if there is no prompting they should do things in parallel. how can I do this?
tharindu has quit [Quit: Leaving...]
kevinykchan has joined #ruby
zipper_ has joined #ruby
<apeiros>
shay-: you can't have it both
<apeiros>
either it's parallel or it's not parallel.
falood has quit [Ping timeout: 246 seconds]
<apeiros>
you could "wrap" stdin/stdout of the commands and try it that way
<apeiros>
but I would wonder if you'd manage to pull that off without a convoluted mess.
<shay->
apeiros: Could it work to have one stream for stdout and one for each process for stdin?
<apeiros>
shay-: which all forks access in parallel?
Psi|4ward has joined #ruby
<apeiros>
have fun with the mess that will produce
ckinni has joined #ruby
<apeiros>
which process writes when? which process reads when?
drumusician has quit [Ping timeout: 268 seconds]
<apeiros>
in short: no
drumusician has joined #ruby
xk_id has joined #ruby
<shay->
apeiros: i have two cases: 1) fork process outputs a line (like "Starting execution") 2) fork process outputs a line with a question mark and then waits for input
ckinni has quit [Client Quit]
<shay->
and in the main program I want to read all the output and print it and if there is a question mark in it read input from user and pass it to the process and then manage the next line
<shay->
but from all fork processes so they have to queue on output
iamjarvo_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
Mattx has quit [Quit: Leaving]
r0bby_ has quit [Excess Flood]
mlpinit has joined #ruby
r0bby_ has joined #ruby
prsn has joined #ruby
carif has quit [Quit: Ex-Chat]
lewis has quit [Remote host closed the connection]
<tobiasvl>
i'm not sure i follow. what actually happens?
<lessless>
ArgumentError: wrong number of arguments (0 for 1)
<lessless>
from /home/lessless/projects/seotool/app/models/marketing/summary_chart.rb:30:in `isolate_visits_and_transactions'
CreativeEmbassy has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
kcombs has joined #ruby
bugwish has joined #ruby
<canton7>
you missed yourself a colo
<canton7>
*colon
einarj has quit [Ping timeout: 252 seconds]
<tobiasvl>
ah, yes you did
<lessless>
tobiasvl, nothing is passed to the isolate_visits_and_transactions
<lessless>
nope, folks, colon is the other case ;)
dhruvasagar has joined #ruby
hamed_r has joined #ruby
<lessless>
NoMethodError: undefined method `isolate_visits_and_transactions' for #<Google::APIClient::Result:0x00000006e46eb0>
<lessless>
with colon
<tobiasvl>
lessless: till next time, please paste the entire code or explain exactly what happens. there's no line 30 in the code you gave us.
serp` has quit [Quit: serp`]
danguita has quit [Ping timeout: 264 seconds]
SeySayux has quit [Ping timeout: 264 seconds]
flops has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<lessless>
raw_data.map(&:isolate_visits_and_transactions) is raw_data.map { |data| data.isolate_visits_and_transactions }
ananthakumaran has joined #ruby
SeySayux has joined #ruby
d45h has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
Moosya has joined #ruby
danguita has joined #ruby
typicalbender has joined #ruby
vlad_starkov has joined #ruby
fysaen has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
dkamioka has joined #ruby
duggiefresh has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
allaire has quit []
Moosya has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 240 seconds]
jgoss has joined #ruby
geekbri has joined #ruby
ananthakumaran has quit [Ping timeout: 245 seconds]
sayan has joined #ruby
n4dir has joined #ruby
n4dir has left #ruby [#ruby]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
coderhs has joined #ruby
ananthakumaran has joined #ruby
ffranz has joined #ruby
duggiefresh has quit [Client Quit]
IcyDragon has joined #ruby
dekz has quit [Quit: Connection closed for inactivity]
tharindu has joined #ruby
duggiefresh has joined #ruby
nateberkopec has quit [Quit: Leaving...]
IceDragon has quit [Ping timeout: 264 seconds]
kindjal has joined #ruby
pskosinski has joined #ruby
Speed has joined #ruby
coca_rails has joined #ruby
noop has quit [Ping timeout: 260 seconds]
Roa has quit [Quit: Lost terminal]
tannerburson has joined #ruby
tharindu has quit [Ping timeout: 240 seconds]
bugwish has quit [Remote host closed the connection]
Xeago_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrThePlague has joined #ruby
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
johnnyfuchs has joined #ruby
h_kon has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
xk_id has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ehc has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
kobain has joined #ruby
braoru has quit [Remote host closed the connection]
rudisimo has joined #ruby
hiroyuki has quit [Remote host closed the connection]
daxroc has joined #ruby
<daxroc>
Afternoon all
hiroyuki has joined #ruby
marr has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
cody-- has joined #ruby
xcess_denied has joined #ruby
<daxroc>
New to ruby so bare with me :D I'm using the ternary operator to do a single check on a variable and set true false on the result. it's result = true ? (varString.include? "abc") : false
xk_id has quit [Ping timeout: 245 seconds]
dawkirst has quit [Ping timeout: 272 seconds]
<canton7>
so the synatx is condition ? valueIfTrue : valueIfFalse
<canton7>
but you might as well do result = varString.include?("abc") here
<daxroc>
So i have it backwards
<daxroc>
canton7: oversimplified the example
<canton7>
well kinda inside out :P
<canton7>
that's the python order - trueValue if condition else falseValue
RaCx has joined #ruby
<daxroc>
:)
drumsrgr8forn8 has joined #ruby
Kricir has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
<daxroc>
yeah it's happening a lot writing a mash of ruby+python
<apeiros>
canton7: lolwut?
jgoss has left #ruby [#ruby]
<apeiros>
canton7: so python decided to have ternary but change the order relative to about all and every other language?
<canton7>
well it's kinda an abuse of an if statement, rather than a proper ternary operator
johnnyfuchs has joined #ruby
Desert_eagle has quit [Quit: Leaving]
<sweeper>
abuse unless instead, it's more fun
heath has quit [Ping timeout: 245 seconds]
heath has joined #ruby
Xeago has joined #ruby
nfk has joined #ruby
decoponio has joined #ruby
guilleiguaran_ has joined #ruby
bean has joined #ruby
serp` has joined #ruby
<daxroc>
I guess my issue is that varString is not set sometimes so it doesn't evaluate to true or false
Czupa has joined #ruby
jlast has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
Xeago_ has quit [Ping timeout: 248 seconds]
Monie has joined #ruby
burlyscudd has joined #ruby
wildroma_ has quit [Remote host closed the connection]
nwertman has joined #ruby
coca_rails has quit [Remote host closed the connection]
Xeago_ has joined #ruby
dawkirst has joined #ruby
Variantdataaa has joined #ruby
amritanshu_RnD has quit [Quit: Leaving]
vince_prignano has joined #ruby
Davey has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
jerius has joined #ruby
vince_prignano has joined #ruby
<daxroc>
canton7: How do you handle if the variable is nil or unset ? result = var.include? "str" ? true : false
vince_prignano has quit [Read error: Connection reset by peer]
zoee has quit [Quit: This computer has gone to sleep]
<apeiros>
daxroc: a variable can't be unset in ruby
<daxroc>
*unset is nil sorry
<apeiros>
it can be nil. but that's not the same as unset.
Davey has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 252 seconds]
<apeiros>
nil is falsy
vince_prignano has joined #ruby
<canton7>
you test whether it's nil?
havenwood has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
vince_prignano has joined #ruby
Davey has joined #ruby
coca_rails has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
burlyscudd has quit [Quit: Leaving.]
hogeo has joined #ruby
dawkirst has quit [Ping timeout: 246 seconds]
vince_prignano has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
rippa has joined #ruby
<daxroc>
canton7: more accurate to what I'm trying result = test[:a][:b].include? "abc" ? true : false
vince_prignano has joined #ruby
mary5030 has joined #ruby
workmad3 has joined #ruby
vince_prignano has quit [Read error: Connection reset by peer]
<canton7>
like I say, no need for result = condition ? true : false - it's redundent. Just 'result = condition' is fine
vince_prignano has joined #ruby
nateberkopec has joined #ruby
vince_prignano has quit [Remote host closed the connection]
coca_rails has quit [Ping timeout: 245 seconds]
tobago has joined #ruby
vince_prignano has joined #ruby
<workmad3>
canton7: wat? you mean my 'result = true ? true : false' statements are pointless?
tobago has quit [Changing host]
tobago has joined #ruby
<canton7>
and do you want something like 'result = test[:a] && test[:a][:b] && test[:a][:b].include?("abc")' ?
<workmad3>
canton7: how about 'result = true ? true ? true : false : false'?
zoee has joined #ruby
benwoody has joined #ruby
* daxroc
head explodes
h_kon has quit [Remote host closed the connection]
<canton7>
:)
jjbohn has joined #ruby
axl_ has joined #ruby
tommyvyo_ has quit [Quit: Connection closed for inactivity]
<daxroc>
The error I get is TypeError: no implicit conversion of true into String
<havenwood>
cek: You mean like groups? Or the flag for skipping non-production groups?
peterdecroos has quit [Ping timeout: 244 seconds]
<havenwood>
Solnse: g'morn
<shevy>
Solnse are you using ruby?
shvelo has joined #ruby
timonv has joined #ruby
sayan has joined #ruby
tjad has quit [Read error: Connection reset by peer]
DrShoggoth has quit [Remote host closed the connection]
<Solnse>
I'm trying to write a method that searches an array of numbers for a missing number. I'm trying to write one that is memory efficient, so I'd like to do a divide and conquer type method. I've looked at .bsearch, but I'm not sure how to use it since it only returns true if the upper half of the array is greater than the value I'm looking for. Is there a better ruby method I should look at?
mklappstuhl has quit [Remote host closed the connection]
acrussell has joined #ruby
<Solnse>
shevy: yes :)
xk_id has quit [Ping timeout: 272 seconds]
CorySimmons has quit [Quit: Leaving.]
DrShoggoth has joined #ruby
xk_id has joined #ruby
<havenwood>
Solnse: You want like libc’s bsearch(3) or something other than that?
<havenwood>
Solnse: Just checking that find-any mode isn't what you're looking for. :P
coderhs has joined #ruby
scarolan has quit [Ping timeout: 240 seconds]
mmitchell has joined #ruby
tharindu has joined #ruby
blaxter has quit [Quit: foo]
hogeo has quit [Remote host closed the connection]
<Solnse>
example: array of numbers from 1 - 100, with number 33 missing... I've written a couple using reduce and each (subtracting found values from an expected total value)... I'm thinking an efficient way would be to see if the array length is smaller than the value at that half-way point, which would show that the missing number is below the half-way point... and vice-versa.
hogeo has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
TMM has joined #ruby
<Solnse>
so if I determine the missing half is in the lower half of the array, I can trim the array and throw out the upper half... and repeat.
RaCx has joined #ruby
bahar_ has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
jbpros has quit [Quit: jbpros]
<_br_>
yeah some e.g. quicksort implementation
<havenwood>
Solnse: how bout subtract the sum of the numbers by 5050?
aryaching has joined #ruby
jerius has joined #ruby
<Solnse>
yeah, I did that...
<_br_>
Ruby's #sort does Quicksort imo
<Solnse>
now I'm trying to do a more memory-efficient method.
<havenwood>
or other way around, but i need coffee
<havenwood>
Solnse: ah, gotcha
hogeo has quit [Ping timeout: 244 seconds]
serp` has quit [Quit: serp`]
<daxroc>
canton7: result = test[:a][:b].to_s.includes? "str"
geekbri_ has quit [Remote host closed the connection]
Clooth has joined #ruby
thelorax123 has quit [Remote host closed the connection]
pwh has quit []
<_br_>
Solnse: More memory efficient? Well, then you should stop using Ruby altogether and go back to C level, in my opinion.
geekbri has joined #ruby
sbos99 has joined #ruby
jbpros has joined #ruby
DouweM has joined #ruby
<Solnse>
this is what I have so far... the missing_number_fourth method is currently an infinite loop... but is what I was thinking. https://gist.github.com/anonymous/7433648
crus has quit [Read error: Connection reset by peer]
<DouweM>
including a version like havenwood's would be good
<DouweM>
using a binary search algo for #4 is a good idea
<Solnse>
but how would I know which side of the array to keep?
<DouweM>
Solnse: you're on the right track, you figure it out ;)
<Solnse>
ok :)
yfeldblum has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 240 seconds]
<Solnse>
I had already given up on bsearch, I'll look at it again.
<DouweM>
if you have any practical questions, shoot, but it's your assignment
<havenwood>
Solnse: I prefer `1.upto(100) do` to `(1..100).each do`.
<DouweM>
<3 ranges
<Solnse>
and I'll replace the second one with a detect method.
timonv has quit [Ping timeout: 244 seconds]
<DouweM>
but yeah, Fixnum#upto shows you know your shit
zipper has quit [Quit: leaving]
<havenwood>
Solnse: `.sort!.reverse!` looked a bit odd, why the bang on sort?
kevinykchan has quit [Ping timeout: 246 seconds]
<Solnse>
because it changes the order of the array?
mmitchell has quit [Remote host closed the connection]
<Solnse>
if they are out of order
<havenwood>
Solnse: but `sort.reverse!`
<havenwood>
Solnse: Overall looks good. :)
<DouweM>
drop the bangs, you don't want to sort/reverse in place
mmitchell has joined #ruby
<Solnse>
I see, so convention is on ly to use the rray one to show the preceeding methods will change the array
<havenwood>
Solnse: Line 45 missing a space between params `(0,half)`
kaspergr_ has quit [Ping timeout: 246 seconds]
<DouweM>
also, you don't need to slice the array, you can just use the same array over and over but just use different left and right vars (that start off as 0 and array.length)
<Solnse>
to use the bang only one in a command line, not on each command that changes it. ?
<havenwood>
Solnse: I don't like the newlines after `let` and `describe`.
ExCa|Wrk has quit [Ping timeout: 245 seconds]
<DouweM>
Solnse: you know the difference between the versions with a bang and those without?
<havenwood>
err, before/after*
<Solnse>
yes... one creates a copy of the object, the bang version changes the original object
<shevy>
the bang methods have more sex appeal than the others
<DouweM>
havenwood: that's convention with RSpec
<havenwood>
DouweM: really? then nvm...
<shevy>
the more ! the stronger the bang of the method
* havenwood
takes his Minitest ball and goes home.
TMM has quit [Quit: Ex-Chat]
<shevy>
let your miniballs stay here!
<yjmsf20>
hey guys. I am using a gem that returns a Hashie::Mash. How can I get only the mash given some criteria?
<DouweM>
shevy: lol
RaCx has joined #ruby
<havenwood>
Solnse: nvm the newlines... i disagree but follow convention!
tonni has joined #ruby
<shevy>
what or where from does a Hashie come? that is a gem project?
<yjmsf20>
yes, it's a gem that extends Hash
<shevy>
hmm https://rubygems.org/gems/hashie "Hashie is a small collection of tools that make hashes more powerful. Currently includes Mash (Mocking Hash) and Dash (Discrete Hash)."
<Solnse>
havenwood: so convention states that I should have a newline after the let object?
<havenwood>
when in RSpec do as the RSpeccers... What is one called, RSpecite? RSpecaneers?
<Solnse>
rspecophiles
<DouweM>
Solnse: what specific instance are you asking about?
<DouweM>
havenwood: I don't find it ugly anymore, but that's because I'm used to it
Shidash has quit [Ping timeout: 240 seconds]
<Solnse>
let me refactor my code and look at bsearch again, I'll ask you fine coders for a review again before I submit it :)
<DouweM>
also, I like blank lines
thesheff17 has quit [Ping timeout: 246 seconds]
<havenwood>
I find them upsetting. Think of the children!!
lukec has quit [Quit: lukec]
<havenwood>
Interesting how different yet the same Minitest and RSpec can look. Mmm, bacon.
<DouweM>
Solnse: also, if these are your own test cases, use [*(1..32), *(33..100)] instead of writing the whole arrays
bluOxigen has joined #ruby
baroquebobcat has joined #ruby
jjbohn has quit [Quit: Leaving...]
yjmsf20 has quit [Quit: leaving]
psyl0n has joined #ruby
hogeo has joined #ruby
<havenwood>
^ totally agreed, more concise and much more clear to the reader as well (as long as the spat doesn't explode their head as well as the range).
wallerdev has joined #ruby
<havenwood>
i like that idiom
timonv has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
newbiehacker has joined #ruby
newbiehacker_ has joined #ruby
<Solnse>
DouweM: really?
<Solnse>
ok
Kricir has quit [Read error: Connection reset by peer]
Kabaka has joined #ruby
<DouweM>
and use 34..100, obviously
<Solnse>
I guess that would look cleaner.... so how do I let the edge cases? missing 100, and missing none... well I guess missing none is easy...
petey has joined #ruby
<havenwood>
[*1..99]
mmitchell has joined #ruby
<Solnse>
yeah ok.
<Solnse>
made sense as I was asking it :)
Kricir has joined #ruby
<DouweM>
:)
<havenwood>
or [*1...100] # not as good
<DouweM>
you understand ranges and the splat?
<Solnse>
splat?
<DouweM>
yeah ... is only useful with array lengths and indexes
<DouweM>
* <- splat
<havenwood>
* <- splat
<DouweM>
:D
<Solnse>
I read something earlier about that being a multiplier on ranges?
<Solnse>
resulting in 10000 or something
<Solnse>
so, no :)
<Solnse>
I don't understand splat with ranges yet.
<Solnse>
oooo, that's why some of my results were the actual (1..100) range and no an array...
hogeo has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
srajan has joined #ruby
<DouweM>
"a".."z" is one single Range object that stores the start and end values. the * turns it into an array by iterating over all values from start to end
aganov has quit [Remote host closed the connection]
pierre1 has joined #ruby
DanKnox_away is now known as DanKnox
Voodoofish430 has joined #ruby
RichardBaker has joined #ruby
weszlem has quit []
daxroc has quit [Quit: Leaving.]
<shevy>
ok I admit it...
<shevy>
I understand less when matz speaks japanese than when he does speak english
ewnd9 has quit [Ping timeout: 272 seconds]
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlebrech has quit [Quit: Konversation terminated!]
freezey has quit [Remote host closed the connection]
<Solnse>
is there something wrong with my lets? Now I keep getting an error that I can't call each_with_index on Fixnum, but if I remove .first from my method it returns the whole array. https://gist.github.com/Solnse/7434931
zeade has joined #ruby
freezey has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
<shevy>
lets in ruby!
<shevy>
an unbeliever!!!
Uranio has joined #ruby
<shevy>
burn the Solnse witcher!
<Solnse>
lol
<shevy>
well you must use a fixnum somewhere there
<Solnse>
it's an array of numbers. of course.
theoretick has joined #ruby
kevinykchan has joined #ruby
postmodern has joined #ruby
xcfox has joined #ruby
freezey has quit [Ping timeout: 246 seconds]
i_s has joined #ruby
VTLob has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has joined #ruby
sandeepk1 has left #ruby [#ruby]
luke_ has joined #ruby
luke_ has quit [Client Quit]
sepp2k has joined #ruby
thesheff17_ has joined #ruby
<shevy>
well
<shevy>
I am not sure what your code is but let's try to be logical
<shevy>
you have this
<shevy>
params.each_with_index.first do |index, number|
<shevy>
and .first returns one item, a Fixnum or?
<shevy>
you then assign two variables on that
<shevy>
ah
<shevy>
with the first being the index
<shevy>
and the second the number
<Jadenn>
someone help me... im having php withdrawls >.<
thesheff17 has quit [Disconnected by services]
thesheff17_ is now known as thesheff17
<_br_>
Jadenn: lol :)
<shevy>
actually, does .first really work when combined with .each_with_index Solnse ?
<shevy>
Jadenn really? you miss the beautiful php syntax? the high degree of consistency?
<Jadenn>
i am well aware of the fallacies of php, which is why i moved to ruby.
<mrfoto>
shevy: all caps are reserved for constants, your vars should be lowercase
<Tearan>
my object has an @url that is "foo"
duggiefresh has quit [Ping timeout: 272 seconds]
<shevy>
mrfoto what do you mean with my vars, the above isn't my code
thesheff17 has quit [Ping timeout: 264 seconds]
<Tearan>
I want to turn foo into a string
thelorax123 has joined #ruby
<Tearan>
that is not an object
<shevy>
isn't "foo" already a string?
<Tearan>
well….
<shevy>
a string that is not an object??
<Tearan>
*laughs*
<Tearan>
Ok, that was a bad way top phrase it
<Tearan>
I want to be able to return it as a variable….
Hanmac1 has joined #ruby
tharindu_ has quit [Quit: Leaving...]
<Tearan>
not as an oboject with an attribute that is a string
<shevy>
you mean you want to return the value of the @ivar in question, and not the object. well that is simple, you can use a method, right? like: def foo; @url; end
mary5030_ has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
<shevy>
the object returned from within a class should be: def foo; self; end instead
<shevy>
attr_reader :url would automatically do this: def url; @url; end
<Tearan>
Well, I need to instantiate a class…
mary5030 has joined #ruby
<shevy>
sure, because then you have an object
hogeo has joined #ruby
<Tearan>
*scratches head
<shevy>
when you do this: cat = Cat.new
deception has quit [Quit: Goodbye]
<Tearan>
Hmm…. gist… gist would help
<shevy>
you have a cat object that got its initial data from the class Cat blueprint
olivier_bK has quit [Ping timeout: 240 seconds]
<shevy>
and you want to find out what the colour of the fur is, then your class Cat would have a method
<shevy>
def colour_of_fur; @colour; end
<shevy>
and in subsequent code you can bind a new variable to that: what_is_the_colour = cat.colour_of_fur
<shevy>
so now you have "an attribute as a variable", to use your words :P
krawchyk has quit []
mrpot4to_ has quit [Remote host closed the connection]
MrPot4to has quit [Read error: Connection reset by peer]
<shevy>
benzrf when you create a new language, consolidate one only one way and allow trait sharing
<shevy>
*on only
aspiers has joined #ruby
<benzrf>
personally i enjoy python's semantic
<benzrf>
s
polaco is now known as polaco_zZz
<shevy>
and also
<benzrf>
namely, there are only vars & attrs, not ivars, global vars, class vars, methods, and constants
Targen_ has joined #ruby
<shevy>
when you create a language, don't settle for explicit self
alvaro_o has joined #ruby
timonv has joined #ruby
<benzrf>
python sort of has global vars, but they're just regular ones that are scoped to the file
<shevy>
class vars are useless
Targen has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
<benzrf>
shevy: my ideal language uses Io's variable semantics
MrThePlague has joined #ruby
<benzrf>
python is a close second though
sepp2k has joined #ruby
Mars___ has joined #ruby
benzrf has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
<apeiros>
benzrf: if you ignore globals and class-vars (since IMO you shouldn't use either), you have in ruby: lexical/short-lived variables (local), owned variables (ivars belong to a single object) and namespaced variables (constants)
danguita has quit [Ping timeout: 244 seconds]
<shevy>
he is gone!
<apeiros>
blerp
<Hanmac>
you scared him ;P
mudmaste_ has quit [Quit: Leaving...]
brianpWins has quit [Remote host closed the connection]
mudmaster has joined #ruby
benzrf has joined #ruby
<benzrf>
argh
pierre1 has quit [Quit: Leaving]
<benzrf>
my stupid laptop
<benzrf>
whatd i miss
<apeiros>
benzrf: if you ignore globals and class-vars (since IMO you shouldn't use either), you have in ruby: lexical/short-lived variables (local), owned variables (ivars belong to a single object) and namespaced variables (constants)
Astral_ has quit [Ping timeout: 260 seconds]
<apeiros>
this ^
<Kamuela>
shevy, thanks. There are still certain things in Ruby that make me go X_X
<benzrf>
hmm, fair enough
<apeiros>
those 3 types serve their respective purpose quite well IMO
<benzrf>
don't forget methods though
<benzrf>
because in python those are consolidated into attrs
<apeiros>
they also communicate intent quite well
<apeiros>
methods are entirely distinct from variables
<apeiros>
(in ruby)
<shevy>
Kamuela yeah, I often say ruby is only like 85% or 90% perfect
<benzrf>
exactly
<apeiros>
the only operation a variable supports is assignment
<shevy>
benzrf have you been able to the super long sentence apeiros wrote to you? if you do he promises you schokli
Kricir has quit [Remote host closed the connection]
<shevy>
to *read the super long
<apeiros>
everything else operates on the object referenced by the variable
<benzrf>
i have read all of this
<benzrf>
also what is schokli
<apeiros>
shevy: nobody in switzerland says 'schokli'
<shevy>
benzrf chocolate!
roflmaus has quit [Read error: No route to host]
dkamioka has joined #ruby
lolmaus has joined #ruby
aspires has joined #ruby
<shevy>
apeiros I take my information from the simpsons :(
<apeiros>
the guy there is from tirol or south germany iirc
wald0 has quit [Quit: Lost terminal]
<apeiros>
lederhosen… not swiss :-p
popl has quit [Quit: We must make an idol of our fear, and call it God.]
banghouse2 is now known as banghouse
<benzrf>
my semi-ideal language is
i_s has quit [Remote host closed the connection]
<benzrf>
python, BUT
<benzrf>
- special syntactic support for blocks
Astralum has joined #ruby
<benzrf>
- ruby's everythingisanexpression
i_s has joined #ruby
<benzrf>
- vars work like in Io
<Kamuela>
shevy, haha, that's the first i've ever heard of someone saying a language was wrong. usually it's "you'll get there, keep bleeding, man, you'll understand why it's smarter than you are"
fgo has quit [Remote host closed the connection]
<benzrf>
- a few syntactic sugars i like
<shevy>
benzrf wait what does this mean "vars work like in Io" how is Io different to both python and ruby
zz_tsykoduk is now known as tsykoduk
<benzrf>
in io there are no vars, only slots
banghouse has quit [Remote host closed the connection]
<benzrf>
since all vars are just slots on a locals object, scoping is entirely custom and locals can be manipulated from afar
<shevy>
that's kinda funny what you wrote man
<shevy>
"vars work like in XYZ", next sentence "there are no vars"
<shevy>
:D
<benzrf>
this means that you can do things like non-explicit self without magic
<benzrf>
:p
<benzrf>
well io has virtual vars basically
<apeiros>
benzrf: sounds like javascript
<shevy>
Kamuela well I guess no language can really be perfect. unless perhaps you design it by yourself... but I think not even matz thinks ruby is 100% perfect, because there are things he does not like, like autoload (? i think)
<benzrf>
a little
<benzrf>
maybe javascript with python's syntax and half of its semantics
<benzrf>
:)
<benzrf>
plus some io
aspires has quit [Client Quit]
<apeiros>
I wouldn't want prototype OO, though :)
<benzrf>
whyever not??
<benzrf>
prototypes are amazing man
<shevy>
benzrf, you are beginning to have a really long list
<benzrf>
ha
<apeiros>
they're rather annoying
<benzrf>
how so?
<Kamuela>
shevy, how closely does Ruby development work with Rails? I'm hoping somewhat closely because for me, Rails seems like the exclusive domain of applicability atm
<apeiros>
instantiate to inherit doesn't work well for me
carraroj has quit [Ping timeout: 272 seconds]
<shevy>
Kamuela I started with ruby before rails existed. rails kinda took a lot of the attention away from ruby
<benzrf>
apeiros: but with appropriate sugar, you can use prototypes just like classes
<benzrf>
PLUS the benefits of them
<shevy>
Kamuela, yeah for many others too I guess :( I want to jump back in time...
<apeiros>
benzrf: then why have them at all? :)
<benzrf>
because that way you have both
<benzrf>
you can make them on the fly if you want to, OR treat them like classes
<apeiros>
sometimes less is more
<apeiros>
IMO this is such a case
<Kamuela>
shevy, Ruby was mentioned along with Lisp and Smalltalk when people started pulling out their hipster code penises on forms when I was 11
<Kamuela>
shevy, this is when I only coded in C++ lol
<benzrf>
python's classes actually act like prototypes that have been forced into acting only like classes
i_s has quit [Ping timeout: 272 seconds]
<benzrf>
ish
<apeiros>
benzrf: I actually implemented rubys class system in JS. including include/extend and super
Uranio has quit [Quit: while you reading this, a kitty dies]
aspires has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
<shevy>
Kamuela ruby has an inherent beauty that is sometimes not easy to see
<Kamuela>
shevy, i figured python would be a decent language to learn, but my real goal was to get into making web applications. i dunno, i didn't really like django, and i do like a lot of the things behind rails, so now i play with rubestuh
jbpros has joined #ruby
<benzrf>
apeiros: see, protos are more flexible than classes
<benzrf>
;)
<shevy>
lol
<apeiros>
benzrf: blerp
<benzrf>
for fun I once made a decorator in python that lets you write functions that work like JS' constructors
<apeiros>
benzrf: you could probably implement much of JS' prototype arch with procs in ruby.
<benzrf>
:0
<benzrf>
I really think Io's vars-are-slots works well
<benzrf>
in areas other than speed
Bry8Star{T2 has joined #ruby
<benzrf>
holy shit itd be slow
<benzrf>
:I(
<apeiros>
lvars have the advantage of being very easy to optimize
spider-mario has joined #ruby
mikepack has quit [Remote host closed the connection]
lmickh has quit [Quit: lmickh]
rezzack has joined #ruby
MrThePlague has quit [Remote host closed the connection]
GabrielFiel has joined #ruby
<benzrf>
anyway, vars-are-slots lets you do amazingly magical things
<benzrf>
*magical-looking
polaco_zZz is now known as polaco
robbyoconnor has joined #ruby
scarolan has quit [Ping timeout: 248 seconds]
jhulten has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
benzrf_ has joined #ruby
benzrf has quit [Quit: leaving]
benzrf_ is now known as benzrf
carraroj has joined #ruby
dkamioka has quit [Remote host closed the connection]
coaster has quit [Ping timeout: 272 seconds]
dkamioka has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
brtdv has joined #ruby
<Kamuela>
brb
Kamuela has quit [Quit: Leaving]
vlad_starkov has joined #ruby
Advocation has joined #ruby
Advocation has quit [Client Quit]
kaspergrubbe has joined #ruby
Advocation has joined #ruby
amacgregor has joined #ruby
btanaka has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
benzrf has left #ruby [#ruby]
dkamioka has quit [Ping timeout: 272 seconds]
danguita has joined #ruby
momomomomo has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
hogeo has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
notjohn has quit [Quit: notjohn]
theoretick is now known as theoretick_
theoretick_ is now known as theoretick
danguita has quit [Ping timeout: 248 seconds]
Rollabunna has quit [Remote host closed the connection]
tharindu has joined #ruby
tjbiddle has joined #ruby
newbiehacker_ has quit [Ping timeout: 252 seconds]
hogeo has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
mrfoto has joined #ruby
Guest25236 has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
scarolan has joined #ruby
i_s has joined #ruby
tharindu has quit [Ping timeout: 240 seconds]
tonni has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 260 seconds]
<GabrielFiel>
Anyone here came from PHP programming?
<mrfoto>
o/
tonni has joined #ruby
<GabrielFiel>
mrfoto: did u used the ZF2?
parduse has joined #ruby
mhd has joined #ruby
colonolGron has joined #ruby
ehaliewicz has joined #ruby
stringoO has quit [Quit: stringoO]
<mhd>
how exactly does /\G/ work?
<mrfoto>
GabrielFiel: nope, i was there before all that, we had our own "framework"
parduse is now known as Guest31497
<GabrielFiel>
mrfoto: hmm, i want to know what way should i follow PHP or RAILS
Advocation has quit [Quit: Advocation]
nanoyak has quit [Quit: Computer has gone to sleep.]
SHyx0rmZ has joined #ruby
<mrfoto>
GabrielFiel: just try some plain ruby first and if you like it start digging into other stuff
nomenkun has joined #ruby
FDj_ is now known as FDj
dkamioka has joined #ruby
<shevy>
GabrielFiel yeah I came from php
<GabrielFiel>
mrfoto: nowdays i use ZF2 and its very good, but i have a fews friends wich strat ruby on rails and they it are amizing and ZF2 try to copy that
<shevy>
GabrielFiel I wanted a better language. the two languages I wanted to try were ruby and python. this interview convinced me to ruby: http://www.artima.com/intv/ruby.html
apeiros has quit [Remote host closed the connection]
<GabrielFiel>
shevy: :D
<shevy>
when I picked ruby rails was not available
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<mrfoto>
GabrielFiel: yeah, everyone is copying from rails and/or django. as are they from each other and others. no shame in that. again, if u dont fall in love with ruby theres no point using rails :P
jamblack has quit [Quit: jamblack]
tonni has quit [Ping timeout: 272 seconds]
Guest31497 has quit [Ping timeout: 264 seconds]
<_br_>
frameworks, the cancer spreads everywhere
<havenwood>
GabrielFiel: Ruby is really lovely.
<GabrielFiel>
hmm
tvw has quit []
sambao21 has joined #ruby
i_s has quit [Ping timeout: 246 seconds]
<GabrielFiel>
and what about try to be a programmer of objetive C for mobile?
yfeldblum has quit [Remote host closed the connection]
vince_prignano has joined #ruby
maletor has joined #ruby
ckinni has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<havenwood>
GabrielFiel: Learning Cocoa seems to take as long as Objective-C, but I guess it gives you iOS and OS X prettiness. RubyMotion or MobiRuby are two ways of using Ruby with Cocoa instead of Obj-C with Cocoa.
<GabrielFiel>
mrfoto: thanks, im trying to undesrtand what should i do to have a career
Guest37962 has joined #ruby
Guest37962 is now known as parduse
<havenwood>
GabrielFiel: Learn Ruby and go from there. :P
<mrfoto>
GabrielFiel: thats why i recommended the book
parduse is now known as Guest41504
<mrfoto>
try everything and only when you have a basic understanding of what you like and what you dont
alekst has quit [Quit: Computer has gone to sleep.]
<mrfoto>
only then can you decide what you'd like to get payed for to do
ukd1_ has joined #ruby
<GabrielFiel>
mrfoto: you are correct!
<mrfoto>
we're incredibly lucky working in a field that has such a huge demand for people so we can be picky
gyzmodo has quit []
<GabrielFiel>
mrfoto: php too, but the companys dont pay good
<GabrielFiel>
thanks all
<mrfoto>
look, of course all of us here love ruby, thats why we're here, but that doesn't mean it's perfect for you
<GabrielFiel>
im leaving now
<mrfoto>
you got to find out on your own ;)
jamblack has joined #ruby
<GabrielFiel>
:D
GabrielFiel has quit []
hukendo has joined #ruby
Guest41504 has quit [Remote host closed the connection]
dweeb has quit [Quit: Computer has gone to sleep.]
ukd1 has quit [Ping timeout: 240 seconds]
tannerburson has quit [Quit: tannerburson]
tannerburson has joined #ruby
buscon has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
BizarreCake has quit [Quit: Leaving]
robbyoconnor has joined #ruby
jetblack has quit [Ping timeout: 245 seconds]
dgfdgf has quit [Ping timeout: 246 seconds]
mhd has quit [Quit: Leaving.]
banjara has quit [Quit: Leaving.]
jhulten_ has joined #ruby
jhulten has quit [Read error: Connection reset by peer]
dallasm_ has joined #ruby
banjara has joined #ruby
dallasm_ has quit [Remote host closed the connection]
Guest37962 has joined #ruby
Guest37962 is now known as parduse
Advocation has joined #ruby
dallasm_ has joined #ruby
parduse is now known as Guest76102
coderhs has quit [Ping timeout: 252 seconds]
Guest76102 has quit [Read error: Connection reset by peer]
aef has quit [Ping timeout: 245 seconds]
baordog has joined #ruby
brtdv has quit []
graydot has quit [Quit: graydot]
<Solnse>
I've been working on this method all morning and I can't get the expected behavior... could somebody point me in the right direction please? https://gist.github.com/Solnse/7434931
aef has joined #ruby
<Solnse>
trying to search the array of numbers for a missing number
ldnunes has quit [Quit: Leaving]
<Solnse>
by splitting it in half multiple times until it drills down to the missing number
jhaals has joined #ruby
ukd1_ has quit [Quit: Leaving...]
<swarmy>
why not add all the present numbers up, and subtract it from 5050?
hiyosi has quit [Ping timeout: 246 seconds]
buscon has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
Czupa has quit [Remote host closed the connection]
jprovazn has quit [Quit: Odcházím]
polaco is now known as polaco_zZz
kdizzle has joined #ruby
<Solnse>
I've done that too... I'm trying to accomplish this by dividing the array
kdizzle has left #ruby [#ruby]
banjara has quit [Quit: Leaving.]
iliketurtles has quit [Quit: zzzzz…..]
randomnick_ has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
banjara has joined #ruby
MrZYX|off is now known as MrZYX
mhd has joined #ruby
kindjal has joined #ruby
petey has joined #ruby
ekarlso has quit [Changing host]
ekarlso has joined #ruby
Mars___ has quit [Remote host closed the connection]
typicalbender has quit [Quit: Leaving.]
Advocation has quit [Quit: Advocation]
psyl0n has left #ruby [#ruby]
`MArceLL` has joined #ruby
hackeron has quit [Remote host closed the connection]
Mars__ has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skaflem has quit [Quit: Leaving]
krawchyk_ has joined #ruby
hackeron has joined #ruby
<Solnse>
no ideas? I've tried using bsearch too, but I just can't get it to work.
MrThePlague has joined #ruby
Mars__ has quit [Ping timeout: 240 seconds]
krawchyk has quit [Ping timeout: 240 seconds]
vela has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
vela has quit [Client Quit]
apeiros has joined #ruby
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coaster has joined #ruby
zz_scottstamp is now known as scottstamp
Biohazard has left #ruby ["WeeChat 0.4.3-dev"]
dangerousdave has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
jhulten_ has quit [Remote host closed the connection]
MrThePlague has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Max SendQ exceeded]
scarolan has quit [Ping timeout: 264 seconds]
mr_red has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
<mhd>
Is there a heredoc syntax for regexes?
<swarmy>
Solnse, I don't have other ideas - i generally try to use the most efficient, easiest to understand solution for a given problem
IcyDragon has quit [Ping timeout: 244 seconds]
<apeiros>
mhd: no, but //x will allow you to have whitespace in your regex
<apeiros>
mhd: and %r{} allows for different delimiters
<mhd>
I know
mr_red has joined #ruby
jetblack has joined #ruby
MrThePlague has joined #ruby
funburn has joined #ruby
<Solnse>
swarmy: agreed, I do too, but this is focusing on memory utilization so I want to chop the array down as much as possible.
Banistergalaxy has joined #ruby
tonni has joined #ruby
drakedouay has joined #ruby
AndChat| has quit [Ping timeout: 268 seconds]
scottstamp is now known as zz_scottstamp
<drakedouay>
I have an editable pdf, and I would like to fill in values into this pdf dynamically. Is there a gem for this?
jwest has quit [Quit: WeeChat 0.4.1]
tvw has joined #ruby
<swarmy>
drago777, yes.
<swarmy>
er, drakedouay, yes
phansch has quit [Quit: Leaving]
Guest38072 has joined #ruby
hogeo has joined #ruby
diego1 has joined #ruby
diego1 is now known as diegoviola
leesharma has joined #ruby
RichardBaker has joined #ruby
mikepack has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dkamioka has quit [Remote host closed the connection]
tharindu has joined #ruby
jamblack has quit [Quit: jamblack]
Guest38072 has quit []
dkamioka has joined #ruby
hogeo has quit [Ping timeout: 252 seconds]
jlast has quit [Remote host closed the connection]
d2dchat has joined #ruby
jlast has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
decoponio has quit [Quit: Leaving...]
sambao21 has joined #ruby
sbos99 has quit [Ping timeout: 240 seconds]
leesharma has quit [Quit: leesharma]
robbyoconnor has joined #ruby
Guedes0 has joined #ruby
dangerousdave has joined #ruby
dkamioka has quit [Ping timeout: 240 seconds]
tharindu has quit [Ping timeout: 264 seconds]
lmickh has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
madb055 has quit [Ping timeout: 240 seconds]
MrThePlague has quit [Remote host closed the connection]
<drakedouay>
swarmy: what is it called?
workmad3 has quit [Read error: Operation timed out]
Mars__ has joined #ruby
nanoyak has quit [Ping timeout: 244 seconds]
nism-pi has quit [Ping timeout: 272 seconds]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nobitanobi>
If I have a require './my_module', why I can't access the methods within it by doing MyModule::my_method ?
_Andres has quit [Read error: Connection reset by peer]
Advocation has joined #ruby
yfeldblum has joined #ruby
theoretick has joined #ruby
Kamuela has joined #ruby
nanoyak has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
Dave is now known as Guest90037
drumusician has quit [Ping timeout: 248 seconds]
achru has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
achru has joined #ruby
madb055 has joined #ruby
apeiros has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
apeiros has joined #ruby
Advocation has quit [Ping timeout: 264 seconds]
<shevy>
guys
<shevy>
we need to bring ruby to the new era
<shevy>
nobitanobi what do you mean
<shevy>
nobitanobi what is the error
<Kamuela>
shevy, what do YOU mean
<shevy>
and did you do include Foo
<nobitanobi>
shevy, I asked too early.
<shevy>
nobitanobi otherwise, append "extend self" at the end of your module and see if it works
<shevy>
nobitanobi, btw Foo::bla is so ugly, can't you use Foo.bla instead?
<Kamuela>
I just reinstalled and went to Xubuntu from Ubuntu. So much beauty compared to goonity...
kindjal has quit [Ping timeout: 248 seconds]
<shevy>
omg
<shevy>
ubuntu
<shevy>
Kamuela, does this work: require 'mkmf'
<shevy>
in irb
<Kamuela>
shevy, hang on, i still have to curl rvm and --rails n stawff
mansi_ has quit [Remote host closed the connection]
<shevy>
ah then dont bother
sayan has quit [Ping timeout: 240 seconds]
benwoody has quit [Quit: benwoody]
<shevy>
if you use rvm you wont run into that problem
amacgregor has joined #ruby
<shevy>
I thought you would use the ubuntu default ruby
<Kamuela>
ah i see, well heroku-toolkit uses ruby in the system so i can get ubuntu's ruby also if you like
<shevy>
naaaah
<shevy>
you are already past the "true noobie stage"
achru has quit [Ping timeout: 246 seconds]
<Kamuela>
haha! i should make more money with the amount of illusion i can conjure
nanoyak has quit [Quit: Computer has gone to sleep.]
i_s has joined #ruby
MrThePlague has joined #ruby
mansi_ has joined #ruby
nanoyak has joined #ruby
whunt has quit [Ping timeout: 244 seconds]
iliketurtles has joined #ruby
timonv has quit [Remote host closed the connection]
basmoura has quit [Quit: Computer has gone to sleep.]
colonolGron has quit [Quit: leaving]
timonv has joined #ruby
yalue has quit [Quit: Leaving]
whunt has joined #ruby
mrfoto has quit []
mmitchell has quit [Remote host closed the connection]
MrThePlague has quit [Ping timeout: 264 seconds]
theoretick is now known as theoretick_
zz_scottstamp is now known as scottstamp
mikepack has quit [Remote host closed the connection]
mmitchell has joined #ruby
rudisimo has quit [Quit: Leaving.]
dallasm_ has quit [Remote host closed the connection]
vt102 has joined #ruby
theoretick_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
mikepack has joined #ruby
allsystemsarego_ has joined #ruby
wedgeV has quit [Quit: wedgeV]
butcher has joined #ruby
theoretick has joined #ruby
mmitchell has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
<drakedouay>
I have an editable pdf, and I would like to fill in values into this pdf dynamically. Can someone recommend a gem for this?
hiyosi has joined #ruby
butcher has quit [Client Quit]
<shevy>
drakedouay prawn
basmoura has joined #ruby
mansi_ has quit [Remote host closed the connection]
dallasm_ has joined #ruby
allsystemsarego has quit [Ping timeout: 264 seconds]
mansi_ has joined #ruby
timonv has quit [Remote host closed the connection]
mansi_ has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
timonv has joined #ruby
mansi_ has quit [Remote host closed the connection]
krawchyk_ has quit []
jlast has joined #ruby
mansi_ has joined #ruby
RaCx has quit [Ping timeout: 272 seconds]
freezey_ has quit [Remote host closed the connection]
tharindu has joined #ruby
mmitchell has joined #ruby
freezey has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 246 seconds]
RaCx has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
mansi_ has joined #ruby
allsystemsarego_ has quit [Read error: Connection reset by peer]
jbpros has quit [Quit: jbpros]
allsystemsarego has quit [Client Quit]
capicue has joined #ruby
freezey has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
freezey has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
timonv has quit [Ping timeout: 240 seconds]
Czupa has joined #ruby
<drakedouay>
shevy: will prawn let me fill in the values, or do I need to play battleship to position them?
Kamuela has quit [Quit: Leaving]
thelorax123 has quit [Remote host closed the connection]
dallasm_ has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
tharindu has quit [Ping timeout: 260 seconds]
pu22l3r_ has quit [Read error: Connection reset by peer]
vince_prignano has quit []
thelorax123 has joined #ruby
jbpros has joined #ruby
_Andres has joined #ruby
nisstyre has joined #ruby
Advocation has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
Czupa has quit [Ping timeout: 244 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
carraroj has quit [Quit: Konversation terminated!]
mansi_ has quit [Remote host closed the connection]
tonni has quit [Read error: Connection reset by peer]
jwest has joined #ruby
jhulten has joined #ruby
mansi_ has joined #ruby
zz_jrhorn424 is now known as jrhorn424
jbpros has quit [Quit: jbpros]
eval-in_ has quit [Remote host closed the connection]
vt102 has quit [Ping timeout: 264 seconds]
eval-in has joined #ruby
scarolan has joined #ruby
jlast has quit [Remote host closed the connection]
Advocation has quit [Ping timeout: 240 seconds]
ArchBeOS has quit [Quit: Page closed]
jlast has joined #ruby
vt102 has joined #ruby
mansi__ has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
Guest99667 has joined #ruby
Guest99667 is now known as parduse
Kamuela has joined #ruby
rdalin has quit [Quit: AndroIRC - my Android died]
parduse is now known as Guest95036
sambao21 has joined #ruby
thelorax123 has quit [Remote host closed the connection]
_zxq9_ has joined #ruby
anderse has quit [Quit: anderse]
Guest95036 has quit [Read error: Connection reset by peer]
jlast_ has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
thelorax123 has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<shevy>
drakedouay not sure
<shevy>
drakedouay I actually do not use prawn myself
<Kamuela>
it's a funny word to say, though
zxq9 has quit [Ping timeout: 240 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whunt has quit [Quit: Computer has gone to sleep.]
tonni has joined #ruby
Astralum has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
hogeo has joined #ruby
weszlem has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
Czupa has joined #ruby
wildroman2 has joined #ruby
theoretick is now known as McSparticus
rubyguy has quit [Quit: Connection closed for inactivity]
asteros has joined #ruby
RaCx has quit [Ping timeout: 240 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
RaCx has joined #ruby
hogeo has quit [Ping timeout: 264 seconds]
terrellt has quit [Ping timeout: 264 seconds]
amacgregor has joined #ruby
tonni has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
heidi has quit [Quit: Leaving.]
kevind has joined #ruby
jamesaanderson has joined #ruby
volty has joined #ruby
spider-mario has quit [Remote host closed the connection]
alekst has joined #ruby
nomenkun has quit [Remote host closed the connection]
<shevy>
ruby projects often have totally stupid names
<shevy>
god unicorn thor
failshell has quit [Read error: Connection reset by peer]
<shevy>
"fucking_fail (0.0.3) Track your Fucking FAIL!"
<shevy>
"clusterfuck (0.1.3) Automate the execution of jobs across multiple machines with SSH. Ideal for systems with shared f..."
<shevy>
"fucking-great-advice (0.1.0) That gem is to make easy access to great advices from fucking-great-advice"
<shevy>
HAHAH THIS ONE RULES
<shevy>
"fuck_you_rubygems (1.0.0) Fucks your Rubygems"
<shevy>
people have way too much free time
pskosinski has joined #ruby
tonni has quit [Read error: Connection reset by peer]
diegoviola has quit [Ping timeout: 245 seconds]
<Kamuela>
what's worse is that i want to gem install fuck_you_rubygems lol
<shevy>
I would never make a troll-gem simply because I want to be clean with what I maintain. and if I dont use a gem project I wrote, I will remove it, so naming is important
<shevy>
do it Kamuela!
<shevy>
run it then tell us if rubygems still works
<Kamuela>
i'm too new for this kind of trouble
bluOxigen has quit [Ping timeout: 272 seconds]
<pskosinski>
In Ruby everything is easy!
<shevy>
hmm
<shevy>
you still require quite a bit of knowledge before things can really be easy
<shevy>
if you never wrote an IRC bot before, how could you succeed!
Czupa has quit [Ping timeout: 272 seconds]
<breakingthings>
look at the documentation
<breakingthings>
and get confused
<Kamuela>
i've written an IRC bot in mirc scripting back in the day lol
<breakingthings>
because IRC documentation is weird
<pskosinski>
I did write an IRC bot and it was a shitty bot :(
<breakingthings>
and different irc daemons do weird stuff
jb41 has joined #ruby
mary5030 has quit [Remote host closed the connection]
jhaals has joined #ruby
claymore has quit [Quit: Leaving]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
my bot worked for the basic things but the code was awful
<gf3>
BUT srsly who doesn't use Freenode? pssh
ehc has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
<pskosinski>
I could not implement all IRC commands because of a design failure :( Needed to rewrite a lot of code and gave up ;(
d2dchat has quit [Remote host closed the connection]
kevind has quit [Quit: kevind]
<Kamuela>
i feel like the best way for me to learn rails would be to just go looking for example apps and deconstructing
<shevy>
I gave up on my rewrite attempt as well
amacgregor has quit [Ping timeout: 245 seconds]
drakedouay has quit [Quit: leaving]
xk_id has joined #ruby
<err_ok>
Kamuela: the Pragmatic Programmers book isn't bad if you want to start somewhere.
jamesaanderson has joined #ruby
heidi has joined #ruby
IceDragon has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<Kamuela>
err_ok, is that agile? i was thinking about taking a look at that but was discouraged in the rails channel
<Kamuela>
my main question was whether or not there was a big enough difference between 4 and 3.2 to worry about not having the absolute latest version of the book
yfeldblum has joined #ruby
iamjarvo has quit [Ping timeout: 246 seconds]
jhaals has quit [Client Quit]
Rix has quit [Ping timeout: 260 seconds]
mary5030 has quit [Ping timeout: 272 seconds]
kaldrenon has quit [Remote host closed the connection]
snuffeluffegus has joined #ruby
jamesaanderson has quit [Client Quit]
kaldrenon has joined #ruby
<err_ok>
Kamuela: Ah. Well I used the book when Rails was on version 2 or something like that. There is a big enough difference between the two versions for you to get confused, I hadn't realised they hadn't brought out a Rails4 version yet. I would wait.
<sayd>
how to use specific version of installed gem?
whunt has joined #ruby
<Kamuela>
err_ok, a big enough difference between 3.2 and 4?
<volty>
anyone worked with ruby's rss ?
<err_ok>
Kamuela: correct
<Kamuela>
err_ok, ah ok, too bad. no, it's out, it's just the difference between $40 and $4
drumusician has joined #ruby
<err_ok>
Ah ok.
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhaals has joined #ruby
larissa has joined #ruby
<sayd>
i guess uninstall is my only option/
mark_locklear has quit [Quit: Leaving]
<sayd>
i have two versions installed, wanted to use a different version than the current one
Monie has joined #ruby
jamesaanderson has joined #ruby
danshultz has quit [Remote host closed the connection]
tannerburson has quit [Quit: tannerburson]
<Solnse>
is there a way to inspect the next element of an array in an each block?
jetblack has quit [Quit: leaving]
Czupa has joined #ruby
NotreDev has joined #ruby
danshultz has joined #ruby
tannerburson has joined #ruby
kaldrenon has quit [Ping timeout: 272 seconds]
aryaching has joined #ruby
deception has joined #ruby
<NotreDev>
in the past i've seen an code analytics framework which will give performance information and more. i can't for the life of me remember the name of it, though. anyone know what i'm talking about?
<NotreDev>
it used to be just for ruby, but now it supports python, too.
<volty>
(arr << [nil]).each_cons(2)
mary5030 has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
mary5030 has quit [Remote host closed the connection]
jdguzman has joined #ruby
mary5030 has joined #ruby
<volty>
(arr + nil).each_cons(2)
<volty>
(arr + [nil]).each_cons(2)
yfeldblum has quit [Read error: Connection reset by peer]
scottstamp is now known as zz_scottstamp
mhd has quit [Quit: Leaving.]
coderhs has joined #ruby
yfeldblum has joined #ruby
hiyosi has joined #ruby
<volty>
nobody with ruby rss experience ?
benwoody has joined #ruby
benwoody has quit [Client Quit]
<Hanmac>
volty: (arr + nil) does not work
danshultz has quit [Ping timeout: 245 seconds]
Guest37962 has joined #ruby
Guest37962 is now known as parduse
pskosinski has quit [Quit: Til rivido Idisti!]
jaegerpicker has quit [Remote host closed the connection]
srji has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
rodan- has joined #ruby
parduse is now known as Guest38093
terrellt has joined #ruby
sambao21 has joined #ruby
[Neurotic] has joined #ruby
tharindu has joined #ruby
Guest38093 has quit [Remote host closed the connection]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
Czupa has quit [Remote host closed the connection]
<volty>
of course :)
kpshek has quit []
RichardBaker has joined #ruby
mmitchell has quit [Remote host closed the connection]
Guest37962 has joined #ruby
Guest37962 is now known as parduse
mmitchell has joined #ruby
tharindu has quit [Ping timeout: 245 seconds]
<Kamuela>
hehehe, i'm a sneaky >:)
parduse is now known as Guest57784
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scarolan has quit [Ping timeout: 272 seconds]
<volty>
the prob. could be if Solnse understood, at all, that that was for him
deception has quit [Quit: Goodbye]
mansi__ has quit [Remote host closed the connection]
_Andres has quit [Read error: Connection reset by peer]
RaCx has quit [Quit: Computer has gone to sleep.]
failshel_ has joined #ruby
jhulten has quit [Remote host closed the connection]
ukd1 has joined #ruby
<volty>
i have a prob.: i have to use rss for parsing and for producing. The ruby's RSS seems a monster and isn't well documented. So my question, for experienced rubyists (that could have similar problems -though not necessarily with rss), is: should I go after manually creating rss's xml?
mikepack has joined #ruby
Guest57784 has quit [Remote host closed the connection]
Astralum has joined #ruby
nisstyre has quit [Ping timeout: 252 seconds]
<volty>
/have similar prob/have had similar prob/
mmitchell has quit [Ping timeout: 272 seconds]
scarolan has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
<Solnse>
what did I understand?
joshwines_ has joined #ruby
<Solnse>
:)
Guest37962 has joined #ruby
Guest37962 is now known as parduse
<Solnse>
volty: thanks.
vt102 has quit [Quit: vt102]
parduse is now known as Guest36071
Davey has joined #ruby
failshel_ has quit [Ping timeout: 272 seconds]
artm has quit [Ping timeout: 260 seconds]
flops has quit [Remote host closed the connection]
<volty>
yw, I should prefix with nick
Guedes0 has quit [Ping timeout: 272 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Advocation has joined #ruby
acrussell has quit [Quit: Leaving.]
kpshek has joined #ruby
Guest36071 has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]
kcombs has quit [Remote host closed the connection]
duggiefresh has joined #ruby
ZoanthusR has joined #ruby
Advocation has quit [Ping timeout: 252 seconds]
ffranz has quit [Quit: Leaving]
jrhe has joined #ruby
platypine has joined #ruby
mixel has quit [Quit: mixel]
<Kamuela>
wait a sec, Hello::Goodbye is just a hellodict wtih a goodbye symbol?!?!
blackmesa has quit [Remote host closed the connection]
* coldmethod
would say that the greatest deficient for a python buff converting to a ruby is always missing out the "end"
nisstyre has joined #ruby
duggiefresh has quit [Ping timeout: 240 seconds]
<Kamuela>
coldmethod, i've actually asked how hard it would be to remove that keyword entirely
cody-- has quit [Quit: derp]
* coldmethod
was offtopic btw Kamuela
<Kamuela>
but then again, i don't know if ruby takes whitespace/indentation as seriously as python does
hogeo has joined #ruby
blooberr_ has joined #ruby
<coldmethod>
True .. it does not. Python makes you follow the indentation always
__zxq9__ has joined #ruby
ewnd9 has joined #ruby
jhulten has joined #ruby
jblack has joined #ruby
hogeo has quit [Ping timeout: 248 seconds]
_zxq9_ has quit [Ping timeout: 244 seconds]
TigerWolf has joined #ruby
ephemerian has joined #ruby
NotreDev has quit [Quit: NotreDev]
sambao21 has quit [Quit: Computer has gone to sleep.]
sailias has quit [Ping timeout: 246 seconds]
cescalante is now known as ce_afk
drumsrgr8forn8 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Kamuela has quit [Quit: Leaving]
mklappstuhl has joined #ruby
Soliah has joined #ruby
<Eiam>
please no
<Eiam>
control structures that I can see = good
capicue has quit [Quit: Leaving...]
workmad3 has joined #ruby
momomomomo has quit [Quit: momomomomo]
samuel02 has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
yfeldblu_ has joined #ruby
ehc has joined #ruby
sambao21 has joined #ruby
dweeb has joined #ruby
Xeago has joined #ruby
stkowski has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Notte has quit []
tonni has joined #ruby
<volty>
please spread consciousness: the rdoc html style of black background for source (especially when the rest has opposite style) is ugly, irrispective of visually impaired, tiring - at least! On one word: ABSURD !
MrThePlague has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
<jblack>
I will not help you rebel agaist your well documented, if blind, masters
yfeldblum has quit [Ping timeout: 264 seconds]
tonni has quit [Remote host closed the connection]
tonni has joined #ruby
<volty>
help blind
baordog has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
xerxas has quit [Quit: Connection closed for inactivity]
mhd has joined #ruby
mhd has left #ruby [#ruby]
MrZYX is now known as MrZYX|off
dmamills has quit []
timonv has joined #ruby
kpshek has joined #ruby
hiyosi has joined #ruby
dekz has joined #ruby
RORgasm has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
tharindu has joined #ruby
tomzx_mac has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
hiyosi has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
noname001__ has joined #ruby
tharindu has quit [Ping timeout: 246 seconds]
jjbohn_ has quit [Quit: Leaving...]
Mars__ has quit [Ping timeout: 272 seconds]
Mars__ has joined #ruby
mmitchell has joined #ruby
jhulten has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
elux has quit [Quit: Bye!]
danshultz has quit [Ping timeout: 245 seconds]
MrThePlague has quit [Remote host closed the connection]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mixel has joined #ruby
jmimi1 has joined #ruby
bronson_ has joined #ruby
jmimi is now known as Guest48179
Guest48179 has quit [Killed (adams.freenode.net (Nickname regained by services))]
jmimi1 is now known as jmimi
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
threesome has quit [Ping timeout: 260 seconds]
jonathanwallace has quit [Ping timeout: 246 seconds]
MrThePlague has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
MrThePlague has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
Advocation has joined #ruby
Mr_Wharfsnort has joined #ruby
yfeldblum has joined #ruby
freezey_ has joined #ruby
CreativeEmbassy has joined #ruby
freezey has quit [Read error: No route to host]
hiyosi has joined #ruby
GrantKH has quit [Remote host closed the connection]
Mr_Wharfsnort has quit [Remote host closed the connection]
GrantKH has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<joshu>
hi i'm trying to create a small ruby script which will save my home timeline tweets as i tend to miss a lot of them. I've got this simple code so far https://gist.github.com/anonymous/718c5582677e85e1b725 but every time I run it I get this error "Twitter::REST (NameError)" and I don't know why as the twitter gem is installed
CreativeEmbassy has quit [Max SendQ exceeded]
yfeldblu_ has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
Roa has joined #ruby
petey has quit [Ping timeout: 272 seconds]
Advocation has quit [Ping timeout: 246 seconds]
CreativeEmbassy has joined #ruby
NotreDev has joined #ruby
CreativeEmbassy has quit [Max SendQ exceeded]
tannerburson has quit [Quit: tannerburson]
jamesaanderson has joined #ruby
Guest63812 has joined #ruby
Guest63812 is now known as parduse
CreativeEmbassy has joined #ruby
parduse is now known as Guest70963
jibi has quit [Quit: .]
GrantKH_ has joined #ruby
GrantKH has quit [Ping timeout: 272 seconds]
carif has quit [Ping timeout: 244 seconds]
superscott[8] has joined #ruby
hogeo has joined #ruby
bronson_ has quit [Quit: bronson_]
Guest70963 has quit [Remote host closed the connection]
jhulten has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Guest37962 has joined #ruby
Guest37962 is now known as parduse
workmad3 has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
bugsinlights has joined #ruby
Kricir has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
parduse is now known as Guest58864
mklappstuhl has joined #ruby
Soda has joined #ruby
danman has joined #ruby
jrhe has quit [Quit: jrhe]
vlad_starkov has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kpshek has quit []
<freezey_>
running host = %x{hostname | sed 's/node.*\|nas.*//'} on the command line it returns the correct results but when its ran by ruby it does not
Guest58864 has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 245 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Bira has joined #ruby
danman has quit [Client Quit]
babinho has quit [Ping timeout: 264 seconds]
babinho has joined #ruby
<volty>
you have to run the shell for that to work
<volty>
or do it in two phases
jrhe has joined #ruby
<freezey_>
run the shell?
NotreDev has quit [Quit: NotreDev]
ce_afk is now known as cescalante
xibalba has joined #ruby
NotreDev has joined #ruby
prsn has quit [Quit: Lost terminal]
jdguzman has quit [Ping timeout: 245 seconds]
drumusician has quit [Ping timeout: 252 seconds]
jhulten has quit [Remote host closed the connection]
DonRichie has quit [Ping timeout: 240 seconds]
DonRichie has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]