apeiros changed the topic of #ruby to: Ruby 1.9.3-p374: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
<apeiros> atmosx: it is. but it's actually wrong.
<atmosx> yeah I thought 2 was the base in every case when dealing with data
<apeiros> KB = Kilobyte, Kilo == 1000
AsgardBSD has joined #ruby
<atmosx> what's wrong?
<atmosx> aaah
<atmosx> true
<atmosx> and KiB statns for what?
<atmosx> stands
<apeiros> as said, Kibbibyte
<apeiros> KiB = 2^10, MiB = 2^20, GiB = 2^30
_br_ has joined #ruby
<apeiros> (well, 2**10, 2**20, 2**30 if you want to use the way powers are written in ruby)
* atmosx wikipedia: -> The kibibyte is a multiple of the unit byte for quantities of digital information. The binary prefix kibi, a contraction of "kilo-, binary [equivalent]," denotes the base-ten number 1024, the round binary number closest to 1000;
Kuifje has quit [Ping timeout: 244 seconds]
<atmosx> didn't ever heard of kibibyte
* atmosx should take cs instead of pharmacy
AndChat| has quit [Ping timeout: 256 seconds]
<atmosx> canton7: lol intel kilobyte?
<atmosx> "amost 1024 but not quite?" lol
mengu has quit [Quit: This computer has gone to sleep]
<Hanmac> atmosx the problem was: some stuff was labled with base 10, like on harddisk storage, other stuff like adressed space, like RAM was labeld with base 2 ...
mengu has joined #ruby
<Hanmac> atmosx and some stuff like 1,44MB disks ... was labeld as an mix of both: 1,44 * 1000 * 1024 B
<apeiros> hard disks are usually in base 10
_br_ has quit [Excess Flood]
<atmosx> canton7: interesting, I've heard it before but never really read about it.
<atmosx> Hanmac: hard-disk spase is labelled in the base of 10?
<atmosx> space
<apeiros> which is why your 1TB hard drive is only ~930MB in your system
<atmosx> hm I see...
<apeiros> (because your system usually actually displays MiB)
<atmosx> that explains a lot
<atmosx> why HD's are using a 10 base anyway? that's idiotic :-/
_br_ has joined #ruby
<atmosx> doesn't make any sense having two different units
<workmad3> atmosx: technically, they don't
<canton7> there's also the fun of space needing to be used for the partitioning, which is fair enough but a little misleading
<Hanmac> apeiros: the problem: Windows systems uses 1024 but uses the wrong units
<workmad3> atmosx: HDDs are labeled in MB, OSes tend to display in MiB
maxmanders has quit [Quit: Computer has gone to sleep.]
<atmosx> I don't get the bits and bytes diff either. Speeds (ADSL speeds i.e.) are counted in bits where data is counted in bytes. But data travels through ADSL network so why use diff metrics (except from marketing reasons)
<atmosx> canton7: I always thought that the missing space was lost there, in partitioning and filesystem structure/etc.
<apeiros> Hanmac: not only the windows system
<canton7> and don't forget most things network-related using bits instead of bytes, which adds further to the number of units needed
mityaz has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
<apeiros> atmosx: as a seller, would you rather advertise 1TB or 0.93TiB?
<atmosx> 1 TB of course.
<apeiros> and technically, the OSes displaying TiB as TB (or GiB as GB) are in the wrong
<atmosx> I see
<Hanmac> apeiros: its the same when something costs only 99Cents :P
<apeiros> i.e., for once, the harddrive vendors do it right. even if their motivation is probably greed.
* atmosx finally fixed the bug
Rym has quit [Quit: Rym]
<canton7> atmosx, it does make sense. on a system, everything is a multiple of 8 bits, more or less. when you're talking networks, you're streaming bits - nothing says anything is a multiple of anything. if you've taken 8 bytes and compressed them down to 15 bits, that's cool. you send the 15 bits, not two bytes :P
jsilver has quit [Remote host closed the connection]
tenmilestereo[aw has joined #ruby
<atmosx> canton7: oh okay. However in my mind I always divice by 8 to get the actual speed :-P in "torrents" speed.
mercwithamouth has quit [Ping timeout: 248 seconds]
<cirwin> yeah, it's a clever marketing ploy to set the kb in kbps to mean kilo-bits
mercwithamouth has joined #ruby
<canton7> and there's the marketing side of it as well, of course :P
cantonic_ has joined #ruby
tenmilestereo has quit [Ping timeout: 245 seconds]
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
<atmosx> yes for marketing purposes is very handy
jimeh has quit [Quit: Computer has gone to sleep.]
<atmosx> UPC here sells 100 Mbits in some areas. All my friends, who use the computers for porn mostly, facebook-ing and reading think that they will download with 100 MB/s movies.
<atmosx> So it works greatly.
<atmosx> or should I say 100 MiB/s
<apeiros> depends on what they really provide :)
<apeiros> 100 MiB is certainly wrong
<apeiros> it'd be 12.5MiB, if at all
bel3atar has quit [Quit: ZNC - http://znc.sourceforge.net]
<apeiros> I don't know if there's miB too (like MB vs. mB)
<apeiros> I hope there isn't, as the mB thing is horrible.
<apeiros> gah, got it wrong
<apeiros> MB vs. Mb
<apeiros> and thus MiB vs. Mib (not sure whether Mib exists)
<atmosx> never heard/saw of either
eric_ has quit [Read error: Connection reset by peer]
jsilver has joined #ruby
<apeiros> so the answer is: yes, it exists
<cirwin> aka the meh-bibt
ruzu has quit [Quit: Leaving]
huoxito has quit [Ping timeout: 245 seconds]
<apeiros> atmosx: and the answer to whether you should say 100MB/s, 100MiB/s, 100Mb/s or 100Mib/s is: it's either 100Mb/s or 100Mib/s - but which of the two depends on what UPC actually delivers
phinfonet has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
<apeiros> and 100Mb/s == 12.5MB/s, 100Mib/s == 12.5Mib/s
<apeiros> *sob*, I probably should go to bed…
<apeiros> and 100Mb/s == 12.5MB/s, 100Mib/s == 12.5MiB/s # fixed
<atmosx> yeah me too
<atmosx> it's 12.5 MB/s measured which is impressive anyway
itsdavem has joined #ruby
Snova has joined #ruby
emocakes has quit [Quit: emocakes]
itsdavem has quit [Remote host closed the connection]
brianpWins has joined #ruby
brianpWins has quit [Remote host closed the connection]
pkrnj has joined #ruby
samuel02 has joined #ruby
scottmos has quit [Ping timeout: 256 seconds]
scottmos_ has joined #ruby
baroquebobcat has joined #ruby
kirun has quit [Quit: Client exiting]
samuel02_ has quit [Ping timeout: 260 seconds]
itsdavem has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
itsdavem has quit [Remote host closed the connection]
jsilver has quit [Read error: Operation timed out]
itsdavem has joined #ruby
* apeiros is still on 25Mb/s, even though UPC offers 100Mb/s here too
* heftig is still on 0.7Mb/s
beardyjay has joined #ruby
<apeiros> I just so rarely need more. I might upgrade to 75Mb/s as by now we're often watching videos at the same time
itsdavem has quit [Remote host closed the connection]
tommyvyo_ has joined #ruby
hackerdude has joined #ruby
* atmosx is at 600 KB/s downstream and 40 KB/s upstream (make your calculatoins lol)
thufir_ has quit [Quit: Leaving.]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
<apeiros> KB or Kb?
<apeiros> I think it's ~6y ago that I last had 600KB/s :)
<apeiros> oh, UPC actually offers 150Mb/s here
karasawa has joined #ruby
itsdavem_ has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
<atmosx> apeiros: I have no luck. I'm in the part of the city where internet connections are slow
<atmosx> no cable, no fast adsl...
<apeiros> ouch
<atmosx> yeap
<atmosx> I just got used to it
<apeiros> LTE?
tommyvyo_ has quit [Quit: http://thomasvendetta.com]
v0n has quit [Ping timeout: 240 seconds]
niklasb has quit [Ping timeout: 248 seconds]
nomenkun has joined #ruby
karasawa has quit [Ping timeout: 245 seconds]
Takehiro has joined #ruby
<atmosx> what's LTE?
Zespre has quit [Ping timeout: 240 seconds]
hackerdude has quit [Remote host closed the connection]
xyzodiac has joined #ruby
fyolnish has quit [Remote host closed the connection]
<heftig> fifth-gen mobile
b1lly has joined #ruby
fyolnish has joined #ruby
<heftig> much better latencies than 4g (umts/hspa+)
mengu has quit [Quit: This computer has gone to sleep]
<atmosx> I see
mengu has joined #ruby
<heftig> we've been stuck with a 768/128 kbit adsl line for years here
joofsh has quit [Remote host closed the connection]
<atmosx> heftig: oh, life sucks
<atmosx> Anyway I'm off to bed
<atmosx> gnite everyone
atmosx has quit [Quit: And so the story goes…]
<heftig> the heck
nomenkun has quit [Ping timeout: 246 seconds]
<heftig> why is that suddenly B- (faster than 60% of DE)
<heftig> it used to be F-
xsarin has quit [Quit: xsarin]
<heftig> slower than 97% of DE
workmad3 has quit [Ping timeout: 252 seconds]
Takehiro has quit [Ping timeout: 252 seconds]
hackerdude has joined #ruby
<apeiros> I find the ping interesting too
fyolnish has quit [Ping timeout: 240 seconds]
mneorr has joined #ruby
slainer68 has joined #ruby
oposomme has joined #ruby
niklasb has joined #ruby
mahmoudimus has joined #ruby
LtotheL has joined #ruby
slainer68 has quit [Ping timeout: 246 seconds]
Limada has quit [Ping timeout: 256 seconds]
bel3atar has joined #ruby
elico has joined #ruby
oposomme has quit [Quit: Leaving...]
jeffreybaird has quit [Quit: jeffreybaird]
rakl has joined #ruby
rakl has quit [Client Quit]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
picca has joined #ruby
jduan1981 has quit [Read error: Connection reset by peer]
samuel02_ has joined #ruby
jduan1981 has joined #ruby
valium has joined #ruby
samuel02 has quit [Ping timeout: 252 seconds]
picca has quit [Remote host closed the connection]
rakl has joined #ruby
Virunga has quit [Remote host closed the connection]
mengu has quit [Quit: Leaving]
F1skr has quit [Quit: WeeChat 0.3.9.2]
vlad_starkov has quit [Remote host closed the connection]
valium has quit []
locriani_ has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
xorrbit has joined #ruby
scottmos_ has quit [Remote host closed the connection]
main has quit [Ping timeout: 256 seconds]
elaptics is now known as elaptics`away
joeycarmello has quit [Remote host closed the connection]
joeycarmello has joined #ruby
x82_nicole has joined #ruby
Umren has quit [Read error: Connection reset by peer]
io_syl has quit [Ping timeout: 252 seconds]
mockra has joined #ruby
pjackson has quit [Quit: No Ping reply in 180 seconds.]
pjackson has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
io_syl has joined #ruby
mlue has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
awarner has quit [Remote host closed the connection]
mlue has joined #ruby
mlue has quit [Changing host]
mlue has joined #ruby
breakingthings has quit []
g0bl1n has joined #ruby
davidokner has quit [Quit: Lost terminal]
itsdavem_ has quit [Remote host closed the connection]
karasawa has joined #ruby
samuel02_ has quit [Remote host closed the connection]
elico has quit [Remote host closed the connection]
hybris has left #ruby [#ruby]
Icarot has joined #ruby
tjbiddle has joined #ruby
karasawa has quit [Ping timeout: 244 seconds]
nomenkun has joined #ruby
main has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
Roa is now known as Roa
tjbiddle_ has joined #ruby
nomenkun has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
Icarot has quit [Quit: ragequit()]
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
slainer68 has joined #ruby
bigmac has joined #ruby
solitude88 has quit [Quit: Leaving...]
charliesome has joined #ruby
paolooo has joined #ruby
johngalt2600 has joined #ruby
aedornm has quit [Quit: Leaving]
tenmilestereo[aw has quit [Quit: Leaving]
digitalcakestudi has joined #ruby
digitalcakestudi has quit [Client Quit]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 245 seconds]
shorts has joined #ruby
b1lly has quit [Quit: Leaving.]
slainer68 has quit [Ping timeout: 256 seconds]
IceDragon has quit [Ping timeout: 245 seconds]
b1lly has joined #ruby
niklasb has quit [Ping timeout: 248 seconds]
LtotheL has quit [Ping timeout: 245 seconds]
itsdavem has joined #ruby
Snova has left #ruby [#ruby]
skaczor has joined #ruby
aedornm has joined #ruby
digital-ghost has joined #ruby
Iszak has quit []
Takehiro has joined #ruby
main has quit [Ping timeout: 244 seconds]
IceDragon has joined #ruby
oposomme has joined #ruby
haxrbyte_ has joined #ruby
rippa has quit [Ping timeout: 252 seconds]
Takehiro has quit [Ping timeout: 246 seconds]
Playground has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
haxrbyte has quit [Ping timeout: 245 seconds]
Nisstyre-laptop has joined #ruby
Goopyo has quit [Remote host closed the connection]
kayloos has quit [Quit: Leaving]
Goopyo has joined #ruby
tjbiddle has quit [Ping timeout: 245 seconds]
digital-ghost has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
tjbiddle has joined #ruby
b1lly has left #ruby [#ruby]
samphippen has quit [Quit: Computer has gone to sleep.]
oposomme has quit [Quit: Leaving...]
joeycarmello has quit [Remote host closed the connection]
itsdavem has quit [Read error: Connection reset by peer]
x82_nicole has joined #ruby
freakazoid0223 has joined #ruby
pyx has joined #ruby
GeekSir has joined #ruby
karasawa has joined #ruby
yacks has joined #ruby
banister`sleep is now known as banisterfiend
nfk has quit [Quit: yawn]
nomenkun has joined #ruby
FifthWall has joined #ruby
jbw has quit [Ping timeout: 245 seconds]
karasawa has quit [Ping timeout: 256 seconds]
paolooo has quit [Ping timeout: 245 seconds]
iamjarvo1 has quit [Quit: Leaving.]
iamjarvo has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
itsdavem has joined #ruby
ggamel has quit [Remote host closed the connection]
fyolnish has joined #ruby
ggamel has joined #ruby
huoxito has joined #ruby
uris has quit [Quit: Leaving]
banisterfiend is now known as banister`sleep
Hanmac1 has joined #ruby
schiz0id has joined #ruby
<schiz0id> hi
ggamel has quit [Ping timeout: 252 seconds]
<schiz0id> My name is schiz0id, and I have been hacking since I was 13, well over 2 years.
<schiz0id> People know me as one of the elite, one who knows what they're doing.
tjbiddle has quit [Ping timeout: 256 seconds]
<schiz0id> Since hacking is a true art that isn't learned overnight (more like months), I decided to help those who are destined to master the art of hacking.
vlad_starkov has joined #ruby
<schiz0id> I will bestow upon all of you information that will guide you along your way, all the way to the end.
toekutr has joined #ruby
itsdavem has quit [Remote host closed the connection]
<banister`sleep> schiz0id: can u tell me where to buy weed
horofox has quit [Quit: horofox]
atno has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 255 seconds]
<schiz0id> I can tell you h4x0r stuff..... real h4x0rs don't uze weed, uz3rz R l00z3rz
tjbiddle has joined #ruby
havenn has joined #ruby
theanvah has quit [Read error: Connection reset by peer]
pskosinski has quit [Quit: Learn Life's Little Lessons]
jaequery has quit [Quit: Computer has gone to sleep.]
jbw has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
anonymuse has joined #ruby
love_color_text has quit [Ping timeout: 248 seconds]
<schiz0id> no fish today?
schiz0id has left #ruby ["Leaving"]
baroquebobcat has quit [Quit: baroquebobcat]
waxjar has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
hackerdude has quit [Remote host closed the connection]
waxjar has joined #ruby
daniel_- has quit [Ping timeout: 248 seconds]
Goopyo has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Goopyo has joined #ruby
huoxito has quit [Ping timeout: 245 seconds]
chrismhough has joined #ruby
huoxito has joined #ruby
yshh has joined #ruby
GeekSir has quit [Quit: GeekSir]
baroquebobcat has quit [Client Quit]
tjbiddle_ has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
Choobie has joined #ruby
tjbiddle has quit [Ping timeout: 244 seconds]
tjbiddle_ is now known as tjbiddle
araujo has quit [Quit: Leaving]
xemu has quit [Ping timeout: 245 seconds]
bigmac has quit [Quit: Leaving]
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
ggamel has joined #ruby
apeiros has joined #ruby
maxmanders has joined #ruby
freakazoid0223 has quit [Ping timeout: 256 seconds]
anonymuse has quit [Quit: Leaving.]
jds has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
plotplanexe has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 256 seconds]
JumpMast3r has joined #ruby
<fuzai> I have an application that is using eventmachine at its core. I would like to add a web server to the code. Could someone suggest an easy way to do this? I've been looking at Sinatra::Synchrony, but I don't understand how it knows which port to run on
huoxito has quit [Ping timeout: 256 seconds]
joeycarmello has joined #ruby
huoxito has joined #ruby
aaronm has quit [Killed (card.freenode.net (Nickname regained by services))]
tjbiddle has quit [Quit: tjbiddle]
aaronm_ has joined #ruby
<swarley> I need an opinion on how I'm parsing this
<swarley> token TkSignedInteger {
<swarley> [ '+' | '-' ]+ <TkInteger>
<swarley> }
jds has quit [Ping timeout: 240 seconds]
<swarley> Should I leave it like that, or should I make it pick the signedness up as unary method calls
<swarley> Well, I could just transfer it into the unary method calls
mlue has quit [Ping timeout: 252 seconds]
aeontech has joined #ruby
aeontech has quit [Client Quit]
gnarmis has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
<swarley> K. I just changed the definition to include ~!-+ to the signedness so that the unary methods will all be treated the same
_Dykam has joined #ruby
pjackson has quit [Quit: No Ping reply in 180 seconds.]
Zespre has joined #ruby
Drewch has quit [Excess Flood]
pjackson has joined #ruby
_Dykam has quit [Client Quit]
xyzodiac has quit [Quit: Textual IRC Client: www.textualapp.com]
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Drewch has joined #ruby
jaequery has joined #ruby
_Dykam has joined #ruby
love_color_text has joined #ruby
<wf2f> recommended books on software engineering and software design patterns?
mlue has joined #ruby
danneu has joined #ruby
<FifthWall> Practical Object-Oriented Design in Ruby by Sandi Metz
zph has joined #ruby
xsarin has joined #ruby
itsdavem has joined #ruby
nomenkun has joined #ruby
<FifthWall> The Ruby Rogues podcast recently had an episode on it.
<FifthWall> I'm only about a third of the way in, but so far it has been very good.
nomenkun has quit [Ping timeout: 245 seconds]
jblack has quit [Read error: Operation timed out]
cableray has joined #ruby
maxmanders has quit [Ping timeout: 246 seconds]
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
JumpMast3r has quit [Quit: JumpMast3r]
jmeeuwen has joined #ruby
JumpMast3r has joined #ruby
JumpMast3r has quit [Client Quit]
JumpMast3r has joined #ruby
chrismhough has quit [Quit: chrismhough]
<aedornm> 2 more minutes!
havenn has quit [Remote host closed the connection]
<FifthWall> till?
<shevy> ecstasy
<FifthWall> it's happened!
<shevy> good boy aedornm
huoxito has quit [Ping timeout: 260 seconds]
<aedornm> Until Amazon's next lightning deal! ... I'm a little bit bored
aapzak has quit [Ping timeout: 244 seconds]
karasawa has joined #ruby
plotplanexe has joined #ruby
aapzak has joined #ruby
opettaja has joined #ruby
oposomme has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
oposomme has quit [Quit: Leaving...]
hackerdude has joined #ruby
h8R has quit [Read error: Connection reset by peer]
toekutr has quit [Remote host closed the connection]
h8R has joined #ruby
yacks has quit [Quit: Leaving]
jaequery has quit [Quit: Computer has gone to sleep.]
<shevy> aedornm you need more ruby projects :-)
Takehiro has joined #ruby
MattRB has joined #ruby
pcarrier has joined #ruby
toekutr has joined #ruby
itsdavem has quit [Read error: Connection reset by peer]
itsdavem has joined #ruby
Jacob_ has joined #ruby
Jacob_ has left #ruby [#ruby]
Takehiro has quit [Ping timeout: 246 seconds]
<danneu> Is there a better way to determine if a string is a Date than rescuing ArgumentError (invalid date) from Date.parse(string)?
karasawa has quit [Ping timeout: 240 seconds]
<shevy> danneu that seems pretty good or?
<shevy> ::valid_date?
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> Date.valid_date?(2001,2,3) # => true
<shevy> Date.valid_date?(2001,2,29) # => false
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
Monie has joined #ruby
cantonic has quit [Quit: cantonic]
radic has quit [Disconnected by services]
radic_ has joined #ruby
pkrnj has quit [Ping timeout: 252 seconds]
breakingthings has joined #ruby
<breakingthings> What is %q{}?
thufir_ has joined #ruby
<aedornm> shevy: no, don't need more projects! Just trying to "relax" during the weekend... but I find I'm just bored instead
Playground has joined #ruby
aaronmacy has joined #ruby
xsarin has quit [Quit: xsarin]
<aedornm> breakingthings: a non-interpolated string
<shevy> aedornm ah, then you need to regard programming as a hobby, and do non-programming stuff for work, then you never run out of things you wanna do :-)
<danneu> shevy: rescue for flow control seems good to you?
<shevy> danneu well there exists .valid_date?
<shevy> I did not write the Date class, so you would have to ask the authors what they were thinking
<danneu> well, to use that you'd end up parsing the text
xsarin has joined #ruby
<danneu> I'm not really wondering why, just if someone's encountered a more sensible workaround
<shevy> danneu begin/rescue/ensure/end is some kind of flow control btw
<shevy> we even have catch/throw too!
<shevy> there are a million ways to do something, and they all stink
vlad_starkov has joined #ruby
<danneu> what's the official channel for ruby standard lib discourse for this sort of thing? i imagine someone has asked this
<danneu> is it the mailing list?
agarie has joined #ruby
<shevy> I myself sometimes feature requests
<shevy> *file feature requests
itsdavem has quit [Remote host closed the connection]
<shevy> but if you just wanna ask, sure, mailing list is good
<shevy> so what is the issue with autoload
templaedhel has joined #ruby
vlad_starkov has quit [Ping timeout: 255 seconds]
<aedornm> think it breaks threading
pyro111 has joined #ruby
love_color_text has quit [Remote host closed the connection]
AsgardBSD_ has joined #ruby
karasawa has joined #ruby
AsgardBSD has quit [Ping timeout: 248 seconds]
g0bl1n has quit [Quit: Ex-Chat]
noyb has joined #ruby
AsgardBSD has joined #ruby
AsgardBSD_ has quit [Read error: Operation timed out]
karasawa has quit [Ping timeout: 255 seconds]
esing has quit [Remote host closed the connection]
aaronmacy has quit [Quit: Leaving.]
jduan1981_ has joined #ruby
xorrbit has left #ruby [#ruby]
vDubG has quit [Quit: Got ZNC?]
jduan1981 has quit [Read error: Connection reset by peer]
jduan1981_ is now known as jduan1981
cableray_ has joined #ruby
cableray has quit [Ping timeout: 248 seconds]
cableray_ is now known as cableray
joofsh has joined #ruby
dankest has joined #ruby
erichmenge has quit [Ping timeout: 245 seconds]
almondo has joined #ruby
billy_ran_away has quit [Ping timeout: 252 seconds]
opettaja has quit [Remote host closed the connection]
davidcelis has quit [Ping timeout: 245 seconds]
davidcelis has joined #ruby
reuven` has quit [Ping timeout: 256 seconds]
rakl has quit [Quit: gone]
erichmenge has joined #ruby
<shevy> hmm
billy_ran_away has joined #ruby
otters has quit [Ping timeout: 252 seconds]
love_color_text has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
gurps has quit [Ping timeout: 276 seconds]
locriani has joined #ruby
cha1tanya has quit [Ping timeout: 246 seconds]
cha1tanya has joined #ruby
gurps has joined #ruby
xsarin has quit [Quit: xsarin]
gurps has quit [Quit: bye]
jaequery has joined #ruby
cableray has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
cha1tanya_ has joined #ruby
cableray has joined #ruby
cableray has quit [Client Quit]
cha1tanya has quit [Ping timeout: 240 seconds]
adeponte has quit [Remote host closed the connection]
otters has joined #ruby
autumn has quit [Remote host closed the connection]
aedornm has quit [Remote host closed the connection]
thomasfedb has quit [Remote host closed the connection]
waxjar has quit [Remote host closed the connection]
RONNCC has quit [Quit: Page closed]
hackerdude has quit [Remote host closed the connection]
TomyLobo has quit [Quit: Standby mode...]
gurps has joined #ruby
mahmoudi_ has joined #ruby
mahmoudimus has quit [Ping timeout: 256 seconds]
plotplanexe has quit [Remote host closed the connection]
ggamel has quit [Remote host closed the connection]
gurps has quit [Client Quit]
mneorr has quit [Remote host closed the connection]
jonahR has joined #ruby
gnarmis has quit [Remote host closed the connection]
jduan1981_ has joined #ruby
iIlL10Oo has joined #ruby
<iIlL10Oo> /home/kk/.rvm/rubies/ruby-1.9.3-p374/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require': libglut.so.3: cannot open shared object file: No such file or directory - /home/kk/.rvm/gems/ruby-1.9.3-p374/gems/ruby-opengl2-0.60.6/lib/glut.so (LoadError)
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
davidcelis has quit [Ping timeout: 245 seconds]
jduan1981 has quit [Ping timeout: 255 seconds]
xybre has quit [Ping timeout: 245 seconds]
davidcelis has joined #ruby
gurps has joined #ruby
<danneu> I wrote a scraper that handles predetermined URLs. What's the most sensible result for the consumer of my gem if, for whatever exceptional reason, my scraper can't parse the DOM? is that textbook use case for raising an exception?
MattRB has quit [Quit: This computer has gone to sleep]
xybre has joined #ruby
jduan1981_ has quit [Ping timeout: 244 seconds]
jduan1981 has joined #ruby
karasawa has joined #ruby
melisaa has joined #ruby
joofsh has quit [Remote host closed the connection]
v0n has joined #ruby
Takehiro_ has joined #ruby
MattRB has joined #ruby
cableray has joined #ruby
<blazes816> danneu: most likely. what is the result if it CAN be parsed?
oposomme has joined #ruby
karasawa has quit [Ping timeout: 255 seconds]
melisaa has quit [Quit: © Www.Kelebek.Org Mutlaka Download Edin! Kelebek Final irc.kelebek.org ßy wToprak ®]
slainer68 has joined #ruby
MattRB has quit [Client Quit]
MattRB has joined #ruby
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
oposomme has quit [Quit: Leaving...]
slainer68 has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Quit: Leaving.]
cha1tanya_ is now known as cha1tanya
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
aedornm has joined #ruby
mneorr has joined #ruby
plotplanexe has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
<iIlL10Oo> how to GetPixel without gems ?
<iIlL10Oo> main Desktop GetPixel
andrewhl has joined #ruby
tps_ has joined #ruby
cha1tanya has quit [Ping timeout: 256 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
MattRB has joined #ruby
kiyoura` has quit [Quit: Leaving]
mercwithamouth has joined #ruby
breakingthings has quit []
cha1tanya has joined #ruby
mneorr_ has joined #ruby
generalissimo has joined #ruby
stopbit has quit [Ping timeout: 245 seconds]
skaczor has quit [Remote host closed the connection]
jenrzzz has joined #ruby
gurps has quit [Quit: bye]
IceDragon has quit [Quit: Space~~~]
mneorr has quit [Ping timeout: 260 seconds]
Inoperable has quit [Ping timeout: 252 seconds]
cha1tanya has quit [Ping timeout: 246 seconds]
Inoperable has joined #ruby
stopbit has joined #ruby
Jonah11_ has quit [Read error: Connection reset by peer]
templaedhel has quit [Quit: Leaving...]
almondo has quit [Ping timeout: 255 seconds]
gurps has joined #ruby
nimred has quit [Ping timeout: 248 seconds]
FPSDavid has joined #ruby
<FPSDavid> anyone help me? i setup rvm and ruby, then ran gem install rails
Playground has joined #ruby
<FPSDavid> but if i type rails new, it says rails isnt installed
Karantin has left #ruby [#ruby]
mneorr_ has quit [Remote host closed the connection]
v0n has quit [Read error: Operation timed out]
cableray has quit [Read error: Connection reset by peer]
<FPSDavid> did i screw something up?
cableray has joined #ruby
nomenkun has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
bricker has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
noyb has quit [Ping timeout: 256 seconds]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
MattRB has joined #ruby
ninegrid has joined #ruby
cbosh has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 252 seconds]
karasawa has joined #ruby
<danneu> blazes816: basically i have a bunch of Page subclasses that do nothing but reimplement a `listings` method that return an array of Nodes. (listings.first.title, etc).
itsdavem has joined #ruby
<danneu> decided to raise an UnknownPageError.
karasawa has quit [Ping timeout: 255 seconds]
pyx has quit [Quit: WeeChat 0.3.9.2]
dmiller has quit [Ping timeout: 245 seconds]
andrewhl has quit [Remote host closed the connection]
FPSDavid has left #ruby [#ruby]
forced_request has quit [Read error: Connection reset by peer]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
dankest is now known as dankest|away
itsdavem has quit [Remote host closed the connection]
cbosh has joined #ruby
itsdavem has joined #ruby
itsdavem has quit [Remote host closed the connection]
nimred has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
dmiller has joined #ruby
pyro111 has quit [Ping timeout: 248 seconds]
cableray has quit [Quit: cableray]
aantix has joined #ruby
hadees has quit [Quit: hadees]
dmiller has quit [Ping timeout: 244 seconds]
aantix has left #ruby [#ruby]
JumpMast3r has quit [Quit: JumpMast3r]
aantix has joined #ruby
aantix has quit [Client Quit]
cbosh has quit [Ping timeout: 260 seconds]
aantix has joined #ruby
FifthWall has quit [Quit: Textual IRC Client: www.textualapp.com]
rezzack has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
kn330 has joined #ruby
robustus has joined #ruby
<iIlL10Oo> echo 'source "$HOME/.rvm/scripts/rvm"
iIlL10Oo has left #ruby [#ruby]
dankest|away has quit [Quit: Leaving...]
bluOxigen has joined #ruby
nobuoka has joined #ruby
nobuoka has quit [Client Quit]
vlad_starkov has joined #ruby
yakko has quit [Remote host closed the connection]
cbosh has joined #ruby
shorts has quit [Quit: shorts]
cha1tanya has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
joeycarmello has quit [Remote host closed the connection]
joeycarmello has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
Jacky has joined #ruby
BulleTime has joined #ruby
x82_nicole has joined #ruby
joeycarmello has quit [Remote host closed the connection]
dmiller has joined #ruby
Monie has quit [Ping timeout: 244 seconds]
pkrnj has joined #ruby
agarie has quit [Remote host closed the connection]
Chryson has quit [Quit: Leaving]
almondo has joined #ruby
LouisGB has joined #ruby
dmiller has quit [Ping timeout: 244 seconds]
pkrnj has quit [Client Quit]
oposomme has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
oposomme has quit [Quit: Leaving...]
<shevy> dumdedum
<shevy> anyone got good ideas for piping objects
<shevy> I figure the objects in question must be able to respond some kind of common operations or base, i.e. they must have some slots
karasawa has joined #ruby
LouisGB has quit []
solitude88 has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
cableray has joined #ruby
LouisGB has joined #ruby
LouisGB has quit [Client Quit]
karasawa has quit [Ping timeout: 256 seconds]
nomenkun has joined #ruby
LouisGB has joined #ruby
MattRB has joined #ruby
slainer68 has joined #ruby
maxmanders has joined #ruby
cableray has quit [Read error: Connection reset by peer]
cableray has joined #ruby
rippa has joined #ruby
tps_ has quit [Quit: tps_]
plotplanexe has quit [Remote host closed the connection]
maxmanders has quit [Client Quit]
slainer68 has quit [Ping timeout: 260 seconds]
earthquake has quit [Quit: earthquake]
Mon_Ouie has joined #ruby
veer has joined #ruby
veer is now known as Guest29713
subbyyy has quit [Ping timeout: 255 seconds]
Guest29713 has quit [Client Quit]
pyro111 has joined #ruby
subbyyy has joined #ruby
dwu has joined #ruby
baphled has quit [Ping timeout: 240 seconds]
dankest has joined #ruby
dankest has quit [Client Quit]
dankest has joined #ruby
Jacky has quit [Read error: Operation timed out]
lkba has quit [Ping timeout: 255 seconds]
thufir_ has quit [Quit: Leaving.]
jduan1981 has quit [Quit: jduan1981]
dankest has quit [Client Quit]
aaronm_ is now known as aaronm
nari has joined #ruby
vlad_starkov has joined #ruby
huoxito has joined #ruby
toekutr has quit [Read error: Connection reset by peer]
LouisGB is now known as louisror
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
joeycarmello has joined #ruby
louisror has quit []
louisror has joined #ruby
love_color_text has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
DaZ has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
louisror has quit [Client Quit]
louisror has joined #ruby
huoxito has quit [Ping timeout: 260 seconds]
<nazty> shevy, yo
<shevy> hey nazty
<shevy> still learning ruby?
<nazty> been researching
<nazty> trying to do a windows app
<nazty> i found ironruby + sharp develop
subbyyy has quit [Ping timeout: 260 seconds]
<shevy> I think ironruby died years ago
love_color_text has joined #ruby
snearch has joined #ruby
<nazty> did it?
<nazty> ohhh last release 2010
cirwin has quit [Quit: Leaving.]
<shevy> nazty the best you may be able to do is just write ruby scripts that work cross-plattform
<shevy> which should be very, very easy
charliesome has quit [Ping timeout: 245 seconds]
dmiller has joined #ruby
<shevy> only tiny differences, in threads, I think, and perhaps file paths (but that is also easy when you know about them)
<shevy> btw
<shevy> why do you use:
<shevy> self.InitializeComponent()
generalissimo has quit [Remote host closed the connection]
<shevy> the self.
<shevy> why
charliesome has joined #ruby
<nazty> i didnt
<nazty> sharpdevelop automated code
bricker_ has joined #ruby
rakl has joined #ruby
DaZ has joined #ruby
<shevy> ewwwww
ToTo has quit [Ping timeout: 240 seconds]
<shevy> it will always be better to use code written by yourself
<nazty> was just checkin it out
<shevy> I see
bricker has quit [Ping timeout: 245 seconds]
jeffreybaird has joined #ruby
cobragoat has quit [Remote host closed the connection]
MattRB has quit [Quit: This computer has gone to sleep]
dmiller has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
thansen has joined #ruby
<thansen> is it possible with bundle/gem to specific a rbconfig.rb override file? at the user level
otters has quit [Ping timeout: 248 seconds]
<danneu> nazty: maybe jruby + a java ui kit might work for you
karupanerura has quit [Excess Flood]
karupanerura has joined #ruby
banister_ has joined #ruby
banister`sleep has quit [Read error: Connection reset by peer]
moted has quit [Ping timeout: 245 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
keanehsiao has joined #ruby
<keanehsiao> hi. anybody use eventamchine & goliath? I faced concurrent network connection issue while connections > 1024.. I tried epoll.. but didn't work…
nimred has quit [Ping timeout: 248 seconds]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
prayag_verma has joined #ruby
prayag_verma has left #ruby [#ruby]
danneu has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
tjbiddle has joined #ruby
gurps has quit [Ping timeout: 248 seconds]
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
maxmanders has joined #ruby
slainer68 has quit [Ping timeout: 248 seconds]
gurps has joined #ruby
cableray has quit [Ping timeout: 256 seconds]
skcin7 has quit [Quit: Computer has gone to sleep.]
fyolnish_ has joined #ruby
fyolnish has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
quest88 has quit [Quit: quest88]
marr has joined #ruby
Bry8Star has quit [Quit:]
tjbiddle has quit [Quit: tjbiddle]
horofox has joined #ruby
maxmanders has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
horofox_ has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
<shevy> do you guys prefer upcased, downcased or mixed case directory names?
horofox has quit [Ping timeout: 252 seconds]
horofox_ is now known as horofox
Umren has joined #ruby
agarie has joined #ruby
<shevy> I currently have both upcased and downcased ones... for instance. YAML/ rather than yaml/
plotplanexe has joined #ruby
plotplanexe has quit [Changing host]
plotplanexe has joined #ruby
braoru has joined #ruby
planplotexe has joined #ruby
planplotexe has quit [Client Quit]
plotplanexe has quit [Client Quit]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
<louisror> Hey Guise. I've got an £80,000 Senior Ruby-on-Rails developer role at one of the most desireable teams to work for in London + Multiple contracts at £300-400 /day onsite accross the UK if thats relevent to anyone at the moment? Msg for details - LouisRoR.com
oposomme has joined #ruby
plotplanexe has joined #ruby
nyuszika7h has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
dmiller has joined #ruby
snearch has quit [Quit: Verlassend]
Zolo has joined #ruby
oposomme has quit [Quit: Leaving...]
vlad_starkov has joined #ruby
arietis has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
rramsden has quit [Quit: Lost terminal]
aantix has quit [Quit: aantix]
_Dykam has quit [Quit: changing servers]
<shevy> hmm how do I obtain a listing of files at URL: http://curl.haxx.se/download/ via ruby?
browndawg has joined #ruby
jonahR has quit [Quit: jonahR]
<shevy> gah I killed firefox
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
danneu has joined #ruby
epta has quit [Quit: leaving]
emocakes has joined #ruby
dimka has joined #ruby
bel3atar has quit [Ping timeout: 260 seconds]
dwu has quit [Quit: Leaving.]
cobragoat has joined #ruby
coderhut has joined #ruby
bel3atar has joined #ruby
dimka is now known as epta
jaequery has quit [Quit: Computer has gone to sleep.]
bel3atar has quit [Client Quit]
cobragoat has quit [Ping timeout: 256 seconds]
bel3atar has joined #ruby
blacktulip has joined #ruby
kn330 has quit [Ping timeout: 240 seconds]
adambeynon has joined #ruby
artm has joined #ruby
nimred has quit [Read error: Operation timed out]
jaequery has joined #ruby
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
kn330 has joined #ruby
slainer68 has joined #ruby
apeiros has joined #ruby
nyuszika7h has joined #ruby
dv__ has joined #ruby
horofox has quit [Ping timeout: 252 seconds]
dv_ has quit [Ping timeout: 248 seconds]
horofox has joined #ruby
Kakera has joined #ruby
Tux-Tn has quit [Quit: ZNC - http://znc.sourceforge.net]
jaequery has quit [Quit: Computer has gone to sleep.]
razibog has joined #ruby
hotovson has joined #ruby
conurb has left #ruby [#ruby]
nimred has quit [Ping timeout: 248 seconds]
oposomme has joined #ruby
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
Tux-Tn has joined #ruby
lolmaus has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
banister`sleep has joined #ruby
gutsiest60 has quit [Ping timeout: 248 seconds]
tjbiddle has joined #ruby
horofox_ has joined #ruby
gutsiest60 has joined #ruby
planplotexe has joined #ruby
plotplanexe has quit [Ping timeout: 248 seconds]
tjbiddle has quit [Client Quit]
horofox has quit [Ping timeout: 256 seconds]
horofox_ is now known as horofox
<louisror> Hey Guise. I've got an £80,000 Senior Ruby-on-Rails developer role at one of the most desireable teams to work for in London + Multiple contracts at £300-400 /day onsite accross the UK if thats relevent to anyone at the moment? Msg for details - LouisRoR.com
timonv has joined #ruby
bricker has joined #ruby
QaDeS has joined #ruby
jds has joined #ruby
bricker_ has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
Xeago has joined #ruby
bcx has joined #ruby
telli has joined #ruby
dmiller has quit [Ping timeout: 248 seconds]
kn330 has quit [Ping timeout: 240 seconds]
moshee has quit [Ping timeout: 245 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
kn330 has joined #ruby
<Su-Shee> shevy: a) YAML is an acronym and stays like it is, b) with any of your preferred http/ftp client modules or simply with wget/cURL and as this looks like FTP I'd simply actually use FTP (it comes with listing files commands out of the box..)
zz_chrismcg is now known as chrismcg
<shevy> hmm good idea, let's see
artm has quit [Quit: artm]
artm has joined #ruby
kn330 has quit [Ping timeout: 255 seconds]
kn330 has joined #ruby
agarie has quit [Remote host closed the connection]
mneorr has joined #ruby
sayan has quit [Ping timeout: 256 seconds]
banister`sleep has quit [Ping timeout: 245 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<shevy> awww... time for new installation
shevy has quit [Quit: ""]
havenn has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Su-Shee_ has joined #ruby
Su-Shee has quit [Disconnected by services]
Su-Shee_ is now known as Su-Shee
emergion has joined #ruby
cha1tanya has quit [Quit: Leaving]
daniel_- has joined #ruby
aaronmacy has joined #ruby
pcarrier has quit []
browndawg has quit [Quit: Leaving.]
<keanehsiao> hi. anybody use eventamchine & goliath? I faced concurrent network connection issue while connections > 1024.. I tried epoll.. but didn't work…
rippa has quit [Read error: Connection reset by peer]
spinagon has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
emergion has quit [Ping timeout: 264 seconds]
<keanehsiao> errr….. I think I have no time to switch to celluloid… since I use goliath and all stuff is depends on eventmachine…. ><
Takehiro_ has quit [Remote host closed the connection]
emergion has joined #ruby
RagingDave has joined #ruby
nimred has quit [Quit: leaving]
mnemon has joined #ruby
timonv has quit [Remote host closed the connection]
stayarrr has joined #ruby
<mnemon> so, who forgot to renew modruby.net? ;)
sayan has joined #ruby
mneorr has quit [Remote host closed the connection]
Dakuan has joined #ruby
bcx has quit [Quit: Leaving.]
rakl has quit [Quit: sleeping]
Neomex has joined #ruby
horofox_ has joined #ruby
Neomex has quit [Client Quit]
maxmanders has joined #ruby
<emocakes> mnemon?
<emocakes> oh i see
<emocakes> but why is it a 502?
<emocakes> *503
horofox has quit [Ping timeout: 252 seconds]
horofox_ is now known as horofox
coderhut has quit [Quit: Page closed]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
<louisror> Hey Guise. I've got an £80,000 Senior Ruby-on-Rails developer role at one of the most desireable teams to work for in London + Multiple contracts at £300-400 /day onsite accross the UK if thats relevent to anyone at the moment? Msg for details - LouisRoR.com
reinaldob has joined #ruby
karasawa has joined #ruby
pcarrier has joined #ruby
Nss has joined #ruby
mengu has joined #ruby
browndawg has joined #ruby
gyre007 has quit [Remote host closed the connection]
rezzack has quit [Quit: Leaving.]
Spooner has joined #ruby
pcboy_ has quit [Ping timeout: 248 seconds]
hotovson has quit [Ping timeout: 245 seconds]
pcboy_ has joined #ruby
elico has joined #ruby
dmiller has joined #ruby
hotovson has joined #ruby
havenn has quit [Remote host closed the connection]
aaronmacy has quit [Quit: Leaving.]
TheFuzzball has joined #ruby
kn330 has quit [Ping timeout: 252 seconds]
elico has quit [Client Quit]
Kuifje has joined #ruby
stayarrr has quit [Quit: Linkinus - http://linkinus.com]
spinagon has quit [Read error: Connection reset by peer]
stayarrr has joined #ruby
oposomme has quit [Quit: Leaving...]
dmiller has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
love_color_text has quit [Remote host closed the connection]
Dakuan has quit [Remote host closed the connection]
maxmanders has quit [Quit: Computer has gone to sleep.]
Dakuan has joined #ruby
love_color_text has joined #ruby
shorts has joined #ruby
oposomme has joined #ruby
Dakuan has quit [Ping timeout: 245 seconds]
pcarrier has quit []
<mnemon> emocakes: i'm just getting nxdomain
Rydefalk has quit [Read error: Connection reset by peer]
Rydefalk has joined #ruby
oposomme has quit [Quit: Leaving...]
VanM has joined #ruby
clocKwize has joined #ruby
reinaldob has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
mfridh has quit [Ping timeout: 276 seconds]
b1rkh0ff has joined #ruby
\rs has left #ruby ["WeeChat 0.3.9.2"]
timonv has joined #ruby
danneu has joined #ruby
karasawa has quit [Ping timeout: 256 seconds]
karasawa has joined #ruby
BulleTime has quit [Ping timeout: 256 seconds]
pavilionXP has joined #ruby
shevy2 has joined #ruby
shevy2 is now known as shevy
<shevy> wheeee
<shevy> I am back on linuxmint
<shevy> and things just work :)
<shevy> no stupid unity... no strange resolution problems...
havenn has joined #ruby
nari has quit [Read error: Operation timed out]
artm has quit [Remote host closed the connection]
<emocakes> shevy, you actually thought ubuntu would be good?
pcarrier has joined #ruby
* emocakes giggles
artm has joined #ruby
dickery has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
<johngalt2600> shevy, I'm with you bro, just installed mint again last night
<emocakes> isnt bad either
<shevy> emocakes man it is not just ubuntu... I think most distributions really SUCK :(
<shevy> there are a few partial exceptions to this rule
<shevy> just all the hype surrounding... kde4 in the beginning (turned out it was too buggy to "excite" anyone for many months...), or the purposeful unusable unity crap being the "next great innovation that we all so wanted" ...
moted has joined #ruby
<emocakes> last time I actually liked using a linux desktop was SuSe 10
<emocakes> with KDE
<shevy> ack
<shevy> suse
<emocakes> before it was opensuse
<emocakes> suse is nice shevy
<emocakes> for a desktop OS i think its suitable
<emocakes> at least back then
<emocakes> nowadays, I dunno
<emocakes> i kinda agree with kde4
<emocakes> *with you on kde4
stayarrr has quit [Quit: Leaving...]
<johngalt2600> I'm a big fan of debian sid but it just doesnt work from virt-manager when you enable the clipboard with spice and qxl... so it's lubuntu or fedora for my vm... but yum is evil
samuel02 has joined #ruby
<shevy> :(
<emocakes> wasnt spice from plan9 john?
<Su-Shee> .oO(slackware..)
<shevy> everything should be elegant and beautiful, like ruby
<johngalt2600> no clue
VanM has quit [Quit: Leaving]
<Su-Shee> spice is from dune.
<johngalt2600> spice as opposed to vnc
<emocakes> im just not a big fan of gnome3
<emocakes> or kde4
pcarrier has quit []
<emocakes> id prefer windows 7 interface on top of linux
<emocakes> that would be good
<johngalt2600> eww... at least you didnt say windows 8... that's almost identical to the netbook interface in unity
<emocakes> windows 8 metro UI is shit
<shevy> hehe
<Su-Shee> I love metro, it's the most beautiful UI I've ever worked with. amazing. and rather smooth if you come from Linux anyways.
<emocakes> i like the desktop UI
Nss has quit [Remote host closed the connection]
<johngalt2600> I'm not a fan of the network interface be it under M$ or linux
pac1 has joined #ruby
<johngalt2600> netbook
timonv has quit [Read error: Connection reset by peer]
<johngalt2600> or tablet interface.. whatever you want to call it
timonv_ has joined #ruby
pavilionXP has quit [Read error: Operation timed out]
<Su-Shee> well I have my windowmanager configured similarily anyways for years, so I liked it.
Umren|2 has joined #ruby
Takehiro has joined #ruby
sepp2k has joined #ruby
Umren has quit [Ping timeout: 252 seconds]
pavilionXP has joined #ruby
horofox_ has joined #ruby
<shevy> Su-Shee what is your windowmanager?
<Su-Shee> fvwm again.
<shevy> nice
<shevy> that's similar to fluxbox right?
dickery has quit [Ping timeout: 248 seconds]
horofox has quit [Ping timeout: 248 seconds]
horofox_ is now known as horofox
<Su-Shee> well it's a plain windowmanager so in that regard they're all similar..
<louisror> Hey Guise. I've got an £80,000 Senior Ruby-on-Rails developer role at one of the most desireable teams to work for in London + Multiple contracts at £300-400 /day onsite accross the UK if thats relevent to anyone at the moment? Msg for details - LouisRoR.com
<johngalt2600> lxde on this vm and testing cinnamon on mint as the host
<shevy> Su-Shee dunno... fluxbox I liked... but things like ion or ratpoison I hated
<shevy> xfce is ok too
baphled has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
<emocakes> try out elementaryOS shevy
<emocakes> in a vm
<emocakes> its nice
<emocakes> its the only UI i enjoy actually these days in linux
eldariof has joined #ruby
<emocakes> havent tried mint in a while though
<emocakes> it is a bit buggy
<emocakes> already found 3 bugs
atno has joined #ruby
<shevy> emocakes ok
<emocakes> but thats beta :p
samuel02 has quit [Remote host closed the connection]
<shevy> hmmmmm
diegoviola has joined #ruby
dmiller has joined #ruby
sporkbomb has joined #ruby
apeiros has quit [Remote host closed the connection]
clocKwize has quit [Quit: clocKwize]
baphled has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
Rym has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
Dann1 has joined #ruby
gyre007 has joined #ruby
dickery has joined #ruby
gyre007 has quit [Ping timeout: 248 seconds]
baphled has joined #ruby
<dickery> Hey All ... I need some help with Ruby 1.8.7 and ordered hashes
_br_ has quit [Excess Flood]
horofox has quit [Remote host closed the connection]
horofox has joined #ruby
Dakuan has joined #ruby
horofox has quit [Read error: Connection reset by peer]
horofox has joined #ruby
baphled has quit [Ping timeout: 248 seconds]
oposomme has joined #ruby
<Spooner> dickery, What is your issue? 1.9 hashes are ordered but 1.8.7 aren't
pcarrier has joined #ruby
horofox has quit [Client Quit]
_br_ has joined #ruby
<shevy> dickery you could use .sort, then use an array in an array for output in 1.8.x
baphled has joined #ruby
<dickery> shevy: I am loading a yaml file ... and then looping in it ... the out put is not in the arrangement as expected
BulleTime has joined #ruby
horofox has joined #ruby
<dickery> I saw that 1.9 takes care of it ... ut I am kinda stuck with 1.8.7
<Spooner> dickery, Yes, 1.8.7 hashes aren't ordered and won't be in the order they are in the file.
<shevy> dickery told you to use .sort
<shevy> .sort_by
Dakuan has quit [Ping timeout: 248 seconds]
<Spooner> shevy, That assumes that the hash is ordered in the yaml in a measurable way, not just in the order they should be used.
love_color_text has quit [Remote host closed the connection]
<shevy> why? he can .sort any way he wants to
Takehiro has joined #ruby
<Spooner> shevy, Ordered hashes have nothing to do with being sorted. They are the order you put them in.
<dickery> right .. and that's my problem :)
<Spooner> shevy: { a: 5, c: 7, b: 4} can't be manually sorted to that order, but hey, it might be the order I want to iterate through.
<shevy> hmm
louisror has quit [K-Lined]
oposomme has quit [Quit: Leaving...]
<Spooner> dickery, I'm afraid you are stuck really in 1.8.7. If it matters, the YAML should be arranged as an array of hashes [{a: 5}, {c: 7}, {b: 4}].
spinagon has joined #ruby
rippa has quit [Read error: Connection reset by peer]
<Spooner> or [{name: 'a', value: 5}, ...] perhaps. I don't know what your data is.
Takehiro has quit [Remote host closed the connection]
<emergion> When developing gems, how do most people quickly test their code? surely not a full gem build && gem install ?
<Spooner> emergion, rake spec
BulleTime has quit [Ping timeout: 256 seconds]
<Spooner> emergion, or ruby -Ilib bin/command
<Hanmac1> emergion & Spooner i use rake + unittests
daniel_- has quit [Ping timeout: 255 seconds]
<emergion> Hanmac1, yeah I guess if you code coverage is that awesome, you know it's going to work.
<emergion> Spooner, yeah I've used that method before, from memory it didnt take arguments
<emergion> cheers though, will try again
vlad_sta_ has joined #ruby
Hanmac1 is now known as Hanmac
horofox_ has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
horofox has quit [Ping timeout: 252 seconds]
horofox_ is now known as horofox
vlad_starkov has quit [Ping timeout: 245 seconds]
bergelmir has joined #ruby
_br_ has quit [Excess Flood]
oposomme has joined #ruby
<shevy> RubyOS RubyOS RubyOS
_br_ has joined #ruby
pskosinski has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
_br_ has quit [Excess Flood]
daniel_- has joined #ruby
_br_ has joined #ruby
<bergelmir> is it okay to have only attr_accessors in a dto? (noob question)
crackfu has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Hanmac> bergelmir what is an dto?
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
<bergelmir> Hanmac: Data Transfer Object
x0F_ is now known as x0F
<Hanmac> bergelmir you may want to look at Struct or OpenStruct, it does everything for you
<shevy> bergelmir what is a data transfer object, is that a special object
_br_ has quit [Excess Flood]
<shevy> attr_accessor :foo is exactly the same as doing: def foo; @foo; end and def foo=(i); @foo = i; end
pcarrier has quit []
<bergelmir> shevy: yeah and you have only accessors and mutators in a dto
itsdavem has joined #ruby
<Hanmac> huch, what are mutators?
banister`sleep has joined #ruby
<shevy> lol
lateau has quit [Read error: Connection reset by peer]
<shevy> he uses funny words :)
<carlzulauf> sounds like java speek
<shevy> "my object has mutators"
<shevy> I thought java was classic:
<shevy> getter & setter
<shevy> my objects tend to have epic, chromic 2.0 mutators
<bergelmir> read the wikipedia article which is quite influenced by java
<carlzulauf> I remember using DTOs, DAOs (Data Access OBject), SAOs (Service Access Object) and terms like that in Java
Cooler__ has joined #ruby
<shevy> Computer science: "A mutator method, an object method that changes the state of the object"
<shevy> bergelmir since @ivars are state, every method that changes an @ivar is a mutator method. so sure, attr_accessor and attr_write are "mutator methods"
_br_ has joined #ruby
<shevy> I dont get the difference to a setter however
<carlzulauf> there isn't one
_br_ has quit [Excess Flood]
Cooler_ has quit [Ping timeout: 248 seconds]
<Hanmac> bergelmir: DTO = Struct.new(:attr1,:attr2,:attr3)
<bergelmir> Hanmac: Struct and OpenStruct feel a bit unspecific...
horofox_ has joined #ruby
horofox_ has quit [Client Quit]
samphippen has joined #ruby
horofox has quit [Ping timeout: 252 seconds]
<bergelmir> Hanmac: because you know that a User has a name, but you don't know if a (Open-)Struct has a name attribute.
<carlzulauf> OpenStruct is maybe unspecific, but Struct is pretty specific
Banistergalaxy has quit [Ping timeout: 256 seconds]
_br_ has joined #ruby
clocKwize has joined #ruby
<Spooner> bergelmir, User = Struct.new(:name) gives User the attribute name. Openstruct is just a layer over a hash, but Struct sounds like what you want.
Banistergalaxy has joined #ruby
<bergelmir> okay, then you need to setup a "factory" to be able to create those objects at multiple places
<Spooner> bergelmir, Or class User < Struct.new(:name); end to define it as a formal class.
_bart has joined #ruby
_br_ has quit [Excess Flood]
<carlzulauf> you can even give it some additional methods using Spooner's example
_br_ has joined #ruby
<shevy> one day I wanna make a mud in ruby using structs alone
<Spooner> carlzulauf, Wouldn't be a DTO if it did anything but store data.
<carlzulauf> I was thinking some serialization method or something
<carlzulauf> but maybe that concern should live elsewhere
johngalt2600 has quit [Quit: Leaving]
<Hanmac> Spooner User = Struct.new(:name) { } is better than your sample
Dakuan has joined #ruby
statarb3 has joined #ruby
<Xeago> Hanmac: mind elaborating?
<shevy> an empty block!
<shevy> only sushi is better than an empty block
statarb3 has quit [Client Quit]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
ddv has quit [Ping timeout: 240 seconds]
_br_ has quit [Excess Flood]
<bergelmir> Spooner's example (class User ...) feels like a matching solution for my needs :)
<Hanmac> Xeago & bergelmir: spooner creates an anonymus class and uses this as parent, in my sample no anon class is maked
albakry has joined #ruby
_br_ has joined #ruby
dmiller has joined #ruby
<Spooner> Hanmac, I agree, but my version is more comfortable :D
<bergelmir> why are your Struct examples better than this? class User attr_accessfor :name, :email end
daniel_- has quit [Read error: Operation timed out]
<Spooner> bergelmir, Because they are more concise and also they generate an initialize for you.
<bergelmir> "they generate an initialize"?
elaptics is now known as elaptics`away
<Spooner> User = Struct.new(:name, :address) => class User; attr_accessor :name, :address; def initialize(name, address); @name, @address = name, address; end; end
_br_ has quit [Excess Flood]
<bergelmir> Struct.new(:a, :b, :c, :d, :e, :f, ...) --> initialize(a, b, c, d, e, f, ...)?
<Spooner> bergelmir, It is all just sugar though. But it is just like using attr_accessor rather than manually writing two methods. Ruby people are lazy.
<shevy> hehe
<Spooner> bergelmir, Yes.
ddv has joined #ruby
dmiller has quit [Ping timeout: 256 seconds]
pcarrier has joined #ruby
<bergelmir> i know i need to create a dto with about 10 attributes... an initialize with 10+ parameters feels a bit ugly
Banistergalaxy has quit [Ping timeout: 245 seconds]
<Spooner> bergelmir, Then what else do you suggest for initialisation?
<bergelmir> passing a hash? :D
main has joined #ruby
<canton7> yeah, I'd go with a hash
<Spooner> Openstruct takes a hash :D
almondo has quit [Quit: Leaving]
Banistergalaxy has joined #ruby
<Spooner> Or just pass a hash. Perfectly designed as a DTO :D
lateau has joined #ruby
_br_- has joined #ruby
johngalt2600 has joined #ruby
banister_ has joined #ruby
_br_- has quit [Excess Flood]
banister`sleep has quit [Ping timeout: 252 seconds]
<bergelmir> but you don't know how a normal hash looks like. what attributes does it have?
_br_ has joined #ruby
<Spooner> hash.keys
<bergelmir> you don't want to check for every key if it is available or npot
<Hanmac> bergelmir & Spooner i often use this: User = Struct.new(:a,:b,:c) { def initialize(hash); super(*self.class.members.map{|k|hash[k]});end }
<bergelmir> not*
banister`sleep has joined #ruby
<shevy> wow that is some ugly shit
banister_ has quit [Read error: Connection reset by peer]
<shevy> Hanmac I love you man but you have this tendency to collect the WEIRD and FREAKY ruby code
apeiros has joined #ruby
sayan has quit [Read error: Connection reset by peer]
Dakuan has quit [Remote host closed the connection]
* bergelmir is quite amused about this discussion :)
<carlzulauf> that's a pretty sweet line of code i think Hanmac
Dakuan has joined #ruby
osaut has joined #ruby
maxmanders has joined #ruby
_br_ has quit [Excess Flood]
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
pavilionXP has quit [Read error: Connection reset by peer]
maxmanders has quit [Client Quit]
TomyLobo has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
Dakuan has quit [Ping timeout: 240 seconds]
_br_ has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
_br_ has quit [Excess Flood]
mityaz has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
mengu has joined #ruby
lateau has quit [Remote host closed the connection]
banister`sleep has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
Playground has quit [Ping timeout: 244 seconds]
emmanuelux has joined #ruby
_br_ has joined #ruby
clocKwize has quit [Quit: clocKwize]
<carlzulauf> More reusable version of Hanmac's code: https://gist.github.com/4578897
_br_ has quit [Excess Flood]
elico has joined #ruby
banister_ is now known as banisterfiend
mengu has quit [Ping timeout: 252 seconds]
<carlzulauf> That's about as sweet a Hash initialized DTO as I can imagine
<danneu> scala: case class
thansen has left #ruby ["Ex-Chat"]
Niamkik has quit [Quit: Disconnecting from stoned server.]
jekotia has joined #ruby
jekotia_ has joined #ruby
stayarrr has joined #ruby
_br_ has joined #ruby
lusory has quit [Ping timeout: 240 seconds]
jekotia_ has quit [Client Quit]
pcarrier has quit []
Niamkik has joined #ruby
_br_ has quit [Excess Flood]
lusory has joined #ruby
<carlzulauf> case classes do look pretty sweet
Vert has joined #ruby
_br_ has joined #ruby
pcarrier has joined #ruby
banister_ has joined #ruby
taypen has joined #ruby
taypen has left #ruby [#ruby]
banisterfiend has quit [Ping timeout: 245 seconds]
pcarrier has quit [Client Quit]
banister_ has quit [Remote host closed the connection]
itsdavem has quit [Remote host closed the connection]
_br_ has quit [Excess Flood]
_br_ has joined #ruby
xemu has joined #ruby
<pyro111> carlzulauf: stub using that code http://eval.in/7101
thisirs has joined #ruby
shorts has quit [Quit: shorts]
_br_ has quit [Excess Flood]
x82_nicole has joined #ruby
_br_ has joined #ruby
karasawa has quit [Ping timeout: 248 seconds]
karasawa has joined #ruby
timonv has joined #ruby
_br_ has quit [Excess Flood]
_br_ has joined #ruby
timonv has quit [Remote host closed the connection]
ashp has joined #ruby
<ashp> I have a bit of a weird question/issue I thought I'd beg for help on. I have a hash and using erb I need to print that hash into the template but with the full ruby syntax to make it cut and pastable back into ruby (so <%= hash %> just mangles it into a long string)
<ashp> What I'm actually doing is using a series of templates to build one larger template that gets rendered (don't ask, its awful)
gyre007 has joined #ruby
<ashp> maybe could just pretty print the hash in <% %>
_br_ has quit [Excess Flood]
pac1 has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
_br_ has joined #ruby
iamjarvo has joined #ruby
solidoodlesuppor has joined #ruby
BulleTime has joined #ruby
solidoodlesuppor has quit [Client Quit]
_br_ has quit [Excess Flood]
S2kx has quit [Quit: Leaving]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
_br_ has joined #ruby
Onii-san has quit [Ping timeout: 245 seconds]
dickery has quit [Quit: Leaving.]
filemon_CZ has joined #ruby
<Spooner> ashp, hash.inspect
Onii-san has joined #ruby
vsh_ has joined #ruby
vsh_ has left #ruby [#ruby]
kumarat9pm has joined #ruby
solidoodlesuppor has joined #ruby
<kumarat9pm> is there any . or , in ruby?
<kumarat9pm> like we have in Perl when printing?
<Spooner> kumarat9pm, Not sure what you mean.
_br_ has quit [Excess Flood]
<ashp> Spooner: oh hmm, that might be much better, let me give tha ta whirl, thanks
<Spooner> kumarat9pm, Oh, you can just use + with strings.
<kumarat9pm> We can combine multiple print commands in Perl by using .
<kumarat9pm> ohh ok..!
Virunga has joined #ruby
vsh_ has joined #ruby
<Spooner> kumarat9pm, Though we usually interpolate with #{} in the string.
<kumarat9pm> thanks Spooner.. let me check it..
<Spooner> kumarat9pm, Been a long time since I did any Perl. Wasn't getting you!
<ashp> Spooner: Nice! I think that'll do it :)
maxmanders has joined #ruby
<kumarat9pm> ok..
<kumarat9pm> !
Paradox has quit [Ping timeout: 244 seconds]
<kumarat9pm> Ya + is working..
<kumarat9pm> thanks..
swex_ has quit [Read error: Operation timed out]
_br_ has joined #ruby
joofsh has joined #ruby
Kuifje has quit [Read error: Connection reset by peer]
Jacky has joined #ruby
<Spooner> ashp, In 1.9, hashes print properly without needing to be inspected. Assume you are on 1.8.7?
Kuifje has joined #ruby
<ashp> Spooner: No, this is 1.9.1
jgrimes` has joined #ruby
<ashp> I'm using erb via puppet to do some evil so that may be complicating things
<Spooner> ashp, 1.9.1? I didn't think anyone used that.
<ashp> er, 1.9.3, sorry
<ashp> debian calls it 1.9.1 for some horrible reason all over the place
<Spooner> Oh right. Odd. Hash#to_s should already have printed it out correctly.
<Dwarf> Good afternoon
<Dwarf> Is it possible to have the output of eval() in a variable?
<ashp> http://pastebin.com/GJfeRsk5 is what I'm writing and then trying to render locally but it still fails, so not quite there
<Spooner> ashp, Yeah, all the 1.9 versions are compatible with 1.9.1 library, which is why it uses that name. Confusing indeed.
<ashp> The idea was to write an empty hash at the top, an arbitary number of hashes get injected, and the bottom of the template renders the merged set of hashes into json
<ashp> it's awful but I'm working within some tight confines
<Spooner> Dwarf, Not sure what you mean. Surely just "x = eval 'bleh'"
<Dwarf> That'd work?
<Spooner> Dwarf, But most of the time you don't need to use eval in Ruby.
<lazyPower> Completely unrelated to anything, but i'm so jazzed. I'm really close to automating a process that is gonna knock out six hours of someones day.
<JoeHazzers> what process is this?
<Spooner> lazyPower, So you are making someone unemployed then? :D
carloslopes has joined #ruby
jgrimes` is now known as jgrimes
<lazyPower> Fetching call center recordings for a client within date-range of x and y -- serialize data in XML - in a format that performmatch can understand -- they ahve pretty rough guidelines on what they accept :|
<ashp> lazyPower: ask for 20% of their salary, monthly, to destroy the progran
<Dwarf> Sweet that worked. Thanks Spooner
pcarrier has joined #ruby
<lazyPower> also it pipes out to sox to encode the call as one file.
jonahR has joined #ruby
<lazyPower> we have these terrible serivices we climbed into early on - and are in the process of replacing but its not there yet, so all these clients we are onboarding are demanding integration and i'm starting to drop chef and some ruby scripts to accomplish the translations while we build our new asterisk box.
<lazyPower> but ipso facto - jazzed that this is coming together
timonv has quit [Remote host closed the connection]
<Spooner> Dwarf, As I said though, the likelihood is that you don't actually need to eval any code.
<Dwarf> But I do :)
timonv has joined #ruby
daniel_- has joined #ruby
<Dwarf> So this is very useful to remotely debug my program
jeffreybaird has joined #ruby
<Spooner> Dwarf, Look at pry and the remote debugging in that.
DDAZZA has joined #ruby
<Spooner> Considerably better than remote eval ;)
<Dwarf> Mmm
timonv_ has joined #ruby
<Dwarf> I've never used pry
<Dwarf> But this looks easy enough
<Spooner> Everyone should. Pry > irb
timonv has quit [Read error: Connection reset by peer]
<Spooner> Or just use pry itself and drop into a command line with binding.pry somewhere in your program where you want to inspect stuff.
soulcake has quit [Quit: ZNC - http://znc.in]
nfk has joined #ruby
jaequery has joined #ruby
Dakuan has joined #ruby
b1rkh0ff has quit [Quit: Leaving]
oposomme has quit [Quit: Linkinus - http://linkinus.com]
jaequery has quit [Client Quit]
Jacky has quit [Quit: Quit]
<ashp> OK, asking this to anyone who's bored. can anyone spot a problem in http://pastebin.com/kQ9iJcxh ? It fails to render via erb, it just freaks out about an ';' that doesn't exist in the template :/
<ashp> If I remove the contents of the hash it still fails so it's not a broken hsah
chachin has joined #ruby
<chachin> lol
<chachin> I have a request for anyone who wants to be cool
xAndy is now known as xandy
Dakuan has quit [Ping timeout: 246 seconds]
jackyalcine has joined #ruby
<chachin> someone get me a list from imgur.com/r/nsfw please get as many links as you can
<chachin> then pm
chachin has left #ruby [#ruby]
<Dwarf> I have a list with 303 pair of boobs
<Dwarf> Does that count?
<ashp> hahaha
<ashp> poor chachin, bad at finding porn
<Dwarf> All imgur links
<Spooner> ashp lms-auth isn't a valid identifier. Try lms_auth
<Dwarf> Why did he part tho?
<ashp> Spooner: I just found that via irb! thanks :)
jasondotstar has joined #ruby
noyb has joined #ruby
xsarin has joined #ruby
<Spooner> ashp and hash.merge! is meaningless unless hash has something in it to begin with.
<ashp> Spooner: The idea was that there'll be several blah = {} and hash.merge(blah) statements
<ashp> so it'll be empty the first time, get a hash merged in, then additional hashes
<Spooner> OK.
<ashp> (this is all a bit weird as it's in the context of puppet modules passing in snippets to the template
pcarrier has quit []
<ashp> Oh hmm, I can't do hash.sort.keys
abstrusenick has joined #ruby
<ashp> maybe just hash.sort is enough
<Spooner> Hash.sort gives you an array.
xandy is now known as xAndy
baphled has joined #ruby
<ashp> Hmm, Maybe I need to do a deep sort before rendering it (otherwise I get puppet diffs every time)
spinagon has quit [Read error: Connection reset by peer]
rippa has joined #ruby
xsarin has quit [Quit: xsarin]
maxmanders has quit [Quit: Computer has gone to sleep.]
chachin has joined #ruby
JumpMast3r has joined #ruby
<workmad3> ashp: hash.keys.sort may give you a consistent order to access the hash via
yshh has quit [Remote host closed the connection]
emocakes has quit [Quit: emocakes]
yshh has joined #ruby
<ashp> workmad3: Will play around, basically I just want the JSON.pretty_generate(hash) to be consistant and not reorder the keys around
forced_request has joined #ruby
hoolandi has quit [Ping timeout: 248 seconds]
pac1 has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
<workmad3> ashp: I'm guessing you're using ruby 1.8?
<ashp> No, that's the weird thing, using 1.9.3
<ashp> but every time we do a pretty_generate() it reorders things
<ashp> we moved to 1.9 specifically to fix that :)
<workmad3> heh
<workmad3> well, the order in 1.9 is fixed to insert order... so at a guess, whatever is generating the hash is adding items in a non-deterministic order
<ashp> before we had a puppet template that set up a hash in a fixed order, then had a bunch of if's to add additional entries
<ashp> so that would have created them in an identical order, I suppose, it's been a hard one to track down
<workmad3> yeah, I dislike attempting to use hashes in any sort of ordered way
<workmad3> even in 1.9
jeffreybaird has quit [Quit: jeffreybaird]
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
noyb has quit [Ping timeout: 255 seconds]
anonymuse has joined #ruby
<Spooner> ashp Hashes aren't inherently ordered. They just happen to be in Ruby 1.9, but a json generator wou;ldn't have to preserve that order.
<yfeldblum> ashp, you can define a module HashWithLexicographicallySortedIteration which defines #each, and then traverse your nested data structure and extend each Hash instance with that module
<yfeldblum> ashp, you can even write HashWithLexicographicallySortedIteration.traverse_and_extend_each_hash_in(some_data_structure)
<ashp> It's ok, my entire plan with this hash has just come horribly unravelled I think thanks to a limitation in other software.
<ashp> yfeldblum: I could but this is just happening via erb so it would be a pain having a huge chunk of code. I'd rather just tell people they have to put up with changing orders in the output :)
daniel_- has quit [Read error: Connection reset by peer]
nfk has quit [Quit: yawn]
daniel_- has joined #ruby
qohelet_ has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
F1skr has joined #ruby
BizarreCake has joined #ruby
tokyo has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<chachin> hey anyone know how to use ruby to get a list from imgur.com like i want a list from r/nsfw/ i wanna get all of the links from that place :o
Bry8Star has joined #ruby
nfk has joined #ruby
pcarrier has joined #ruby
kumarat9pm has left #ruby [#ruby]
marr has quit [Read error: Connection reset by peer]
albakry has quit [Quit: Leaving]
EPIK has joined #ruby
joshcheek has joined #ruby
rippa has quit [Read error: Connection reset by peer]
yoshie902a has joined #ruby
rippa has joined #ruby
<joshcheek> Anyone willing to help me out w/ a C level question? Specifically: how do I associate my C data structure to my Ruby object.
<yoshie902a> what regsx engine is used in ruby?
<yoshie902a> s/regx/regex
BizarreCake has quit [Ping timeout: 240 seconds]
<canton7> Oniguruma since 1.9.2, I believe
chachin has left #ruby [#ruby]
emocakes has joined #ruby
<yoshie902a> canton7: thanks
mosesaro has joined #ruby
artm_ has joined #ruby
diegoviola has quit [Ping timeout: 245 seconds]
rippa has quit [Read error: Connection reset by peer]
pcarrier has quit []
rippa has joined #ruby
dickery has joined #ruby
artm has quit [Read error: Operation timed out]
artm_ is now known as artm
<yoshie902a> joshcheek: not sure if this is helpful, but http://stackoverflow.com/questions/1695292/sending-data-between-ruby-and-objective-c
pcarrier has joined #ruby
mercwithamouth has joined #ruby
<joshcheek> yoshie902a: Yeah, I know I need to use the second one, but I'm having difficulty figuring building a model that explains what it should be. E.g. can't figure out what to put on this line https://github.com/JoshCheek/string_cycle/blob/master/ext/string_cycle/string_cycle.c#L74
<Hanmac> joshcheek: Data_Wrap_Struct
Kakera has quit [Ping timeout: 256 seconds]
v0n has joined #ruby
kaen has quit [Quit: Leaving]
abstrusenick has quit [Quit: abstrusenick]
sayan has joined #ruby
horofox has joined #ruby
<joshcheek> Nvm, think I figured it out. The data structure isn't attached to the obj, the data structure _is_ the obj, so I have to override its memory allocation function to account for that.
Dakuan has joined #ruby
anonymuse has quit [Quit: Leaving.]
jds has quit [Remote host closed the connection]
Vert has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
b1rkh0ff has joined #ruby
Xeago has quit [Remote host closed the connection]
karasawa has quit [Ping timeout: 244 seconds]
d2dchat has joined #ruby
cantonic has joined #ruby
karasawa has joined #ruby
baroquebobcat has joined #ruby
horofox has quit [Quit: horofox]
dmiller has joined #ruby
Takehiro has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
solitude88 has quit [Quit: Linkinus - http://linkinus.com]
[eDu] has joined #ruby
atno has quit [Remote host closed the connection]
jblack has joined #ruby
atno has joined #ruby
crackfu has quit [Remote host closed the connection]
crackfu has joined #ruby
Dann1 has quit [Quit: GODDAMNIT]
atno_ has joined #ruby
Iszak has joined #ruby
<iamjarvo> joshcheek: thanks for ruby-kickstart!
<joshcheek> iamjarvo: your welcome :)
mengu has joined #ruby
atno has quit [Ping timeout: 252 seconds]
BizarreCake has joined #ruby
pcarrier has quit []
v0n has quit [Read error: Operation timed out]
yshh has quit [Remote host closed the connection]
horofox has joined #ruby
crackfu has quit [Ping timeout: 252 seconds]
benlieb has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
pcarrier has joined #ruby
braoru has quit [Remote host closed the connection]
v0n has joined #ruby
templaedhel has joined #ruby
jonahR_ has joined #ruby
marr has joined #ruby
browndawg has joined #ruby
tommyvyo has joined #ruby
jonahR has quit [Ping timeout: 248 seconds]
jonahR_ is now known as jonahR
Kakera has joined #ruby
solitude88 has joined #ruby
atno_ has quit [Ping timeout: 248 seconds]
maxmanders has joined #ruby
Dakuan has quit [Remote host closed the connection]
pcarrier has quit []
baphled has quit [Ping timeout: 248 seconds]
atno has joined #ruby
Dann1 has joined #ruby
yshh has joined #ruby
Vert has joined #ruby
pavilionXP has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
atno has quit [Remote host closed the connection]
pavilionXP has quit [Max SendQ exceeded]
pavilionXP has joined #ruby
andrewhl has joined #ruby
carloslopes has quit [Remote host closed the connection]
Xeago has joined #ruby
r0bby is now known as robbyoconnor
DDAZZA has quit [Quit: Leaving]
yoshie902a has quit [Quit: yoshie902a]
pyx has joined #ruby
baphled has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
kaen has joined #ruby
IrishGringo has joined #ruby
zph has joined #ruby
joofsh has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
yoshie902a has joined #ruby
pskosinski has quit [Quit: Learn Life's Little Lessons]
zph has quit [Client Quit]
dojmin has joined #ruby
clocKwize has joined #ruby
dojmin has left #ruby [#ruby]
Kuifje has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
ryanh_ has quit [Ping timeout: 256 seconds]
swingha has joined #ruby
Kuifje has joined #ruby
vsh_ has quit [Read error: Connection reset by peer]
clocKwize has quit [Quit: clocKwize]
tenmilestereo has joined #ruby
ryanh has joined #ruby
ryanh has quit [Max SendQ exceeded]
tenmilestereo has quit [Max SendQ exceeded]
ryanh has joined #ruby
tenmilestereo has joined #ruby
timonv has joined #ruby
pyro111 has quit [Quit: Leaving]
preyalone has joined #ruby
<preyalone> Why does my parallel Ruby code only print "H"? https://github.com/mcandre/parhello/blob/master/ruby/parhello.rb
RagingDave_ has joined #ruby
jblack has quit [Ping timeout: 245 seconds]
<Hanmac> preyalone: look at putc vs. puts
Donkeycoder has joined #ruby
templaedhel has quit [Quit: Leaving...]
RagingDave has quit [Ping timeout: 248 seconds]
moos3 has joined #ruby
<preyalone> Hanmac: Does putc not flush?
<preyalone> Hanmac: To be clear, I intend for this program to print out the individual characters of "Hello World!" and mix them up as a result of concurrency.
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<Hanmac> preyalone you dont understand putc!
<Hanmac> "otherwise write the first byte of the string representation of obj to ios."
moos3 has quit [Client Quit]
<preyalone> Ruby's putc has different semantics than C's putc?
Xeago has quit [Read error: Connection reset by peer]
<Hanmac> putc is only for pinting exactly ONE byte
Xeago has joined #ruby
<Hanmac> in a string it pints ONLY the first one
<Spooner> Hanmac, But I think preyalone expects c to be passed each character from the string, but I assume it isn't (I have not used Parallel).
benlieb has quit [Quit: benlieb]
banisterfiend has joined #ruby
<preyalone> Does STDOUT have a flush method?
<banisterfiend> preyalone: wy dont u try it and see
<preyalone> aye
hmans has joined #ruby
otters has joined #ruby
bergelmir has quit [Quit: leaving]
<Spooner> preyalone, You want to do: Parallel.map("Hello World!\n".split(//)) { |c| putc c }
<Spooner> You need to pass it an array, not a single string.
Iszak has quit []
<preyalone> ah, so ... .to_a
<emocakes> preyalone
<emocakes> liar
<Hanmac> preyalone no one says to_a
benlieb has joined #ruby
yakko has joined #ruby
<preyalone> emocakes: Thanks!
<Spooner> preyalone, You could use to_a, but that wouldn't work in 1.9 and 1.9s #chars won't work in 1.8, which is why I used split.
<preyalone> to_a results in the same behavior: it only prints "H"
<Spooner> What I suggested works fine and prints all the letters out of sequence.
dr_neek has quit [Read error: Connection reset by peer]
dr_neek has joined #ruby
<Hanmac> preyalone let me guess, you still use to_a right? :D
<Hanmac> my code works because i dont use to_a :D
<preyalone> Spooner: Thanks
<Spooner> preyalone, Unlike in C, you can't consider a string as just an array of characters.
<preyalone> Spooner: :( But reusable data structures are so useful and intuitive :(
<Hanmac> infomation: the to_a of 1.8 strings uses each, which is an each_line, what why "string".to_a does not work for him
<Hanmac> Parallel.map("Hello World!\n".split(//)) { |c| putc c } #<< this line works
<Spooner> Ah, I see. I knew mine was working; not why preyalone's wasn't :D
<Spooner> Life is too short for me to test it in 1.8.7 too ;D
hackerdude has joined #ruby
v0n has quit [Read error: Operation timed out]
<Spooner> preyalone, If you are learning Ruby, use 1.9.3. 1.8.7 is just for legacy projects.
<Hanmac> or in other words: 1.8.7 is for dead projects
<preyalone> Spooner: I'm comfortable in Ruby; I just haven't kept up with the 1.9 changes, and I made the mistake of trying Parallel.map without looking up its interface details.
slainer68 has joined #ruby
MattRB has joined #ruby
dickery has quit [Ping timeout: 252 seconds]
<Spooner> preyalone, Ah, I thought you'd seen the examples used arrays of characters and thus just passed a string thinking it was equivalent (which it is in many languages).
<preyalone> Spooner: Or that either Ruby or Parallel.map was smart enough to call to_a beforehand.
<preyalone> Gah, why doesn't to_a work as expected on strings???
<emocakes> yes preyalone :p
<Spooner> preyalone, Code isn't psychic, you know :D
<Hanmac> preyalone: have you something in your ears? string.each iterates though lines, not chars!
maxmanders has quit [Quit: Computer has gone to sleep.]
<preyalone> Spooner: No, but it would make Ruby that much more intuitive if the developers rounded the edges between Strings and Arrays
baphled has quit [Ping timeout: 252 seconds]
<preyalone> Hanmac: If Strings aren't extending Arrays, it would be better to not have a String.each method (ambiguous), and simply provide .lines, .words, .chars, etc
<preyalone> I think I'm only using Ruby 1.8.7 because it's the Mac OS X builtin.
AsgardBSD has quit [Ping timeout: 244 seconds]
<Hanmac> preyalone and that is (except for words) the same as ruby allready did with 1.9.*
Spooner has quit [Remote host closed the connection]
<banisterfiend> preyalone: that's what ruby 1.9 does
<preyalone> sweet
<banisterfiend> preyalone: they got rid of String#each, and you have to use String#chars and String#lines
<preyalone> Is there a tool for checking 1.9 compliance?
<Hanmac> string has this methods each methods: [:each_line, :each_byte, :each_char, :each_codepoint] and its aliases: [:lines, :bytes, :chars, :codepoints]
Spooner has joined #ruby
<banisterfiend> preyalone: sure, it's called 'running your program on 1.9, if your tests pass, then it's compliant' :)
<banisterfiend> preyalone: but seriously, i think there's a couple of gems that can do a cursory scan and find a few things, but not everything
<preyalone> banisterfiend: Oh, I know. Your response is reasonable, but it is helpful to have static checkers.
<preyalone> How does String.to_a work in 1.9? (brew installing ruby now)
moos3 has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
<Hanmac> preyalone: it does not, we use string.each_char.to_a or string.each_line.to_a
d2dchat has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
Spooner has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
jblack has joined #ruby
<preyalone> Hanmac: Excellent
havenn has joined #ruby
haxrbyte has joined #ruby
<Hanmac> must mostly we use the return of each_char directly
Spooner has joined #ruby
<preyalone> ... and string.each_char.to_a would be redundant?
breakingthings has joined #ruby
<Hanmac> no, because each_char returns an enumerator, not an array
Donkeycoder has quit [Quit: Textual IRC Client: www.textualapp.com]
<preyalone> Looking up if Parallel.map handles enumerators or just arrays...
keanehsiao has quit [Ping timeout: 248 seconds]
haxrbyte_ has quit [Ping timeout: 256 seconds]
<Hanmac> it handles enumerators too because it does call to_a automaticly
cpruitt has quit [Ping timeout: 256 seconds]
<preyalone> THIS is why I consider Ruby one of the most practical programming languages in existence.
dickery has joined #ruby
eka has joined #ruby
<preyalone> Anyone know if the parallel gem works on mobile devices, e.g. Android?
baphled has joined #ruby
<Spooner> The question is more if Ruby works on Android.
Dakuan has joined #ruby
templaedhel has joined #ruby
cantonic has quit [Quit: cantonic]
elico has quit [Ping timeout: 252 seconds]
<Hanmac> preyalone: it has only ruby code, and depend only on stdlib stuff ... so it should work where ever ruby works
osaut has quit [Quit: osaut]
<banisterfiend> Spooner: ruboto
eka has quit [Ping timeout: 245 seconds]
<Spooner> Hanmac, It says it doesn't work on JRuby or Windows, so that doesn't mean it willmagically work on Android.
benlieb has quit [Quit: benlieb]
Dakuan_ has joined #ruby
pskosinski has joined #ruby
Dakuan has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
<Spooner> banisterfiend, rubuto lives on jruby and parallel doesn't work on JRuby.
TheLegace has joined #ruby
yshh has quit [Remote host closed the connection]
<banisterfiend> Spooner: sure i wsa only responding to your "The question is more if Ruby works on Android." :)
xsarin has joined #ruby
jackmackg has joined #ruby
* Spooner nods.
<preyalone> Why doesn't parallel work on JRuby?
niklasb has joined #ruby
<Spooner> Well, I'm basing it on the readme: TODO: JRuby / Windows support <-> possible ?
<Spooner> Although that _might_ be that it doesn't work on JRuby ON Windows, but I didn't read it that way.
<preyalone> understood.
<Dann1> If I have something like:
<Dann1> on :ban do |m, ban|
<Dann1> debug("%s just banned %s" % [ban.by, ban.mask])
<Dann1> end
<Dann1> What would %s represent
blablahhhhh has joined #ruby
blablahhhhh has quit [Client Quit]
<Spooner> Dann1, % is just a shortcut for using sprintf.
pootietang has joined #ruby
<pootietang> sup peeps!
<Dann1> Thanks Spooner
Dakuan_ has quit [Remote host closed the connection]
canton7 has quit [Ping timeout: 248 seconds]
Dakuan has joined #ruby
serhart has joined #ruby
timonv has quit [Ping timeout: 257 seconds]
mahmoudimus has joined #ruby
forced_request has quit [Ping timeout: 252 seconds]
Dakuan has quit [Ping timeout: 244 seconds]
canton7 has joined #ruby
<preyalone> Is there a way to require "1.9" in my Ruby 1.9 code?
jblack has quit [Ping timeout: 256 seconds]
templaedhel has quit [Quit: Leaving...]
osaut has joined #ruby
preyalone has quit [Quit: Page closed]
drago757 has joined #ruby
maxmanders has joined #ruby
jblack has joined #ruby
vlad_starkov has joined #ruby
Kuifje has quit [Read error: Connection reset by peer]
Nisstyre-laptop has joined #ruby
benlieb has quit [Quit: benlieb]
joschi has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
joofsh has joined #ruby
ddd has joined #ruby
timonv has joined #ruby
yoshie902a has left #ruby [#ruby]
templaedhel has joined #ruby
keanehsiao has joined #ruby
templaedhel has quit [Client Quit]
dv__ is now known as dv_
lolmaus has quit []
ananthakumaran has joined #ruby
jackyalcine has quit [Quit: Quit]
mtfk has quit [Ping timeout: 245 seconds]
Dakuan has joined #ruby
mtfk has joined #ruby
hackerdude has quit [Remote host closed the connection]
keanehsiao has quit [Ping timeout: 246 seconds]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
cantonic has joined #ruby
Mahoek has joined #ruby
osaut has quit [Quit: osaut]
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
rippa has quit [Read error: Connection reset by peer]
spinagon has joined #ruby
<shevy> emocakes what is that!!!
adambeynon has joined #ruby
<shevy> is it that household thing again
soulcake has joined #ruby
<shevy> HAHAHA "As a computer scientist I was thinking what I could do?"
<shevy> he was just too lazy to do that kind of work!
aantix has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
jblack has quit [Ping timeout: 248 seconds]
Mahoek has quit [Client Quit]
moos3 has quit [Quit: Computer has gone to sleep.]
hoolandi has joined #ruby
Donkeycoder has joined #ruby
<TTilus> thats exactly how good programmers are
soulcake has quit [Quit: ZNC - http://znc.in]
<emocakes> :p
maxmanders has quit [Quit: Computer has gone to sleep.]
osaut has joined #ruby
<TTilus> so lazy they do *anything* to minimize the effort needed
<TTilus> :)
diegoviola has joined #ruby
karasawa has quit [Ping timeout: 260 seconds]
dickery has quit [Ping timeout: 256 seconds]
Dann1 has quit [Quit: GODDAMNIT]
postmodern has quit [Quit: Leaving]
Morkel has joined #ruby
timonv has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
slainer68 has joined #ruby
quest88 has joined #ruby
hackerdude has joined #ruby
timonv has joined #ruby
hackerdude has quit [Remote host closed the connection]
ddd has quit []
banisterfiend has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 248 seconds]
shevy has quit [Ping timeout: 256 seconds]
bcx has joined #ruby
mkillebrew has quit [Ping timeout: 255 seconds]
daniel_- has quit [Quit: WeeChat 0.3.9.2]
jaequery has joined #ruby
mkillebrew has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
soulcake has joined #ruby
keanehsiao has joined #ruby
Playground has joined #ruby
stayarrr has quit [Quit: Leaving...]
dickery has joined #ruby
drago757 has quit [Quit: drago757]
soulcake has quit [Client Quit]
keanehsiao has quit [Ping timeout: 245 seconds]
jblack has joined #ruby
d2dchat has joined #ruby
hoolandi has quit [Quit: Leaving.]
X-Jester has quit [Ping timeout: 244 seconds]
shevy has joined #ruby
cbosh has quit [Ping timeout: 248 seconds]
serhart has quit [Quit: Leaving.]
inokenty has quit [Read error: Connection reset by peer]
eykosioux has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Remote host closed the connection]
d2dchat has quit [Remote host closed the connection]
hmans has quit [Quit: Linkinus - http://linkinus.com]
karasawa has joined #ruby
joofsh has quit [Remote host closed the connection]
breakingthings has quit []
joofsh has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Remote host closed the connection]
gyre008 has joined #ruby
cobragoat has joined #ruby
spinagon has quit [Read error: Connection reset by peer]
huoxito has joined #ruby
rippa has joined #ruby
baphled has quit [Ping timeout: 246 seconds]
uris has joined #ruby
mneorr has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
jaequery has quit [Quit: Computer has gone to sleep.]
serhart has joined #ruby
Kuifje has quit [Read error: Connection reset by peer]
rippa has quit [Read error: Connection reset by peer]
TheLegace has quit [Quit: Leaving]
rippa has joined #ruby
Kuifje has joined #ruby
xsarin has quit [Quit: xsarin]
aaronmacy has joined #ruby
yakko has quit [Quit: No Ping reply in 180 seconds.]
yakko has joined #ruby
kiyoura has joined #ruby
a3rdcoast has joined #ruby
Beoran__ has quit [Read error: Connection reset by peer]
breakingthings has joined #ruby
f03lipe has joined #ruby
xsarin has joined #ruby
joeycarmello has quit [Ping timeout: 248 seconds]
BizarreCake has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
Spitfire has quit [Ping timeout: 246 seconds]
digitalcakestudi has joined #ruby
Spitfire has joined #ruby
Spitfire has quit [Excess Flood]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
DavidLevin has left #ruby [#ruby]
slainer68 has joined #ruby
aantix has quit [Quit: aantix]
Spitfire has joined #ruby
jblack has quit [Ping timeout: 252 seconds]
aantix has joined #ruby
Dwarf has quit [Ping timeout: 246 seconds]
adkron has joined #ruby
<RubyPanther> in the original Pragmatic Programmer book they talked about taking the time to build things in a way so that you can extend it easily, because you'll always have things to add later. And this is the true laziness. Then you're laying in the shade drinking lemonade and you're asked for a change and no problem, 5 minutes from the lounger.
chrismcg is now known as zz_chrismcg
Spitfire has quit [Ping timeout: 246 seconds]
<RubyPanther> So we're talking, some sort of modular clothing receptacle for sorting socks. No need to manage piles.
Dwarf has joined #ruby
osaut has quit [Quit: osaut]
Spitfire has joined #ruby
Kuifje has quit [Read error: Connection reset by peer]
kold_ has joined #ruby
<RubyPanther> And if you're trying to attract a geek as a mate, build a giant barn full of generic modular receptacles of all sizes, ready to assemble. Shows nesting prowess.
Kuifje has joined #ruby
soulcake has joined #ruby
apeiros has joined #ruby
swingha has quit [Quit: WeeChat 0.3.9.2]
yakko has quit [Quit: No Ping reply in 180 seconds.]
soulcake has quit [Client Quit]
yakko has joined #ruby
mneorr has quit [Remote host closed the connection]
healpay has joined #ruby
dr_neek has quit [Read error: Connection reset by peer]
dr_neek_ has joined #ruby
cantonic has quit [Quit: cantonic]
soulcake has joined #ruby
osaut has joined #ruby
soulcake has quit [Client Quit]
telli has quit [Remote host closed the connection]
jduan1981 has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
awarner has joined #ruby
cantonic has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
adkron has quit [Ping timeout: 256 seconds]
jds has joined #ruby
Kuifje has quit [Read error: Connection reset by peer]
moos3 has joined #ruby
aantix has quit [Quit: aantix]
artm has quit [Remote host closed the connection]
artm has joined #ruby
Kuifje has joined #ruby
fyolnish_ has quit [Remote host closed the connection]
generalissimo has joined #ruby
jimmyy has quit [Ping timeout: 246 seconds]
Cooler__ has quit [Ping timeout: 252 seconds]
joofsh has quit [Remote host closed the connection]
dickery has quit [Quit: Leaving.]
dwn has joined #ruby
joofsh has joined #ruby
dwn has joined #ruby
rippa has quit [Ping timeout: 252 seconds]
chriskk has joined #ruby
joeycarmello has joined #ruby
baphled has joined #ruby
mahmoudimus has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
joeycarmello has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
keanehsiao has joined #ruby
jimmyy has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
fyolnish has joined #ruby
jim762004 has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
thufir_ has joined #ruby
mneorr has joined #ruby
jimmyy has joined #ruby
vlad_starkov has joined #ruby
jim762004 has left #ruby [#ruby]
keanehsiao has quit [Ping timeout: 245 seconds]
tjbiddle has joined #ruby
yakko has quit [Quit: No Ping reply in 180 seconds.]
tjbiddle has quit [Client Quit]
yakko has joined #ruby
jds has quit [Remote host closed the connection]
X-Jester has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
_bart has quit [Quit: _bart]
fuzai has quit [Quit: Leaving]
otherj has joined #ruby
otherj has quit [Changing host]
otherj has joined #ruby
otherj has quit [Client Quit]
joeycarmello has quit [Remote host closed the connection]
soulcake has joined #ruby
joeycarmello has joined #ruby
hoolandi1 has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Kuifje has quit [Read error: Connection reset by peer]
jds has joined #ruby
tommyvyo has joined #ruby
soulcake has quit [Client Quit]
Kuifje has joined #ruby
soulcake has joined #ruby
soulcake has quit [Client Quit]
jenrzzz has quit [Ping timeout: 244 seconds]
osaut has quit [Quit: osaut]
yakko has quit [Quit: No Ping reply in 180 seconds.]
yakko has joined #ruby
moos3 has joined #ruby
TIBS02 has joined #ruby
kold_ has quit [Remote host closed the connection]
osaut has joined #ruby
davorb has joined #ruby
xsarin has quit [Quit: xsarin]
<davorb> hey guys, i have a question
<davorb> is continue a keyword in ruby?
<davorb> i haven't used that in a while
jenrzzz has joined #ruby
banisterfiend has joined #ruby
<davorb> ding bom dish
davorb has left #ruby [#ruby]
soulcake has joined #ruby
otters has quit [Ping timeout: 252 seconds]
Donkeycoder has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has joined #ruby
wallerdev has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 245 seconds]
digitalcakestudi has quit [Read error: Operation timed out]
BulleTime has quit [Ping timeout: 256 seconds]
digitalcakestudi has joined #ruby
Virunga_ has joined #ruby
Virunga has quit [Remote host closed the connection]
razibog has quit [Ping timeout: 255 seconds]
Virunga_ is now known as Virunga
mahmoudimus has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
swingha has joined #ruby
karasawa has quit [Ping timeout: 240 seconds]
mityaz has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
banisterfiend has quit [Remote host closed the connection]
moos3 has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
mpfundstein has quit [Ping timeout: 244 seconds]
dwu1 has joined #ruby
Dakuan has quit [Remote host closed the connection]
Dakuan has joined #ruby
advorak has joined #ruby
proj has joined #ruby
proj has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Dakuan has quit [Ping timeout: 248 seconds]
aaronmacy has quit [Quit: Leaving.]
jenrzzz has quit [Ping timeout: 256 seconds]
qohelet_ has quit [Quit: qohelet_]
yakko has quit [Quit: No Ping reply in 180 seconds.]
yakko has joined #ruby
cantonic has quit [Quit: cantonic]
Morkel_ has joined #ruby
elico has joined #ruby
cantonic has joined #ruby
<hackeron> hey, I have a weird problem
artm_ has joined #ruby
<hackeron> from time to time, when I run rspec - it's just a small ruby project with a single file and a single rspec file, it shows this: /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.12.2/lib/rspec/core/configuration.rb:976:in `require': No such file or directory - /usr/????y (Errno::ENOENT)
<hackeron> my Gemfile just has serialport active_support rspec and pry
<hackeron> any ideas what is going on?
Morkel has quit [Ping timeout: 240 seconds]
Morkel_ is now known as Morkel
janjos has quit [Ping timeout: 255 seconds]
cantonic has quit [Client Quit]
Criztian has joined #ruby
artm has quit [Read error: Operation timed out]
artm_ is now known as artm
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
mdw has joined #ruby
mpfundstein has joined #ruby
hoolandi1 has quit [Quit: Leaving.]
<advorak> I am using the headless gem .... is there a way using the headless gem to specify an x startup script?
keanehsiao has joined #ruby
jackmackg has left #ruby [#ruby]
hoolandi has joined #ruby
osaut has quit [Quit: osaut]
Axsuul has joined #ruby
jimeh has joined #ruby
generalissimo is now known as matt_ryan_fan
huoxito has quit [Quit: Leaving]
keanehsiao has quit [Ping timeout: 245 seconds]
eykosioux has quit [Quit: eykosioux]
jduan1981 has quit [Quit: jduan1981]
guilleiguaran has joined #ruby
caleb_io has joined #ruby
fyolnish has quit [Remote host closed the connection]
cirwin has joined #ruby
albakry has joined #ruby
BoobBoo has joined #ruby
<BoobBoo> hi all
<BoobBoo> Does anyone know of a good gem or example of managing Windows users in Ruby?
aaronmacy has joined #ruby
adeponte has joined #ruby
rakl has joined #ruby
hotovson has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
elico has quit [Quit: elico]
Starrfish has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cb0ss- has joined #ruby
ryanh has quit [Quit: Computer has gone to sleep.]
aaronm has quit [Killed (hobana.freenode.net (Nickname regained by services))]
hotovson has joined #ruby
aaronm_ has joined #ruby
cobragoat has quit [Remote host closed the connection]
otters has joined #ruby
Myconix has quit [Ping timeout: 245 seconds]
cb0ss has quit [Ping timeout: 252 seconds]
Jackneill has quit [Read error: Connection reset by peer]
<Virunga> BoobBoo, chef
<hackeron> Any ideas why this would throw a KeyError: key{version} not found? < "%{version}" % {version: 5}.with_indifferent_access
hotovson has quit [Read error: No route to host]
<Hanmac> hackeron: hm try it without with_indifferent_access ...
<hackeron> Hanmac: but I need indifferent access, heh
Giorgio has joined #ruby
iamjarvo has quit [Quit: Leaving.]
jrhorn424 has joined #ruby
spider-mario has joined #ruby
kokainepizza has joined #ruby
georgi_ has joined #ruby
maxmanders has joined #ruby
georgi_ has quit [Read error: Connection reset by peer]
jaequery has joined #ruby
karasawa has joined #ruby
danneu has quit [Ping timeout: 245 seconds]
swingha has quit [Quit: WeeChat 0.3.9.2]
<nazty> hi
<Hanmac> hackeron sorry but the #% cant be fooled
maxmanders has quit [Client Quit]
<hackeron> Hanmac: :(
georgi_ has joined #ruby
georgi_ has quit [Read error: Connection reset by peer]
<BoobBoo> @Virunga - to be honest I am already using Puppet
Giorgio has quit [Read error: Connection reset by peer]
baphled has quit [Quit: Lost terminal]
Giorgio has joined #ruby
karasawa has quit [Ping timeout: 245 seconds]
xsarin has joined #ruby
kokainepizza has quit [Quit: My pooter is sleep.]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
<Hanmac> hackeron it does use the c functions directly ... that is nothing with_indifferent_access can fix
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
<Hanmac> hackeron:
<Hanmac> >> p Hash[{"version" => 5}.map {|k,v|[k.to_sym,v]}]
JumpMast3r has joined #ruby
<eval-in> Hanmac: Output: "{:version=>5}\n" (http://eval.in/7107)
[Neurotic] has joined #ruby
spider-mario has joined #ruby
havenn has quit [Ping timeout: 245 seconds]
georgi_ has joined #ruby
JumpMast3r has quit [Client Quit]
jenrzzz has joined #ruby
xsarin has left #ruby [#ruby]
otters has quit [Ping timeout: 240 seconds]
<hackeron> Hanmac: ah, I see - meh - guess I'll explicitly convert all keys to symbols, thanks :)
danneu has joined #ruby
adeponte has quit [Remote host closed the connection]
Xeago_ has joined #ruby
Xeago is now known as Guest3950
Guest3950 has quit [Killed (verne.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<Hanmac> with_indifferent_access stores them internal as strings ... and String#% dont like that
Giorgio has quit [Remote host closed the connection]
georgi_ has quit [Remote host closed the connection]
<hackeron> Hanmac: is there an equivalent to % to works with string keys?
pac1 has quit [Ping timeout: 260 seconds]
solidoodlesuppor has quit [Remote host closed the connection]
Giorgio has joined #ruby
awarner has quit [Remote host closed the connection]
<Hanmac> nope
jduan1981 has joined #ruby
<hackeron> annoying, heh
<hackeron> what's wrong with string keys? :)
iamjarvo has joined #ruby
<apeiros> Hanmac: .symbolize_keys
<hackeron> apeiros: oooh, interesting
<apeiros> since you use HWIA, you probably use AS, and AS comes with Hash#symbolize_keys ;-)
<apeiros> nothing is wrong with string keys in hashes. but String#% will not work with them.
<hackeron> oh yeh! < "%{version}" % {version: 5}.with_indifferent_access.symbolize_keys
Giorgio has quit [Remote host closed the connection]
<Hanmac> >> /(?<key>\w+):(?<value>\w+)/ =~ "abc:xyz";p "#{key} => #{value}"
<eval-in> Hanmac: Output: "\"abc => xyz\"\n" (http://eval.in/7108)
xsarin has joined #ruby
<Hanmac> >> /(?<key>\w+):(?<value>\w+)/ =~ "abc:xyz";p "%{key} => %{value}" % Hash[local_variables.map {|k| [k,eval(k.to_s)]}]
<eval-in> Hanmac: Output: "\"abc => xyz\"\n" (http://eval.in/7109)
jenrzzz has quit [Ping timeout: 248 seconds]
Choobie has quit [Quit: End]
<Hanmac> apeiros try to analysize my second line :D
jduan1981 has quit [Quit: jduan1981]
<apeiros> you inefficiently convert named capturing groups into a hash?
<apeiros> also dirty, since you'll get more than just the match
matt_ryan_fan has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 244 seconds]
<apeiros> you'd do better to use /(?<key>\w+):(?<value>\w+)/.named_captures.names instead of local_variables
<apeiros> oh, there's even .names
bluOxigen has quit [Ping timeout: 255 seconds]
<Hanmac> yeah, but using local_variables is more fun :D (okay i can use them direcly in the line above)
vlad_starkov has quit [Remote host closed the connection]
whowantstolivefo has joined #ruby
jenrzzz has joined #ruby
<apeiros> >> /(?<key>\w+):(?<value>\w+)/ =~ "abc:xyz"; p Hash[$~.names.map { |n| [n.to_sym, $~[n]] }]
<eval-in> apeiros: Output: "{:key=>\"abc\", :value=>\"xyz\"}\n" (http://eval.in/7110)
filemon_CZ has quit [Remote host closed the connection]
havenn has joined #ruby
<apeiros> has the advantage of not being restricted to non-interpolated, literal, LHS regexen
dr_neek_ has quit [Read error: Connection reset by peer]
<apeiros> add it as Regexp#to_h and it's even nicer
chriskk has quit [Quit: chriskk]
vlad_starkov has joined #ruby
dr_neek has joined #ruby
Zolo has quit [Remote host closed the connection]
HAKEON has joined #ruby
Villadelfia has joined #ruby
Villadelfia_ has quit [Ping timeout: 252 seconds]
reinaldob has joined #ruby
Giorgio has joined #ruby
keanehsiao has joined #ruby
main has quit [Ping timeout: 252 seconds]
SeySayux has quit [Ping timeout: 246 seconds]
CrawfordComeaux has joined #ruby
[eDu] has quit [Quit: [eDu]]
<CrawfordComeaux> what's the best way to install and keep ruby up-to-date on ubuntu?
<apeiros> define "the best". IMO a good way is RVM.
<CrawfordComeaux> how about easiest...requiring least effort?
mneorr has joined #ruby
<apeiros> there are various tools, though. not sure which all qualify as "keep ruby up-to-date". some names: rbenv, chruby, build-ruby
<apeiros> rvm requires little effort IMO. 1 line to install it. 1 line to install/update a ruby.
keanehsiao has quit [Ping timeout: 245 seconds]
ChampS666 has joined #ruby
hotovson_ has joined #ruby
cantonic has joined #ruby
Kakera has quit [Ping timeout: 252 seconds]
stayarrr has joined #ruby
SeySayux has joined #ruby
DavidLevin has joined #ruby
ryanjh has joined #ruby
DavidLevin has quit [Max SendQ exceeded]
<CrawfordComeaux> apeiros: is this overkill?
<CrawfordComeaux> woops
fyolnish has joined #ruby
<apeiros> ah, yeah, right, rvm of course has pre-requisites
<apeiros> so more than 1 line install
<apeiros> but I consider git and build tools a pre-requisite of not just rvm, but programming in general :)
eldariof has quit []
thufir_ has quit [Quit: Leaving.]
volte has quit [Ping timeout: 248 seconds]
eykosioux has joined #ruby
xsarin has quit [Quit: xsarin]
cantonic has quit [Ping timeout: 255 seconds]
mdel has joined #ruby
<breakingthings> Can't confirm that it works, but here's a guide for rbenv on ubuntu too.
<breakingthings> (in fact, as a script).
volte has joined #ruby
<breakingthings> though you might want to edit it appropriately
<mdel> hey all - I have a string that I'd like to use to load a class
<mdel> problem is that the class is namespaced Like::This
<CrawfordComeaux> apeiros: oh that's no biggie...I just wasn't sure if everything after the rvm install line was still necessary
<mdel> any ideas on how to reference it? I've tried Parent.const_get()
angusiguess has joined #ruby
fyolnish has quit [Ping timeout: 245 seconds]
<mdel> const_get('Child')
joofsh has quit [Remote host closed the connection]
<Spooner> mdel That should work fine.
<apeiros> breakingthings: step 1 & 2 you should probably follow. from then on, follow http://rvm.io
<apeiros> the guide you linked may be out of date. rvm.io won't be.
<mdel> Spooner: hmm
<breakingthings> apeiros that guide was for rbenv though.
<apeiros> mdel: Like.const_get('This') should work
reinaldob has quit [Remote host closed the connection]
<mdel> yeah I thought so... maybe something else im doing wrong
<mdel> irb time
<apeiros> that's rvm, not rbenv…
<breakingthings> apeiros that was his link, not mine.
HAKEON has left #ruby [#ruby]
<Spooner> mdel, module A; class B; end; end; A.const_get("B") #=> A::B
* breakingthings points at CrawfordComeaux
<epochwolf> Is it possible to get the instance of a proc from inside the proc?
Giorgio has quit [Quit: Leaving]
cableray has joined #ruby
<apeiros> breakingthings: oh, dang, didn't pay attention. thought you were him.
<CrawfordComeaux> lol....apeiros: blaming sleep dep on me having to ask a question where the answer is "rvm.io"
<epochwolf> I'm trying to duplicate this in ruby https://github.com/epochwolf/sabot/blob/master/lib/events.lua#L57
<apeiros> CrawfordComeaux: step 1 & 2 you should probably follow. from then on, follow http://rvm.io
Giorgio has joined #ruby
<mdel> Spooner: ah, I dont have a module
<apeiros> CrawfordComeaux: the guide you linked may be out of date. rvm.io won't be.
<mdel> just class PostAdapter::Twitter
<mdel> to fit with rails model autoloading
<Spooner> mdel It is the same for nested classes.
<mdel> ok
<apeiros> epochwolf: only if you prepare it. e.g. foo = proc { foo } # works
IrishGringo has joined #ruby
havenn has quit [Ping timeout: 252 seconds]
<epochwolf> apeiros: sweet
<apeiros> epochwolf: I don't think it's possible otherwise
matt_ryan_fan has joined #ruby
<CrawfordComeaux> apeiros: yeah...I have 1 & 2 covered....I may be new to ruby, but not to coding. I shouldn't have to be told to go to the main site of a language or its most common tools :P
<Spooner> mdel, I'd suggest that maybe your string is wrong (or wrong case).
<CrawfordComeaux> apeiros: and i only blame that on my sleep dep
<apeiros> epochwolf: I'd expect the new_callback to work, yes
<mdel> Spooner: hmm, getting a weird error: http://pastie.org/private/24cg5wt2vibekvvywqa
<epochwolf> apeiros: awesome, thanks.
<Spooner> mdel PostAdapter::Twitter is a module not a class.
AsgardBSD has joined #ruby
<mdel> but i have: class PostAdapter::Twitter
fyolnish has joined #ruby
<mdel> its defined as a class
baroquebobcat has joined #ruby
<Spooner> mdel are you sure there isn't a ::Twitter module? It might be finding it in the global namespace, not actually inside the class?
x82_nicole has joined #ruby
<Spooner> mdel, I have no idea what you have defined in your app.
<mdel> Spooner: yeah I know
<mdel> there may be a Twitter module as I'm use the twitter gem
aaronmacy has quit [Quit: Leaving.]
<mdel> perhaps since there is no PostAdapter class defined, the subclass isn't being picked up
<Spooner> Try: puts PostAdapter.const_get('Twitter').name
freakazoid0223 has joined #ruby
ChampS666 has quit [Ping timeout: 245 seconds]
<mdel> "Twitter"
joofsh has joined #ruby
havenn has joined #ruby
<Spooner> If you have defined it as class PostAdapter::Twitter rather than module PostAdapter; class Twitter, then it won't find it. Don't use :: in class defs, but nest them.
<Spooner> mdel yeah, it is finding ::Twitter, not PostAdapter::Twitter
<mdel> Spooner: ok, I'll test that
thone has joined #ruby
fyolnish has quit [Ping timeout: 256 seconds]
<mdel> I only defined the class that way because it was suggested somewhere that was the proper way to define classes in subdirectories of the model dir
_bart has joined #ruby
<Spooner> mdel, Nah, if you do class A::B then it won't find B with A.const_get("B")
<Spooner> It has confused me before!
hoolandi has quit [Ping timeout: 255 seconds]
<banisterfiend> Spooner: are u sure?
<mdel> perhaps it wont find it if you havent actually defined class A
samuel02 has joined #ruby
<mdel> just A::B
<canton7> trying to define A::B without first defining A errors for me
thone_ has quit [Ping timeout: 240 seconds]
<mdel> yeah in IRB same for me canton7
<mdel> but in my app it does not
ChampS666 has joined #ruby
quest88 has quit [Quit: quest88]
* mdel is confused
<canton7> I swear it's errored in apps for me too
<graft_> Spooner: that's wrong
<Spooner> banisterfiend, Not so much ;)
<canton7> so I suspect you're defining A *somewhere*...
<canton7> or someone is
<graft_> A.const_get(:B) will give you A::B if you do module A; class B; end;end
<Spooner> graft, I didn't say that. I said that is how you should be doing it.
<graft_> ah didn't read that far back :P
karasawa has joined #ruby
dickery has joined #ruby
<Spooner> It was doing class A::B; end not nesting that I thought was the problem.
<banisterfiend> Spooner: do u play any RTS? what about command and conquer?
pu22l3r has joined #ruby
<Spooner> banisterfiend, Not C&C, no. Wargame: EE and MoW are more my style ;)
<banisterfiend> Spooner: never heard of them, what is mow?
<graft_> class A::B; end; A.const_get(:B) seems to work too
clocKwize has joined #ruby
cobragoat has joined #ruby
<mdel> Im still seeing incorrect behavior...
<mdel> i have: module PostAdapter; class Twitter
<mdel> PostAdapter.const_get('Twitter') #=> "Twitter"
<Spooner> mdel Are you sure you are defining the class BEFORE you attempt to do the const_get?
<Spooner> mdel try PostAdapter.constants
<Spooner> banisterfiend, Men of War
<mdel> Spooner: true it could be the rails magic is not loading my class
<mdel> Spooner: []
<mdel> so yeah
<swarley> [{ }]
atno has joined #ruby
<Spooner> [o] [o] :>o<: [o] [o]
<apeiros> mdel: yeah, with rails you want constructs which force const_missing
<apeiros> module Foo; class Bar does not do that.
_bart has left #ruby [#ruby]
<apeiros> it'll just define the module if it isn't present, hence not triggering rails' autoloading
<mdel> apeiros: so I should be defining as Parent::Child?
<mdel> class Parent::Child
dickery has quit [Ping timeout: 252 seconds]
<apeiros> and stuff like that is the reason why even ruby related questions in rails often should go to #rubyonrails :-p
<mdel> yeah i know, im def guilty of tht :)
<swarley> Yes, Rails is not ruby.
jaequery has quit [Quit: Computer has gone to sleep.]
<mdel> obv
karasawa has quit [Ping timeout: 248 seconds]
<swarley> Rails is a bastard child to be swept under the carpet
<swarley> \o/
<mdel> even ruby related questions should END UP in #rubyonrails
<mdel> ;)
<swarley> no
<swarley> Because they will give you rails answers
<mdel> once people like me figure out their errors
<swarley> Which are never what you want
<mdel> lol
quest88 has joined #ruby
HAKEON has joined #ruby
<mdel> "use edge rails"
cobragoat has quit [Ping timeout: 248 seconds]
<swarley> "How should I computer the remainder of 5 divided by 3?" "WELL START WITH THIS CONTROLLER CLASS"
<nazty> yo shevy
<nazty> anyone use jruby?
jaequery has joined #ruby
joeycarmello has quit [Remote host closed the connection]
jaequery has quit [Client Quit]
<swarley> Plenty of people
<swarley> I don't know anyone who uses JRuby exclusively
<nazty> is it anygood for GUI
<swarley> Yes
<swarley> It's a lot easier to use Swing
<nazty> i was gonna use IronRuby but someone told me they stopped the project
<nazty> whats Swing?
kennyvb has quit [Quit: ZNC - http://znc.in]
<mdel> ugh this Rails autoloading is wacky... im still confused, but I have a better idea of what's going on... thanks ppl
<unstable> How can I make sure to always get input like 'a7 to a5'?
<unstable> when grade.match(/[a-zA-Z][1-8] to [a-zA-Z][1-8]/)
<unstable> I am trying to setup this input method.
kennyvb has joined #ruby
<Spooner> unstable, You probably want to anchor the ends. Otherwise it looks like that would work.
mockra has quit [Remote host closed the connection]
Starrfish has quit [Quit: Leaving]
<mdel> i prefer explicit whitespace chars, but yeah that looks ok
BoobBoo has quit []
Myconix has joined #ruby
<unstable> Spooner: I don't understand what you mean by 'anchor the ends'.
<mdel> "/^[a-zA-Z][1-8] to [a-zA-Z][1-8]$/"
Dreamer3 has quit [Ping timeout: 246 seconds]
<unstable> I see.
<Spooner> Otherwise you'll match "frog8 to f8lemmings"
<swarley> Swing is the Java UI library
Dreamer3 has joined #ruby
<swarley> GUI*
pcarrier has joined #ruby
<swarley> And never ever use IronRuby
<swarley> its impossibly slow
freeayu has joined #ruby
Kuifje has quit [Ping timeout: 256 seconds]
<apeiros> unstable, mdel: use \A and \z, not ^ and $
<apeiros> ^$ are about start/end of line, not string
<mdel> yeah my bad
eykosioux has quit [Quit: eykosioux]
danneu has quit [Ping timeout: 248 seconds]
danneu1 has joined #ruby
<canton7> that's been the cause of a fair number of web-based exploits...
<mdel> and yet I still forget...
mfridh has joined #ruby
<unstable> hmm, I can't get any combination to work
<canton7> unstable, give us sample input, and the ouput you want?
<canton7> also, rubular.com is amazing
<mdel> grade.trim!.match(/\A[a-zA-Z][1-8] to [a-zA-Z][1-8]\z/)
<breakingthings> regexper.com
<unstable> when grade.match("/[a-h][1-8] to [a-h][1-8]/")
<nazty> sorry went afk
<unstable> d5 to c7
<unstable> That is a sample input.
<mdel> err, no trim! :(
<unstable> (It's a chess board)
thisirs has quit [Remote host closed the connection]
<Spooner> unstable when you write "when" do you mean a case when?
<unstable> Spooner: yes
<nazty> does swing come with jruby
<unstable> So they can 'q' for quit, or 's' for save as well. (those work)
crackfu has joined #ruby
<Spooner> unstable, You can just do case input; when /../
huoxito has joined #ruby
syamajala has joined #ruby
<apeiros> mdel: also don't chain on bang methods ;-)
<canton7> unstable, works here... http://www.rubular.com/r/4VjbgsJgy7 . define "doesn't work"
<apeiros> they return nil if nothing changed
<mdel> the more you know...
<unstable> sweet
<unstable> That worked.
frowni has joined #ruby
<unstable> Thanks
<apeiros> >> p "hello".strip!
<eval-in> apeiros: Output: "nil\n" (http://eval.in/7111)
<canton7> and since you're chaining, you're using the returned value and don't want to be mutating the object anyway
<canton7> (assuming the bang method mutates)
<mdel> yup, I have seen my error
<mdel> no point mutating there
clocKwize has quit [Quit: clocKwize]
albakry has quit [Quit: Leaving]
pu22l3r has quit [Remote host closed the connection]
<frowni> Ruby is not good for game dev. right?
HAKEON has left #ruby [#ruby]
<Spooner> frowni, Depends what you want to do ;)
dickery has joined #ruby
chrismhough has joined #ruby
reinaldob has joined #ruby
<mdel> "The other important detail is that if you have nested namespaces, the outer namespace gets fully resolved before the inner namespaces have a chance to trip const_missing. "
Morkel has quit [Quit: Morkel]
atno has quit [Remote host closed the connection]
<Spooner> frowni, I make lots of games with Ruby and I have a whale of a time. Sadly, they are all dreadful, but that isn't Ruby's fault (entirely).
joofsh has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
RagingDave_ has quit [Quit: Ex-Chat]
Kingy has joined #ruby
Loaft has joined #ruby
IrishGringo has quit [Read error: Operation timed out]
clocKwize has joined #ruby
cobragoat has joined #ruby
whowantstolivefo has quit [Quit: quit]
Loaft has quit [Client Quit]
horofox has joined #ruby
horofox has quit [Client Quit]
cobragoat has quit [Read error: Connection reset by peer]
pavilionXP has quit [Ping timeout: 245 seconds]
AsgardBSD has quit [Read error: Operation timed out]
otters has joined #ruby
S2kx has joined #ruby
cobragoat has joined #ruby
keanehsiao has joined #ruby
cobragoat has quit [Read error: Connection reset by peer]
aaronmacy has joined #ruby
S1kx has quit [Ping timeout: 256 seconds]
eykosioux has joined #ruby
EzeQL has joined #ruby
cobragoat has joined #ruby
keanehsiao has quit [Ping timeout: 245 seconds]
cobragoat has quit [Read error: Connection reset by peer]
JumpMast3r has joined #ruby
IrishGringo has joined #ruby
cobragoa_ has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
Virunga has quit [Quit: Virunga]
emergion has joined #ruby
Virunga has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
cobragoa_ has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
dnyy has quit [Remote host closed the connection]
atno has joined #ruby
RagingDave has joined #ruby
havenn has quit [Ping timeout: 260 seconds]
cobragoa_ has joined #ruby
cobragoa_ has quit [Read error: Connection reset by peer]
quest88 has quit [Quit: quest88]
joeycarmello has joined #ruby
cobragoa_ has joined #ruby
Neomex has joined #ruby
cobragoa_ has quit [Read error: Connection reset by peer]
cobragoa_ has joined #ruby
fyolnish has joined #ruby
cobragoa_ has quit [Read error: Connection reset by peer]
stayarrr has quit [Quit: Linkinus - http://linkinus.com]
fyolnish has quit [Ping timeout: 256 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<frowni> Would you recommend Ruby for a beginner(with no-programming background) instead of C sharp?
dickery has left #ruby [#ruby]
<frowni> All i want to create a word processor at the moment :) Simple one.
havenn has joined #ruby
xsarin has joined #ruby
joeycarmello has quit [Remote host closed the connection]
tenmilestereo has quit [Quit: Leaving]
joeycarmello has joined #ruby
<banisterfiend> frowni: a word processor? probably test to stick with c# or obj-c :)
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
cobragoa_ has joined #ruby
alanp has joined #ruby
karasawa has joined #ruby
<banisterfiend> best*
<banisterfiend> it's pretty trivial to write a simple word processor in objc
alanp_ has quit [Read error: Connection reset by peer]
jfl0wers has joined #ruby
k610 has joined #ruby
jds has quit [Remote host closed the connection]
<mdel> banisterfiend: why is that
<whitequark> but mostly because a typical objc environment already includes a word processor, no?
reinaldob has quit [Remote host closed the connection]
<whitequark> and in this case you could as well use macruby?
<banisterfiend> mdel: because a 'text box' widget is already 50% of the way there :)
<whitequark> frowni: besides, writing a word processor is not a beginner task.
matt_ryan_fan is now known as pray_4_matt_ryan
<whitequark> not that you shouldn't try, but do not expect the result to be usable in production; it won't be.
cb0ss- has quit [Read error: Connection reset by peer]
xsarin has quit [Client Quit]
<whitequark> that being said, it is a great exercise.
<mdel> banisterfiend: ah ok... i thought you were saying there was something about OBJ-C that inherently made writing a word-processor easier
<mdel> which would have been interesting to know, if so :)
<banisterfiend> mdel: there is, of course
freakazoid0223 has quit [Quit: Leaving]
<banisterfiend> mdel: obj-c (i mean 'cocoa' as well when i say obj-c, as they're kind of inextricably linked) is a gui toolkit
blacktulip has quit [Remote host closed the connection]
<whitequark> banisterfiend: man gnustep
<mdel> word processor !== gui
emergion has quit [Quit: Computer has gone to sleep.]
karasawa has quit [Ping timeout: 246 seconds]
<whitequark> obj-c is a programming language which does not include all kinds of proprietary crap.
<banisterfiend> well i guess obj-c stands on its own kind of, but it's very rarely used outside of cocoa
<swarley> .-.
<whitequark> I'm not trying to say that gnustep is even used by anyone except its authors
horofox has joined #ruby
<spider-mario> there’s QtRuby
<whitequark> but substituting cocoa for objc is very confusing
nari has joined #ruby
<whitequark> not entirely unlike how rails is often substituted for ruby ]:)
<whitequark> spider-mario: last time I checked the thing couldn't run five minutes without crashing
mockra has joined #ruby
<banisterfiend> mdel: cocoa has a bunch of tools that make building a word processor extremely easy, with core data it's only a few clicks iirc
<frowni> Objective-C is kinda hard for me :D
<banisterfiend> whitequark: true but with obj-c/cocoa it's an even deeper relationship as the entire stdlib for obj-c is pretty much cocoa
<mdel> banisterfiend: ok. that still doesnt mean that that LANGUAGE itself is making writing a word-processor inherently easier, as I thought you were saying
IrishGringo has quit [Read error: Operation timed out]
crackfu has quit [Read error: Connection reset by peer]
maletor has joined #ruby
crackfu has joined #ruby
<whitequark> banisterfiend: the obj-c stdlib doesn't have anything with cocoa. why would it?
eric_ has joined #ruby
eric_ has left #ruby [#ruby]
<banisterfiend> whitequark: isn't NSString, NSArray all cocoa?
bigmac has joined #ruby
frowni has quit []
<whitequark> banisterfiend: yeah
<whitequark> but they're not a part of objc
<spider-mario> whitequark: “Programmer needs to make sure that Ruby String is not being garbage collected or changed for the time it's being used by Qt/KDE object.”
<spider-mario> that might be the cause of it, might it not?
<banisterfiend> but they're the closest thing obj-c has to a "standard library" afaik
<spider-mario> it’s when “In some cases Qt/KDE object "takes ownership" over Ruby String passed as char* argument type.”
<whitequark> banisterfiend: oh actually I was wrong
crackfu_ has joined #ruby
<whitequark> banisterfiend: and they're not a part of cocoa. http://www.gnustep.org/resources/OpenStepSpec/OpenStepSpec.html
<spider-mario> “Be very careful when you call this kind of methods and make sure that there is no overloaded version witch accepts QString or QByteArray first!”
<whitequark> well, whatever, taxonomy is not my best strength
<whitequark> spider-mario: might be
crackfu has quit [Ping timeout: 246 seconds]
eykosioux_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
spider-mario has quit [Read error: Connection reset by peer]
emergion has joined #ruby
eykosioux has quit [Ping timeout: 245 seconds]
eykosioux_ is now known as eykosioux
cantonic has joined #ruby
chrismhough has quit [Quit: chrismhough]
Umren|2 has quit [Read error: Connection reset by peer]
mengu has quit [Quit: Leaving]
emergion has quit [Ping timeout: 264 seconds]
jasondotstar has quit [Quit: WeeChat 0.3.9.2]
xsarin has joined #ruby
jfl0wers has quit [Ping timeout: 245 seconds]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Virunga has quit [Quit: Virunga]
Virunga_ has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9.2]
eykosioux has quit [Quit: eykosioux]
xsarin has quit [Client Quit]
Neomex has quit [Quit: Neomex]
apeiros has quit [Read error: Connection reset by peer]
agarie has joined #ruby
subbyyy has joined #ruby
xsarin has joined #ruby
adkron has joined #ruby
xsarin has quit [Client Quit]
jds has joined #ruby
xsarin has joined #ruby
jeffreybaird has joined #ruby
keanehsiao has joined #ruby
horofox has quit [Quit: horofox]
breakingthings has quit []
gurps has quit [Quit: bye]
gurps has joined #ruby
keanehsiao has quit [Ping timeout: 248 seconds]
lushious has joined #ruby
thansen has joined #ruby
fyolnish has joined #ruby
breakingthings has joined #ruby
<thansen> I'm pretty ignorant in ruby..how do I get bundle and friend to recognize system gems?
dwn has quit [Quit: u]
breakingthings has quit [Client Quit]
hotovson_ has quit [Remote host closed the connection]
xsarin has quit [Read error: Connection reset by peer]
CrawfordComeaux has quit [Ping timeout: 245 seconds]
xsarin has joined #ruby
danneu1 has quit [Ping timeout: 252 seconds]
jds has quit [Read error: Operation timed out]
caleb_io has quit [Quit: caleb_io]
xsarin has quit [Client Quit]
J-_-L has joined #ruby
horofox has joined #ruby
jduan1981 has joined #ruby
mneorr has quit [Remote host closed the connection]
clocKwize has quit [Quit: clocKwize]
fyolnish has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
<Spooner> thansen, Can you be a bit more specific?
jeffreybaird has joined #ruby
gyre007 has quit [Remote host closed the connection]
J-_-L has quit [Client Quit]
gyre007 has joined #ruby
<thansen> well, I'm trying to package up gitlabhq and I want bundler to pull in a system gem rather than build it
<thansen> is that possible?
artm has quit [Quit: artm]
CalebMingle has joined #ruby
<Spooner> I don't understand what you mean by a system gem. You can install gems with bundler via rubygems, github or local directories.
<thansen> bundle at runtime doesn't appear to 'find' system gems so I assume I need it to pull it in at build time
n1x has quit [Ping timeout: 246 seconds]
<Spooner> No, it will find gems you already have installed rather than install them, assuming the versions are appropriate.
<thansen> ok, so how would I go about hacking a gemfile or whatever to tell it to prefer a system gem over rubygems.org or whatever
<Xeago> you have a load path for gems
cobragoa_ has quit [Read error: Connection reset by peer]
<thansen> in particular I'm dealing with charlock_holmes
<Xeago> first it checks in various folder
<Xeago> than system folders
<Xeago> than it searches the gemhosts stuff
<Xeago> and fetches, installs
<Xeago> and uses it
Criztian has quit [Remote host closed the connection]
filemon_CZ has joined #ruby
jeffreybaird has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
crackfu_ has quit [Remote host closed the connection]
crackfu has joined #ruby
<thansen> Xeago: ok, so how would I go about determining why system gem(s) aren't being used?
Astralum has joined #ruby
Playground has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]