ohaibbq has quit [Remote host closed the connection]
ohaibbq has joined #ruby
_blizzy_ has joined #ruby
Gribo has quit [Read error: Connection reset by peer]
hj2007 has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
lucyinthesky has left #ruby ["Leaving"]
_blizzy_ has joined #ruby
devbug_ has joined #ruby
jeadr has quit [Remote host closed the connection]
jeadr has joined #ruby
mephistophocles has quit [Ping timeout: 260 seconds]
devbug has quit [Ping timeout: 244 seconds]
FernandoBasso has quit [Quit: May the force be with you.]
last_staff has quit [Read error: Connection reset by peer]
marsjaninzmarsa has joined #ruby
frozen3 has joined #ruby
dgutierrez1287 has joined #ruby
axl_ has left #ruby [#ruby]
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lucyinthesky has joined #ruby
dgutierrez1287 has quit [Ping timeout: 255 seconds]
juanpablo___ has joined #ruby
Spleeze has quit [Quit: QUIT]
Rickmasta has joined #ruby
mephistophocles has joined #ruby
jonee has quit [Ping timeout: 245 seconds]
Musashi007 has joined #ruby
marr has quit [Ping timeout: 240 seconds]
lucyinthesky has quit [Quit: Leaving]
Spleeze has joined #ruby
juanpablo___ has quit [Ping timeout: 240 seconds]
swgillespie has joined #ruby
saddad has joined #ruby
casadei_ has joined #ruby
cornerma1 has joined #ruby
swgillespie has quit [Client Quit]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
towski_ has joined #ruby
tomphp has joined #ruby
cornerman has quit [Ping timeout: 260 seconds]
cornerma1 is now known as cornerman
nertzy has quit [Quit: This computer has gone to sleep]
baweaver has quit [Remote host closed the connection]
snowkidind has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
djbkd has quit [Quit: Leaving...]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx_ has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
eminencehc has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
Thomas-0725 has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
Cache_Money has joined #ruby
<eminencehc>
How can i match an item in an array, and then return the next one? I know I can do array.include?(foo), but how would I get the next value?
kellray has left #ruby [#ruby]
djbkd has joined #ruby
banister has quit [Read error: Connection reset by peer]
amystephen has quit [Quit: amystephen]
diegoviola has joined #ruby
tkuchiki has joined #ruby
rubie has joined #ruby
<Ox0dea>
eminencehc: Why not just add 1 to the index of the target element and use that to get the next one?
christiandsg has joined #ruby
yh has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 244 seconds]
rubie has quit [Remote host closed the connection]
kachi8 has quit [Ping timeout: 244 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
swgillespie has joined #ruby
workmad3 has joined #ruby
danman has joined #ruby
brendan- has joined #ruby
ascarter has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
brendan- has quit [Client Quit]
Cubix has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
allcentury has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby
Cubix has quit [Quit: Leaving]
<shevy>
yeah index
<Ox0dea>
>> foo = [1, 2, 3].to_enum; 1 until foo.next == 2; foo.next # or Enumerator#next :P
christiandsg has quit [Read error: Connection reset by peer]
christiandsg has joined #ruby
<MikeHunt>
it's a ruby app with a sql driven db that relates nigger species from most violent to most docile
<MikeHunt>
there are a lot of nigger species in the world. subhuman niggers are the most violent and dangerous... more dangerous than the silverbacks. what is the most docile species of niggers out there?
<Yzguy>
yeah so if you could leave
<Yzguy>
that'd be great
<Norrin>
ops were already called. leave it alone
<MikeHunt>
can you answer my question please? I'll leave after you answer my question
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
armyriad has quit [Quit: Leaving]
<pipework>
Yzguy: Please don't engage the troll.
<MikeHunt>
please answer my question
MikeHunt has quit [Remote host closed the connection]
Feyn has joined #ruby
hydrozen has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
dr3w has quit [Ping timeout: 246 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby
millerti has joined #ruby
belteshazzar has joined #ruby
<miah>
sup
MikeUnt has joined #ruby
<MikeUnt>
hi
MikeUnt was banned on #ruby by ChanServ [MikeUnt!*@*]
<pipework>
miah: Maybe it wasn't the best mask, but it should be alright for miaow. :D
<miah>
sadly, trolls <3 web gateways
<kaikazou>
:(
lwu has joined #ruby
oo_ has joined #ruby
<pipework>
miah: I might've went for the ip address to start, or if you think kiwiiirc.com isn't that popular, you could ban that. I haven't seen that one as often, but that's definitely worth considering.
<miah>
ya, i'll sort it out in a minute. =)
<Norrin>
miah, i think you did get the wrong one
<Norrin>
the guy was MikeHunt (~u931732@172.56.26.62)
arescorpio has joined #ruby
Rutix has quit []
<Norrin>
mobile ip but it'll suffice for now
DifferentLambda is now known as rhg135
oo__ has joined #ruby
devoldmx has joined #ruby
siemprefresco has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
Thomas-0725 has joined #ruby
<miah>
Norrin: thanks, i'll sort in a moment
edwardly has joined #ruby
edwardly has joined #ruby
siempref_ has quit [Ping timeout: 256 seconds]
<miah>
i think that one i banned was same one, just on webirc.. i dont really understand the trolling anyways
<miah>
such a waste
oo__ has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
Thomas-0725 has quit [Client Quit]
workmad3 has joined #ruby
havenwood has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
oo_ has quit [Ping timeout: 240 seconds]
dopie has joined #ruby
eminencehc has quit [Remote host closed the connection]
bruno- has joined #ruby
rakm has joined #ruby
patteh has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
patteh has joined #ruby
<shevy>
they have too much time available!
bruno- has quit [Ping timeout: 240 seconds]
<miah>
lol
Vile` has quit [Ping timeout: 265 seconds]
VeganGreg has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 255 seconds]
hj2007 has quit [Ping timeout: 260 seconds]
Vile` has joined #ruby
braincrash has quit [Quit: bye bye]
dopie has quit [Quit: This computer has gone to sleep]
jeadr has quit [Remote host closed the connection]
braincras has joined #ruby
jeadr has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
davedev24 has quit []
audiodude has joined #ruby
oo_ has joined #ruby
s2013 has joined #ruby
christiandsg has quit [Remote host closed the connection]
hj2007 has joined #ruby
NeverDie has joined #ruby
dgutierrez1287 has joined #ruby
s2013 has quit [Client Quit]
Vile` has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
darkf has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
dgutierrez1287 has quit [Ping timeout: 264 seconds]
Guest44794 has joined #ruby
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lwu has quit [Quit: This computer has gone to sleep]
Guest44794 has quit [Remote host closed the connection]
ocsjwolf has joined #ruby
dopie has joined #ruby
amystephen has joined #ruby
Jimbow has joined #ruby
Jimbow was banned on #ruby by ChanServ [*!*@gateway/web/cgi-irc/kiwiirc.com/ip.167.114.119.196]
<jimbow>
i just wanted to say that i love each and every one of you
<jimbow>
and the ruby community is great
<Ox0dea>
sevenseacat: Welp, fair warning.
<jimbow>
:)
Encapsulation has quit [Quit: Leaving]
<jimbow>
sevenseacat:thanks for writing that wonderful rails book
<Ox0dea>
baweaver: Why we have #tr_s but not #tr_d is a bit of a mystery.
lucyinthesky has joined #ruby
<jimbow>
may i have your autograph?
absolutejam has quit [Ping timeout: 246 seconds]
<sevenseacat>
Ox0dea: 'preciated.
* baweaver
grabs popcorn
<sevenseacat>
jimbow: if we meet in real life, sure why not.
_blizzy_ has quit [Ping timeout: 260 seconds]
<jimbow>
sevenseacat:don't listen to Ox0dea he's not talking about me
<jimbow>
he's mistaken me for someone else
<lucyinthesky>
oh cool
<WeeBeanie>
Question: when I declare a series of variables local to a function, when that function terminates execution, is the memory for those variables released?
<WeeBeanie>
The function is not a method, it's isolated, not part of a parent class
_ht has joined #ruby
<[k->
the memory of released when a GC runs
<[k->
is*
absolutejam has joined #ruby
<WeeBeanie>
When does a garbage collector run? Is that something you can manually launch?
<WeeBeanie>
I've been coding a while in Ruby but am not familiar whatsoever with the nuances of garbage collection
<[k->
you can manually launch it
<WeeBeanie>
Ok
yfeldblum has joined #ruby
<[k->
it runs when the heap is full
<jimbow>
is there a way to visualize what's going on in garbage collection?
<Ox0dea>
sevenseacat: http://git.io/v3df0 Just something to be aware of, I guess.
<sevenseacat>
Ox0dea: thanks.
<WeeBeanie>
Is this recommended if you have an app that runs a while and it calls functions with several variables local to that function?
<Ox0dea>
Sure thing.
<[k->
I'm not too sure about incremental gc, though
<WeeBeanie>
To manually launch a GC?
<jimbow>
Ox0dea:do i know who was using my computer? yes i do know who was using my computer it was my brother please forgive him as he's a bit young and immature
<WeeBeanie>
So I have this one application where I iterate through all user profiles stored in a remote MySQL DB, and perform actions based on settings in the user profiles, perhaps it would be logical to issue a GC.start at the bottom of each iteration.
<WeeBeanie>
GC only clears memory for released variables, I trust?
<WeeBeanie>
I'm going to read up on it, yes.
<Ox0dea>
The garbage collector will not destroy reachable objects.
<ght>
Ok, I just noticed one of my apps that deals with a fair amount of user data was consuming a LOT of RAM.
<Ox0dea>
That's kind of interesting.
<ght>
and I assume it's all the temporary local vars I declare in these functions.
<Ox0dea>
I wonder why c, g, j, l, t, u, y, and z are absent.
<ght>
I'm sure this codebase could be optimized.
snowkidind has quit [Quit: snowkidind]
workmad3 has quit [Ping timeout: 240 seconds]
einarj has quit [Ping timeout: 250 seconds]
<[k->
Ox0dea: thats because they arent used
jxcode has joined #ruby
daynaskully has joined #ruby
<[k->
no def c; :c or whatever
<baweaver>
If you _really_ have issues with RAM / speed, Ruby may not be the best idea.
daynaskully is now known as Guest74305
<ght>
One last question regarding this: If you inadvertantly end up calling GC.start multiple times in a loop, A) does GC.start freeze execution until garbage colleciton is complete?
framling has joined #ruby
<ght>
And B) If not, will multiple GC instances begin overlapping and causing issues of their own?
<Ox0dea>
[k-: Which class do you reckon has an #a method?
<Ox0dea>
ght: Ruby's GC "stops the world".
<ght>
haha, ok.
<ght>
Thank you Ox0dea.
<Ox0dea>
That's actually the technical term, I think.
leat has joined #ruby
<Ox0dea>
Happy to help.
PhantomSpank has joined #ruby
<[k->
Ox0dea: i dont know, but i bet you'd find out
blue_deref has quit [Quit: bbn]
<Ox0dea>
[k-: I suspect there isn't one, at least not in any of the classes that're defined at program start.
<Ox0dea>
I understand the absence of the less common letters like J and Z, but C is pretty damned common.
khebbie has quit [Remote host closed the connection]
<[k->
when i think of c i think of cats
np0 has quit [Ping timeout: 245 seconds]
<Ox0dea>
ETAOIN SHRDLUC.
tkuchiki has quit [Remote host closed the connection]
<Ox0dea>
It does rely on the nonexistence of a file named " " in the current directory, though.
michael_mbp has joined #ruby
_djbkd has quit [Quit: My people need me...]
kachi8 has joined #ruby
khebbie has joined #ruby
nsuke has joined #ruby
iateadonut has quit [Quit: Leaving.]
phutchins1 has quit [Ping timeout: 246 seconds]
casadei_ has quit [Remote host closed the connection]
choke has joined #ruby
<ght>
Question: if you declare a hash like myhash = { "Val1" => 100, "Val2" => nil, "Val3" => 200 }, will a GC.start elimnate the "Val2" element of the hash, or does the Val2 element really exist at all in the first place?
<ght>
eliminate*
TomyLobo has joined #ruby
casadei_ has joined #ruby
skydiver has quit [Ping timeout: 250 seconds]
<[k->
it will not be eliminated
<ght>
[k-: Thank you
pawnbox has joined #ruby
casadei_ has quit [Remote host closed the connection]
<Ox0dea>
ght: Nonexistence and nil are quite different things.
j4cknewt has quit [Remote host closed the connection]
<Ox0dea>
I'm almost certain the book wasn't around when I first stumbled upon his collection there.
charliesome has joined #ruby
ChoiKyuSang has joined #ruby
matled- has joined #ruby
<ekleog>
Hey folks, in Logger's documentation, I can't find any mention of multithreading. Should I assume it is thread-unsafe, and two concurrent logs could either "corrupt" the log file or write nonsense in lieu of the two log lines?
shock_on_ has joined #ruby
jayne_ has joined #ruby
uxp_ has joined #ruby
patronus_ has joined #ruby
<[k->
you should assume everything is not thread safe
<baweaver>
Ox0dea: it's recent, like within the last few months iirc
<[k->
unless the docs says so
Zarthus_ has joined #ruby
<ekleog>
OK, thanks!
<Ox0dea>
ekleog: In this case, though, [k- was overly pessimistic.
perrier_ has joined #ruby
<Ox0dea>
Logger uses the monitor standard library and utilizes a Mutex to ensure thread-safe logging.
<[k->
i can still say I'm correct by a long stretch
finges_ has joined #ruby
jso- has joined #ruby
hfp__work has joined #ruby
ltd_ has joined #ruby
shadeslayer_ has joined #ruby
Rickmast_ has joined #ruby
ashleyhi1dle has joined #ruby
slani_ has joined #ruby
tommylom1ykins has joined #ruby
apeiros_ has joined #ruby
yarden_ has joined #ruby
larshaugseth has joined #ruby
humd1ng3r has quit [Ping timeout: 255 seconds]
oz has quit [Ping timeout: 255 seconds]
gsingh93 has quit [Ping timeout: 255 seconds]
redondos has quit [Ping timeout: 255 seconds]
Rickmasta has quit [Ping timeout: 255 seconds]
spectra has quit [Ping timeout: 255 seconds]
martinbjeldbak has quit [Ping timeout: 255 seconds]
Coraline has quit [Ping timeout: 255 seconds]
perrier has quit [Ping timeout: 255 seconds]
petersaints has quit [Ping timeout: 255 seconds]
csmb has quit [Ping timeout: 255 seconds]
Urocyon has quit [Ping timeout: 255 seconds]
sarid has quit [Ping timeout: 255 seconds]
abdoudjanifresh has quit [Ping timeout: 255 seconds]
jtdowney has quit [Ping timeout: 255 seconds]
Tempesta has quit [Ping timeout: 255 seconds]
matled has quit [Ping timeout: 255 seconds]
Kruppe has quit [Ping timeout: 255 seconds]
jso has quit [Ping timeout: 255 seconds]
devyn has quit [Ping timeout: 255 seconds]
ericwood has quit [Ping timeout: 255 seconds]
shock_one has quit [Ping timeout: 255 seconds]
brainslug has quit [Ping timeout: 255 seconds]
Zarthus has quit [Ping timeout: 255 seconds]
zacts has quit [Ping timeout: 255 seconds]
akurilin has quit [Ping timeout: 255 seconds]
lhz has quit [Ping timeout: 255 seconds]
DefV has quit [Ping timeout: 255 seconds]
nuck has quit [Ping timeout: 255 seconds]
ltd has quit [Ping timeout: 255 seconds]
pjaspers_ has quit [Ping timeout: 255 seconds]
rfi has quit [Ping timeout: 255 seconds]
Roa has quit [Ping timeout: 255 seconds]
yardenbar has quit [Ping timeout: 255 seconds]
xxneolithicxx has quit [Ping timeout: 255 seconds]
rhg135 has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 255 seconds]
irk has quit [Ping timeout: 255 seconds]
ashleyhindle has quit [Ping timeout: 255 seconds]
ddfreyne has quit [Ping timeout: 255 seconds]
f0ster has quit [Ping timeout: 255 seconds]
joneshf-laptop has quit [Ping timeout: 255 seconds]
ccooke has quit [Ping timeout: 255 seconds]
gnarf has quit [Ping timeout: 255 seconds]
hfp_work has quit [Ping timeout: 255 seconds]
slani has quit [Ping timeout: 255 seconds]
tommylommykins has quit [Ping timeout: 255 seconds]
hfp__work is now known as hfp_work
ejnahc has quit [Ping timeout: 255 seconds]
Roa has joined #ruby
sarid has joined #ruby
dogeuira has joined #ruby
Kruppe has joined #ruby
Coraline has joined #ruby
irk has joined #ruby
uxp has quit [Ping timeout: 255 seconds]
finges has quit [Ping timeout: 255 seconds]
Sp4rKy has quit [Ping timeout: 255 seconds]
patronus has quit [Ping timeout: 255 seconds]
dogeuira has quit [Ping timeout: 255 seconds]
alakra has quit [Ping timeout: 255 seconds]
shortdudey123 has quit [Ping timeout: 255 seconds]
shadeslayer has quit [Ping timeout: 255 seconds]
chris2 has quit [Ping timeout: 255 seconds]
fluchtreflex has quit [Ping timeout: 255 seconds]
Urocyon_ is now known as Urocyon
jayne has quit [Read error: Connection reset by peer]
<Ox0dea>
Better still to instill a desire to explore, in my opinion.
sarid has joined #ruby
oz` is now known as oz
gsingh93_ is now known as gsingh93
ChoiKyuSang is now known as Tempesta
matled- is now known as matled
sarid has quit [Changing host]
martinbjeldbak_ has joined #ruby
ddfreyne_ has joined #ruby
petersaints_ is now known as petersaints
DifferentLambda has joined #ruby
ejnahc_ has joined #ruby
<ekleog>
OK, thanks, it's always great to discover undocumented features :)
shortdudey123_ is now known as shortdudey123
spectra_ has joined #ruby
abdoudjanifresh has joined #ruby
<Ox0dea>
ekleog: I guess it's so sensible that they expected users to take it for given.
nuck has joined #ruby
xxneolithicxx has joined #ruby
chris2 has joined #ruby
jeadr has quit [Remote host closed the connection]
ohaibbq has quit [Quit: Leaving...]
<darkxploit>
hello.. i just did a rvm upgrade 2.2 but when i do a ruby -v it gives me ruby 1.8.7
<baweaver>
rvm use 2.2
Musashi007 has quit [Quit: Musashi007]
gnarf_ has joined #ruby
<ekleog>
Ox0dea: You are right of course, but with <1 week of ruby coding I do not feel ready to delve into ruby's standard library yet
<baweaver>
check your path
jeadr has joined #ruby
<darkxploit>
baweaver, ah ok now i got it
khebbie has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HexMan has joined #ruby
<baweaver>
make sure you have rvm on your path
<baweaver>
or you'll have to keep doing that.
<darkxploit>
now ruby -v gives me 2.2
<darkxploit>
baweaver, does it mean that i still have that old version of ruby on the server
<baweaver>
system ruby, probably
<baweaver>
1.8.7 was RHEL / older OSX for the most part
<baweaver>
and if RHEL had it, Centos and friends do too.
<darkxploit>
how do i get rid of the old ruby ?
<baweaver>
don't
nanoz has joined #ruby
devoldmx has quit [Remote host closed the connection]
<darkxploit>
ok
gwendall has joined #ruby
<baweaver>
depending on the OS and other potential wily factors, that could give you nightmares.
charliesome has joined #ruby
shock_on_ has quit [Remote host closed the connection]
j4cknewt has joined #ruby
<baweaver>
rvm use 2.2 --default
<baweaver>
that'll keep it that way.
charliesome has quit [Client Quit]
<darkxploit>
yes i have reboot the machine its 2.2
<baweaver>
good to go then.
<darkxploit>
thank you baweaver
<baweaver>
np mate
shock_one has joined #ruby
lucyinthesky has quit [Quit: Leaving]
gwendall has quit [Ping timeout: 260 seconds]
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
charliesome has joined #ruby
aperios has joined #ruby
skydiver has quit [Quit: #homebrew]
oo_ has joined #ruby
<TomyLobo>
i'm developing a jira fuse driver which accesses the jira api on the backend. so far, I didn't care a lot about avoiding duplicate gets, but i always planned to change that. now i just read that the httparty library i use supports caching modules. is there any in-memory caching module?
skydiver has joined #ruby
ruurd has joined #ruby
<TomyLobo>
i found cachebar, but that requires a redis server. i also found httparty-icebox, but the author deprecated it in favor of cachebar
khebbie has joined #ruby
lkba has quit [Read error: Connection reset by peer]
symm- has joined #ruby
lwu has quit [Quit: This computer has gone to sleep]
HexMan has quit [Read error: Connection reset by peer]
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MrButh>
I want to use ssh to track my apache2 log to see as people visit my websites, then I want to display that information for the client. Would this be possible using net-ssh and ruby-socket.io?
baweaver has quit [Remote host closed the connection]
skydiver has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
skydiver has quit [Client Quit]
havenwood has quit [Ping timeout: 250 seconds]
<TomyLobo>
that sounds like a shell script to me
<TomyLobo>
or a case for backticks
skydiver has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
<TomyLobo>
but usually you'd not use ssh for that
<TomyLobo>
but aggregate the logs from all of your cluster in a central place, like a logstash
<MrButh>
so like send the logs from all of my servers to a central server every time they are updated?
<MrButh>
then tail that file?
np0 has joined #ruby
Musashi007 has joined #ruby
sameerynho has joined #ruby
Alina-malina has joined #ruby
<jhass>
?crosspost MrButh
<ruboto>
MrButh, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
ItSANgo has joined #ruby
np0 has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
ruurd has joined #ruby
Kalov has quit []
_blizzy_ has joined #ruby
<MrButh>
crossport? is that like a socket gem or something? I can't find anything on Google about it
<MrButh>
what does crossporting do?
iliketurtles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MrButh>
oh post, crossposting... still not sure how that is supposed to help though
allcentury has quit [Ping timeout: 250 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
sameerynho has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
scripore has joined #ruby
fantasticsid has joined #ruby
sameerynho has joined #ruby
khebbie has quit [Remote host closed the connection]
rakm has joined #ruby
Jackneill has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
dgutierrez1287 has joined #ruby
devoldmx has joined #ruby
lapide_viridi has joined #ruby
Musashi007 has quit [Quit: Musashi007]
dgutierrez1287 has quit [Ping timeout: 272 seconds]
rippa has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
skydiver has quit [Ping timeout: 250 seconds]
kachi8 has quit [Ping timeout: 244 seconds]
greg has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
The_Phoenix has quit [Quit: Leaving.]
einarj has joined #ruby
arup_r has joined #ruby
lele is now known as Guest24
esposito has joined #ruby
<greg>
hello
einarj has quit [Ping timeout: 250 seconds]
scripore has quit [Quit: This computer has gone to sleep]
apeiros_ is now known as apeiros
skydiver has joined #ruby
psy_ has quit [Ping timeout: 264 seconds]
eam has quit [Ping timeout: 245 seconds]
PhantomSpank has joined #ruby
PhantomSpank has quit [Client Quit]
greenmang0 has joined #ruby
greenmang0 has joined #ruby
greg has quit [Quit: Leaving]
eam has joined #ruby
greg has joined #ruby
MrButh has quit [Ping timeout: 256 seconds]
esposito has quit [Ping timeout: 240 seconds]
greenmang0 has left #ruby [#ruby]
chinmay_dd has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
autrilla has joined #ruby
babulal has joined #ruby
babulal has left #ruby [#ruby]
darkxploit has quit [Ping timeout: 260 seconds]
babulal has joined #ruby
allcentury has joined #ruby
<[k->
>> a = "a"; [a.hash, a.hash.hash, a.hash.hash.hash]
<apeiros>
where else would I find my good twin mirror who saves the world instead of subjugating it? :D
kachi8 has quit [Read error: Connection reset by peer]
<Ox0dea>
apeiros: He's just the other side of our next Big Crunch.
darkxploit has joined #ruby
kachi8 has joined #ruby
skydiver has quit [Ping timeout: 250 seconds]
<Ox0dea>
Alas, dishearten at the realization that the Big Bounce theory is overly optimistic.
Motoservo has quit [Quit: Motoservo]
bruno- has joined #ruby
krz has joined #ruby
towski_ has joined #ruby
fantasti` has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
jxcode has quit [Quit: leaving]
demonlove has joined #ruby
Iskarlar has joined #ruby
fantasticsid has quit [Ping timeout: 255 seconds]
fantasti` has quit [Remote host closed the connection]
fantasticsid has joined #ruby
oo_ has quit [Remote host closed the connection]
Motoservo has joined #ruby
gard has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
einarj has joined #ruby
oo_ has joined #ruby
tkuchiki has joined #ruby
ramfjord has joined #ruby
khebbie has joined #ruby
oo_ has quit [Remote host closed the connection]
gard has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
khebbie has quit [Ping timeout: 245 seconds]
chinmay_dd has joined #ruby
towski_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
cyperx has joined #ruby
lapide_viridi has quit [Quit: Leaving]
youngbaks has joined #ruby
Silox| has joined #ruby
youngbaks has quit [Client Quit]
oo_ has quit [Ping timeout: 264 seconds]
cyperx has quit [Ping timeout: 246 seconds]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fantasticsid has quit [Remote host closed the connection]
christiandsg has joined #ruby
khebbie has joined #ruby
kachi8 has quit [Ping timeout: 252 seconds]
marr has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
yashinbasement has quit [Quit: Leaving]
chinmay_dd has quit [Read error: Connection reset by peer]
chihhsin has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 250 seconds]
darthez has joined #ruby
Silox| has quit []
oo_ has joined #ruby
hololeap has quit [Ping timeout: 272 seconds]
codecop has quit [Remote host closed the connection]
hololeap has joined #ruby
oo_ has quit [Remote host closed the connection]
speaking1ode has joined #ruby
pen-soldier has joined #ruby
bartj3 has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
skydiver has joined #ruby
chinmay_dd has quit [Client Quit]
oo_ has joined #ruby
workmad3 has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stamina has joined #ruby
da3mian has joined #ruby
houhouli_ has quit [Remote host closed the connection]
Iskarlar has joined #ruby
oo_ has quit [Remote host closed the connection]
skydiver has quit [Ping timeout: 250 seconds]
ranchodev has joined #ruby
hmsimha_ has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
arup_r has joined #ruby
ndrei has joined #ruby
oo_ has joined #ruby
da3mian has quit [Ping timeout: 244 seconds]
kachi8 has joined #ruby
pengin has joined #ruby
oo_ has quit [Remote host closed the connection]
demonlove has quit [Remote host closed the connection]
greg has quit [Remote host closed the connection]
hololeap has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
devoldmx has joined #ruby
pengin has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
nofxx has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
da3mian has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
nofxxx has quit [Ping timeout: 252 seconds]
khebbie has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Asher has quit [Quit: Leaving.]
eminencehc has joined #ruby
The_Phoenix has joined #ruby
Asher has joined #ruby
phutchins1 has joined #ruby
abdoudjanifresh has quit [Ping timeout: 260 seconds]
abdoudjanifresh has joined #ruby
eminencehc has quit [Ping timeout: 244 seconds]
khebbie has joined #ruby
phutchins1 has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
Oka has quit []
shock_one has quit [Remote host closed the connection]
darthez has quit [Remote host closed the connection]
Kabadoo has joined #ruby
<Kabadoo>
Is there something like XAMPP, but with ruby? I would like to start learning ruby, ruby on rails, sql on my local machine.
<jhass>
you only need ruby for local development
<jhass>
rails can start with a sqlite db
<jhass>
development webserver comes with it, you just run it
tkuchiki has joined #ruby
lxsameer_ has joined #ruby
_blizzy_ has joined #ruby
kachi8 has quit [Ping timeout: 252 seconds]
shock_one has joined #ruby
<Kabadoo>
I am totally new to this. Some time ago I tried php. Xampp came with nice mysql database gui (easy for beginner). I suspect that there is no gui for sqlite db.
banister has joined #ruby
<jhass>
there are some, but you don't really need it
<jhass>
with rails you write your migrations (= things that create the database tables) in Ruby
sameerynho has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
<jhass>
and it has some cli tool to generate the basic stuff anyhow
lxsameer has joined #ruby
lxsameer has joined #ruby
<Kabadoo>
Ok, thanks for your help. Will ask for help, when I eventually hit a wall.
<jhass>
also note
<jhass>
?rails
<ruboto>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
_blizzy_ has quit [Read error: Connection reset by peer]
<jhass>
Kabadoo: know any programming languages yet? if you not you might want to start out with something like Chris Pine's Learn to program
DoubleMalt has quit [Remote host closed the connection]
astrobunny has joined #ruby
DoubleMalt has joined #ruby
cornerma1 has joined #ruby
astrobunny has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 260 seconds]
cornerma1 is now known as cornerman
last_staff has joined #ruby
last_staff has quit [Max SendQ exceeded]
last_staff has joined #ruby
dorei has joined #ruby
last_staff has quit [Max SendQ exceeded]
quimrstorres has quit [Remote host closed the connection]
last_staff has joined #ruby
last_staff has quit [Max SendQ exceeded]
DLSteve has joined #ruby
aspiers has joined #ruby
shock_one has joined #ruby
quimrstorres has joined #ruby
iateadonut has quit [Quit: Leaving.]
charliesome has joined #ruby
quimrstorres has quit [Remote host closed the connection]
astrobunny has joined #ruby
last_staff has joined #ruby
last_staff has quit [Max SendQ exceeded]
lannonbr has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sudarshan has joined #ruby
charliesome has joined #ruby
frozen3 has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iateadonut has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
shock_one has joined #ruby
quimrstorres has joined #ruby
astrobunny has quit [Remote host closed the connection]
skydiver has joined #ruby
frozen3 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
ledestin has joined #ruby
rbennacer has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 246 seconds]
last_staff has joined #ruby
quimrstorres has joined #ruby
last_staff has quit [Max SendQ exceeded]
shock_one has quit [Remote host closed the connection]
houhoulis has joined #ruby
rbennacer has joined #ruby
sinkensabe has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
yh has quit [Quit: leaving]
Rollabunna has joined #ruby
fantasticsid has joined #ruby
phutchins1 has joined #ruby
Iskarlar has joined #ruby
alfajor has joined #ruby
chipotle has joined #ruby
last_staff has joined #ruby
alfajor is now known as Kalov
Kalov is now known as Kalov__
last_staff has quit [Max SendQ exceeded]
banister has joined #ruby
Kalov__ has quit [Client Quit]
tvw has quit []
quimrstorres has quit [Remote host closed the connection]
startupality has joined #ruby
banister has quit [Client Quit]
claw has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
last_staff has quit [Max SendQ exceeded]
Narzew has joined #ruby
Rutix has joined #ruby
Rutix has joined #ruby
Axy has quit [Read error: Connection reset by peer]
claw has joined #ruby
fantasti` has joined #ruby
psayian has joined #ruby
fantasticsid has quit [Read error: Connection reset by peer]
<psayian>
Is there a ruby version of shellcheck.net? Also, I am doing the ruby training in code academy how well does that prepare someone who wants to make a career out of ruby?
Mia has joined #ruby
kappy has quit [Remote host closed the connection]
<al2o3-cr>
psayian: eval.in
stryek has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
last_staff has joined #ruby
<psayian>
Got it thanks al2o3-cr . It took me a second to realize what that was though.
<[k->
psayian: you should get a book
quimrstorres has joined #ruby
last_staff has quit [Max SendQ exceeded]
<psayian>
Yes, I was recommended the well grounded rubyist.
<psayian>
[k-: I will get that one when my paycheck comes in.
sphex_ has quit [Ping timeout: 245 seconds]
christiandsg has joined #ruby
peteykun has quit [Quit: Leaving]
AndyBotwin has joined #ruby
devoldmx has joined #ruby
j4cknewt has quit [Remote host closed the connection]
<psayian>
[k-: Do you recommend thsi book as well?
<[k->
i have not read any books :s
quimrstorres has quit [Remote host closed the connection]
kappy has joined #ruby
<psayian>
[k-: So how did you learn?
<[k->
i really would advise you to read a bool
<[k->
book*
<psayian>
[k-: Understood, but how did you learn?
robh71 has joined #ruby
<[k->
stackoverflow, bits and pieces from the internet
<[k->
"on demand"
<[k->
and codewars.com
devoldmx has quit [Ping timeout: 244 seconds]
quimrstorres has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<nanoz>
what is codewars ?
<[k->
the link is provided for your convenience
lannonbr has joined #ruby
last_staff has joined #ruby
last_staff has quit [Max SendQ exceeded]
kachi8 has quit [Ping timeout: 252 seconds]
ejnahc_ has quit [Remote host closed the connection]
ejnahc has joined #ruby
tkuchiki has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
fantasti` has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
sphex has joined #ruby
scripore has joined #ruby
thmzlt has joined #ruby
dopie has joined #ruby
<al2o3-cr>
codewars is pretty cool (increase your kata) :)
scripore has quit [Client Quit]
Coldblackice has quit [Ping timeout: 244 seconds]
nklv has joined #ruby
sevenseacat has quit [Quit: .]
kachi8 has joined #ruby
scripore has joined #ruby
allcentury has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
quimrstorres has joined #ruby
banister has joined #ruby
rbennacer has joined #ruby
<[spoiler]>
I never heard of codewars before, but it seems cool!
jeadr has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
jeadr has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
saddad has joined #ruby
AlphaAtom has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
yarden_ has quit [Quit: Leaving]
startupality has joined #ruby
rbennacer has joined #ruby
siempref_ has joined #ruby
da3mian has quit [Quit: Leaving]
VeganGreg has joined #ruby
siemprefresco has quit [Ping timeout: 264 seconds]
pawnbox_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
VeganGreg has quit [Read error: Connection reset by peer]
Rollabunna has quit [Read error: Connection reset by peer]
quimrstorres has quit [Remote host closed the connection]
Rollabunna has joined #ruby
quimrstorres has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
ruurd has quit [Quit: ZZZzzz…]
MyMind has quit [Ping timeout: 252 seconds]
snowkidind has joined #ruby
tmtwd has joined #ruby
MyMind has joined #ruby
sepp2k has joined #ruby
ascarter has joined #ruby
ruurd has joined #ruby
ruurd has quit [Client Quit]
MrButh has joined #ruby
mhib has joined #ruby
_socialjackie has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<snowkidind>
is any language besides ruby actually adopting it?
chouhoulis has joined #ruby
<jhass>
frameworks rather, but yeah
<jhass>
it's really just a markup language, like XML or JSON
<MrButh>
I want to setup a Ruby site to monitor log files on other servers live as I watch, what would a good method of doing that be?
<MrButh>
I was going to use ssh and tail -f then socket to send to the client
<snowkidind>
theres a command for that
<snowkidind>
i think thats it
einarj has quit [Ping timeout: 260 seconds]
<MrButh>
but someone said that wouldn't be the best idea
fstr has joined #ruby
<snowkidind>
just pipe it into grep
<snowkidind>
so that all you get are the ones you want
rbennacer has quit [Remote host closed the connection]
<fstr>
Is there any way I can get the base of a Fixnum? For example 0123 -> base 8, 0b123 base 2
<MrButh>
yeah, I think it would work with the net-ssh and a ruby socket.io setup, I'm just wondering if maybe there is a better way that I do not know
quimrstorres has quit [Remote host closed the connection]
<MrButh>
perhaps instead of ssh'ing to the servers, have the servers send updates to the central server whenever they get log updates?
roolo has quit [Remote host closed the connection]
rbennacer has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
<Mon_Ouie>
fstr: You're confusing representation with value. 3 and 0b11 are the same objects. Those are just two way of writing the same thing.
<snowkidind>
thanks for clearing my YAML question up guys
chouhoulis has joined #ruby
roolo has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
quimrsto_ has joined #ruby
saddad has quit [Ping timeout: 264 seconds]
<fstr>
What I basically want is, to output my Fixnum as a String. It's provided from a config file by users, but then interpreted by ruby as Fixnum. Users provide the file permissions, which can be 0666 or 666.
<fstr>
So without knowing the base, I can't use 0666.to_s(8) reliably, if someone provides 666
<fstr>
:/
<snowkidind>
So is Haml just a modern day copy of Yaml
<[spoiler]>
snowkidind: wat
<[spoiler]>
snowkidind: not at all
<snowkidind>
diff Haml YAML
<snowkidind>
plz
Rickmasta has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
<snowkidind>
oh Haml is just pretty html
<snowkidind>
nevermind
<[spoiler]>
Hamls stands for "HTML abstraction markup language" while YAML stands for "YAML Ain't Another Markup Language"
<Mon_Ouie>
fstr: I don't know what you're trying to do. Can you show some example of inputs and expected outputs?
<snowkidind>
sorry for typing before i think
<[spoiler]>
(YAML is a recursive acronym)
<nanoz>
method contains question mark | exclamation mark what is going onnnnn
<snowkidind>
but Haml still has whitespace rules like YAML no?
<[spoiler]>
nanoz: it's just part of the method name
<[spoiler]>
Method names in Ruby can contain =, ? and !
<[spoiler]>
(and maybe I am forgetting something)
<[spoiler]>
snowkidind: what do you mean?
<[spoiler]>
oh, meaningful indentation? Yes
<fstr>
I'm using a puppet module. Users provide a config setting (file_mode) from a YAML file. Since there's no requirement in YAML to put 0666 in quotes, ruby will interpret it as a Fixnum. So in later processing when the Fixnum is written to the target file, it's not the file_mode the user expected.
<[spoiler]>
fstr: to_s?
<Mon_Ouie>
Usually methods ending with a question mark are predicates (things that return either true or false) and those ending with an exclamation mark are variants of a method of the same name without the exclamation mark
<fstr>
Because 0666 is actually 438
saddad has joined #ruby
<snowkidind>
my opinion on this is jagged
<[spoiler]>
oh because octal
<fstr>
spoiler: to_s would work fine, if I would know the base of the Fixnum
<[spoiler]>
fstr: hmm use 438.to_s 8
oo_ has quit [Remote host closed the connection]
<[spoiler]>
oh yeah
<[spoiler]>
true :/
<snowkidind>
its like when assembly code was there the spaces actually meant something. then oo lang came around and people could apply their own code writing style. now i have to conform to spacing rules?
<snowkidind>
seems archaic
<[spoiler]>
is there no way to get the string value? I can't remember now, sorry
jeadr has quit [Remote host closed the connection]
<fstr>
Easiest solution would be to force the users to use one format, or put the config setting in quotes. But it would be more elegeant if I could provide a YAML conform solution and not force users to use either 0666 or 666 exclusively
thmzlt has quit [Quit: leaving]
<Mon_Ouie>
Again, a fixnum has no base. A representation as a string of a number has a base. You can check the contents of the string that the user provided for its base if you want to use the same one.
<[spoiler]>
snowkidind: python and coffeescript have MWS (meaningful whitespace/indentations), too. It's a choice of language design
<Mon_Ouie>
snowkidind: What kind of assembler has meaningful indentation and what does OO have to do with any of that?
<[spoiler]>
If you don't like HAML, you can use ERB (I myself am not a fan of HAML for the very reason of MWS)
<snowkidind>
fair enough
<[spoiler]>
snowkidind: actually, that statement is not completely true. I sometimes prefer Haml over ERB. Depends on what I want to do, I suppose.
<snowkidind>
my query is in understanding the motivation behind it’s application in ruby, a language that is designed to be simple
jeadr has joined #ruby
darkf has quit [Quit: Leaving]
<snowkidind>
like… whitespace bugs are a bitch
<[spoiler]>
snowkidind: it's motivation is to be DRY-er
<[spoiler]>
its*
AndyBotwin has quit [Ping timeout: 252 seconds]
lannonbr has quit [Quit: WeeChat 1.2]
<Mon_Ouie>
Missing closing parenthesis and unindented code blocks are just as problematic
<snowkidind>
at least you can see them
allcentury has joined #ruby
christiandsg has joined #ruby
gard has quit [Ping timeout: 252 seconds]
<[k->
you can see whitespace too
<fstr>
Mon_Ouie: Thanks, but that's probably somewhere in the Puppet code. At the point I'm getting the variables, it's already a Fixnum
<snowkidind>
i guess that is why all the ruby people are using sublime text
<snowkidind>
i do a bunch of unicode stuff and sublime text doesnt render my stuff. But i found textMate to give me what i want
<shevy>
I don't
<snowkidind>
use bbedit mostly though
<snowkidind>
[k: yes but its a distraction
juanca_ has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
gard has joined #ruby
tkuchiki has joined #ruby
kachi8 has quit [Ping timeout: 272 seconds]
startupality has quit [Quit: startupality]
<MrButh>
for Ruby on Rails with sockets would you guys recommend anything? I heard Faye was good, anyone who can confirm that?
<MrButh>
er Ruby with sockets*
<MrButh>
Rails doesn't matter
<[k->
> whitespace a distraction
<[k->
do you even know what you are saying
pawnbox has joined #ruby
chabil has joined #ruby
<TomyLobo>
>> require 'date'; DateTime.parse('2015-07-29T10:25:51.092+0000').to_time.to_i # This seems overly complicated, is there an easier way
<ruboto>
jhass # => [2015-08-16 15:57:44 +0000, #<DateTime: 2015-08-17T15:57:43+00:00 ((2457252j,57463s,98207711n),+0s,2 ...check link for more (https://eval.in/417408)
Spami has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
psy_ has quit [Ping timeout: 244 seconds]
<[spoiler]>
snowkidind: Please try not to make such assumptions (that [k- is a dude). I'm not telling you off, but if he weren't a dude, you could've offended someone :P
DexterLB has joined #ruby
sudarshan has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
hmsimha_ has joined #ruby
<snowkidind>
lol
<snowkidind>
really? i will plead the trump on that
frozen3 has quit [Remote host closed the connection]
solars has joined #ruby
VeganGreg has quit [Ping timeout: 240 seconds]
<[k->
it is rude to drop the - off my name
<[spoiler]>
snowkidind: How'd you feel if I started referring to you as miss? :P
houhoulis has quit []
<snowkidind>
go ahead, within this context you will look like an ass
skydiver has joined #ruby
<[k->
now, now, neutral language please
<nanoz>
i dont like ruby its hard !
<snowkidind>
haha
frozen3 has joined #ruby
houhoulis has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<shevy>
nanoz in most cases you can simplify stuff
<[k->
nanoz: you learnt java right?
lannonbr has joined #ruby
BillSussman has joined #ruby
<[spoiler]>
[k- we don't speak the J-word here.
soulcake has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
<[k->
.__.
<shevy>
jruby!
<shevy>
ruby is part of the j family
<[k->
is this censorship?!
gwendall has quit [Remote host closed the connection]
<bradland>
nanoz: the problem is having "learned" something is a subjective evaluation
<[k->
shevy: Oracle nanoz: One must be patient when learning, or he shall not receive enlightenment
<bradland>
it's not black & white
<[spoiler]>
nanoz: you can learn the very basics of it, you can't learn anything properly in a few days (not even hangul, even though people claim it is so)
<bradland>
i've been writing ruby for +10 years, and i haven't come close to learning it 100%
<[k->
bradland: you will never reach that goal :3
<[k->
Ruby is always changing!
<bradland>
[k-: recognized that a long time ago :)
<ruboto>
nanoz, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
<shevy>
all the IDEs I used so far had the nasty habit of jumping into my way
<[spoiler]>
shevy: that's how I feel, too
snowkidind has left #ruby [#ruby]
<[spoiler]>
jhass: yeah so many features you trip over them
<[spoiler]>
Mon_Ouie: are you saying Ruby is too amazing for IDEs? I'll go with that.
houhoulis has joined #ruby
<[k->
hangman marathon in ot
<[k->
come and join!
chinmay_dd has joined #ruby
Cust0sLim3n has joined #ruby
einarj has joined #ruby
arup_r has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
rbennacer has quit [Remote host closed the connection]
eminencehc has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
<hanmac>
[spoiler]: i use an IDE sometimes for my bindings i write in C/C++ for Ruby ... but only its getting a bit to big for a normal editor when i do big changes
psy_ has joined #ruby
workmad3 has joined #ruby
fstr has quit [Quit: This computer has gone to sleep]
quimrstorres has joined #ruby
christiandsg has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 260 seconds]
survili has joined #ruby
mleung has joined #ruby
dseitz has joined #ruby
<survili>
Hi all, I don't understand this line "number = Integer(some_str)" . In this case, Integer is a method with non idiomatic ruby name ? To me it makes sense Integer.new(some_str) or integer(some_str). What am I missing here ?
<nanoz>
i'm also learning linux ill prefer command line
<[spoiler]>
survili: the "namespace" for constants and methods is not the same
<survili>
[spoiler]: can you explain what you mean by that ?
<survili>
apeiros: is it non idiomatic ? I mean, aren't method names supposed to start with small letter ?
<[spoiler]>
survili: it means that you can have a class with the same name as a method, like apeiros linked above
symm- has joined #ruby
<[spoiler]>
survili: it is uncommon, yes
<apeiros>
actually [k- linked :)
psy_ has quit [Ping timeout: 260 seconds]
<[k->
k ninjad aperios
<[spoiler]>
[k- oh sorry :)
<aperios>
[k-: did you?
<apeiros>
survili: it is uncommon. there are some core methods like that. see Kernel. I recall Kernel#String(), #Float() and #Integer()
tkuchiki has quit [Remote host closed the connection]
sarkyniin has quit [Ping timeout: 255 seconds]
michael_mbp has quit [Excess Flood]
<[k->
according to my client
mleung has quit [Ping timeout: 264 seconds]
<[k->
you! you made my tab complete wrong :(
chinmay_dd has quit [Read error: Connection reset by peer]
j_mcnally has joined #ruby
<survili>
apeiros, [spoiler] - thanks a lot guys! RubyMine wasn't smart enough to find that reference in Kernel, instead it opened class Integer..
<apeiros>
?guys survili
<ruboto>
survili, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<j_mcnally>
hey all
<apeiros>
hi j_mcnally
<j_mcnally>
had a crazy idea wanted to see what everyone thought
<j_mcnally>
would it be possible to run Tokaido and Rails on a bare metal docker container
<j_mcnally>
the way go apps can
* apeiros
has no idea on that (tokaido+rails on docker)
michael_mbp has joined #ruby
<j_mcnally>
might play around with it
<j_mcnally>
the major issue i see is support for things like nokogiri that would need dynamically linked libxslt et
<[spoiler]>
I don't even know what Tokaido i
<apeiros>
is tokaido functioning? I remember an announcement ages ago and then a long time of nothing…
<jhass>
nanoz: please, I don't want to mute you, stop using ruboto for experiments
<nanoz>
not yet havenwood
<havenwood>
nanoz: Make haste!
<Mon_Ouie>
Well, some_string.gsub(/.*/, '') is just a long winded way of doing "", clear is different in that it changes the contents of an existing object
<nanoz>
can i pm rubuto ? jhass
rbennacer has joined #ruby
<[spoiler]>
Mon_Ouie: so would gsub! :P
<[spoiler]>
Mon_Ouie: but I agree that clear would be better
<jhass>
nanoz: you can use http://eval.in directly, but it'd be better to just get a local pry
casadei_ has quit [Remote host closed the connection]
<j_mcnally>
so jruby might be a solution to avoid an entire os container too
<j_mcnally>
now i have 2 problems
<j_mcnally>
:p
raypulver has quit [Ping timeout: 245 seconds]
allcentury has quit [Ping timeout: 250 seconds]
<j_mcnally>
thanks for the info guys going to give traveling ruby a shot
<jhass>
?guys j_mcnally
<ruboto>
j_mcnally, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<havenwood>
j_mcnally: Either JRuby or Traveling Ruby sound like good options to me!
<j_mcnally>
o shit sorry
michaeldeol has joined #ruby
<j_mcnally>
thank for the info everyone going to give traveling ruby a shot
raypulver has joined #ruby
frozen3 has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<j_mcnally>
good call jhass
<havenwood>
j_mcnally: I'd be curious to hear how it goes. Good luck!
<j_mcnally>
jhass: i honestly do it without thinking it was meant to be inclusive but i totally understand why its wrong
dr3w has joined #ruby
<jhass>
no worries, just keep it in mind and all is good ;)
bronson has quit [Ping timeout: 244 seconds]
<arup_r>
->() came since 1.9?
gambl0re has joined #ruby
<jhass>
yes
<havenwood>
arup_r: The stabby lambda was introduced in 1.9.
<arup_r>
ok
frozen3 has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
aredridel is now known as Aria
whiteline has quit [Quit: Leaving]
sdothum has joined #ruby
whiteline has joined #ruby
darkxploit has quit [Ping timeout: 255 seconds]
rgb-one has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<[spoiler]>
wasamasa: Actually, most of the "guidelines" there hold true, except for the ~80 characters per line; it's closer to 130 - 140
<wasamasa>
[spoiler]: if you're writing java maybe
<wasamasa>
[spoiler]: feel free to open up a physical book and counting the characters per line
<[spoiler]>
wasamasa: No I agree, it *is* too wide, but mostly because I didn't pay attention to the text. Hmm
<wasamasa>
[spoiler]: you'll notice that it's even more narrow than that
<wasamasa>
[spoiler]: a copy of Elements of Style is around 60 characters for example
timonv has quit [Ping timeout: 264 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
calleerlandsson has joined #ruby
blue_deref has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
<[spoiler]>
wasamasa: Interesting. It looked weird when I narrowed it to around ~80, but it looks better on ~70
Rollabunna has joined #ruby
dr3w has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
darkxploit has joined #ruby
Cache_Money has joined #ruby
AlphaAtom has joined #ruby
<wasamasa>
[spoiler]: newspapers go even further and use many columns
<[spoiler]>
wasamasa: I know, but I find that actually distracting.
<[spoiler]>
+ it wouldn't really work nicely for blog posts
Pupp3tm4st3r has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
dr3w has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
Avonis has left #ruby ["Leaving"]
juanca_ has quit []
MyMind has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
aspiers has quit [Ping timeout: 250 seconds]
Pisuke has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bhorn1|away is now known as bhorn1
blackmesa has joined #ruby
christiandsg has joined #ruby
christiandsg has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
towski_ has joined #ruby
marr has quit [Ping timeout: 256 seconds]
rubie has joined #ruby
khebbie has joined #ruby
christiandsg has joined #ruby
gard has joined #ruby
youngbaks has joined #ruby
christiandsg has quit [Remote host closed the connection]
saddad has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
yardenbar has joined #ruby
kachi8 has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gard has quit [Ping timeout: 245 seconds]
dr3w has quit [Ping timeout: 244 seconds]
lkba has quit [Ping timeout: 256 seconds]
j_mcnally has joined #ruby
allcentury has joined #ruby
rbennacer has joined #ruby
<dostoyevsky>
Hey, when Ruby went from 1.8 to 1.9 I had to apply some changes to my native C extensions, mostly for strings, or unicode stuff... are there changes again with ruby 2, 21, 22 ?
josh4 has joined #ruby
vidbina has joined #ruby
<jhass>
possibly, after all the ABI version changed with 2.0, 2.1 and 2.2
UtkarshRay has quit [Quit: Leaving]
n008f4g_ has joined #ruby
DLSteve has joined #ruby
pawnbox has joined #ruby
Iskarlar has joined #ruby
np0 has joined #ruby
devoldmx has joined #ruby
rbennacer has quit [Remote host closed the connection]
<havenwood>
chmod755: You have a system install of Ruby in /usr/local and you're not using --user-install to install gems in your user home dir, so probably need sudo there.
darkxploit has quit [Ping timeout: 240 seconds]
<chmod755>
i'm still getting "ERROR: While executing gem ... (TypeError) no implicit conversion of nil into String"
<chmod755>
cannot open-errors are gone
<havenwood>
Why was Bundler in an infinite loop?
veduardo has quit [Quit: WeeChat 0.4.2]
shellie_ has joined #ruby
<havenwood>
I guess serve depending on serve?
Rollabunna has quit [Ping timeout: 246 seconds]
fluffykat has joined #ruby
<havenwood>
chmod755: Make sure you're using the latest version of Bundler: gem update bundler
<havenwood>
chmod755: Or rather: sudo gem update bundler
autrilla has quit [Quit: Connection closed for inactivity]
<al2o3-cr>
My bad :(
<al2o3-cr>
I keep to watching mr. robot
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
symbol has joined #ruby
<Mon_Ouie>
Also Vector#dot
n008f4g_ has quit [Ping timeout: 246 seconds]
decoponio has quit [Quit: Leaving...]
Rollabunna has quit [Ping timeout: 264 seconds]
lele has joined #ruby
kachi8 has joined #ruby
chmod755 has left #ruby ["Ex-Chat"]
DLSteve has joined #ruby
dr3w has joined #ruby
Rollabunna has joined #ruby
<iamse7en>
thank you so very much al2o3-cr :)
dgutierrez1287 has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
Rollabunna has quit [Ping timeout: 250 seconds]
Vile` has joined #ruby
drager has quit [Ping timeout: 246 seconds]
spider-mario has quit [Ping timeout: 252 seconds]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
spider-mario has joined #ruby
frozen3 has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
jtdoncas has joined #ruby
Rollabunna has joined #ruby
ljt has quit []
crazydiamond has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
nertzy has joined #ruby
Me1 has quit [Ping timeout: 240 seconds]
Thomas-0725 has joined #ruby
dc has quit []
mcpherrin has joined #ruby
chouhoulis has joined #ruby
Musashi007 has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
Yzguy has quit [Quit: Zzz...]
ohaibbq has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
j_mcnally has joined #ruby
workmad3 has joined #ruby
phutchins1 has joined #ruby
NightyMiggers has joined #ruby
<NightyMiggers>
hi peepoles
Rollabunna has quit [Ping timeout: 240 seconds]
devbug_ has joined #ruby
pragmatism has joined #ruby
<Coraline>
!ban NightyMiggers #ruby !P Go away, troll
towski_ has joined #ruby
NightyMiggers was banned on #ruby by ChanServ [NightyMiggers!*@*]
NightyMiggers was kicked from #ruby by ChanServ [Banned: Go away, troll]
iamse7en has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aspiers has joined #ruby
doublemalt_ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
roolo has quit [Quit: Leaving...]
devbug has quit [Ping timeout: 250 seconds]
Rollabunna has joined #ruby
bodgix has joined #ruby
DoubleMalt has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Read error: Connection reset by peer]
towski_ has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has joined #ruby
drager has joined #ruby
roolo has quit [Client Quit]
sdothum has joined #ruby
chouhoul_ has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
_ht has quit [Quit: Konversation terminated!]
moeSeth has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 1.2]
roolo has joined #ruby
axl_ has joined #ruby
workmad3 has joined #ruby
Rollabunna has joined #ruby
* pontiki
waves
speaking1ode has quit [Ping timeout: 246 seconds]
[k- has quit [Quit: -a- IRC for Android 2.1.23]
houhoulis has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
speaking1ode has joined #ruby
poguez_ has joined #ruby
np0 has quit [Changing host]
np0 has joined #ruby
Rollabunna has quit [Ping timeout: 272 seconds]
axl_ has left #ruby [#ruby]
speaking1ode has quit [Client Quit]
speaking1ode has joined #ruby
marr has quit [Ping timeout: 244 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
Rollabunna has joined #ruby
nofxx has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
last_staff has quit [Quit: last_staff]
Cache_Money has joined #ruby
frozen3 has quit [Remote host closed the connection]
frozen3 has joined #ruby
rbennacer has quit [Remote host closed the connection]
lannonbr has quit [Ping timeout: 255 seconds]
Rollabunna has quit [Ping timeout: 250 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
rbennacer has joined #ruby
_blizzy_ has joined #ruby
scripore has joined #ruby
scripore has quit [Client Quit]
Cache_Money has quit [Quit: Cache_Money]
frozen3 has quit [Ping timeout: 255 seconds]
lucyinthesky has joined #ruby
mleung has joined #ruby
Kallis has joined #ruby
Rollabunna has joined #ruby
j4cknewt has joined #ruby
northfurr has joined #ruby
northfurr has quit [Client Quit]
lucyinthesky has left #ruby ["Leaving"]
_blizzy_ has quit [Read error: Connection reset by peer]
yqt has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Ping timeout: 250 seconds]
* baweaver
waves back to pontiki
blackmesa has quit [Ping timeout: 240 seconds]
_blizzy_ has joined #ruby
mleung has quit [Quit: mleung]
thugwaffle has quit [Ping timeout: 246 seconds]
mleung has joined #ruby
mleung has quit [Client Quit]
arooni-mobile has joined #ruby
roolo has quit [Remote host closed the connection]
Musashi007 has quit [Ping timeout: 250 seconds]
Rollabunna has joined #ruby
workmad3 has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
rahult has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<Darkwater>
what are the most mature desktop gui libs for ruby?
<Darkwater>
any decent gtk/qt bindings?
Rollabunna has joined #ruby
crdpink2 has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
crdpink has quit [Ping timeout: 246 seconds]
<Ox0dea>
Darkwater: Whatcha makin'?
<Darkwater>
Ox0dea: chat client
<Darkwater>
also I keep trying to complete your name from 0x
Rickmasta has quit [Ping timeout: 265 seconds]
pen-soldier has quit [Quit: Leaving]
j3r0 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dr3w has quit [Ping timeout: 240 seconds]
<Ox0dea>
It didn't have to be this way.
<pontiki>
it does on IRC :)
<Mon_Ouie>
The qtbindings gem works well for my purposes and translates method names, etc. to what is idiomatic in Ruby. Never really used the GTK bindings.
spider-mario has quit [Remote host closed the connection]
<Ox0dea>
Idiomatic method names don't make them any less unpleasant to use.
Rickmasta has joined #ruby
DLSteve has quit [Quit: Leaving]
<Ox0dea>
You still end up writing "C with Ruby syntax" most of the time.
rbennacer has quit [Remote host closed the connection]
<Mon_Ouie>
I think the fact that you can also use blocks to interface with their callback systems means you don't, really
Rollabunna has quit [Ping timeout: 272 seconds]
<Ox0dea>
pontiki: Yes, that's what I meant; whichever RFC(s) disallowed leading digits was, in my opinion, misguided at best.
devbug_ has quit [Read error: Connection reset by peer]
sarkyniin has quit [Read error: Connection reset by peer]
<Radar>
!ban sreggingnikcuf !T 1D
sreggingnikcuf was banned on #ruby by ChanServ [sreggingnikcuf!*@*]
sreggingnikcuf was kicked from #ruby by ChanServ [User is banned from this channel]
<Radar>
ta Ox0dea
sarkyniin has joined #ruby
<Ox0dea>
Sure thing. Is 1D the max or something?
havenwood has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar>
It's so our ban list doesn't get full. The trolls use different IPs each time.
jeadr has quit [Remote host closed the connection]
charliesome has joined #ruby
rbennacer has joined #ruby
<Ox0dea>
TIL ban lists can get full, I guess.
<Radar>
Given that the names are on a similar topic and the user acts the same way each time, I think it's just one person trolling this channel.
gilest has quit [Remote host closed the connection]
gilest has joined #ruby
<baweaver>
Could have a bot watch joins for anything within a certain distance of known explitives.
<baweaver>
easy enough
jeadr has joined #ruby
<Mon_Ouie>
I think you want 1d though, not 1D
<Radar>
baweaver: patches welcome :)
<Ox0dea>
Radar: Sure, I just find one-day bans for such trolls to be slightly humorous. "Well, here's hoping they're a decent person come tomorrow."
<Mon_Ouie>
I'm not sure what 1D gets interpreted as but ChanServ already undid the ban as far as I can tell
j_mcnally has joined #ruby
<baweaver>
I can work on a detection algorithm at least, as far as patching it in I'd probably defer to you.
<Radar>
Mon_Ouie: So it did. I don't get modes sent through on my IRC client so I couldn't tell.
<baweaver>
probably just a variant of levenshtein.
<baweaver>
put in some l33t substitution commonalities
havenwood has quit [Ping timeout: 264 seconds]
<baweaver>
and reverses of course.
<Radar>
I don't know where ruboto's source code is
<Ox0dea>
baweaver: A taller task than it might at first seem.
allcentury has joined #ruby
<baweaver>
I've done similar things before.
<Ox0dea>
Combinatorial explosions and all that.
<Mon_Ouie>
Not publicly available, you can contact apeiros
<Radar>
Mon_Ouie: Oh great.
<Radar>
What's wrong with making it open source?
<Radar>
Seems bad to have it controlled by one person.
<Radar>
baweaver: it sounds to me like Ox0dea wants to help you
<baweaver>
indeed.
<baweaver>
but it has to be alphanumerical
<Radar>
baweaver: https://github.com/radar/railsbot has a join event you could hook into. You could get it to notify #ruby-ops if someone with a bad name joins
helpa has quit [Remote host closed the connection]