<suchness>
You might have to just trust me, it very much works.
<suchness>
I don't believe it's referenced in those docs
elifoster has quit [Quit: tienda y comida]
<suchness>
havenwood: Actually I think I am mistaken, that method comes with just the has_many
<suchness>
Either way, it should work inside nested attributes
devbug has quit [Quit: ZZZzzz…]
<suchness>
collection_singular_ids=ids
<suchness>
Replace the collection with the objects identified by the primary keys in ids. This method loads the models and calls collection=. See above.
dogweather has quit [Ping timeout: 252 seconds]
cdg has quit [Remote host closed the connection]
dogweather has joined #ruby
nitric has quit [Ping timeout: 258 seconds]
LastWhisper____ has joined #ruby
thatsnotjack has joined #ruby
Azure has joined #ruby
toretore has quit [Ping timeout: 260 seconds]
danielius has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
ajsharma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
centrx has quit [Read error: Connection reset by peer]
centrx has joined #ruby
arnonhongklay has quit [Ping timeout: 244 seconds]
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arnonhongklay has joined #ruby
hosttor has joined #ruby
thatsnotjack has quit [Ping timeout: 244 seconds]
jtzero has quit [Quit: Leaving.]
jtzero2 has joined #ruby
pawnbox has joined #ruby
sarbs has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 255 seconds]
ruby_ has quit [Remote host closed the connection]
sarbs has joined #ruby
tjbiddle has joined #ruby
duderonomy has joined #ruby
sand-bird has quit [Ping timeout: 255 seconds]
arnonhongklay has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Ping timeout: 265 seconds]
arnonhongklay has joined #ruby
aries_liuxueyang has quit [Ping timeout: 265 seconds]
davedev24 has joined #ruby
centrx has quit []
davedev24 has quit [Client Quit]
hosttor has quit [Ping timeout: 258 seconds]
jackjackdripper has joined #ruby
Immune has quit [Quit: ZzzZZZzzzz]
rkazak has quit [Quit: Sleep.....ing....]
g3funk has quit [Ping timeout: 276 seconds]
tdy has quit [Quit: tdy]
\13k has quit [Ping timeout: 276 seconds]
aries_liuxueyang has joined #ruby
\13k has joined #ruby
arescorpio has joined #ruby
g3funk has joined #ruby
davedev24 has joined #ruby
arnonhon_ has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
<JJBB>
Anyone looking for a full time Ruby Development Job in Melbourne / Australia. The position is working in a Datacentre building Cloud services integration tools. If you are interested message me !!!
ta has joined #ruby
Devalo has joined #ruby
davedev24 has quit []
elifoster has joined #ruby
ruby_ has joined #ruby
Spami has joined #ruby
enterprisey has joined #ruby
ta has quit [Ping timeout: 244 seconds]
Devalo has quit [Ping timeout: 265 seconds]
NetSage has quit [Remote host closed the connection]
icarus_ has quit [Quit: Lost terminal]
arnonhon_ has quit [Read error: Connection reset by peer]
panpainter has joined #ruby
jgt2 has quit [Ping timeout: 264 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
braincras has quit [Quit: bye bye]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
panpainter has quit [Ping timeout: 276 seconds]
arnonhongklay has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
ecksit has joined #ruby
cibs has joined #ruby
thatsnotjack has joined #ruby
gix has quit [Ping timeout: 250 seconds]
ajsharma has joined #ruby
ajsharma has quit [Max SendQ exceeded]
ruby_ has quit []
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
k3rn31 has joined #ruby
braincrash has joined #ruby
gix has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CloCkWeRX has left #ruby [#ruby]
craigp_ has quit [Ping timeout: 265 seconds]
tdy has joined #ruby
Fly77 has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
tmtwd has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
ChiefAlexander has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
arnonhongklay has quit [Remote host closed the connection]
<dreinull>
dminuoso I know, and this is not what I want because in this case false is true :)
<manveru>
oh, nevermind
<dminuoso>
dreinull: What?
<dminuoso>
dreinull: Then simply remove || "ww" ??
nbdy has joined #ruby
nbdy has quit [Client Quit]
pawnbox has joined #ruby
<manveru>
a.key?(:b) ? a[:b] : 'ww'
<dreinull>
no, it's part of a method that has its use but it makes it difficult to store Bools
Immune has joined #ruby
Devalo has joined #ruby
Vile` has quit [Ping timeout: 250 seconds]
Pupeno has joined #ruby
<manveru>
i don't think you can pair fetch and || to do what you want
<dreinull>
ok, in that method I fetch either a value that is stored in my Hash or it returns a default value from a default Hash. Now if I want to store Bools in that Hash I obviously get the default values whenever I hit a false.
DoubleMalt has joined #ruby
rgtk has joined #ruby
Silthias has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
<manveru>
hmm, i thought there was some edge case i was missing...
<manveru>
but you're right, it works, just not with || :)
Devalo has quit [Ping timeout: 252 seconds]
Silthias1 has quit [Ping timeout: 252 seconds]
<dreinull>
well, ok. I consider this a bug in Ruby. Not a real bug but it bugs me because in this case false is a proper return value.
Ropeney has quit [Ping timeout: 250 seconds]
<dreinull>
Should fork Ruby over that
<Burgestrand>
dreinull there's no bug, what do you want to have?
<dreinull>
Burgestrand it's fine. It just bugs me :)
<Burgestrand>
dreinull if the hash contains the key, you get the key no matter the value, if the hash does not contain the key you get a default value. What do you want?
<dreinull>
Burgestrand my || impl.
lxsameer has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
marr has joined #ruby
<Burgestrand>
dreinull it does not make any sense.
valkyr1e has quit [Quit: Bye.]
DoubleMalt has quit [Ping timeout: 264 seconds]
<Burgestrand>
dreinull when do you want it to return false, and when do you want it to return "ww"?
Eiam has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
tjbiddle has joined #ruby
edwinvdgraaf has joined #ruby
pawnbox has quit [Remote host closed the connection]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has joined #ruby
elifoster has quit [Quit: sleep]
habitullence has joined #ruby
fivmo has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
jsrn_ has joined #ruby
<dreinull>
Burgestrand if there is no value at all. Because if the key is set to nil or false it's considered a value. Haven't had this case but today.
<Burgestrand>
dreinull Yeah, which is exactly what hash.fetch(key, "ww") does.
<dreinull>
Burgestrand, ok, I think I might be able to move the || part into the second argument part...
<Burgestrand>
dreinull Yes!
<dreinull>
Burgestrand which is what you've been trying to tell me now for a while. I get it :S
<dreinull>
sorry
<Burgestrand>
dreinull Yes! \o/
habitullence has quit [Ping timeout: 244 seconds]
<dreinull>
Burgestrand What was I thinking?
<Burgestrand>
dreinull false!
<mikecmpbll>
lol
edwinvdg_ has joined #ruby
Sashimi has joined #ruby
tomphp has joined #ruby
Dimik has quit [Ping timeout: 264 seconds]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
<dreinull>
looks a lot better now
pawnbox has joined #ruby
habitullence has joined #ruby
zeroDi has joined #ruby
jgt2 has joined #ruby
DaniG2k has joined #ruby
conta has quit [Ping timeout: 265 seconds]
conta1 is now known as conta
einarj has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
nikivi has joined #ruby
LoneHerm_ has joined #ruby
pwnd_nsfw` has joined #ruby
Pupeno has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Ping timeout: 240 seconds]
Robtop__ has quit [Ping timeout: 250 seconds]
teclator has quit [Remote host closed the connection]
Immune has quit [Ping timeout: 252 seconds]
nikivi has quit [Quit: irc]
ta has joined #ruby
pwnd_nsfw` has quit [Read error: Connection reset by peer]
ukk has joined #ruby
pwnd_nsfw` has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
ukk has quit [Client Quit]
ukk has joined #ruby
DaniG2k has quit [Ping timeout: 264 seconds]
gizless has joined #ruby
gizmore has quit [Ping timeout: 258 seconds]
Immune has joined #ruby
ta has quit [Ping timeout: 276 seconds]
dnewkerk has quit [Quit: dnewkerk]
ta has joined #ruby
DaniG2k has joined #ruby
pawnbox has quit [Remote host closed the connection]
Sashimi has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 255 seconds]
Klasser has joined #ruby
flying has joined #ruby
<Klasser>
So, I have a little issue installing tiny_tds. Its asking if I have installed freetds, which I have. "freetds is missing. Do you have FreeTDS 0.95.80 or higher installed?"
<flying>
hi guys :)
JJBB has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
Vile` has joined #ruby
Klasser_ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<Klasser_>
So, I have a little issue installing tiny_tds. Its asking if I have installed freetds, which I have. "freetds is missing. Do you have FreeTDS 0.95.80 or higher installed?"
<Klasser_>
Any help on troubleshooting this is greatly appriciated.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Klasser has quit []
<Klasser_>
:)'
pawnbox has quit [Remote host closed the connection]
Burgestrand has joined #ruby
Sebastia1Thorn has joined #ruby
ljarvis_ has joined #ruby
Niham has joined #ruby
kennyZ has joined #ruby
foxxx0_ has joined #ruby
foxxx0 has quit [Disconnected by services]
Niham has quit [Max SendQ exceeded]
foxxx0_ is now known as foxxx0
eam_ has joined #ruby
darix- has joined #ruby
optiz0r_ has joined #ruby
Dobler has joined #ruby
Azure|dc has joined #ruby
Vile` has quit [Ping timeout: 258 seconds]
baweaver has quit [*.net *.split]
brucebag has quit [*.net *.split]
Ankhers_ has quit [*.net *.split]
phrozen77 has quit [*.net *.split]
gix has quit [*.net *.split]
aries_liuxueyang has quit [*.net *.split]
philtr has quit [*.net *.split]
Azure has quit [*.net *.split]
Lucky_ABA has quit [*.net *.split]
banisterfiend has quit [*.net *.split]
kenichi_ has quit [*.net *.split]
Asher has quit [*.net *.split]
flopsec has quit [*.net *.split]
faces has quit [*.net *.split]
Snickers has quit [*.net *.split]
CrazyEddy has quit [*.net *.split]
wildleaf has quit [*.net *.split]
SebastianThorn has quit [*.net *.split]
ljarvis has quit [*.net *.split]
mburns has quit [*.net *.split]
fedruantine has quit [*.net *.split]
tristanp has quit [*.net *.split]
tostr has quit [*.net *.split]
Rasi has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
kith has quit [*.net *.split]
Tharbakim has quit [*.net *.split]
mniip has quit [*.net *.split]
dRbiG has quit [*.net *.split]
awk_ has quit [*.net *.split]
eam has quit [*.net *.split]
plasticxme has quit [*.net *.split]
FastJack has quit [*.net *.split]
dreinull has quit [*.net *.split]
parus has quit [*.net *.split]
ruurd has quit [*.net *.split]
madhatter has quit [*.net *.split]
p1k has quit [*.net *.split]
xpt has quit [*.net *.split]
phantummm has quit [*.net *.split]
iNs has quit [*.net *.split]
klaas has quit [*.net *.split]
optiz0r has quit [*.net *.split]
Satyajit has quit [*.net *.split]
existensil has quit [*.net *.split]
gypsydave5 has quit [*.net *.split]
Fridtjof has quit [*.net *.split]
`derpy has quit [*.net *.split]
cfloare has quit [*.net *.split]
darix has quit [*.net *.split]
svkurowski has quit [*.net *.split]
jidar has quit [*.net *.split]
Guest14857 has quit [*.net *.split]
KillerFox has quit [*.net *.split]
lucas has quit [*.net *.split]
webhat has quit [*.net *.split]
forgot has quit [*.net *.split]
darix- is now known as darix
mame3 has quit [*.net *.split]
Fridtjof has joined #ruby
fedruantine has joined #ruby
klaas has joined #ruby
SirCmpwn has joined #ruby
brucebag has joined #ruby
brucebag has quit [Changing host]
brucebag has joined #ruby
baweaver has joined #ruby
`derpy has joined #ruby
kenichi has joined #ruby
mniip has joined #ruby
Ankhers has joined #ruby
mburns has joined #ruby
Evan- has joined #ruby
svkurowski has joined #ruby
rgtk has quit [Ping timeout: 258 seconds]
FastJack has joined #ruby
iNs has joined #ruby
plasticxme has joined #ruby
p1k has joined #ruby
pawnbox has joined #ruby
Rasi has joined #ruby
teclator has joined #ruby
phrozen77 has joined #ruby
Niham has joined #ruby
ggherdov has quit [Ping timeout: 265 seconds]
Niham has quit [Max SendQ exceeded]
JackMc has quit [Ping timeout: 250 seconds]
gix has joined #ruby
dRbiG has joined #ruby
philtr has joined #ruby
aries_liuxueyang has joined #ruby
parus has joined #ruby
flopsec has joined #ruby
Asher has joined #ruby
jidar has joined #ruby
wildleaf has joined #ruby
xpt has joined #ruby
kith has joined #ruby
Snickers has joined #ruby
banisterfiend has joined #ruby
tostr has joined #ruby
faces has joined #ruby
phantummm has joined #ruby
gypsydave5 has joined #ruby
tristanp has joined #ruby
madhatter has joined #ruby
KillerFox has joined #ruby
Lucky_ABA has joined #ruby
existensil has joined #ruby
webhat has joined #ruby
Satyajit has joined #ruby
awk_ has joined #ruby
lucas has joined #ruby
cfloare has joined #ruby
Tharbakim has joined #ruby
mame3 has joined #ruby
forgot has joined #ruby
flopsec has quit [Changing host]
flopsec has joined #ruby
ruurd has joined #ruby
ruurd has joined #ruby
ruurd has quit [Changing host]
Niham has joined #ruby
ruurd is now known as Guest5052
<Klasser_>
So, I have a little issue installing tiny_tds. Its asking if I have installed freetds, which I have. "freetds is missing. Do you have FreeTDS 0.95.80 or higher installed?" Any help on troubleshooting this is greatly appriciated.
pandaant has joined #ruby
banisterfiend has quit [Max SendQ exceeded]
aries_liuxueyang has quit [Max SendQ exceeded]
PlasmaStar has joined #ruby
Devalo has joined #ruby
phredus_ has quit [Read error: Connection reset by peer]
ggherdov has joined #ruby
JackMc has joined #ruby
charliesome has joined #ruby
phredus_ has joined #ruby
aries_liuxueyang has joined #ruby
toretore has joined #ruby
<kennyZ>
hello, i am trying to install ruby-1.8.7-p174 on a debian 8 systemwith rbenv, but it failes because some openssl structs changed (in /usr/include/openssl/asn1.h). is there a chance to get it running on debian 8 or do i have to use an older os?
Devalo has quit [Ping timeout: 244 seconds]
ggherdov has quit [Excess Flood]
ggherdov has joined #ruby
tyang has quit [Ping timeout: 240 seconds]
govg has joined #ruby
Immune has quit [Ping timeout: 252 seconds]
xiaomaolv has joined #ruby
anisha_ has joined #ruby
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anisha has quit [Ping timeout: 240 seconds]
rsampaio_ has quit [Ping timeout: 255 seconds]
arnonhongklay has quit [Remote host closed the connection]
arnonhongklay has quit [Read error: Connection reset by peer]
<jazzonmym1nd>
can you show the code?
arnonhongklay has joined #ruby
<dunpeal>
it's part of a Rails test, I think the problem is that it also takes an argument
arnonhongklay has quit [Remote host closed the connection]
<dunpeal>
it's a `before` clause in an RSpec
<jazzonmym1nd>
you might need to use parenthesis for the argument then
<mikecmpbll>
code code code code code code.
<dunpeal>
right.
<jazzonmym1nd>
foo("arg") { }.
arnonhongklay has joined #ruby
<dunpeal>
jazzonmym1nd: that was it, thanks!
<dunpeal>
parenthesis around the argument were required.
<jazzonmym1nd>
cool
<jazzonmym1nd>
yw
<mikecmpbll>
that took 5 mins instead of 0.1seconds with code.
* mikecmpbll
shrugs
<dunpeal>
So these are the two forms of block provision? curlies and do...end
<jazzonmym1nd>
yeah, two different syntax's for blocks.
gingray has joined #ruby
arnonhongklay has quit [Ping timeout: 244 seconds]
synthroid has joined #ruby
gingray has quit [Client Quit]
nertzy has joined #ruby
gingray has joined #ruby
gingray has quit [Client Quit]
gingray has joined #ruby
DaniG2k has joined #ruby
wldcordeiro has quit [Ping timeout: 264 seconds]
alfiemax has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
CloCkWeRX has joined #ruby
arnonhongklay has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
polysics has quit []
tyang has joined #ruby
CloCkWeRX1 has quit [Ping timeout: 255 seconds]
jazzonmym11nd has joined #ruby
jazzonmym1nd has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
arnonhongklay has quit [Ping timeout: 252 seconds]
bruce_lee has joined #ruby
CloCkWeRX1 has joined #ruby
tyang has quit [Client Quit]
swills has quit [Ping timeout: 250 seconds]
Xeago has quit [Ping timeout: 260 seconds]
da3mon has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
Beams has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
Vile` has quit [Ping timeout: 264 seconds]
DaniG2k has quit [Quit: leaving]
CloCkWeRX has quit [Ping timeout: 260 seconds]
DaniG2k has joined #ruby
mozzarel1 has quit [Ping timeout: 255 seconds]
jhack_ has joined #ruby
ukk has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
gnufied has joined #ruby
AlexRussia has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
jhack_ has quit [Quit: jhack_]
<Bish>
bleh, i have a folder named "mail" in PATH
<Bish>
if i require the mail gem, it will try to load that folder
<Bish>
how do i work around that
yuki_is_bored has joined #ruby
Niham has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gnufied has quit [Quit: Leaving]
govg has quit [Ping timeout: 276 seconds]
gnufied has joined #ruby
jaguarmagenta has joined #ruby
<adaedra>
You can fix your $PATH
PlasmaStar has joined #ruby
<adaedra>
Otherwise, `ruby -S mail` is a (ugly) option I think
<adaedra>
(If by "require" you mean "execute")
edwinvdgraaf has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gingray has quit [Quit: leaving]
Pumukel has quit [Ping timeout: 244 seconds]
jaguarmagenta has quit [Ping timeout: 240 seconds]
gingray has joined #ruby
<Bish>
fix my path , meaning i need to change my folder structure
<Bish>
hmpf
ukk1 has joined #ruby
pokalyis has joined #ruby
<adaedra>
Or you put the directory containing gem executables before the one containing `mail`
last_staff has quit [Quit: last_staff]
<chris2>
why does requiring a gem involve PATH?
TvL2386 has joined #ruby
pawnbox has joined #ruby
ukk has quit [Ping timeout: 265 seconds]
AlexRussia has joined #ruby
spectrum has quit [Read error: Connection reset by peer]
ule has quit [Ping timeout: 255 seconds]
<ljarvis>
yeah it certainly shouldn't.
pawnbox has quit [Ping timeout: 240 seconds]
<ljarvis>
no reason `unset PATH; ./bin/ruby -e "require 'mail'; p Mail"` wouldn't work
malconis has joined #ruby
ramortegui has joined #ruby
aegis3121 has joined #ruby
gingray has quit [Quit: leaving]
PlasmaStar has quit [Ping timeout: 252 seconds]
<unshadow>
Hi guys, we started a new project (License MIT) for implamenting the RDP protocol (Client + server) in pure Ruby. If you guys wana join, follow, Fork etc.. all are invited: https://github.com/Safe-T/rdp-rb
Sashimi has joined #ruby
jhack_ has joined #ruby
jhack has quit []
jhack_ is now known as jhack
<rubirc>
em
jhack has quit [Client Quit]
<rubirc>
dont you want to do that in something more efficient than ruby?
Beams has joined #ruby
gingray has joined #ruby
edwinvdgraaf has quit [Ping timeout: 252 seconds]
tyang has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
platzhirsch has joined #ruby
<unshadow>
rubirc: If you answered regarding my post, then , the whole point is having it in Ruby :) it's an interesting project + could be a very cool thing to have
El3k0n has joined #ruby
ekinmur has joined #ruby
jhack has joined #ruby
jphase has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
jphase has quit [Remote host closed the connection]
<da3mon>
\´
da3mon has quit [Quit: cya...]
arnonhongklay has joined #ruby
jphase has joined #ruby
SnOooohwy has joined #ruby
cdg has joined #ruby
edwinvdgraaf has joined #ruby
da3mon has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
Pumukel has joined #ruby
Devalo has joined #ruby
mozzarel1 has joined #ruby
Es0teric has joined #ruby
s2013 has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
arnonhongklay has quit [Remote host closed the connection]
s2013 has quit [Max SendQ exceeded]
Devalo has quit [Ping timeout: 264 seconds]
CloCkWeRX has joined #ruby
ukk1 is now known as bsrd
CloCkWeRX1 has quit [Ping timeout: 250 seconds]
GodFather has joined #ruby
tref has joined #ruby
bsrd has quit [Quit: WeeChat 1.5]
bsrd has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
teclator has quit [Remote host closed the connection]
lightheaded has joined #ruby
nettoweb has joined #ruby
colegatron has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
zacts has quit [Quit: WeeChat 1.4]
ta_ has joined #ruby
jrafanie has joined #ruby
eljimbo has quit [Quit: This computer has gone to sleep]
dopamean_ has quit [Ping timeout: 265 seconds]
ta__ has joined #ruby
<lifted>
WHATS GOOD FAMILY?! :D
ta_ has quit [Ping timeout: 244 seconds]
davedev24 has joined #ruby
dikaio has joined #ruby
lightheaded has quit [Remote host closed the connection]
ta has quit [Ping timeout: 250 seconds]
<MassDebates>
okay so i went through some of the tutorials and stuff but i'm still kinda lost on ruby
BTRE has quit [Ping timeout: 260 seconds]
<mikecmpbll>
MassDebates : lost how?
bsrd has quit [Quit: WeeChat 1.5]
aryaching has quit [Read error: Connection reset by peer]
Akuma has joined #ruby
charliesome has joined #ruby
AndrewIsHere has joined #ruby
coolboy has joined #ruby
<MassDebates>
Well, the syntax seems to be relatively easy and simple, which is nice, but I'm confused about the role ruby would play in a realistic example.
<MassDebates>
Maybe I'm overcomplicating it or maybe I just haven't learned enough
AlexRussia has joined #ruby
aryaching has joined #ruby
jkhl has joined #ruby
mikecmpb_ has joined #ruby
<mikecmpb_>
MassDebates : probably overcomplicating it.
<MassDebates>
I did some digging and decided it would be best for me to make a native mobile app, as opposed to a webapp (which would be significantly easier)
edwinvdg_ has joined #ruby
<mikecmpb_>
curious.
ChiefAlexander has joined #ruby
<MassDebates>
After doing some research, I determined that ruby would be a good language to use to develop it. I found some services out there that can help me make it work for multiple devices (like iOS and android)
edwinvdgraaf has quit [Read error: Connection reset by peer]
<mikecmpb_>
super.
<MassDebates>
So I did some of the tutorials. really nice syntax. Love it, but I'm unsure how the work-flow is supposed to work.
mikecmpbll has quit [Ping timeout: 244 seconds]
mikecmpb_ is now known as mikecmpbll
gingray has quit [Quit: leaving]
l4v2 has joined #ruby
<mikecmpbll>
elaborate
<MassDebates>
And again, what role ruby would play. From my perspective, I'm familiar with HTML, CSS, PHP, JS, etc..
PlasmaStar has joined #ruby
gingray has joined #ruby
<MassDebates>
Sorry, trying to type fast :P hard to articulate in english for this
<mikecmpbll>
what role ... hm. the role of interpreted language to make stuff happen on a computer!
<MassDebates>
So, using my familiar stuff as a reference point in example, I look at HTML as being primarily responsible (of course there's bleed along the edges between these technologies) for structure and content through markup
<aegis3121>
Well, in a web application I feel like the obvious, first guess would be some web framework... Rails, Hanami, etc... for your server side logic
<MassDebates>
I see CSS as being largely presentational and aesthetic
<aegis3121>
offloading any business logic to your server rather than having it present on the client side.
<MassDebates>
JS is (along with some HTML) mainly responsible for interaction and async stuff
da3mon has joined #ruby
etehtsea has joined #ruby
<MassDebates>
But when I look at native apps (because I webapps can often be comparable to SAPs) I'm confused as to what does what. I know there's XML, Java, and Ruby
<MassDebates>
but I think java and ruby are 'competitors' right?
tyang has quit [Ping timeout: 255 seconds]
<aegis3121>
I would say no...
<MassDebates>
Well, not 'competing' ... but ... 'replaceable' if you will?
<mikecmpbll>
they're both programming languages.
<MassDebates>
Do they serve the same functions/purposes in majority?
<MassDebates>
I ask because I can make arrays, declare variables and objects in java, and I can do so in ruby.
<MassDebates>
They're the same, then, right?
<mikecmpbll>
yes, absolutely the same.
<aegis3121>
That's true of any object oriented language. It comes down to: "How quickly can you create a thing? How MUCH does performance matter? How flexible do i want the language? How do I want my language to influence my design decisions?"
hs366 has quit [Quit: Leaving]
<MassDebates>
okay, great, thanks guys!
<aegis3121>
Tehre probably aren't a lot of things you can do in one you can't do in the other. It's just a matter of how you do them and if it's the right tool for the scenario
the_drow has quit [Quit: This computer has gone to sleep]
<MassDebates>
I have a couple more questions, if that's alright?
<aegis3121>
that's what the channel is for
<MassDebates>
Would it make sense for me to say that I'll likely be using XML, Ruby, and (s)CSS/LESS/etc. for a native app?
<adaedra>
You can but don't have to.
<adaedra>
(I could argue on the 'native' bit, but let's put that aside.)
tdy has quit [Ping timeout: 260 seconds]
nikivi has joined #ruby
da3mon has quit [Quit: Zzzz...]
da3mon has joined #ruby
tyang has joined #ruby
BTRE has joined #ruby
dopamean_ has joined #ruby
<MassDebates>
okay, awesome, I think I'll be doing that. I'm great with CSS and I think some of my ability with HTML will give me enough knowledge to extrapolate and easily pick up XML. Ruby seems like it's got really friendly syntax. Tried using java in the past, struggled.
<Nilium>
How far 'native' goes mostly just depends on depth of knowledge per programmer. I don't really like trying to explain the differences there now.
dopamean_ has quit [Client Quit]
<MassDebates>
That's fine.
CloCkWeRX has joined #ruby
tostr has quit [Ping timeout: 244 seconds]
<MassDebates>
Okay, one last question (most likely last)
CloCkWeRX has left #ruby [#ruby]
<Nilium>
Since to a generic web dev, native is kind of just like surface details.
Vivekananda has joined #ruby
<MassDebates>
I don't feel that I can achieve the smoothness and performance I desire with a webapp
<MassDebates>
Although I'd like the ease of development, running through something similar to a browser's rendering process will just hurt the experience of the user.
<Nilium>
Well, HTML and CSS are web things.
<Nilium>
And XML's just text.
<MassDebates>
But before I start diving into learning random languages that might do what I need, I figured I'd get an analysis of what's there.
<Nilium>
So, what's the question?
<adaedra>
It's good to know a language, knowing when and where use it or use another is better.
<MassDebates>
So what controls a native app's aesthetics, or the equivalent of what i familiarly refer to as a web page's 'styling'?
<Nilium>
Depends on the OS.
mtkd has quit [Ping timeout: 244 seconds]
<MassDebates>
Android
da3mon has quit [Client Quit]
etehtsea has quit [Quit: Computer has gone to sleep.]
tdy has joined #ruby
SteenJobs has joined #ruby
<Nilium>
Layouts, styles/themes (not at all similar to CSS), and various other bits and pieces of the resource tree.
edgr has quit [Ping timeout: 264 seconds]
mtkd has joined #ruby
<MassDebates>
okay, so let's say I learn the syntax and pick up a relatively acceptable working knowledge of these languages. Would I make an APP UI first, and then start 'connecting power cables' to have it work with a database system of sorts?
<MassDebates>
er, wait, before i start going X Y problem on you folks, let me give you some info
<adaedra>
“I think some of my ability with HTML will give me enough knowledge to extrapolate and easily pick up XML.” — Ouch
panpainter has joined #ruby
<Nilium>
That really depends on a lot of 'what's.
AndrewIsHere has quit []
<MassDebates>
adaedra: lol I feel it does. I've had to write XML before for several different HTML projects
tostr has joined #ruby
<Nilium>
OK, ignoring the whole XML-and-HTML-aren't-programming thing...
hk238 has joined #ruby
<Nilium>
(Because they aren't and we can just move on with life.)
<MassDebates>
I'm not arguing with that :
<MassDebates>
:P
<Nilium>
So you're making an Android app.
tdy has quit [Client Quit]
<Nilium>
How do you plan to use Ruby?
<Nilium>
Ruboto? JRuby? RubyMotion?
saneax is now known as saneax-_-|AFK
<Nilium>
Variant Ruby-like language such as Mirah?
<MassDebates>
rubymotion got me sold on ruby, was torn between ruboto and rubymotion. Didn't see JRuby
synthroid has quit [Remote host closed the connection]
tdy has joined #ruby
<MassDebates>
So I've come up with a series of diagrams. I know how each screen should look, what abilities the user is expected to have on there, everything. If I was making a webapp/similar, I'd be able to make it (and finish) it today.
<MassDebates>
I also realize this is going to be a bitch of a task for me to complete.
<Nilium>
So, on RubyMotion, it's statically compiled, so make sure to understand the limits of what it can do as an alternative implementation.
<unshadow>
.quit
unshadow has quit [Quit: leaving]
<MassDebates>
Right, I can't dynamically create the code, right?
<MassDebates>
er
<adaedra>
That was embarrassing.
<Nilium>
And then you're going to have to know how to translate Java to RubyMotion.
Akuma has quit [Quit: So long sukkas!]
<Nilium>
And vice versa, just because Android docs are all Java.
zeroDi has joined #ruby
eljimbo has joined #ruby
<Nilium>
So, do you have questions about Ruby specifically or do you need to ask Android/RubyMotion folks questions?
PlasmaStar has quit [Ping timeout: 265 seconds]
<MassDebates>
Determining that now lol
panpainter has quit [Ping timeout: 252 seconds]
vuoto has joined #ruby
tyang has quit [Ping timeout: 255 seconds]
pawnbox has joined #ruby
<MassDebates>
Okay, I think I need to ask android/rubymotion questions
TomyWork has quit [Ping timeout: 276 seconds]
<MassDebates>
or maybe just more general android dev questions
Vivekananda has quit [Quit: Leaving]
Vivekananda has joined #ruby
hutch34 has joined #ruby
craigp_ has quit [Ping timeout: 260 seconds]
Beams has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gingray has quit [Quit: leaving]
the_drow has joined #ruby
<MassDebates>
I'm trying to make an app that allows users to post posts on this app, related to a specific industry. Each post can have votes, replies (in a form similar to forum threads), and replies can have their own replies/comments. Replies and comments also have votes. Each post has meta data that may include pictures and multiple text values. Replies (and
<MassDebates>
comments) can have meta-data with parallels to the post metadata, but typically won't have more than just its normal text content (not text metadata), and typically won't have a lot of metadata if it does (but can).
<MassDebates>
I think it's best if I accurately determine what's the best language to use for this task, like someone said in here.
<Nilium>
So, Stack Overflow but for an industry that has somehow avoided creating its own Stack Exchange site.
dminuoso has joined #ruby
<MassDebates>
Well, it's not a Q&A and Stack Overflow is for dev. This is related to manfucturing stuff.
<MassDebates>
It's more about content-sharing
edgr has joined #ruby
<Nilium>
Yeah, but the model doesn't really require Q&A.
<MassDebates>
There's no asking or answering at all
<MassDebates>
More like "Yo we did this shit, do this with it and rate it thing"
<Nilium>
It's a generic model.
<MassDebates>
Oh, yeah
<MassDebates>
there's definitely going to be replies and comments
<MassDebates>
and votes
mlehrer has quit [Ping timeout: 276 seconds]
<MassDebates>
no questions or answers though. It's not an app that helps you.
<Nilium>
The language doesn't matter all that much on Android because there's pretty much only one way of doing anything, and it's all going to be Java-compatible-ish and run off of Dalvik, unless you make it a website.
<MassDebates>
So is there any benefit to using Ruby at all?
Guest69 has joined #ruby
vuoto has quit [Remote host closed the connection]
<Nilium>
Choosing a non-Java will, however, make life more difficult by virtue of there always being a case where you need to transform knowledge from space A to space B.
<Nilium>
For Android?
<MassDebates>
Yes
<Nilium>
Or in general?
vuoto has joined #ruby
<MassDebates>
btw thanks for spending the time and helping me
<Nilium>
I don't think there's much benefit to using Ruby on Android.
<MassDebates>
hope im not too frustrating
banisterfiend has joined #ruby
<MassDebates>
But if I don't use Ruby, it'll be more difficult and less transversible to iOS, right?
<MassDebates>
Because swiftC scares the shit out of me.
<Nilium>
That's going to be true regardless.
<Nilium>
RubyMotion isn't going to let you write an app once.
<MassDebates>
what does it do?
<Nilium>
It's a compiler.
<adaedra>
If you're doing Ruby for cross-platform aspect, you're going the wrong way.
<Nilium>
RubyMotion is literally just 1) statically compiled Ruby and 2) some additional things for helping with Android and iOS development, but not both at once.
shinnya has joined #ruby
<Nilium>
And I guess it does OS X, but it was experimental when I was using it for that.
vuoto has quit [Remote host closed the connection]
Sashimi has joined #ruby
submitnine has quit []
Guest69 is now known as mikeym
mikeym has quit [Changing host]
mikeym has joined #ruby
vuoto has joined #ruby
<MassDebates>
Okay, so I can't just simply (1) Write Ruby (2) Run compile from RubyMotion for Android (3) Run 2nd compile from RubyMotion for iOS
<MassDebates>
right?
<MassDebates>
And fork it before step 2 for step 3
<Nilium>
So, it's a cool project, but I find it cool more because I liken it to Rubinius even if that's not an accurate comparison in goals.
sumobob has joined #ruby
<Nilium>
You still have to write Android- and iOS-specific code.
mitt3ns has joined #ruby
<Nilium>
You are still going to have to know the difference between a view and cell in iOS and a layout and view in Android.
<Nilium>
Etc. for miles.
<MassDebates>
Fuck
tyang has joined #ruby
<MassDebates>
Well I was right when I assumed this is gonna suck
dionysus69 has quit [Ping timeout: 265 seconds]
_joes___ has joined #ruby
<chrisseaton>
And knowing the frameworks has always been the hard bit - I can write Java fine but I can't get my head around Android's libraries
<Nilium>
I can get by alright in Android but I feel like that's stockholme syndrome.
<chrisseaton>
And I know Objective C but not UIKit
<mitt3ns>
Mornin
mitt3ns is now known as agent_white
<Nilium>
Obj-C is a very cool language and I wish more people would appreciate it.
lifted has quit [Ping timeout: 265 seconds]
TvL2386 has quit [Remote host closed the connection]
<Nilium>
Maybe not so much the C bits because even if I like C, that scares the hell out of people.
ftj has joined #ruby
AlexRussia has quit [Ping timeout: 258 seconds]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
zacts has joined #ruby
Spami has joined #ruby
panpainter has joined #ruby
vuoto has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
vuoto has joined #ruby
etetz has joined #ruby
Sashimi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pokalyis has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
<darix>
Nilium: even apple thought it was time for a new language
<Nilium>
It gets a little hard to bolt things onto a language bolted onto C and keep everything compatible.
<adaedra>
tbf, it's not because they try to replace it that it makes the old one bad.
teclator has joined #ruby
<Nilium>
Obj-C's still good, but it's harder to evolve it.
smathy has joined #ruby
moneylotion has quit [Quit: ZNC 1.6.3 - http://znc.in]
<MassDebates>
I came in here earlier today, asking about Ruby and native mobile apps (iOS was touched upon, but Android was the focus)
<jt__>
how can I exit the loop and returning true ?
<MassDebates>
I need to ask more stuff
SeepingN has joined #ruby
<Mon_Ouie>
jt__: 'break true'
<Mon_Ouie>
Also you would be better of just using file.each_line.any?
<jt__>
Mon_Ouie: ok, I'll do that, thanks
yosafbridge has quit [Quit: Leaving]
<jt__>
Mon_Ouie: ah but I need see if the line start with "/home"
Snowy has quit [Remote host closed the connection]
<Mon_Ouie>
Yes, Enumerable#any? allows you to check whatever you want
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lifted has joined #ruby
Akuma has joined #ruby
mhib has quit [Quit: Leaving]
<jt__>
Mon_Ouie: isn't any? will check just the existence of item, no matter if it's on the begin,middle,end. I wanted it only to be true if line starts with /home
sneakers has quit [Read error: Connection reset by peer]
AndyBotwin has joined #ruby
weaksauce has quit [Ping timeout: 240 seconds]
jonadab has quit [Quit: leaving]
aegis3121 has quit [Ping timeout: 264 seconds]
Macaveli has joined #ruby
aegis3121 has joined #ruby
daffy_duck has quit [Ping timeout: 255 seconds]
araujo has joined #ruby
Akuma has quit [Quit: So long sukkas!]
iamb has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
waht has joined #ruby
Beast has quit [Quit: Leaving]
ramfjord has joined #ruby
jonadab has joined #ruby
conta has quit [Quit: conta]
govg has quit [Ping timeout: 250 seconds]
Silthias has quit [Quit: Leaving.]
m_antis has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
the_drow__ has quit [Quit: This computer has gone to sleep]
the_drow__ has joined #ruby
tdy has joined #ruby
Pip has joined #ruby
<Pip>
So when will Ruby 3 out?
jackjackdripper has quit [Quit: Leaving.]
aegis3121 has quit [Ping timeout: 276 seconds]
devbug has quit [Read error: Connection reset by peer]
<bougyman>
Pip: when it's ready
BackEndCoder has quit [Excess Flood]
angrycat has joined #ruby
<Pip>
bougyman, When will it be ready?
AlexRussia has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
<bougyman>
Pip: impossible to give an exact or even estimated time for that.
whathappens has joined #ruby
<Pip>
Okay
<angrycat>
Hi, is there a compiler available for Ruby. Ruby to machine code?
BackEndCoder has joined #ruby
<baweaver>
Look into Crystal. Different language, but based on Ruby. (jhass)
Karpuragauram has quit [Quit: Ex-Chat]
Guest69 has joined #ruby
lifted has quit [Ping timeout: 258 seconds]
<Pip>
Matz talked about Crystal during the RubyConf 2016 keynote in India.
RiPuk has quit [Ping timeout: 258 seconds]
claudiuinberlin has quit [Remote host closed the connection]
spudowiar has quit [Quit: gtg]
RiPuk has joined #ruby
<angrycat>
Ok thanks
the_drow__ is now known as the_drow
Guest69 has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 244 seconds]
Pip has quit [Quit: Leaving]
ngw has quit [Quit: Connection closed for inactivity]
machinewar has joined #ruby
RiPuk has quit [Ping timeout: 240 seconds]
m_antis has quit [Quit: Leaving]
<machinewar>
has anyone used rspec expect(obj).to receive(:msg) where obj overrides method missing? The test fails since obj doens't implement the method, but I want to make sure it does get sent that message
m_antis has joined #ruby
RiPuk has joined #ruby
Jayson_Virissimo has joined #ruby
agent_white has quit [Quit: brb in a bit]
<Mon_Ouie>
Have you properly implemented #respond_to_missing? in that object?
claudiuinberlin has joined #ruby
<machinewar>
hmm its a Nokogiri::Builder instance so not sure haven't looked at the source
Jayson_Virissimo has quit [Client Quit]
elastix has joined #ruby
<machinewar>
the problem is you don't know the methods being called until runtime
<Mon_Ouie>
Ah. I'm not sure how RSpec implements mocks, but when an object implements some methods through #method_missing, #respond_to_missing? needs to be redefined for methods like #respond_to? and Object#method to work properly
aegis3121 has joined #ruby
[Butch]_ has joined #ruby
<machinewar>
Mon_Ouie: ah makes sense thanks
angrycat has quit [Ping timeout: 264 seconds]
devbug has joined #ruby
dogweather has quit [Ping timeout: 252 seconds]
mosez has quit [Ping timeout: 252 seconds]
mosez has joined #ruby
[Butch] has quit [Ping timeout: 244 seconds]
[Butch]_ is now known as [Butch]
devbug_ has joined #ruby
govg has joined #ruby
AlexRussia has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
yardenbar has joined #ruby
cdg has quit [Remote host closed the connection]
pokalyis has joined #ruby
devbug__ has joined #ruby
devbug has quit [Ping timeout: 276 seconds]
nicoulaj has joined #ruby
m_antis has quit [Ping timeout: 255 seconds]
devbug_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
Harry_ has joined #ruby
m_antis has joined #ruby
nikivi has quit [Quit: irc]
<Harry_>
I have a polymorphic table and I am not sure the best way to test it's model in rspec.
<Harry_>
anyone have any ideas?
tdy has quit [Ping timeout: 244 seconds]
<Harry_>
this is what I have so far
<Harry_>
let(:user_x){FactoryGirl.create(:user)} let(:post_x){FactoryGirl.create(:post)} it "Create an image with valid attributes for a user" do user_x.image = Image.create(photo: File.new(Rails.root.join('spec', 'fixtures', "binaries", "dog_1.jpg"))) user_image = Image.find(user_x.image.id) expect(user_image).to be_valid expect(user_x.image.photo_file_name).to eq("dog_1.jpg") expect(user_x.image.photo_content_type).
ta has quit [Ping timeout: 250 seconds]
jt__ has quit [Ping timeout: 264 seconds]
dogweather has joined #ruby
elifoster has joined #ruby
alfiemax has joined #ruby
machinewar has quit [Remote host closed the connection]
dminuoso has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
nikivi has joined #ruby
vuoto has quit [Remote host closed the connection]
m_antis has quit [Quit: Leaving]
Dimik has joined #ruby
vuoto has joined #ruby
m_antis has joined #ruby
claudiuinberlin has joined #ruby
waht has quit [Quit: ircN 8.00 for mIRC (20100904) - www.ircN.org]
jaguarmagenta has joined #ruby
Evan- has quit [Quit: Oh shit the geek died!]
aryaching has quit [Remote host closed the connection]
symm- has joined #ruby
m_antis has quit [Client Quit]
m_antis has joined #ruby
tyang has quit [Ping timeout: 244 seconds]
Evan- has joined #ruby
m_antis has quit [Max SendQ exceeded]
jaguarmagenta has quit [Ping timeout: 264 seconds]
bob434 has joined #ruby
m_antis has joined #ruby
synthroid has joined #ruby
whathappens has quit [Remote host closed the connection]
tvw has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
suchness has quit [Read error: Connection reset by peer]
tvw has joined #ruby
the_drow_ has joined #ruby
the_drow has quit [Disconnected by services]
the_drow_ is now known as the_drow
marxarelli has joined #ruby
m_antis has quit [Remote host closed the connection]
m_antis has joined #ruby
dogweather has quit [Ping timeout: 258 seconds]
redpants has quit [Ping timeout: 276 seconds]
tdy has joined #ruby
last_staff has joined #ruby
shinnya has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
tyang has joined #ruby
flying has joined #ruby
dogweather has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
symm- has quit [Quit: Leaving...]
jackjackdripper1 has joined #ruby
LastWhisper____ has joined #ruby
coolboy has quit [Ping timeout: 264 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swills has quit [Ping timeout: 250 seconds]
waht has joined #ruby
lifted has joined #ruby
ta has joined #ruby
<flying>
how can I print a elemtn of a array?
the_drow has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 240 seconds]
rodfersou is now known as rodfersou|afk
the_drow has joined #ruby
lifted has quit [Read error: Connection reset by peer]
<musl_>
cd /home/mhix
<musl_>
weechat-curses
<SeepingN>
bzzz
<Papierkorb>
inefficient! type `cd ~mhix` instead.
<Papierkorb>
flying: print? where on for what purpose?
symm- has joined #ruby
yardenbar has quit [Ping timeout: 276 seconds]
<flying>
I have to add the element of a array in a puppet template
<flying>
array1[1] should select the second element of the array correct?
<Papierkorb>
yes
<flying>
why I have a strange number?
<Papierkorb>
"strange number"?
<flying>
if I try array1[2] it select the third element
<Papierkorb>
so?
tyang has quit [Ping timeout: 244 seconds]
<flying>
if I try array1[idx] where idx is an index of another array it prints a strange number
<flying>
like 46
<matthewd>
flying: The first element is array1[0]
<musl_>
Papierkorb: Sorry for the mt. :/
musl_ has quit [Quit: WeeChat 1.4]
musl has joined #ruby
m_antis has quit [Ping timeout: 255 seconds]
<matthewd>
flying: Either array1 doesn't contain what you think it does, or idx is not what you think it is
Spami has joined #ruby
Spami has quit [Client Quit]
<flying>
can I know what is the type in an array?
<flying>
int, char, etc etc
jonadab has quit [Read error: No route to host]
nankyokusei has joined #ruby
<Mon_Ouie>
Each element can be an instance of a different class
replay has quit [Ping timeout: 265 seconds]
Spami has joined #ruby
<matthewd>
flying: `p array1` may tell you what you need to know
<matthewd>
flying: Are you using a particularly ancient version of ruby?
redpants has joined #ruby
<flying>
I'm using the template in puppet
<matthewd>
?puppet
<ruby[bot]>
Please join #puppet for help with it.
Madplatypus has quit [Quit: Connection closed for inactivity]
nankyokusei has quit [Ping timeout: 264 seconds]
eljimbo has quit [Read error: Connection reset by peer]
byteflame has joined #ruby
shellie_ has quit [Remote host closed the connection]
<SeepingN>
array1[idx].class
malconis has joined #ruby
redpants has quit [Ping timeout: 264 seconds]
claudiuinberlin has quit [Remote host closed the connection]
jenrzzz has joined #ruby
claudiuinberlin has joined #ruby
eljimbo has joined #ruby
wugy has quit []
claudiuinberlin has quit [Remote host closed the connection]
bascht1 has quit [Quit: WeeChat 1.5]
andersoldahl has joined #ruby
lifted has joined #ruby
lifted has quit [Read error: Connection reset by peer]
andersoldahl has quit [Client Quit]
magikid has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Vingador has quit [Ping timeout: 258 seconds]
Es0teric has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
ledestin has joined #ruby
Es0teric has joined #ruby
lifted has joined #ruby
dogweather has quit [Ping timeout: 250 seconds]
nitric has quit [Quit: quit]
Devalo has joined #ruby
pawnbox has quit [Remote host closed the connection]
tyang has joined #ruby
Puffball has quit [Remote host closed the connection]
pawnbox has joined #ruby
nitric has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
byteflame has quit [Ping timeout: 260 seconds]
rsampaio_ has joined #ruby
s2013 has joined #ruby
aegis3121 has quit [Ping timeout: 250 seconds]
ta has joined #ruby
pwnd_nsfw` has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
aegis3121 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 255 seconds]
jmignault has quit [Ping timeout: 265 seconds]
claudiuinberlin has joined #ruby
byteflame has joined #ruby
nitric has quit [Quit: quit]
Snowy has joined #ruby
_whitelogger has joined #ruby
etetz has quit [Read error: Connection reset by peer]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
etetz has joined #ruby
coolboy has joined #ruby
etetz has quit [Read error: Connection reset by peer]
nitric has joined #ruby
etetz has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Coldblackice has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
nikivi has quit [Quit: irc]
synthroid has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
<flying>
hi guys I'm using ruby 1.8 ... I have a String and I need to print only one element ... how can I do that?
<dminuoso>
flying: It works. just not as you expected.
mustmodify__ has joined #ruby
<flying>
hum
<matthewd>
Strings don't have elements; if you mean a character, you probably want string1[n, 1]
the_drow has joined #ruby
rodfersou|afk has quit [Quit: leaving]
<matthewd>
(where `n` is the index of the character you want, and `1` is constant)
blackgoat has joined #ruby
unshadow has joined #ruby
eljimbo has quit [Quit: This computer has gone to sleep]
rodfersou has joined #ruby
<mustmodify__>
I'm running into "no _dump_data is defined for class StringIO" ... I assume this is a new-version-of-ruby issue... I'm testing that theory out now. But can anyone give me a push?
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
<matthewd>
flying: There aren't a lot of good reasons to be extracting characters from a string by index, though, so it might help if you explain what you really want to do
dionysus69 has quit [Ping timeout: 258 seconds]
<unshadow>
Hi All, for those of you who didn't see the former message. We have began with a project to implement the RDP protocol in pure Ruby, the project is MIT, you can find it here: https://github.com/Safe-T/rdp-rb
<flying>
yes I'm working on an old project where there is a string that contains few IPs... like xxx.xxx.xxx.xxx
<flying>
each of this IP is an element of that string
<dminuoso>
flying: look for String#unpack
<flying>
and I need to print only one "element"
<dminuoso>
flying: also String#split
<dminuoso>
And Array#pack
Devalo has quit [Ping timeout: 264 seconds]
<matthewd>
And IPAddr.ntop
jenrzzz_ has joined #ruby
<matthewd>
well new_ntoh, I guess
replay has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
minimalism has joined #ruby
<matthewd>
mustmodify__: You're trying to marshal a StringIO; don't do that
v0n is now known as vdl
vuoto has quit [Quit: Lost terminal]
jenrzzz has quit [Ping timeout: 244 seconds]
the_drow has joined #ruby
magikid has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
aries_liuxueyang has quit [Ping timeout: 250 seconds]
aries_liuxueyang has joined #ruby
Lucky_ABA has joined #ruby
redpants has joined #ruby
gizmore has quit [Remote host closed the connection]
last_staff has quit [Quit: goes moo moo]
wrkrcoop has joined #ruby
<wrkrcoop>
anyone got any code that recursively reads all files in a directory?
Vivekananda has quit [Read error: Connection reset by peer]
<dminuoso>
Papierkorb: thank you.
<dminuoso>
needed that\
tyang has quit [Ping timeout: 244 seconds]
the_drow has quit [Read error: Connection reset by peer]
swills has joined #ruby
<wrkrcoop>
matthewd: whats that
Spami has joined #ruby
the_drow has joined #ruby
Vivekananda has joined #ruby
<matthewd>
wrkrcoop: Seriously?
claudiuinberlin has quit []
<matthewd>
> i want to make a tool that creates a dependency tree of all methods and calsses in a repo
<wrkrcoop>
that does it?
<wrkrcoop>
so i can just feed it my repo?
<matthewd>
> [link to something called `Parser#classes_in(filename)`]
<matthewd>
> whats that?
Spami has quit [Client Quit]
<matthewd>
It won't magic your problem away, but it's going to be a pretty reasonable starting point
_joes___ has joined #ruby
<matthewd>
It's doing the "find all the classes" (but not methods) thing that you want.. it just has a slightly different goal once its extracted said data
_joes___ has quit [Client Quit]
_joes___ has joined #ruby
Coldblackice has joined #ruby
vdl has quit [Quit: WeeChat 1.5]
SeepingN has quit [Read error: Connection reset by peer]
<matthewd>
wrkrcoop: Have fun with this part, though: "a list of which scopes it might be defined in [depending on runtime details]" :/
postmodern has joined #ruby
<wrkrcoop>
thanks :}
_joes___ has quit [Client Quit]
SeepingN has joined #ruby
Spami has joined #ruby
Authenticator has joined #ruby
jaguarmagenta has joined #ruby
unshadow has quit [Ping timeout: 250 seconds]
<Authenticator>
I'm using Mechanize and I can't get it to either use a custom ca bundle, OR not verify the self-signed cert.
leea has quit [Ping timeout: 244 seconds]
the_drow has quit [Read error: Connection reset by peer]
vdl has joined #ruby
unshadow has joined #ruby
_joes___ has joined #ruby
the_drow has joined #ruby
<toretore>
?code Authenticator
<ruby[bot]>
Authenticator: We can't help you without your code, please post it to https://gist.github.com
_joes___ has quit [Client Quit]
tyang has joined #ruby
SeepingN has quit [Disconnected by services]
SeepingN_ has joined #ruby
_joes___ has joined #ruby
AzureStigma has joined #ruby
antgel has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
dminuoso has quit [Ping timeout: 255 seconds]
mhenrixon has joined #ruby
Kyhz has quit [Ping timeout: 258 seconds]
jaguarmagenta has quit [Ping timeout: 264 seconds]
BackEndCoder has quit [Excess Flood]
wrkrcoop has left #ruby [#ruby]
BackEndCoder has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
eljimbo has joined #ruby
duncannz has quit [Max SendQ exceeded]
whathappens has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
duncannz has joined #ruby
rodfersou has quit [Quit: leaving]
SeepingN_ has quit [Ping timeout: 244 seconds]
_joes___ has quit [Client Quit]
whathappens has quit [Read error: Connection reset by peer]
the_drow has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
ShinobiSX has joined #ruby
redpants has quit [Ping timeout: 244 seconds]
whathappens has quit [Read error: Connection reset by peer]
antgel has quit [Ping timeout: 244 seconds]
auxbuss has joined #ruby
Kyhz has joined #ruby
<ShinobiSX>
hello all
whathappens has joined #ruby
mustmodify__ has left #ruby [#ruby]
whathappens has quit [Read error: Connection reset by peer]
nicoulaj has quit [Remote host closed the connection]
<Authenticator>
I can't even get it to not check the cert, let alone use the right CA bundle and verify it.
<Authenticator>
That code works against a server with an externally signed CA though.
<Authenticator>
s/CA/cert/
xpitr has joined #ruby
xpitr has quit [Changing host]
xpitr has joined #ruby
<zenspider>
matthewd: I would rewrite that.
_joes_|2 has joined #ruby
flying has quit []
workmad3 has joined #ruby
djbkd has quit [Remote host closed the connection]
ta_ has joined #ruby
<matthewd>
It was originally supposed to be a quick short-term hack.. but isn't that always the way.
auxbuss has quit [Quit: I'm gone.]
axl_ has joined #ruby
ShinobiSX has left #ruby [#ruby]
axl_ has quit [Client Quit]
the_drow has quit [Read error: Connection reset by peer]
<matthewd>
zenspider: Do you mean because the code looks like ass (which it absolutely does), or because it's taking a fundamentally wrong/inadvisable/inferior approach?
machinewar has quit [Remote host closed the connection]
<zenspider>
matthewd: fundamentally wrong approach. Much easier / cleaner to write using sexp_processor
Vile` has joined #ruby
eljimbo has quit [Quit: This computer has gone to sleep]
the_drow has quit [Read error: Connection reset by peer]
byteflame has quit [Ping timeout: 244 seconds]
<zenspider>
559414.6: flog total 15.7: flog/method average 303 lines long. absolutely an utter mess
<zenspider>
wow
stoodfarback has quit [Quit: WeeChat 1.5]
bob434 has joined #ruby
<zenspider>
oops. I mixed my infos: 1024.2: ApplicationController::Filter#exp_changed app/controllers/application_controller/filter.rb:149 is 303 lines long and _amazing_
<zenspider>
I should finally do an analysis / showdown between manageiq and canvas' app
the_drow has joined #ruby
etetz has quit [Remote host closed the connection]
<matthewd>
Yeah, all of ApplicationController is pretty.. intense
etetz has joined #ruby
etetz has quit [Read error: Connection reset by peer]
etetz has joined #ruby
troulouliou_div2 has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
matp has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elifoster has quit [Quit: tienda]
RiPuk has quit [Ping timeout: 255 seconds]
yardenbar has joined #ruby
mhenrixon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramortegui has quit [Quit: Ex-Chat]
the_drow has quit [Read error: Connection reset by peer]
Vile` has quit [Read error: Connection reset by peer]
slackbotgz has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
the_drow has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
djbkd has joined #ruby
jackjackdripper has joined #ruby
nankyokusei has joined #ruby
mooru has joined #ruby
Guest43 has joined #ruby
Guest43 has quit [Changing host]
Guest43 has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
Pumukel has quit [Remote host closed the connection]
the_drow has quit [Read error: Connection reset by peer]
Vivekananda has quit [Quit: Leaving]
meth has joined #ruby
kirun has quit [Quit: Konversation terminated!]
Vingador has joined #ruby
Vingador has quit [Remote host closed the connection]
whathappens has joined #ruby
WSO has joined #ruby
dopamean_ has quit [Quit: WeeChat 1.3]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
hahuang61 has quit [Ping timeout: 276 seconds]
dminuoso has joined #ruby
<zenspider>
matthewd: you're being far too kind.
hahuang61 has joined #ruby
<matthewd>
I'm kind because I know they know, and are slowly working on making it better -- though admittedly most of the work so far (e.g., stuff I was working on) was focused more on the model layer
SeepingN has joined #ruby
Devalo has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
etetz has quit [Remote host closed the connection]
<matthewd>
Now instead of legacy code in a modern Rails app, I have neat code in legacy Rails apps (and modern Rails apps)... and sweet sweet predictable callbacks everywhere :D
<SeepingN>
sweet predictable callbacks, Batman. What was that?
<zenspider>
they know... but they're (imho) not actually _that_ dedicated to make it better. I've been eyeballing that app for years now.
spudowiar has joined #ruby
<pinky>
hmm i must be missing something, is there something just like values_at but i want the keys and values, to use along with each_pair
<zenspider>
the amount you could clean up with quick and obvious refactorings is staggering... completely letting alone actually fixing the architecture
<zenspider>
pinky: you have a list of keys and you want the values paired up?
unshadow has quit [Ping timeout: 276 seconds]
dminuoso has quit [Ping timeout: 250 seconds]
<pinky>
yeah i have an array of keys
<zenspider>
keys.map { |k| [k, h[k]] }
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has quit [Ping timeout: 260 seconds]
<pinky>
ah ya that would work, i guess thats just as efficent as values_at :) thanks!
<pinky>
i realized after writing this nice thing using values_at that i needed the key too for something else :(
<zenspider>
keys.zip(hash.values_at(keys))
<zenspider>
either one
<zenspider>
or seattle-style: keys.zip hash.values_at keys
ramfjord_ has joined #ruby
gingray has quit [Ping timeout: 276 seconds]
<pinky>
hmm actually not sure now.. i have: nid_hn.values_at(*nid_hn.keys.map(&:to_i).to_set.difference(nodeids.to_set).map(&:to_s)).each { |i| ... }
<pinky>
so kinda crazy, i wanted to just convert that to where i have |k,v| rather than just |i|
<pinky>
i am new to ruby, mainly done perl ... really enjoying ruby tho
slackbotgz has quit [Remote host closed the connection]
NetSage has joined #ruby
ReK2 has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 244 seconds]
ReK2 has joined #ruby
byteflame has joined #ruby
tyang has quit [Read error: Connection reset by peer]