apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
kiyote23 has quit [Ping timeout: 258 seconds]
s00pcan has quit [Ping timeout: 260 seconds]
kiyote23 has joined #ruby
<waxjar> eh, won't you be opening yourself up to a huge security risk there?
SCHAAP137 has quit [Remote host closed the connection]
<epitron> yeppp!
hiyosi has joined #ruby
SCHAAP137 has joined #ruby
<epitron> but it saves a huge amount of time :D
<CrazyM4n> Someone should make a website that has a textbox that simply evaulates the ruby that anyone inputs
<CrazyM4n> See how fast it gets brought down
<epitron> >> system("rm -rf /")
<eval-in__> epitron => (https://eval.in/231656)
ptrrr has quit [Quit: ptrrr]
<CrazyM4n> heh
AmirolAhmad has joined #ruby
jasonwebster has joined #ruby
<xxneolithicxx> shevy: why not make it an initialized parameter or pass it in an options hash, "just in case"
vermiform has quit [Quit: Page closed]
sarmiena_ has joined #ruby
<shevy> xxneolithicxx nah it don't deserve to become an argument
charliesome has joined #ruby
akaiiro has joined #ruby
tesaf has quit [Quit: Lost terminal]
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
jorge has joined #ruby
uberscp has joined #ruby
Ancient has joined #ruby
jorge has joined #ruby
Lightsword has quit [Ping timeout: 240 seconds]
tristanp_ has joined #ruby
jorge has quit [Client Quit]
adamski2600 has quit []
tristanp has quit [Read error: Connection reset by peer]
jorge has joined #ruby
kiyote23 has quit [Remote host closed the connection]
jorge has quit [Client Quit]
triple_b has joined #ruby
<sarmiena_> not sure where to ask, but i’m using sidekiq to process background jobs, but jobs getting stuck in enqueued (production)
jorge has joined #ruby
tristanp_ has quit [Remote host closed the connection]
<lbrf> sarmiena_: did you run sidekiq or the jobs are raising errors?
tristanp has joined #ruby
<sarmiena_> they’re stuck in enqueued and all workers are free. no errors in the logs. then after some random amount of time, it’ll process fine for a bit. then get stuck again
<sarmiena_> lbrf: ^
<sarmiena_> also, the command used to start (foreground for testing) “bundle exec sidekiq -C /var/www/web-app/current/config/sidekiq.yml -e production”
akaiiro has quit [Ping timeout: 245 seconds]
jorge has quit [Client Quit]
jorge has joined #ruby
tristanp has quit [Ping timeout: 245 seconds]
Stichoza has quit [Quit: Lingo: www.lingoirc.com]
Stichoza has joined #ruby
jorge has quit [Client Quit]
jorge has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
AmirolAhmad has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
russt has joined #ruby
The_NetZ has quit [Ping timeout: 252 seconds]
AmirolAhmad has joined #ruby
kyoshero_ has quit [Quit: Leaving]
Alina-malina has quit [Ping timeout: 245 seconds]
<lbrf> sarmiena_: check if its running (ps aux | grep sidekiq), maybe the jobs are set to perform only in some minutes/hours...
CrazyM4n has quit [Quit: Leaving]
konsolebox has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
<sarmiena_> lbrf: yeah. i’m running it in the foreground right now as to debug it. so all the logs are actually printing to my console
jorge is now known as JEC
JEC is now known as bigbootyho
bigbootyho is now known as jcc
jcc is now known as jorge
<lbrf> sarmiena_: did you included the 'include Sidekiq::Worker' into the worker?
<sarmiena_> yeah. that’s the funny thing. they get stuck in “Enqueued” for some time, then it’ll process them eventually
<lbrf> sarmiena_: how my worker looks: https://gist.github.com/anonymous/b76b1d3552693bee5be3
CrazyM4n has joined #ruby
<lbrf> sarmiena_: and i call it using: Message.perform_async(self.id)
<sarmiena_> hmmm looks pretty much exactly like mine
jorge has quit [Quit: leaving]
kireevco has quit [Quit: Leaving.]
jorge has joined #ruby
<lbrf> sarmiena_: mmm, check if the sidekick.yml contains the queue of the class...
The_NetZ has joined #ruby
<sarmiena_> yeah it’s there
Stichoza has quit [Quit: Lingo: www.lingoirc.com]
Stichoza has joined #ruby
<sarmiena_> the thing is that it would make sense if they never processed in the first place, but they do after a while
fgo has joined #ruby
maletor has quit [Ping timeout: 245 seconds]
<sarmiena_> scheduled => enqueued (gets stuck here for a few mins) => busy => done
omosoj has joined #ruby
Stichoza has quit [Client Quit]
Stichoza has joined #ruby
mikepack has joined #ruby
geiltalasdair has quit [Read error: Connection reset by peer]
CpuID has quit [Quit: This computer has gone to sleep]
blackmesa has quit [Quit: WeeChat 1.0.1]
Calmoto has joined #ruby
The_NetZ has quit [Ping timeout: 256 seconds]
fgo has quit [Ping timeout: 250 seconds]
jaequery has joined #ruby
maletor has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
Soda has quit [Remote host closed the connection]
jorge has quit [Quit: leaving]
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 250 seconds]
russt has quit [Quit: russt]
ferr has quit [Read error: Connection reset by peer]
ghr has joined #ruby
<gr33n7007h> Is it possible to perform a dns zone transfer using the ruby sdtlib?
kiyote23 has joined #ruby
jorge has joined #ruby
jorge is now known as jc__
ferr has joined #ruby
<gr33n7007h> s/sdtlib/stdlib d[*_*]b
lemur has joined #ruby
jc__ has quit [Client Quit]
ghr has quit [Ping timeout: 272 seconds]
diego_ar has quit [Remote host closed the connection]
<gr33n7007h> juuo, stop spamming
dc_ has quit [Remote host closed the connection]
russt has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
efulmer has joined #ruby
davedev24_ has joined #ruby
pwh has joined #ruby
<diegoviola> I've worked for that piece-of-shit and he didn't pay me
<diegoviola> hired a lawyer to go after his company and they replied that they "moved", even though the address in his web site is still the same
charliesome has quit [Quit: zzz]
<diegoviola> I really want to punch his stupid face
<diegoviola> sorry
dblessing has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
Takle has quit [Remote host closed the connection]
Rollabunna has joined #ruby
CoffeeDrivenC0de has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
russt has quit [Quit: russt]
banister has joined #ruby
The_NetZ has joined #ruby
banister has quit [Client Quit]
Aswebb_ has joined #ruby
banister has joined #ruby
banister has quit [Client Quit]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
konsolebox has quit [Quit: Leaving]
konsolebox has joined #ruby
The_NetZ has quit [Ping timeout: 240 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
konsolebox has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
<mbff> Hello. I am still having issues configuring RVM, bundler, and cron to run a rb script every minute
fandi has joined #ruby
<mbff> crontab: * * * * * /usr/local/rvm/wrappers/ruby-2.1.5/ruby /sites/metacritic.marshallford.me/metacritic-music-api/main.rb
<mbff> -rw-rw-r-- 1 deploy deploy 2992 Dec 6 16:43 main.rb
<mbff> the crontab is user the deploy user
Takle has joined #ruby
<mbff> deploy user - ruby -v = ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]
<mbff> if I run "ruby main.rb" with the deploy user everything works
<pontiki> mbff: i typically use the whenever gem to handle crontab jobs; the thing it does is run your shell as a login shell so the usual things that make rvm work, well, work
<mbff> I am not running a rails project
<pontiki> so what?
<pontiki> i'm trying to tell you HOW IT WORKS
<pontiki> maybe you'll just have to go look yourself
<mbff> I looked at the whenever gem and I thought it required rails
<pontiki> look
<pontiki> look at how it creates the entry
Phagus has joined #ruby
<pontiki> you don't have to use the gem
<pontiki> just emulate how it works
<Phagus> How do I run a script, then enter it in interactive mode?
<havenwood> Phagus: huh?
<havenwood> mbff: no, it doesn't require rails
Calmoto1 has joined #ruby
<Phagus> Run a script, then enter interactive mode with all of its variables and methods in my interactive mode's namespace
tobago has quit [Remote host closed the connection]
<Phagus> Python has a feature where you do python -i myscript.py that lets you do that
<havenwood> Phagus: ah, binding.pry is a nice way: https://github.com/pry/pry/wiki/Runtime-invocation
<Phagus> Ty, lemme check this out
muzik has joined #ruby
Calmoto has quit [Ping timeout: 252 seconds]
Calmoto1 has quit [Quit: Leaving]
Aswebb_ has quit []
Calmoto has joined #ruby
pwh has quit []
<xxneolithicxx> mbff: did you leave a newline at the end of the crontab? cron doesnt run if the last line is empty or not present (depending on how you edited it). is it running at all?
<mbff> I just added a newline, if that is the issue I am officially stupid.
Takle has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
<mbff> no dice
jenrzzz has quit [Ping timeout: 264 seconds]
<xxneolithicxx> check the user mail to see if theres any output
<xxneolithicxx> /var/spool/mail/<user>
havenwood has quit [Remote host closed the connection]
<mbff> nothing in /var/spool/mail/deploy
<mbff> infact no deploy folder either
jenrzzz has joined #ruby
<xxneolithicxx> it would be a flat file
<mbff> no files either
<xxneolithicxx> create a dummy cron * * * * * /usr/bin/touch /tmp/cron_check
ta has joined #ruby
dc_ has joined #ruby
<mbff> done, and added user to mailto
<xxneolithicxx> it should automatically set that based on the crontab user
<mbff> o
jasonwebster has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mbff> cron_check exists
fgo has joined #ruby
<mbff> cron is working
<xxneolithicxx> ok so that means whatever you are running is not throwing any errors/output otherwise it would end up in the user mail
boombadaroomba has joined #ruby
ta has quit [Ping timeout: 260 seconds]
TheNet has joined #ruby
<mbff> I solved the issue.
jasonwebster has joined #ruby
renderful has joined #ruby
<mbff> I create a file 'foo.json'
<mbff> but on the server that file is created elsewhere
rylev has joined #ruby
<mbff> so how do I set the current directory as the one the rb file is in
jasonwebster has quit [Client Quit]
sarmiena_ has joined #ruby
timonv_ has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
mengu has joined #ruby
boombadaroomba has quit [Ping timeout: 250 seconds]
dkphenom has joined #ruby
jaequery has joined #ruby
rylev has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 265 seconds]
rylev has joined #ruby
robustus|Off has quit [Ping timeout: 255 seconds]
Xiti` has joined #ruby
banister has joined #ruby
banister has quit [Client Quit]
timonv_ has quit [Ping timeout: 240 seconds]
mengu has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has quit [Ping timeout: 265 seconds]
banister has joined #ruby
robustus has joined #ruby
kiyote23 has quit [Remote host closed the connection]
stormbytes has joined #ruby
Xiti has quit [Ping timeout: 260 seconds]
kiyote23 has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
CrazyM4n has quit [Quit: Leaving]
gsd has joined #ruby
charliesome has joined #ruby
Xiti` is now known as Xiti
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
charliesome has quit [Client Quit]
<xxneolithicxx> cd dir && <run command>
sarmiena_ has joined #ruby
tus has joined #ruby
tristanp has joined #ruby
Mothore___ has joined #ruby
ghr has joined #ruby
D9 has joined #ruby
rylev has quit [Remote host closed the connection]
M-Technic has quit [Quit: leaving]
snath has joined #ruby
sarmiena_ has quit [Client Quit]
D9 has quit [Max SendQ exceeded]
sarmiena_ has joined #ruby
<xxneolithicxx> should be running out of its home dir by default. or change your code to File.join(File.dirname(__FILE__), "foo.json") is probably better
D9 has joined #ruby
rylev has joined #ruby
The_NetZ has joined #ruby
CrazyM4n has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
rylev has quit [Client Quit]
diego_ar has joined #ruby
lnormous has quit [Quit: Leaving]
henesy has quit [Ping timeout: 258 seconds]
krism has quit [Ping timeout: 258 seconds]
sarmiena_ has quit [Ping timeout: 256 seconds]
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diego_ar has quit [Ping timeout: 244 seconds]
Xiti` has joined #ruby
Akagi201 has joined #ruby
CorySimmons has quit [Quit: Bye!]
The_NetZ has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
Xiti has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
pwh has joined #ruby
avrc has quit [Quit: this channel is bakas]
avrc has joined #ruby
Akagi201 has quit [Ping timeout: 244 seconds]
avrc has quit [Client Quit]
blizzy has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
phutchins has quit [Ping timeout: 245 seconds]
stormbytes has quit [Quit: Textual IRC Client: www.textualapp.com]
Xiti` has quit [Quit: Xiti`]
HACKING-FACEBOOK has joined #ruby
Xiti has joined #ruby
redjack1964 has joined #ruby
redjack1964 has quit [Read error: Connection reset by peer]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigmac_ has quit [Ping timeout: 245 seconds]
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
Stichoza has quit [Quit: Be back later ...]
Akagi201 has joined #ruby
dh64 has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
The_NetZ has joined #ruby
The_NetZ has quit [Ping timeout: 240 seconds]
tlarevo has joined #ruby
charliesome has joined #ruby
pwh has quit []
HACKING-FACEBOOK has quit [Ping timeout: 244 seconds]
LudicrousMango has quit [Remote host closed the connection]
HACKING-FACEBOOK has joined #ruby
CrazyM4n has quit [Quit: Leaving]
jimbach has quit [Remote host closed the connection]
LudicrousMango has joined #ruby
fgo has quit [Ping timeout: 258 seconds]
quimrstorres has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
LudicrousMango has quit [Ping timeout: 256 seconds]
HACKING-FACEBOOK has quit [Ping timeout: 245 seconds]
dc_ has quit [Remote host closed the connection]
jc__ has joined #ruby
mikepack has joined #ruby
chu has quit [Ping timeout: 264 seconds]
AmirolAhmad has quit [Remote host closed the connection]
jc__ has left #ruby [#ruby]
ghr has joined #ruby
21WAAKJN5 has quit [Quit: This computer has gone to sleep]
mikepack has quit [Ping timeout: 244 seconds]
tyll has joined #ruby
ezio has joined #ruby
ezio has quit [Changing host]
ezio has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
davedev2_ has quit []
lw has joined #ruby
tyll_ has quit [Ping timeout: 258 seconds]
lw has quit [Client Quit]
tlarevo_ has joined #ruby
tlarevo has quit [Ping timeout: 260 seconds]
nfk has quit [Quit: yawn]
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
Joufflu has quit [Ping timeout: 258 seconds]
tristanp has quit [Ping timeout: 252 seconds]
lemur has quit [Remote host closed the connection]
efulmer has quit [Ping timeout: 255 seconds]
lemur has joined #ruby
fabrice31 has joined #ruby
fgo has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
dc_ has joined #ruby
Sawbones has joined #ruby
n1lo has quit [Ping timeout: 264 seconds]
jc__ has joined #ruby
t3h_j4n170r has quit [Ping timeout: 244 seconds]
t7y9r has quit [Ping timeout: 250 seconds]
lemur has quit [Ping timeout: 258 seconds]
Yzguy has joined #ruby
jc__ has left #ruby [#ruby]
fabrice31 has quit [Ping timeout: 255 seconds]
hiyosi has joined #ruby
t3h_j4n170r has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
t7y9r has joined #ruby
ezio has quit [Read error: Connection reset by peer]
ezio has joined #ruby
LudicrousMango has joined #ruby
adriancb has joined #ruby
jc__ has joined #ruby
arup_r has joined #ruby
quimrstorres has quit [Remote host closed the connection]
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Client Quit]
Azure has quit [Quit: Blue Sky Fish]
kireevco has joined #ruby
dc_ has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.0.1]
ta has joined #ruby
Stichoza has joined #ruby
n1lo has joined #ruby
ferr has quit [Ping timeout: 264 seconds]
Yzguy has quit [Quit: I'm bouncing outta here!]
Yzguy has joined #ruby
phutchins has joined #ruby
MasterPiece has joined #ruby
ferr has joined #ruby
louism2wash has joined #ruby
ta has quit [Ping timeout: 260 seconds]
josephndenton has joined #ruby
Stichoza has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
apxm has joined #ruby
radic has quit [Ping timeout: 245 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
Yzguy has quit [Client Quit]
cantonic has quit [Quit: cantonic]
arup_r has quit [Remote host closed the connection]
arescorpio has quit [Excess Flood]
radic has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
phutchins has quit [Ping timeout: 264 seconds]
jc__ has quit [Quit: leaving]
jc__ has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
maestrojed has joined #ruby
mgberlin has joined #ruby
arup_r has joined #ruby
chipotle_ has joined #ruby
tier has joined #ruby
chipotle has quit [Ping timeout: 255 seconds]
psy_ has quit [Ping timeout: 244 seconds]
dblessing has joined #ruby
phutchins has joined #ruby
fgo has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
Azure has joined #ruby
cantonic has joined #ruby
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
LudicrousMango has quit []
snath has quit [Ping timeout: 250 seconds]
MartynKeigher has quit [Ping timeout: 255 seconds]
fotoflo has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
quimrstorres has joined #ruby
diego_ar has joined #ruby
sski has joined #ruby
jc__ has quit [Quit: leaving]
chrishough has joined #ruby
tlarevo_ has quit [Read error: No route to host]
konsolebox has quit [Quit: Leaving]
tlarevo has joined #ruby
dc_ has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
diego_ar has quit [Ping timeout: 264 seconds]
quimrstorres has quit [Remote host closed the connection]
mgberlin_ has joined #ruby
AmirolAhmad has joined #ruby
mgberli__ has joined #ruby
ghr has joined #ruby
mgberlin has quit [Ping timeout: 256 seconds]
Sawbones has joined #ruby
cout has joined #ruby
<cout> ok, this is interesting
MartynKeigher has joined #ruby
mgberlin_ has quit [Ping timeout: 260 seconds]
AmirolAhmad has quit [Ping timeout: 244 seconds]
<cout> why does class_eval behave differently if it is given a string vs a block?
ghr has quit [Ping timeout: 245 seconds]
jasonwebster has joined #ruby
arup_r has quit [Quit: Leaving.]
Sawbones has quit [Ping timeout: 260 seconds]
braincrash has quit [Quit: bye bye]
louism2wash has joined #ruby
arup_r has joined #ruby
Calmoto has quit [Ping timeout: 252 seconds]
braincrash has joined #ruby
pwh has joined #ruby
kireevco has quit [Ping timeout: 244 seconds]
louism2wash has quit [Quit: This computer has gone to sleep]
pwh has quit [Client Quit]
jimbach has joined #ruby
lemur has joined #ruby
<lbrf> cout: interesting
dts|pokeball has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
sski has quit [Remote host closed the connection]
mgberli__ has quit [Read error: Connection reset by peer]
jimbach has quit [Ping timeout: 258 seconds]
mgberlin has joined #ruby
kireevco has joined #ruby
AndChat| has joined #ruby
snath has joined #ruby
aspires has joined #ruby
tier has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 255 seconds]
Lightsword has joined #ruby
bigmac_ has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
chipotle_ has quit [Quit: cheerio]
<waxjar> cout, it's in the documentation for class_eval
<waxjar> you could use const_set(:A, 1) instead, that seems to work
jaequery has joined #ruby
jaequery has quit [Client Quit]
diegoviola has joined #ruby
jaequery has joined #ruby
Xiti has quit [Quit: Xiti]
jaequery has quit [Ping timeout: 260 seconds]
jaequery has joined #ruby
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaequery has quit [Client Quit]
tristanp has joined #ruby
Phagus has quit [Quit: leaving]
cantonic has left #ruby [#ruby]
M-Technic has joined #ruby
kireevco1 has joined #ruby
perturbation has joined #ruby
quazimodo has quit [Ping timeout: 255 seconds]
kireevco has quit [Read error: Connection reset by peer]
ezio has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
diegoviola has quit [Quit: WeeChat 1.0.1]
mgberlin has joined #ruby
phutchins has joined #ruby
Xiti has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
perturbation has quit [Quit: Leaving]
dc_ has quit [Remote host closed the connection]
mattmcclure has quit [Quit: Connection closed for inactivity]
russt has joined #ruby
mgberlin_ has joined #ruby
russt has quit [Client Quit]
_JokerDoomWork has quit [Ping timeout: 244 seconds]
JokerDoom has joined #ruby
mgberlin has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
fotoflo has quit [Quit: fotoflo]
<cout> waxjar: yeah that doesn't really achieve what I want to achieve
kiyote23 has quit [Remote host closed the connection]
iml has joined #ruby
ghr has joined #ruby
_JokerDoom has quit [Ping timeout: 260 seconds]
Sawbones has joined #ruby
kiyote23 has joined #ruby
fabrice31 has joined #ruby
sargas has joined #ruby
vb_ has joined #ruby
_JokerDoom has joined #ruby
vb_ has quit [Client Quit]
ghr has quit [Ping timeout: 260 seconds]
JokerDoom has quit [Ping timeout: 265 seconds]
Sawbones has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
kiyote23 has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 258 seconds]
blenny has quit [Ping timeout: 272 seconds]
jasonwebster has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mgberlin_ has quit [Remote host closed the connection]
ferr has quit [Quit: Lost terminal]
D9 has quit [Ping timeout: 245 seconds]
blenny has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
ta has joined #ruby
lemur has quit [Ping timeout: 260 seconds]
apxm has quit [Quit: Textual IRC Client: www.textualapp.com]
Stichoza has joined #ruby
Mothore____ has joined #ruby
Mothore___ has quit [Ping timeout: 244 seconds]
ta has quit [Ping timeout: 264 seconds]
existensil has quit [Quit: WeeChat 0.4.2]
fotoflo has joined #ruby
blenny has quit [Remote host closed the connection]
Stichoza has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
sea_local has quit [Remote host closed the connection]
jenrzzz has joined #ruby
psy_ has joined #ruby
sea_local has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
tus has quit []
Lightsword has quit [Ping timeout: 255 seconds]
Darryl__ has joined #ruby
uberscp has quit [Quit: uberscp]
melik_ has quit [Remote host closed the connection]
psmolen has quit [Ping timeout: 258 seconds]
<epitron> I guess constants are special in blocks!
<epitron> how curious
<epitron> there must be some use case for that
diegoaguilar has joined #ruby
<diegoaguilar> Hello, what are ruby dependencies for install from source using CentOS?
psmolen has joined #ruby
fotoflo has quit [Quit: fotoflo]
gsd has quit [Read error: Connection reset by peer]
diego_ar has joined #ruby
gsd has joined #ruby
<epitron> it should tell you what's missing when you configure it
jeaye has quit [Ping timeout: 272 seconds]
<epitron> readline and openssl are the two ones I remember
sud0x has joined #ruby
<diegoaguilar> so when reading the configure output
<diegoaguilar> every "no" is a possible dependency
lxsameer has joined #ruby
lxsameer has joined #ruby
diego_ar has quit [Ping timeout: 272 seconds]
boombadaroomba has joined #ruby
<parabolize> epitron: its class variables as well.
<parabolize> >> module Outside; m = Module.new; m.class_eval {@@v = true}; @@v; end
<eval-in__> parabolize => true (https://eval.in/231662)
fgo has joined #ruby
DrCode has joined #ruby
KnownSyntax has joined #ruby
<sud0x> hey guys is a class level variable defined with two @@ or one?
<parabolize> >> class C; def initialize; @v = true; end; end; C.new.instance_variable_get :@v
<eval-in__> parabolize => true (https://eval.in/231663)
boombadaroomba has quit [Ping timeout: 240 seconds]
<parabolize> sud0x: ^
<sud0x> thanks parabolize
fgo has quit [Ping timeout: 265 seconds]
<parabolize> class variables are two
<parabolize> instance one
rshetty has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
jeaye has joined #ruby
lxsameer has quit [Remote host closed the connection]
Kryptonical has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
fgo has joined #ruby
Apocalypse has quit [Quit: Input/Output Error]
connor_goodwolf has quit [Ping timeout: 255 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
t3h_j4n170r has quit [Ping timeout: 258 seconds]
t7y9r has quit [Ping timeout: 265 seconds]
sud0x has left #ruby [#ruby]
ghr has joined #ruby
t3h_j4n170r has joined #ruby
t7y9r has joined #ruby
sargas has quit [Quit: Leaving]
kiyote23 has joined #ruby
Apocalypse has joined #ruby
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
Lightsword has joined #ruby
akaiiro has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
lxsameer has quit [Remote host closed the connection]
t7y9r has quit [Ping timeout: 258 seconds]
t3h_j4n170r has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
connor_goodwolf has joined #ruby
t7y9r has joined #ruby
t3h_j4n170r has joined #ruby
chinmay_dd has joined #ruby
Apocalypse has quit [Quit: Input/Output Error]
lxsameer has joined #ruby
lxsameer has joined #ruby
Lightsword_ has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
kiyote23 has quit [Ping timeout: 240 seconds]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
Lightsword has quit [Ping timeout: 264 seconds]
Lightsword_ is now known as Lightsword
jaequery has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
zoink has left #ruby [#ruby]
tvw has joined #ruby
Lightsword has quit [Ping timeout: 264 seconds]
Alina-malina has joined #ruby
fotoflo has joined #ruby
CoffeeDrivenC0de has left #ruby [#ruby]
JBreit has joined #ruby
Joufflu has joined #ruby
rippa has joined #ruby
Apocalypse has joined #ruby
Apocalypse has joined #ruby
Lightsword has joined #ruby
dc_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
emvy has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
iamninja has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
adriancb has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
Lightsword has quit [Read error: Connection reset by peer]
AmirolAhmad has joined #ruby
Lightsword has joined #ruby
adriancb has quit [Ping timeout: 258 seconds]
tristanp has quit [Ping timeout: 250 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rshetty has quit [Remote host closed the connection]
wmute has quit [Quit: Leaving]
omosoj has quit [Ping timeout: 260 seconds]
emvy has quit [Remote host closed the connection]
omosoj has joined #ruby
quazimodo has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
mbff has quit [Remote host closed the connection]
Sawbones has joined #ruby
kireevco has joined #ruby
fabrice31 has joined #ruby
anaeem1_ has joined #ruby
aspires has quit []
Sawbones has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
claw___ has quit [Ping timeout: 244 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
rshetty has joined #ruby
Lightsword has quit [Ping timeout: 250 seconds]
anaeem1_ has quit [Remote host closed the connection]
tiagonobre has quit [Read error: Connection reset by peer]
lbrf has quit [Quit: Be back later ...]
peur has joined #ruby
tiagonobre_ has joined #ruby
ohaibbq has joined #ruby
Lightsword has joined #ruby
Stichoza has joined #ruby
Igneous has quit [Ping timeout: 250 seconds]
jimmyhoughjr has quit [Ping timeout: 256 seconds]
Mothore____ has quit [Quit: Be back later ...]
jenrzzz has quit [Ping timeout: 256 seconds]
Stichoza has quit [Ping timeout: 240 seconds]
omosoj has quit [Quit: leaving]
jenrzzz has joined #ruby
Lightsword has quit [Ping timeout: 250 seconds]
sea_local has quit [Remote host closed the connection]
Juanchito has quit [Ping timeout: 244 seconds]
anaeem1_ has joined #ruby
benlakey has quit [Read error: Connection reset by peer]
bluehavana has quit [Read error: Connection reset by peer]
pmarreck has quit [Ping timeout: 258 seconds]
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
RoryHughes has quit [Ping timeout: 272 seconds]
bove has quit [Ping timeout: 272 seconds]
im0b has quit [Ping timeout: 258 seconds]
sea_local has joined #ruby
JBreit has left #ruby ["Leaving"]
hamakn has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Lightsword has joined #ruby
efulmer has joined #ruby
benlakey_ has joined #ruby
bluehavana has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
tier has joined #ruby
efulmer has quit [Client Quit]
efulmer has joined #ruby
ta has joined #ruby
bove has joined #ruby
Juanchito has joined #ruby
lectrick has joined #ruby
im0b has joined #ruby
shredding has joined #ruby
tier has quit [Ping timeout: 260 seconds]
toretore has joined #ruby
lbrf has joined #ruby
<quazimodo> who's awake
anaeem1_ has joined #ruby
diego_ar has joined #ruby
Channel6 has quit [Quit: Leaving]
hmsimha has joined #ruby
lbrf has quit [Ping timeout: 256 seconds]
TheNet has quit [Quit: Leaving...]
ta has quit [Remote host closed the connection]
<Sawbones> I am!
lemur has joined #ruby
diego_ar has quit [Ping timeout: 250 seconds]
psy_ has quit [Ping timeout: 252 seconds]
<peur> :(
AmirolAhmad has quit [Remote host closed the connection]
tejas-manohar has quit [Quit: Page closed]
sski has joined #ruby
<Sawbones> Has anyone gotten openXML to work in a rails project?
peur has left #ruby [#ruby]
<quazimodo> woot
<quazimodo> chec this shit
decoponio has joined #ruby
<quazimodo> long story short, go to the _spec and youll see 1 test. It fails when it runs in rspec. But if i put binding.pry before looper.run! and do all those steps by hand, nothnig fails
dukedave has quit [Ping timeout: 258 seconds]
<quazimodo> for some reason, when rspec runs normally, my spawned process gets a SIGHUP
<quazimodo> the streams break
amitchellbullard has quit [Ping timeout: 272 seconds]
troter__ has quit [Ping timeout: 272 seconds]
zrl has quit [Ping timeout: 272 seconds]
culturelabs has quit [Ping timeout: 272 seconds]
ballPointPenguin has quit [Ping timeout: 258 seconds]
ehc has quit [Ping timeout: 258 seconds]
ramblinpeck_ has quit [Ping timeout: 258 seconds]
AdamMeghji has quit [Ping timeout: 272 seconds]
KnownSyntax has quit [Ping timeout: 272 seconds]
PhilK has quit [Ping timeout: 272 seconds]
ckrailo_ has quit [Ping timeout: 272 seconds]
mroth has quit [Ping timeout: 272 seconds]
jrunning_ has quit [Ping timeout: 272 seconds]
bret has quit [Ping timeout: 272 seconds]
happyface has quit [Ping timeout: 272 seconds]
AmirolAhmad has joined #ruby
ohaibbq has quit [Quit: Leaving...]
BraddPitt has quit [Quit: Leaving]
Darryl__ has quit [Quit: Connection closed for inactivity]
mary5030 has joined #ruby
renderful has joined #ruby
Joufflu has quit [Ping timeout: 258 seconds]
St1gma has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
shock_one has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
mary5030 has quit [Remote host closed the connection]
Rahul_Roy_ has joined #ruby
mary5030 has joined #ruby
chridal has left #ruby ["WeeChat 1.0.1"]
<MrSamuel> quazimodo, i had some weird issues, due to process management, from minitest
<MrSamuel> be careful with forked/child processes
jenrzzz has quit [Ping timeout: 264 seconds]
toretore has quit [Quit: This computer has gone to sleep]
mary5030 has quit [Ping timeout: 258 seconds]
<quazimodo> MrSamuel: i can see they are fickle, but I have no idea why
<quazimodo> MrSamuel: i don't even know how to debug this stuff, but something weird ass is goingo n
machty has quit [Ping timeout: 244 seconds]
benlakey_ has quit [Ping timeout: 265 seconds]
<quazimodo> yeah it's inconsistent. Sometimes it's fine, other's its totally broken
electrical has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
bluehavana has quit [Ping timeout: 265 seconds]
<MrSamuel> quazimodo, I have released a gem for managing child processes
Juanchito has quit [Ping timeout: 272 seconds]
jshultz has quit [Ping timeout: 272 seconds]
dnyy has quit [Ping timeout: 272 seconds]
andrewstewart has quit [Ping timeout: 272 seconds]
akitada has quit [Ping timeout: 272 seconds]
shelling_ has quit [Ping timeout: 272 seconds]
ELLIOTTCABLE has quit [Ping timeout: 272 seconds]
juuo has quit []
shock_one has quit [Remote host closed the connection]
<MrSamuel> also I don't know what you are doing but I'd recommmend using Process#spawn
kireevco has quit [Read error: Connection reset by peer]
<MrSamuel> ah I see you are using PTY
kireevco1 has joined #ruby
Lightsword has quit [Ping timeout: 252 seconds]
kapowaz_ has quit [Ping timeout: 272 seconds]
bove has quit [Ping timeout: 258 seconds]
<quazimodo> yep
goshdarnyou has quit [Ping timeout: 244 seconds]
<quazimodo> i need my process to be attached to a PTY
<MrSamuel> PTY stuff is a bit weird
<MrSamuel> because unix
lectrick has quit [Ping timeout: 265 seconds]
<MrSamuel> um
im0b has quit [Ping timeout: 258 seconds]
yo61 has quit [Ping timeout: 258 seconds]
<MrSamuel> I wrote some code in python to deal with a child PTY process
<MrSamuel> virtual TTY
<MrSamuel> what are you trying to do?
<quazimodo> i'm 'feature' testing a cli program which lives in an xterm usually
<quazimodo> so i am writing a rspec-cli test helper library
RoryHughes has joined #ruby
<MrSamuel> ah okay
<quazimodo> but yeah, this stuff's really inconsintent
benlakey_ has joined #ruby
tmoore_ is now known as tmoore
<MrSamuel> my suggestion is to make sure that the PTY is creating it's own session/process group
shelling_ has joined #ruby
lectrick has joined #ruby
akitada has joined #ruby
<MrSamuel> to make sure that any signals are not going to the child process incorrectly
<quazimodo> what do you mean
kireevco has joined #ruby
<MrSamuel> well
andrewstewart has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
anaeem1_ has quit [Remote host closed the connection]
<MrSamuel> it's a long time since I worked on it but basically a process group isolates processes from signals
dnyy has joined #ruby
Stichoza has joined #ruby
bluehavana has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
<quazimodo> MrSamuel: why would it receive signals though
<quazimodo> are the pipes/pty's breaking?
anaeem1 has joined #ruby
<quazimodo> the process is exiting with SIGHUP
<MrSamuel> where is it dying
kireevco has quit [Read error: Connection reset by peer]
Lightsword has joined #ruby
<quazimodo> MrSamuel: all over the place, inconsistently
<quazimodo> can you please look at this
kireevco has joined #ruby
<quazimodo> see line 6
work_op has quit [Ping timeout: 246 seconds]
sirpeng has joined #ruby
kapowaz_ has joined #ruby
<MrSamuel> quazimodo, are you on linux
<quazimodo> when that stuff runs automatically, and I do a binding.pry; looper.status at around line 7 or line 9 I get a status of SIGHUP
<quazimodo> MrSamuel: yes
<MrSamuel> quazimodo, i suggest you try using http://linux.die.net/man/1/strace
rikai has quit [Ping timeout: 250 seconds]
<MrSamuel> to see where the signal is coming from
rikai has joined #ruby
Stichoza has quit [Ping timeout: 240 seconds]
<quazimodo> strace rspec ?
<MrSamuel> i guess it might be a bit more complex than that but yeah
StoneCypher has joined #ruby
<MrSamuel> something like that
<quazimodo> holy jesus
<quazimodo> i juts got 1000 pages of output
im0b has joined #ruby
<MrSamuel> yeah try to use something to limit it to only signals
<MrSamuel> there is probably some option
bove has joined #ruby
<quazimodo> yeah i'll look
goshdarnyou has joined #ruby
chinmay_dd has quit [Ping timeout: 250 seconds]
<MrSamuel> If you close the terminal emulator, the master end of the pty becomes closed; the foreground process group of the slave end receives SIGHUP and likely dies. If you press Ctrl+D at the shell, the slave end of the pty becomes closed, the terminal emulator gets EOF on the master end, and shuts down accordingly.
yo61 has joined #ruby
Sawbones has quit [Remote host closed the connection]
<MrSamuel> looks like that might be helpful
electrical has joined #ruby
jshultz has joined #ruby
<quazimodo> MrSamuel: i'll do that, but the terminal shouldn't close
<MrSamuel> is it possible something to do with @slave.close
<quazimodo> the slave end is still 'alive' in the spawned process
<quazimodo> and this is directly from the PTY.spawn source
Juanchito has joined #ruby
<MrSamuel> that is a python program I wrote to execute a command in a PTY
ELLIOTTCABLE has joined #ruby
<MrSamuel> it works perfectly, perhaps use that as a reference for how the API should work even if it is a different language
machty has joined #ruby
<quazimodo> that's a long article :P
<quazimodo> haha
tejas-manohar has joined #ruby
<tejas-manohar> yo guys
kireevco has quit [Ping timeout: 265 seconds]
<tejas-manohar> what does :result => 15 indicate
x1337807x has joined #ruby
kireevco has joined #ruby
<tejas-manohar> im getting that when i submit code too, tested in irb
<tejas-manohar> i wanna get the output of my code
<MrSamuel> tejas-manohar, i guess we need more context
<tejas-manohar> MrSamuel: yeah i do too lol im trying to use this api wrapper
<tejas-manohar> ideone is an online compiler/executor of code in tons of langs
ARCADIVS has quit [Quit: ARCADIVS]
<tejas-manohar> MrSamuel: idk what result 15 mean
kireevco has quit [Read error: Connection reset by peer]
<tejas-manohar> it comes in example in github readme as well as irb...
<MrSamuel> it means you need to sacrifice 15 virgins to allah
kireevco has joined #ruby
<MrSamuel> for your code to work
<MrSamuel> perhaps it's an exit code?
<MrSamuel> a signal number?
<quazimodo> MrSamuel: I removed the => #<Process::Status: pid 29929 SIGHUP (signal 1)>
<quazimodo> erm
<quazimodo> i removed the @slave.close. It still throws the sighup
<MrSamuel> does your test actually run to completion?
<MrSamuel> like
<MrSamuel> perhaps it's something to do with IO buffering
<quazimodo> may be?
<MrSamuel> perhaps your read/write calls are not working as you expect
<MrSamuel> does the code work in isolation
<MrSamuel> like
<MrSamuel> without rspec?
<quazimodo> i don't know what you mean
chinmay_dd has joined #ruby
<quazimodo> as in, if i run it by hand in erb
vinleod has joined #ruby
Fraeon has quit [Ping timeout: 256 seconds]
<MrSamuel> yeah sure
<MrSamuel> or just make a file test.rb and run it
tejas-manohar has quit [Quit: Page closed]
<MrSamuel> like, just in the global scope
<MrSamuel> rather than in a rspec test case
<quazimodo> it works :)
jshultz has quit [Quit: Connection closed for inactivity]
<MrSamuel> right
<MrSamuel> if you search for code in rspec that sends signals?
<quazimodo> I shall
<MrSamuel> like do a search on github for "signal" or HUP etc
Rollabunna has quit [Remote host closed the connection]
<quazimodo> not much
<MrSamuel> i wonder if your test is running correctly
Rollabunna has joined #ruby
Fraeon has joined #ruby
<MrSamuel> does it actually complete the test?
<MrSamuel> like
<MrSamuel> try putting in a $stderr.puts after every line and see how far it gets
<MrSamuel> use $stderr because it should be sync
<quazimodo> it does get to my expectation
linojon has quit [Quit: linojon]
chinmay_dd has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
lbrf has joined #ruby
<MrSamuel> does it finish your spec?
<MrSamuel> or does it die randomly during it?
<quazimodo> doesn't rspec automatically stop at the first failed expectation?
<riceandbeans> you're a failed expectation
<quazimodo> riceandbeans: it's so true
<quazimodo> plus I still have nfi how strace actually works
<quazimodo> complicated autistic wizard programmer shit
<quazimodo> 1970s richard stallman bastards
<MrSamuel> strace works by kernal system calls which have special markers
<MrSamuel> the markers log data
shock_one has joined #ruby
<quazimodo> MrSamuel: but yeah, in general, stuff works properly
Solsist has joined #ruby
lbrf has quit [Ping timeout: 260 seconds]
tlarevo has quit [Remote host closed the connection]
x1337807x has joined #ruby
AmirolAh_ has joined #ruby
tlarevo has joined #ruby
AmirolAhmad has quit [Ping timeout: 244 seconds]
nisstyre has quit [Ping timeout: 255 seconds]
sinkensabe has joined #ruby
<quazimodo> ok
<quazimodo> nice
<quazimodo> something fucked going on outside of rspec entirely
<quazimodo> something's causing the break
suffice_ has quit [Ping timeout: 264 seconds]
<quazimodo> and it's like...random
timonv_ has joined #ruby
mrnugget has joined #ruby
<quazimodo> now it's going on and on just fine
suffice has joined #ruby
<quazimodo> some very undefined behaviour is happening
dts|pokeball has joined #ruby
fabrice31 has joined #ruby
<quazimodo> time to ask the unix guys for some sigint helps
ht__th has joined #ruby
suffice has quit [Ping timeout: 260 seconds]
suffice has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
chinmay_dd has joined #ruby
rshetty has quit [Remote host closed the connection]
tjohnson has quit [Quit: Connection closed for inactivity]
rshetty has joined #ruby
mrnugget has quit [Quit: mrnugget]
oo_ has quit [Remote host closed the connection]
ohcibi_ is now known as ohcibi
muzik has quit [Quit: Leaving]
chinmay_dd has quit [Ping timeout: 264 seconds]
tlarevo has quit [Remote host closed the connection]
<quazimodo> MrSamuel: yep. There are issues with stdio timing, etc
<quazimodo> that's the problem methinks
tlarevo has joined #ruby
efulmer has quit [Read error: Connection reset by peer]
<MrSamuel> that wouldn't surprise me
<MrSamuel> especially with PTY interactions
doev has joined #ruby
<MrSamuel> you might try sync on the pipe
<MrSamuel> e.g. IO#sync
<MrSamuel> to disable buffering
jenrzzz has quit [Ping timeout: 265 seconds]
<quazimodo> MrSamuel: what I really want to do, is to keep it on a pty, and make sure everything is synced and nice
kiyote23 has joined #ruby
<quazimodo> but I can see, there is a minefield of race conditions that can happen
blz37 has joined #ruby
Lightsword has quit [Quit: Lightsword]
DrCode has quit [Ping timeout: 250 seconds]
<quazimodo> jesus christ
<quazimodo> this is amazingly painful
<quazimodo> MrSamuel: it's all fucking timings
<quazimodo> if I put a sleep, things start to work
<quazimodo> like this
shock_one has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
<MrSamuel> yeah i'm not surprised
<MrSamuel> look up expect
<MrSamuel> man expect
akaiiro has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
<quazimodo> MrSamuel: it still causes issues outside of the expect blocks
<quazimodo> thats why everything is spaced
kiyote23 has quit [Ping timeout: 260 seconds]
diegoaguilar has quit [Quit: Leaving]
rshetty has quit [Remote host closed the connection]
<quazimodo> MrSamuel: it's the same as my program
chipotle has joined #ruby
ddd has quit [Ping timeout: 258 seconds]
timonv_ has joined #ruby
DrCode has joined #ruby
<quazimodo> in concept
ddd has joined #ruby
<quazimodo> so i need to see how they did it really
rshetty has joined #ruby
jenrzzz has joined #ruby
<MrSamuel> you probably need to keep on reading until you get what you want or hit some reasonable timeout
<MrSamuel> try using IO.select
<quazimodo> maybe
<quazimodo> i need an IO wizard
<quazimodo> you're pretty up to it, so far though
<quazimodo> my IO's are both sync'd true
nisstyre has joined #ruby
<MrSamuel> yeah but read_all will only read what's avaialble
<MrSamuel> you need something like
Spami has joined #ruby
<MrSamuel> while need_more?; buffer += read; end
shock_one has joined #ruby
<quazimodo> maybe?
mary5030 has joined #ruby
<quazimodo> when i write to the stream
<quazimodo> why does that process end before the stream has been fully written to?
<MrSamuel> read isn't guaranteed to return anything
<quazimodo> not process, function
<MrSamuel> it get's buffered in the OS
<MrSamuel> gets
kyoshero has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
<quazimodo> so I'm doing .write "stuff". Ruby blocks till it's written to the system's stream (because sync is true), then ruby does the next thing
<quazimodo> meanwhile the system hasn't really sent that stuff to a place where read can get it
<MrSamuel> yep but it might get buffered in the OS
<quazimodo> yes?
<quazimodo> thats what i mean
<MrSamuel> yes then that is correct
<quazimodo> it's sitting in the OS somewhere, where read can't get to it
timonv_ has quit [Remote host closed the connection]
<MrSamuel> well, it will get there eventually
<quazimodo> yeah
<quazimodo> so my read needs to check if the buffer is full
<quazimodo> so my has_data? mtehod needs revising
<quazimodo> to see if the OS has buffered stuff, aswell as if the stream has stuff
<MrSamuel> perhaps taht helps
<quazimodo> yeah i was reading that
<quazimodo> just found it
<MrSamuel> i'm going for a run
<MrSamuel> ttyl
<j416> wow, sounds healthy
<j416> o/
mary5030 has quit [Ping timeout: 240 seconds]
anaeem1 has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
<quazimodo> HRMMMM
<quazimodo> MrSamuel: you're an angel
<quazimodo> thank you
* quazimodo hugs MrSamuel
* quazimodo starts to caress MrSamuel
* quazimodo gently starts to do jiujitsu to MrSamuel
akaiiro has joined #ruby
Lightsword has joined #ruby
<shevy> omg what are you doing quazimodo
<arup_r> shevy: What's your weekend plan?
<quazimodo> shevy: it's how I show appreciation
<quazimodo> with a gentle bit of jiujitsu
<arup_r> sirpeng: is an spam.
<arup_r> apeiros: ^^
<shevy> arup_r dunno, have 4 exams in the week; Monday is holiday though
<arup_r> ok
anaeem1_ has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
shock_one has quit [Remote host closed the connection]
diego_ar has joined #ruby
claw___ has joined #ruby
ta has joined #ruby
diego_ar has quit [Ping timeout: 244 seconds]
chinmay_dd has joined #ruby
Xiti` has joined #ruby
shock_one has joined #ruby
AmirolAh_ has quit []
ta has quit [Ping timeout: 260 seconds]
shock_one has quit [Remote host closed the connection]
ndrei has joined #ruby
<quazimodo> MrSamuel: even more awesome
Xiti has quit [Ping timeout: 272 seconds]
<quazimodo> writing then calling fsync raises Errno::EINVAL
<quazimodo> awesommmeeeee
anaeem1_ has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
psy_ has joined #ruby
lbrf has joined #ruby
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
doev has quit [Quit: Verlassend]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anaeem1 has joined #ruby
ringarin has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
lbrf has quit [Ping timeout: 264 seconds]
koderok has joined #ruby
koderok has quit [Remote host closed the connection]
<epitron> hmmm
Solsist has quit []
<epitron> i've got an array of tokens, and i want to select everything between a start and an end token
<epitron> what's the simplest way to accomplish that?
<epitron> regular expresions would normally be the solution if this was a string
<quazimodo> i guess fsync is for files, not pipes?
<epitron> i could write a loop that sets some state variable..
<epitron> there's gotta be something better
<quazimodo> yep fsync wont work for pipes
<quazimodo> i wonder if it works for ptys
<epitron> lol
<epitron> the flip flop operator!
<epitron> THAT'S what it's for
stomar has joined #ruby
dseitz has joined #ruby
dfas has quit []
<quazimodo> i no
<quazimodo> whatchu talking bout
boombadaroomba has joined #ruby
<epitron> the flip flop operator solves my problem
<epitron> (finding all tokens between start/end tokens in an array)
renderful has joined #ruby
oo_ has joined #ruby
chinmay_dd_ has joined #ruby
tvw has quit []
boombadaroomba has quit [Ping timeout: 264 seconds]
Stichoza has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
oo_ has quit [Ping timeout: 252 seconds]
blizzy has quit [Ping timeout: 255 seconds]
blz37 has quit [Ping timeout: 258 seconds]
Stichoza has quit [Ping timeout: 264 seconds]
bMalum has joined #ruby
fgo has joined #ruby
<shevy> what the hell is a flip flop operator
anaeem1_ has quit [Remote host closed the connection]
sigurding has joined #ruby
anaeem1_ has joined #ruby
Lightsword has quit [Quit: Lightsword]
jimbach has joined #ruby
Hobogrammer has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 272 seconds]
Mothore____ has joined #ruby
Hanmac has joined #ruby
St1gma has quit [Ping timeout: 244 seconds]
<epitron> one of ruby's weirdest features
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
anaeem1_ has quit [Ping timeout: 258 seconds]
ringarin has quit [Ping timeout: 258 seconds]
akaiiro has quit [Ping timeout: 250 seconds]
jimbach has quit [Ping timeout: 258 seconds]
blz37 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspiers has joined #ruby
MrSamuel has quit [Ping timeout: 244 seconds]
Mothore____ has quit [Ping timeout: 258 seconds]
robustus has quit [Ping timeout: 250 seconds]
jheg has joined #ruby
Guest17405 has quit [Ping timeout: 264 seconds]
<Hanmac> epitron: hm what feature did you mean?
robustus has joined #ruby
blz37 has quit [Read error: Connection reset by peer]
blz37 has joined #ruby
MrSamuel has joined #ruby
dseitz has quit [Quit: good night world...]
mityaz has joined #ruby
BraddPitt has joined #ruby
BraddPitt has quit [Client Quit]
fabrice31 has joined #ruby
BraddPitt has joined #ruby
lbrf has joined #ruby
jheg has quit [Quit: jheg]
fabrice31 has quit [Ping timeout: 252 seconds]
aspiers_ has joined #ruby
lbrf has quit [Ping timeout: 250 seconds]
blz37 has quit [Ping timeout: 258 seconds]
sea_local has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 245 seconds]
jheg has joined #ruby
ptrrr has joined #ruby
tvw has joined #ruby
oleo__ has joined #ruby
oleo is now known as Guest6095
lxsameer has quit [Quit: Leaving]
Soda has joined #ruby
tobacco_joe has joined #ruby
kireevco has quit [Quit: Leaving.]
Guest6095 has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
kireevco has joined #ruby
6A4AAOY7C has joined #ruby
ringarin has joined #ruby
LekeFly has joined #ruby
x1337807x has joined #ruby
devdazed has joined #ruby
kireevco has quit [Ping timeout: 252 seconds]
Asher has quit [Read error: No route to host]
Asher has joined #ruby
dukedave has joined #ruby
x1337807x has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
mroth has joined #ruby
jheg has quit [Quit: jheg]
AndChat| has quit [Ping timeout: 244 seconds]
ckrailo_ has joined #ruby
Stichoza has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
oo_ has quit [Ping timeout: 250 seconds]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TgMts has joined #ruby
ikaros has joined #ruby
Stichoza has quit [Ping timeout: 256 seconds]
chu has joined #ruby
fgo has joined #ruby
vinleod has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
<Mia> So here is my twitter api related basic question (I'm pretty sure) http://justpaste.it/ibq4 --- Any help is appreciated.
fgo has quit [Ping timeout: 272 seconds]
jzinedine has joined #ruby
diego_ar has joined #ruby
KnownSyntax has joined #ruby
last_staff has joined #ruby
PhilK has joined #ruby
<claf> Mia, filter retweets
<claf> this is not really a ruby q
<claf> you filter out any retweets other than userone
shredding has quit [Quit: shredding]
dexteryy has joined #ruby
diego_ar has quit [Ping timeout: 272 seconds]
rshetty has quit [Remote host closed the connection]
dexteryy has quit [Remote host closed the connection]
<claf> Mia: did you google your question?
<Mia> claf, of course
<claf> why do you ask then
<Mia> claf, I know it's passible to manually check if the tweet belongs to or is retweeted by the users in the given list, but I'm expecting something more clever
<Mia> claf, these are pointless questions. If you see the answer on google feel free to post.
<tobiasvl> what does this have to do with ruby?
<claf> Mia: you are also on nodejs asking this, kinda off topic
fgo has joined #ruby
<Mia> tobiasvl, it doens't - general webdew question some people might be interested in, #twitterapi is dead and stackoverflow hashtag is also very very inactive
<claf> So you decided to spam inappropriate channels, Mia?
<Mia> claf, I'm asking the question on multiple channels related to webdev
<claf> You post a SO thread and *wait*
<Mia> claf it's not spamming.
<claf> or *hire* a twitter api dev
<claf> simple as that
<tobiasvl> Mia: then seeing as it's off topic, being snarky when someone tells you to google it is probably not a good idea
<Mia> claf you're being pointless over and over, I'm not wasting more time with this crap.
<claf> you are, until you get your approach and question right - and your homework, Mi
<claf> *Mia
<claf> Mia: now leave programming related channels, unless you have a pastie of code you intend to develop
<tobiasvl> Mia: you are the one who's wasting our time...
bret has joined #ruby
<Mia> claf, how is this talk any more related to ruby then my question
<Mia> tobiasvl, you don't have to asnwer
<Mia> you're not forced
agjacome has joined #ruby
<claf> Mia: it is not, so you are now on ignore
happyface has joined #ruby
<tobiasvl> /ignore Mia
<Mia> Perfect :3
<tobiasvl> god
<epitron> Hanmac: the flip-flop
<apeiros> wow, I wake up to find kindergarten invaded #ruby :(
<epitron> nobody knows what a flip flop is?
Takle has joined #ruby
m8 has joined #ruby
<Mia> apeiros, sometimes people are just annoying like that
anaeem1_ has joined #ruby
<apeiros> I'm still too tired to figure who was annoying :D
<apeiros> well. breakfast first anyway…
<pontiki> i can be annoying if you wish :)
<pontiki> noy noy noy noy
Areessell has quit [Ping timeout: 245 seconds]
<claf> epitron: its like toggle
<apeiros> pontiki: what what what? you mean you're not annoying now?
ringarin has quit [Ping timeout: 255 seconds]
<Mia> apeiros, in general people who do "this is irc" bullcrap is annoying. As a thumb of rule.
<Mia> rule of thum*
* Mia needs to sleep
<apeiros> j/k @ pontiki
rshetty has joined #ruby
<pontiki> apeiros: sometimes it's the obvious that needs stating :D
<epitron> claf: it's actually more interesting than that. it lets you select ranges based on boolean expressions
<epitron> and the booleans only have to occur at the beginning/end of the range
<epitron> all elements in between can be false
<epitron> eg: tags.map { |tag| tag if (tag == "<div>") .. (tag == "</div>") }.compact
shredding has joined #ruby
<epitron> that would select divs and their contents, but nothing else
<tobiasvl> that's a flip flop?
<tobiasvl> dang
<epitron> i didn't get what they were for until i had to write a tokenizer :)
tlarevo has quit [Remote host closed the connection]
StoneCypher has quit [Ping timeout: 250 seconds]
<tobiasvl> yeah, I've been using parslet a lot for stuff like that
Tranquility has joined #ruby
<claf> epitron: aah, I see!
tlarevo has joined #ruby
<epitron> hah
<epitron> yeah, i could've written a parslet grammar, but i saw that CodeRay already had one :)
rshetty has quit [Remote host closed the connection]
<epitron> i just used their JavaScript Scanner
<claf> hm, many other interesting posts on Nithin Bekals blog
ringarin has joined #ruby
culturelabs has joined #ruby
wsmoak has joined #ruby
wsmoak has quit [Changing host]
wsmoak has joined #ruby
SquirrelCZECH has quit [Remote host closed the connection]
amitchellbullard has joined #ruby
<epitron> true say
arietis has joined #ruby
ragingcake has joined #ruby
<ragingcake> The schema htto does not accept the regstry part: http://127.0.0.1:1010 - any ideas?
<ragingcake> I am using the Chef::HTTP - https://github.com/opscode/chef/blob/master/lib/chef/http.rb
timonv_ has quit [Remote host closed the connection]
lbrf has joined #ruby
Sawbones has joined #ruby
zrl has joined #ruby
<apeiros> Mia: what "this is irc" bullcrap do you mean? (not through backscroll yet, if it's in there)
codecop has joined #ruby
<Mia> apeiros, obvious stating in general -- "don't ask to ask", "this is irc", "google is your friend" and such. Stuff that was popular 10 years ago
jrunning_ has joined #ruby
rshetty has joined #ruby
lbrf has quit [Ping timeout: 255 seconds]
<apeiros> Mia: well, not everybody started IRCing 10y ago
<Mia> apeiros, that's a point :]
ballPointPenguin has joined #ruby
x1337807x has joined #ruby
<apeiros> anyway, I think the situation defused and I don't want to rekindle a fire. So I'll stop now.
<apeiros> egg with bacon! yummi :D
lemur has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
kireevco has joined #ruby
rkday has joined #ruby
lemur has joined #ruby
Aswebb_ has joined #ruby
x1337807x has quit [Ping timeout: 264 seconds]
Kryptonical has quit [Read error: Connection reset by peer]
claw has joined #ruby
claw___ has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
tkuchiki has joined #ruby
kireevco has quit [Ping timeout: 265 seconds]
giuseppesolinas has quit [Client Quit]
kapowaz_ is now known as kapowaz
Narzew has joined #ruby
akitada has quit [Read error: Connection reset by peer]
andrewstewart has quit [Write error: Connection reset by peer]
benlakey_ has quit [Read error: Connection reset by peer]
bluehavana has quit [Read error: Connection reset by peer]
dnyy has quit [Read error: Connection reset by peer]
machty has quit [Write error: Connection reset by peer]
ELLIOTTCABLE has quit [Write error: Connection reset by peer]
electrical has quit [Read error: Connection reset by peer]
yo61 has quit [Read error: Connection reset by peer]
Juanchito has quit [Read error: Connection reset by peer]
shelling_ has quit [Read error: Connection reset by peer]
bove has quit [Write error: Connection reset by peer]
lectrick has quit [Write error: Connection reset by peer]
kapowaz has quit [Write error: Connection reset by peer]
im0b has quit [Write error: Connection reset by peer]
lemur has quit [Ping timeout: 264 seconds]
renderful has joined #ruby
sinkensabe has joined #ruby
oo_ has joined #ruby
SOLDIERz has joined #ruby
Sawbones has joined #ruby
ramblinpeck_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 258 seconds]
oo_ has quit [Ping timeout: 256 seconds]
troter__ has joined #ruby
workmad3 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
sinkensabe has joined #ruby
tkuchiki has joined #ruby
agjacome has quit [Quit: leaving]
AdamMeghji has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
tobacco_joe has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
teddyp1cker has joined #ruby
lkba has joined #ruby
ragingcake has quit [Quit: ragingcake]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
ragingcake has joined #ruby
Spami has quit [Remote host closed the connection]
iamninja has quit [Quit: ZZZzzz…]
kireevco has joined #ruby
nfk has joined #ruby
sigurding has quit [Quit: sigurding]
<quazimodo> MrSamuel: alive?
fabrice31 has joined #ruby
tobacco_joe has joined #ruby
arietis has quit [Ping timeout: 250 seconds]
kireevco has quit [Ping timeout: 250 seconds]
rkday has quit [Ping timeout: 258 seconds]
Guest85414______ has joined #ruby
kapowaz_ has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Remote host closed the connection]
arietis has joined #ruby
Mia has quit [Read error: Connection reset by peer]
ELLIOTTCABLE has joined #ruby
kapowaz_ is now known as kapowaz
AlexRussia has quit [Ping timeout: 250 seconds]
Sawbones has quit [Remote host closed the connection]
dnyy has joined #ruby
Mia has joined #ruby
AlexRussia has joined #ruby
<MrSamuel> quazimodo, about to go to bed
bluehavana has joined #ruby
AmirolAhmad has joined #ruby
lbrf has joined #ruby
x1337807x has joined #ruby
AmirolAh_ has joined #ruby
lectrick has joined #ruby
Narzew has quit [Ping timeout: 260 seconds]
AmirolAhmad has quit [Ping timeout: 244 seconds]
MrSamuel has quit [Ping timeout: 240 seconds]
MrSamuel has joined #ruby
lbrf has quit [Ping timeout: 244 seconds]
AdamMeghji has quit [Ping timeout: 244 seconds]
troter__ has quit [Ping timeout: 244 seconds]
KnownSyntax has quit [Ping timeout: 265 seconds]
im0b has joined #ruby
zrl has quit [Ping timeout: 244 seconds]
x1337807x has quit [Read error: No route to host]
ckrailo_ has quit [Ping timeout: 265 seconds]
jrunning_ has quit [Ping timeout: 260 seconds]
amitchellbullard has quit [Ping timeout: 244 seconds]
PhilK has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
Stichoza has joined #ruby
neersighted has joined #ruby
bret has quit [Ping timeout: 260 seconds]
dukedave has quit [Ping timeout: 260 seconds]
mroth has quit [Ping timeout: 258 seconds]
culturelabs has quit [Ping timeout: 244 seconds]
Hanmac has quit [Ping timeout: 265 seconds]
happyface has quit [Ping timeout: 244 seconds]
ramblinpeck_ has quit [Ping timeout: 258 seconds]
ballPointPenguin has quit [Ping timeout: 258 seconds]
<quazimodo> i see
<quazimodo> go
spastorino has joined #ruby
<quazimodo> i looked at aruba gem
<quazimodo> they are using a timeout to deal with this same issue i have
charliesome has quit [Quit: zzz]
daxroc has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
x1337807x has quit [Ping timeout: 244 seconds]
sevenseacat has joined #ruby
daxroc has joined #ruby
zemiudo has joined #ruby
shelling_ has joined #ruby
akitada has joined #ruby
cstrahan has quit [Ping timeout: 244 seconds]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
cstrahan_ has joined #ruby
spastorino has quit [Remote host closed the connection]
Hanmac has joined #ruby
spastorino has joined #ruby
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
shelling_ has quit [Ping timeout: 260 seconds]
Guest85414______ has quit [Ping timeout: 260 seconds]
bluehavana has quit [Read error: Connection reset by peer]
lectrick has quit [Read error: Connection reset by peer]
neersighted has quit [Remote host closed the connection]
rdark has joined #ruby
kapowaz has quit [Read error: Connection reset by peer]
anaeem1_ has quit [Remote host closed the connection]
_JamieD_ has quit [Ping timeout: 244 seconds]
_JamieD_ has joined #ruby
_JamieD_ has quit [Client Quit]
diego_ar has joined #ruby
im0b has quit [Ping timeout: 265 seconds]
ELLIOTTCABLE has quit [Ping timeout: 265 seconds]
dnyy has quit [Ping timeout: 258 seconds]
akitada has quit [Ping timeout: 244 seconds]
spastorino has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ta has joined #ruby
spastorino has joined #ruby
diego_ar has quit [Ping timeout: 264 seconds]
jonathanwallace has quit [Quit: ZNC - http://znc.in]
spastorino has quit [Remote host closed the connection]
spastorino has joined #ruby
ta has quit [Ping timeout: 260 seconds]
Galas has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
spastorino has quit [Client Quit]
TgMts has joined #ruby
anaeem1 has joined #ruby
MasterPiece has quit [Ping timeout: 252 seconds]
<shevy> I have a great idea
<shevy> everyone, let's dance!
teddyp1cker has quit [Remote host closed the connection]
TerjeLarsen has quit [Quit: WeeChat 1.0.1]
workmad3 has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
<shevy> hmm this syntax
<shevy> gem 'minitest'
rshetty has quit [Remote host closed the connection]
<shevy> where is .gem defined?
<shevy> erm ... gem()
kireevco has joined #ruby
tobacco_joe has quit [Remote host closed the connection]
<shevy> oha ... string.split will default to \w ?
<shevy> >> "abc def ghi".split
<eval-in__> shevy => ["abc", "def", "ghi"] (https://eval.in/231692)
<mozzarella> >> "abc def ghi".split
teddyp1cker has joined #ruby
6A4AAOY7C has quit [Quit: This computer has gone to sleep]
<shevy> is that a unicode string?
<mozzarella> >> "abc def ghi".split
<mozzarella> shitty robot
kireevco has quit [Ping timeout: 244 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<shevy> hehe
rshetty has joined #ruby
<shevy> you have weird delimiters there
<shevy>  
<shevy> dunno how you make them
dukedave has joined #ruby
timonv_ has joined #ruby
<shevy> between "c" and the "d" there should be only a ' ' but on IRC you have something extra between the space and the prior letter, not sure what it is
oleo__ has quit [Quit: Verlassend]
jtheuer has joined #ruby
<mozzarella> it doesn't split on \w
<mozzarella> doesn't seem to split on \s either
mengu has quit [Remote host closed the connection]
<mozzarella> just regular spaces
tobacco_joe has joined #ruby
MasterPiece has joined #ruby
mroth has joined #ruby
mengu has joined #ruby
<shevy> true
pen has joined #ruby
ragingcake has left #ruby [#ruby]
teddyp1cker has quit [Remote host closed the connection]
Hanmac has quit [Remote host closed the connection]
ckrailo_ has joined #ruby
tvw has quit []
hamakn has quit [Remote host closed the connection]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
JohnBat26 has joined #ruby
JohnBat26 has joined #ruby
Calmoto has joined #ruby
x1337807x has joined #ruby
lbrf has joined #ruby
x1337807x has quit [Ping timeout: 258 seconds]
lbrf has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
sevenseacat has quit [Remote host closed the connection]
uber_ has joined #ruby
quimrstorres has joined #ruby
Guest85414______ has joined #ruby
kapowaz has joined #ruby
ELLIOTTCABLE has joined #ruby
dnyy has joined #ruby
uber has quit [Quit: bye]
uber_ is now known as uber
bluehavana has joined #ruby
KnownSyntax has joined #ruby
chinmay_dd_ has quit [Quit: Leaving]
lectrick has joined #ruby
PhilK has joined #ruby
tlarevo has quit [Ping timeout: 250 seconds]
linocisco has joined #ruby
im0b has joined #ruby
rshetty has quit [Remote host closed the connection]
renderful has joined #ruby
galeido has joined #ruby
mengu has quit [Remote host closed the connection]
neersighted has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
happyface has joined #ruby
bret has joined #ruby
zemiudo has quit [Quit: Leaving]
<linocisco> hi
Aswebb_ has quit [Remote host closed the connection]
<linocisco> i m very new to Ruby and other popular languges. what is the strength of ruby over Perl?
<linocisco> i m very new to Ruby and other popular languges. what is the strength of ruby over Java?
kiyote23 has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
LudicrousMango has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
culturelabs has joined #ruby
<mozzarella> have you tried Google?
amitchellbullard has joined #ruby
shelling_ has joined #ruby
<mozzarella> ruby is more readable than perl and more concise than java
akitada has joined #ruby
<pontiki> what an odd pair of questions
iamninja has joined #ruby
<crome> there were 7 seconds between the quesitons, I'm wondering if he typed in both
<crome> sirpeng is spamming something in msg
mengu has quit [Remote host closed the connection]
zrl has joined #ruby
jrunning_ has joined #ruby
rshetty has joined #ruby
andrewstewart has joined #ruby
machty has joined #ruby
electrical has joined #ruby
fabrice31 has joined #ruby
spider-mario has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
ballPointPenguin has joined #ruby
yo61 has joined #ruby
bMalum has quit [Ping timeout: 265 seconds]
bMalum_ has joined #ruby
<shevy> linocisco ruby is elegant and terse
<shevy> java is big and fat
<shevy> perl paved the way for ruby, php and python so it's like the wise grandpa
<shevy> but you don't need grandpa anymore so you can stuff him into a retirement asylum
rshetty has quit [Ping timeout: 250 seconds]
yfeldblu_ has joined #ruby
Narzew has joined #ruby
<linocisco> shevy, how perl pave the way for Ruby?
fabrice31 has quit [Ping timeout: 264 seconds]
<pontiki> don't trust anything you hear on the 'net
<shevy> linocisco it was the practical pioneer in the like 1980s that inspired other languages to learn from it
stomar has left #ruby [#ruby]
<shevy> well late 80s
<shevy> Appeared in 1987
CMAXW has joined #ruby
<shevy> linocisco prototyping in a language like ruby or python will go much faster than in java
Ludicrou_ has joined #ruby
Xiti` has quit [Quit: Xiti`]
LudicrousMango has quit [Ping timeout: 258 seconds]
Xiti has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
<shevy> linocisco this is an example of perl code straight from wikipedia http://pastie.org/9766019
kireevco has joined #ruby
<shevy> This is the main part: while ( $remaining ) { printf ( "Remaining %s/%s \r", $remaining--, $total ); sleep 1;
tier has joined #ruby
bove has joined #ruby
benlakey_ has joined #ruby
efgh_ has joined #ruby
ramblinpeck_ has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
paulog__ has joined #ruby
tobacco_joe has quit [Remote host closed the connection]
kireevco has quit [Ping timeout: 255 seconds]
tier has quit [Ping timeout: 264 seconds]
<linocisco> shevy, your code , Perl is like C language. printf,scanf
<shevy> that is not my code - that is wikipedia code
<shevy> I do not use perl
<linocisco> shevy, it is most like C langauge
troter__ has joined #ruby
<shevy> yeah, C inspires a lot - ruby also has sprintf()
chu has joined #ruby
<shevy> C is the ancient behemoth
<pontiki> "behemoth"?
<linocisco> shevy, I hate C and C++ because of using Pointers and Ms Visual C++. if Ruby use complicated pointers for memory allocation, I wont use
rfv has quit [Ping timeout: 255 seconds]
digifiv5e has joined #ruby
<shevy> yeah a behemoth - don't say you never roleplayed pen and paper RPGs pontiki! http://en.wikipedia.org/wiki/Behemoth though this page might be better http://wiki.ffxiclopedia.org/wiki/Behemoth
<shevy> it's a huge fat thing! and slow!!!
tobacco_joe has joined #ruby
it0a has quit [Ping timeout: 265 seconds]
<shevy> it bulldozers over everything that is in its path
charliesome has quit [Quit: zzz]
<pontiki> that is so not what C is
<pontiki> but never mind
<shevy> linocisco no, you can not handle pointers in Ruby; you have no control over the RAM unlike in C and C++
digifiv5e is now known as daynaskully
AdamMeghji has joined #ruby
rfv has joined #ruby
arup_r has quit [Quit: Leaving.]
x1337807x has joined #ruby
<efgh_> linocisco you do not have to handle pointers
postmodern has quit [Quit: Leaving]
<linocisco> is Ruby compiled language like Java or Interpretted langauge?
<efgh_> interpreted
dcarmich has joined #ruby
<linocisco> you all folks in this channel are no doubt with Passion for using Ruby, right? what is the purpose of your choice among others? what is the main strength of Ruby over others?
<pontiki> why are you asking these questions?
<shevy> linocisco <shevy> linocisco ruby is elegant and terse
<shevy> linocisco did you read the old matz interview yet?
<linocisco> pontiki, short of time to choose one to learn
<pontiki> are you dying?
<efgh_> my reason was: everything is an object
<shevy> hey we wish him health!
<pontiki> every language you choose can teach you something useful
<pontiki> every language has good points, bad points
x1337807x has quit [Ping timeout: 264 seconds]
<shevy> linocisco read that article, you will understand ruby philosophy afterwards; it is only 4 pages
<pontiki> there is no one single language that wll serve all uses
<pontiki> the *more* languages you know, the more capable you'll be
<pontiki> why do you have so little time to choose any language
<pontiki> just pick a current problem, learn how to solve it
AlexRussia has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
lbrf has joined #ruby
<apeiros> assembler will solve all problems. it's just not efficient at it.
<wasamasa> linocisco: btw, if you don't get pointers, you'll have issues building more complicated stuff with ruby
* apeiros being the pedant he is
<wasamasa> linocisco: it's just yet another concept one has to grasp to become a better programmer
<shevy> assembler rocks http://www.menuetos.net/
Azure has quit [Quit: My MBP went to sleep.]
byprdct has joined #ruby
Juanchito has joined #ruby
lbrf has quit [Ping timeout: 255 seconds]
enebo has joined #ruby
blizzy has joined #ruby
<efgh_> wasamasa: what "complicated stuff"
hamakn has joined #ruby
byprdct has quit [Client Quit]
mengu has quit [Ping timeout: 252 seconds]
sirpeng has quit [K-Lined]
quimrstorres has quit [Remote host closed the connection]
kidoz has joined #ruby
tlarevo has joined #ruby
<wasamasa> efgh_: anything that requires you to actually design meaningful structures
dymv has joined #ruby
tier has joined #ruby
diego_ar has joined #ruby
hamakn has quit [Ping timeout: 244 seconds]
<efgh_> like implementing a linked list...
<efgh_> I don't see it
<pontiki> nearly everything that's an object in ruby is a pointer
<apeiros> efgh_: not everybody can just see advantages. some people have to experience it.
<pontiki> oh, so true, apeiros
<apeiros> some people even have to experience the advantage *and* losing it, before they understand
<efgh_> I never had the feeling that my knowledge about pointers helped in writing ruby code
<efgh_> of course, it doesn't hurt
<apeiros> 15:28 linocisco: is Ruby compiled language like Java or Interpretted langauge?
<apeiros> the mode of execution is NOT a property of the language
sinkensabe has joined #ruby
<apeiros> you can have compiled ruby. you can have interpreted C. so tell me again, what makes a *language* interpreted vs. compiled?
dymv has quit [Quit: Textual IRC Client: www.textualapp.com]
ehc has joined #ruby
diego_ar has quit [Ping timeout: 255 seconds]
<mozzarella> it would be hard to have self-modifying compiled ruby code
<apeiros> sure. but not impossible.
<pontiki> the thing you use to process it, obviously
tlarevo has quit [Remote host closed the connection]
<apeiros> yes. interpreted/compiled is a property of the thing which executes or converts your code
MasterPiece has quit [Quit: Leaving]
hamakn has joined #ruby
oo_ has joined #ruby
ragingcake has joined #ruby
oleo has joined #ruby
<efgh_> I'd say at least 99,9% of all ruby code is run by an interpreter, not compiled
<j416> that's an exact number
* j416 shrugs
<apeiros> depends on where you place the JVM in that binary picture of compiled/interpreted
<linocisco> apeiros, the difference is time
<apeiros> but the majority certainly is interpreted. it's still not a property of the language.
<apeiros> linocisco: that answer doesn't even make sense.
jzinedine has quit [Ping timeout: 264 seconds]
Freelusion has joined #ruby
<linocisco> all the today's langauge are written in low level languages like C or Assembly
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> aaand that's nonsense. is there a point you try to make?
oo_ has quit [Ping timeout: 272 seconds]
<apeiros> (nonsense in that there's a couple of bootstrapped languages - and both C and assembler required bootstrapping themselves)
Galas has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
AlexRussia has joined #ruby
hiyosi has joined #ruby
<shevy> let's all write in 0 and 1
<apeiros> my father actually did that (punch cards)
Hanmac has joined #ruby
<shevy> now that's what I call object oriented programming in reallife!
timonv_ has quit [Remote host closed the connection]
phutchins has joined #ruby
<efgh_> linocisco: besides execution time there is also to consider development time
jimbach has joined #ruby
yfeldblum has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
timonv^ has joined #ruby
giuseppesolinas has joined #ruby
<shevy> \o/
<shevy> linocisco how many hours of your life do you wanna invest into computers
kirun has joined #ruby
danman has joined #ruby
Freelusion has quit [Quit: Freelusion]
<wasamasa> linocisco: the rust compiler is implemented in rust
yfeldblum has quit [Ping timeout: 244 seconds]
<apeiros> wow. after ~15y of coding, I'm actually considering introducing a global. $log. The alternative design would be to pass it in everywhere explicitly.
<wasamasa> linocisco: a fair amount of lisp compilers is implemented of lisp
<wasamasa> linocisco: people implement lots of browser stuff in JS
<wasamasa> linocisco: and so on, your comment makes little sense and sounds as if your horizon needs expansion
<shevy> apeiros do you at least feel dirty when using $log?
<apeiros> I'm actually not sure, shevy
n1lo has quit [Ping timeout: 260 seconds]
<apeiros> pondering the ups and downs of using it
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<shevy> well the biggest pro can also be a con - it will be available everywhere; I think I'd only be worried if someone else also would use the name $log
<apeiros> it's framework-level. the only levels to introduce globals are IMO app and framework.
Stichoza has quit [Quit: Be back later ...]
<apeiros> I think the main disadvantage is that anything using $log is coupled to the framework.
danijoo has quit [Read error: No route to host]
danijoo has joined #ruby
<apeiros> then again, the coupling is weaker than using e.g. Framework::Logger.instance
tristanp has joined #ruby
<apeiros> and the other question in that regard is how to deal with $stderr & $stdout
TheNet has joined #ruby
x1337807x has joined #ruby
Stichoza has joined #ruby
giuseppesolinas has joined #ruby
blackjid_ has quit [Ping timeout: 258 seconds]
terrellt has quit [Ping timeout: 258 seconds]
x1337807x has quit [Ping timeout: 244 seconds]
timonv^ has quit [Remote host closed the connection]
skarn has quit [Ping timeout: 258 seconds]
byprdct has joined #ruby
davedev24_ has joined #ruby
efghi has joined #ruby
n1lo has joined #ruby
Narzew has quit [Remote host closed the connection]
<Hanmac> apeiros what about a module attribute?
<apeiros> Hanmac: where'd be the diff to Framework::Logger.instance?
<Hanmac> hm not so much very different, but let it be Framework::log that returns the log object for you ... its shorter and also settable with Framework::log=
Stichoza has quit [Quit: Be back later ...]
rshetty has joined #ruby
<apeiros> well, that's just a different place. the issue with it remains the same.
lbrf has joined #ruby
efgh_ has quit [Quit: Konversation terminated!]
tobacco_joe has quit [Remote host closed the connection]
arup_r has joined #ruby
rshetty has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
rkday has joined #ruby
lbrf has quit [Ping timeout: 258 seconds]
doev has joined #ruby
doev has quit [Remote host closed the connection]
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
byprdct has joined #ruby
tobacco_joe has joined #ruby
mgberlin has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
byprdct has quit [Max SendQ exceeded]
Aswebb_ has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
mgberlin has quit [Remote host closed the connection]
Aswebb__ has joined #ruby
mgberlin has joined #ruby
akaiiro has joined #ruby
<linocisco> is OOP in Ruby ?
<wasamasa> that sentence doesn't even make
Aswebb_ has quit [Ping timeout: 260 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
Photism has joined #ruby
davedev24_ has joined #ruby
tier has joined #ruby
mgberlin has quit [Ping timeout: 240 seconds]
renderful has joined #ruby
* pontiki wonders why he's wasting time asking questions, when he has no time to lose
linojon has joined #ruby
oo_ has joined #ruby
fabrice31 has joined #ruby
bluehavana has quit [Quit: Connection closed for inactivity]
n1lo has quit [Ping timeout: 264 seconds]
renderful has quit [Ping timeout: 258 seconds]
Tranquility has quit [Quit: Connection closed for inactivity]
sud0x has joined #ruby
<linocisco> some syntax of Ruby are like Pascal. most are words rather than symbol
KnownSyntax has quit [Quit: Connection closed for inactivity]
arup_r has quit [Quit: Leaving.]
oo_ has quit [Ping timeout: 245 seconds]
gwn has joined #ruby
arup_r has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
dts|pokeball has quit [Ping timeout: 264 seconds]
shock_one has joined #ruby
gwn has left #ruby [#ruby]
havenwood has joined #ruby
greenbagels has joined #ruby
diegoviola has joined #ruby
<wasamasa> birds have feathers. they have bones, too
Rollabunna has quit [Remote host closed the connection]
<pontiki> well said
<efghi> and both use '+' for addition---they are essentially the same language
<sud0x> morning all! I have quite a complex question. I'm trying to read contents from a file and place each line into an array but its quite a unique project. Wondering if anyone can take a look and make suggestions please https://gist.github.com/anonymous/cb3eda3869d321cf3dd6
hamakn has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<apeiros> sud0x: and your question is?
rshetty has joined #ruby
tier has quit [Remote host closed the connection]
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
shock_one has quit [Remote host closed the connection]
<linocisco> Node.js vs Ruby?
<efghi> sud0x: easiest way to read lines from file into an array is File.readlines
<pontiki> linocisco: apples and oranges
fuhgeddaboudit has joined #ruby
<apeiros_> linocisco: you are being annoying.
x1337807x has joined #ruby
it0a has joined #ruby
<sud0x> apeiros, how would I be able to retrieve the contents before the :
<linocisco> node.js is alternative choice to Ruby? because power of capability is almost the same?
shock_one has joined #ruby
tristanp has quit [Ping timeout: 258 seconds]
<apeiros_> linocisco: node.js is a framework. ruby is a language.
<sud0x> efghi: can't use an array, have to read the lines and divide them accordingly :/
<pontiki> node.js is a server-side asynchronous javascript processing system
<pontiki> ruby is a language
<sud0x> efghi: using another gem to add them into an array since they're going into an xlsx
<apeiros_> sud0x: split(/:/, 2)
<efghi> linocisco: there isn't one answer to all problems
doev has joined #ruby
<apeiros_> >> "foo: whatever, comes, :here".split(/:/, 2)
<eval-in__> apeiros_ => ["foo", " whatever, comes, :here"] (https://eval.in/231704)
Danishman has joined #ruby
diegovio1 has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
kyoukasuigetsu has joined #ruby
diegoviola has quit [Ping timeout: 245 seconds]
doev has quit [Read error: Connection reset by peer]
<sud0x> apeiros, awesome -- I'll be placing foo into its own variable though. Kinda want to mark the variable and start of the array contents by that colon (variable word prior to colon, array everything following)
<apeiros_> sud0x: any particular reason you invent your own serialization?
diegovio1 is now known as diegoviola
<apeiros_> instead of going with something established, like e.g. yaml
x1337807x has quit [Ping timeout: 260 seconds]
SOLDIERz has joined #ruby
hamakn has joined #ruby
<linocisco> somebody using Ruby on Windows?
philwantsfish has joined #ruby
hamakn has quit [Remote host closed the connection]
<sud0x> apeiros: I wanted to use a dictionary for each style but they all have the same category so I can't use a key. Sometimes lines are multi-lines so I want to mark the end by a semicolon. I don't want to reinvent the wheel so if there's something for this I am open to it
<sud0x> not style, category
<apeiros_> linocisco: yes. somebody certainly is.
<linocisco> somebody using Ruby on Windows? I can't see the error is "DL is deprecated, please use Fiddle"
<linocisco> somebody using Ruby on Windows? I can't see what the error is "DL is deprecated, please use Fiddle"
elastik has joined #ruby
<efghi> linocisco: just ignore it
<linocisco> efghi, it is a bug whenever "irb" is called or entered?
<apeiros_> >> require 'yaml'; [['category', ['array', 'of', 'values']], ['category', ['array', 'of', 'values']], ['category', ['array', 'of', 'values']]].to_yaml
<eval-in__> apeiros_ => "---\n- - category\n - - array\n - of\n - values\n- - category\n - - array\n - of\n - values\n- - category\n - - array\n - of\n - values\n" (https://eval.in/231706)
<apeiros_> sud0x: ^
<sud0x> apeiros you are the man!
<efghi> linocisco: it's a deprecation warning, you can ignore it
<sud0x> does yaml come bundled with ruby or do i have to install that gem apeiros?
<apeiros_> linocisco: meet google.com. it helps with such stuff.
akaiiro has quit [Ping timeout: 250 seconds]
atmosx has joined #ruby
<apeiros_> sud0x: yaml is part of rubys stdlib. should your ruby not have it, hit your package maintainer with a broom please.
<linocisco> ok.
rshetty has quit [Remote host closed the connection]
<sud0x> lol will do thanks man
<linocisco> is Ruby better with mySQL or mongoDB ?
<apeiros_> linocisco: nonsensical question again
<apeiros_> linocisco: there's drivers for both.
shock_one has quit [Remote host closed the connection]
Mothore____ has joined #ruby
pen has quit []
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Sawbones has joined #ruby
paulog__ has quit [Quit: Connection closed for inactivity]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<linocisco> on windows, I have installed ruby and accessible on command prompt through "irb" and mongodb 32bit for windows has been installed. what to do next ?
banister has joined #ruby
rshetty has joined #ruby
banister has quit [Max SendQ exceeded]
<linocisco> how to test ruby to access mongodb? any guide or URL to follow?
banister has joined #ruby
Mothore____ has quit [Ping timeout: 245 seconds]
banister has quit [Max SendQ exceeded]
linojon has quit [Quit: linojon]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
shock_one has joined #ruby
diego_ar has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<efghi> yes, seach for "mongodb" and "ruby"
TL has joined #ruby
Ludicrou_ has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
LudicrousMango has joined #ruby
lbrf has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ta has joined #ruby
jtheuer has quit [Quit: This computer has gone to sleep]
banister has joined #ruby
Crazy_Atheist has joined #ruby
SOLDIERz has quit [Quit: Lingo: www.lingoirc.com]
banister has quit [Max SendQ exceeded]
jimbach has quit [Remote host closed the connection]
<apeiros_> linocisco: we're not here to hold your hands. invest some effort on your own. if you did, show that you did. e.g. by asking "I found <link to tutorial 1> and <link to tutorial 2>. Any recommendations for another tutorial on mongodb with ruby?"
banister has joined #ruby
kyoshero has quit [Quit: Leaving]
ikaros has quit [Quit: Ex-Chat]
banister has quit [Max SendQ exceeded]
diego_ar has quit [Ping timeout: 244 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
LudicrousMango has quit [Ping timeout: 244 seconds]
lbrf has quit [Ping timeout: 244 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ta has quit [Ping timeout: 244 seconds]
Mothore____ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
DLSteve has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
jimbach has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
rshetty_ has joined #ruby
rshetty has quit [Ping timeout: 272 seconds]
bMalum_ has quit [Quit: bMalum_]
ikaros has joined #ruby
jimbach has quit [Remote host closed the connection]
centrx has joined #ruby
linocisco has quit [Quit: Leaving]
twistedpixels is now known as zz_twistedpixels
LudicrousMango has joined #ruby
tristanp has joined #ruby
mgberlin has joined #ruby
<efghi> linocisco: it might help to know that there are several drivers available; I played a little with MongoMapper, but that was a long time ago, so I can't really help further
tjohnson has joined #ruby
<elastik> Hello everyone!
<elastik> I am stuck again! lol
<elastik> I am trying to insert data from array into a table in my database
<elastik> Would someone throw me a bone?
Jackneill has joined #ruby
jimbach has joined #ruby
<apeiros_> elastik: thumbs up for gisting your code. but you still need to state your problem.
<elastik> ok. Do i state the problem in the gist or here?
<apeiros_> here
<apeiros_> except for backtraces
anaeem1 has quit [Remote host closed the connection]
Channel6 has joined #ruby
<havenwood> elastik: the Sequel gem is nice: https://github.com/jeremyevans/sequel#readme
<apeiros_> those should go into the gist. you can gist multiple files, best to put backtraces in a separate file in your gist.
<elastik> hello havenwood!
jheg has joined #ruby
klmlfl has joined #ruby
wsmoak has quit [Ping timeout: 264 seconds]
<havenwood> elastik: good morning
anaeem1_ has joined #ruby
<elastik> I am trying to take the data from my array and insert it into my database
<elastik> Is that stating the problem correctly?
danijoo has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
<apeiros_> elastik: having read your code, your problem statement would probably be something like: "I use the mysql gem and I don't know how to insert data into the database"
danijoo has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
<apeiros_> the whole rest of your code is actually pretty irrelevant to the problem you want to ask us about
jimbach has quit [Ping timeout: 258 seconds]
sinkensabe has quit [Remote host closed the connection]
<elastik> ok apeiros. thank you for the guidance
kiyote23 has quit [Remote host closed the connection]
<elastik> I do know how to insert into the database with mysql gem, but not using an array
shredding has quit [Quit: shredding]
<apeiros_> I too would suggest using sequel. with mysql gem, you'd insert data using an INSERT statement with Mysql#query. like you did. just need to properly write your SQL.
exadeci has joined #ruby
kiyote23 has joined #ruby
jherbst has joined #ruby
anaeem1_ has quit [Ping timeout: 264 seconds]
jheg has quit [Ping timeout: 260 seconds]
<F__i__L> is it difficult to create an openid connect implementation in ruby ?
<apeiros_> or mysql specific: http://dev.mysql.com/doc/refman/5.6/en/insert.html (scroll a bit for examples)
gsd has joined #ruby
<apeiros_> the mysql gem looks quite a bit sparsely documented…
adriancb has joined #ruby
<havenwood> F__i__L: what's wrong with the existing Ruby OpenID gems?
oo_ has quit [Ping timeout: 265 seconds]
<elastik> apeiros: I have been able to successfully insert data from a variable into my table.
kedibasi has joined #ruby
<F__i__L> havenwood there is only one gem actually
<elastik> apreiros: You are correct. The documentation does not show how to insert into a table from am array while looping.
<F__i__L> openid connect that implements openid connect
wsmoak has joined #ruby
<F__i__L> and it doesn't have any documentation :/
Lightsword has joined #ruby
<apeiros_> elastik: it works exactly the same as inserting data without looping over an array
sud0x has left #ruby [#ruby]
kiyote23 has quit [Ping timeout: 256 seconds]
<elastik> Really?
Akagi201 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<havenwood> F__i__L: openid_connect and ruby-openid
Darryl__ has joined #ruby
<elastik> So if i understand correctly. I need to use the mysql gem and look at the documentation.
agrinb has joined #ruby
<havenwood> elastik: sequel
Sawbones has quit [Remote host closed the connection]
<elastik> oh sequel
<F__i__L> havenwood ruby-openid doesn't seem to support openid connect (openid 3)
<elastik> ok thanks guys!!! I will do some reading.
<F__i__L> so it's only openid_connect which doesn't have any documentation at all
<F__i__L> I don't even know what features it implements
<apeiros_> elastik: whether you do: `connection.query(sql)` or `ary.each do … connection.query(sql) … end` doesn't really concern the mysql gem
<apeiros_> elastik: so yes, really, works exactly the same
efghi has quit [Quit: Konversation terminated!]
pushpak has joined #ruby
tristanp has quit [Remote host closed the connection]
WhereIsMySpoon_ is now known as WhereIsMySpoon
WhereIsMySpoon has quit [Changing host]
WhereIsMySpoon has joined #ruby
clamstar has joined #ruby
clamstar has quit [Remote host closed the connection]
efghi has joined #ruby
clamstar has joined #ruby
ragingcake has quit [Quit: ragingcake]
<havenwood> F__i__L: looks like reading openid_connect's code is the way to go
x1337807x has joined #ruby
tristanp has joined #ruby
clamstar has quit [Client Quit]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
havenwood has quit [Remote host closed the connection]
<elastik> ok thanks. I'm going to test it out.
rurban_ has joined #ruby
ragingcake_ has joined #ruby
x1337807x has quit [Ping timeout: 255 seconds]
henesy has joined #ruby
havenwood has joined #ruby
adriancb has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
clamstar has joined #ruby
sinkensabe has joined #ruby
shredding has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
x1337807x has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Sawbones has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
fedexo has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
x1337807x has quit [Client Quit]
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
diego_ar has joined #ruby
mgberlin has quit [Remote host closed the connection]
mityaz has quit [Quit: See ya!]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
danman_ has joined #ruby
dts|pokeball has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
maestrojed has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
tier has joined #ruby
zz_twistedpixels is now known as twistedpixels
banister has joined #ruby
banister has quit [Max SendQ exceeded]
danman has quit [Ping timeout: 252 seconds]
danman_ is now known as danman
gsd has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
hamakn has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
agrinb has quit [Remote host closed the connection]
sud0x has joined #ruby
fgo has joined #ruby
JokerDoomWork has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ptrrr has quit [Quit: ptrrr]
shock_one has quit [Remote host closed the connection]
mikepack_ has joined #ruby
jtheuer has joined #ruby
goshdarnyou has joined #ruby
<sud0x> hey guys, is there a way to combine two arrays together at a specific point? https://gist.github.com/anonymous/78c52293ddad539094db
hamakn has quit [Ping timeout: 264 seconds]
ptrrr has joined #ruby
lbrf has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
rkalfane has joined #ruby
anaeem1 has joined #ruby
JokerDoomWork has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
JokerDoomWork has joined #ruby
Galas has joined #ruby
bigmac_ is now known as i8igmac
danman has quit [Quit: danman]
diego_ar has quit [Remote host closed the connection]
<sud0x> nvm it wont be sorted
fgo has quit [Ping timeout: 264 seconds]
<shevy> sort sort sort the bag
Channel6 has quit [Quit: Leaving]
<shevy> sort sort sort then whack
lbrf has quit [Ping timeout: 252 seconds]
Sawbones has quit [Remote host closed the connection]
asteve has joined #ruby
tlarevo has joined #ruby
shredding has quit [Quit: shredding]
<efghi> sud0x: [1,2] + [3,4,5] #=> [1,2,3,4,5]
linojon has joined #ruby
jlast has joined #ruby
fabrice31 has joined #ruby
<shevy> sud0x you can apply a custom .sort or .sort_by at any time too to reshuffle the Array/Enumerator any way you want it
spinx has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has quit [Quit: ZZZzzz…]
jtheuer has quit [Quit: This computer has gone to sleep]
maestrojed has quit [Quit: Computer has gone to sleep.]
<sud0x> thanks shevy
jlast has quit [Remote host closed the connection]
galeido has quit [Ping timeout: 250 seconds]
DaniG2k has joined #ruby
st0mar has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
danman has joined #ruby
Soda has quit [Remote host closed the connection]
sinkensabe has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rshetty_ has quit [Remote host closed the connection]
renderful has joined #ruby
tier has quit [Remote host closed the connection]
maestrojed has joined #ruby
sud0x has left #ruby [#ruby]
tier has joined #ruby
kirun has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
kobain has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
maestrojed has quit [Max SendQ exceeded]
renderful has quit [Ping timeout: 244 seconds]
realeyes has left #ruby ["Textual IRC Client: www.textualapp.com"]
efghi has left #ruby ["quit"]
tier has quit [Ping timeout: 250 seconds]
kireevco has joined #ruby
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
Lightsword has quit [Quit: Lightsword]
Jackneill has quit [Ping timeout: 265 seconds]
perturbation has joined #ruby
mengu has joined #ruby
DaniG2k has quit [Ping timeout: 245 seconds]
tobacco_joe has quit [Remote host closed the connection]
jonr22 has quit []
enebo has quit [Quit: enebo]
danman has quit [Quit: danman]
Jackneill has joined #ruby
Rollabunna has joined #ruby
mengu has quit [Ping timeout: 256 seconds]
ragingcake_ has left #ruby [#ruby]
Rollabunna has quit [Ping timeout: 265 seconds]
danman has joined #ruby
GGMethos has quit [Ping timeout: 264 seconds]
GGMethos has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Mothore_____ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Takle has quit [Remote host closed the connection]
Spami has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
timonv_ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Mothore____ has quit [Ping timeout: 245 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Takle has joined #ruby
t7y9r has quit [Ping timeout: 258 seconds]
triple_b has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Xeago has joined #ruby
anaeem1 has quit [Remote host closed the connection]
t3h_j4n170r has quit [Ping timeout: 244 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Aswebb__ has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Yzguy has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
<apeiros_> gah
banister has quit [Max SendQ exceeded]
agrinb has joined #ruby
josephndenton has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
<apeiros_> I hate when I forget the +b
tristanp has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
fgo has joined #ruby
klmlfl has joined #ruby
pushpak has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 258 seconds]
wsmoak has quit [Quit: wsmoak]
sinkensabe has quit [Remote host closed the connection]
<crome> the b is overrated
wsmoak has joined #ruby
wsmoak has quit [Changing host]
wsmoak has joined #ruby
fuhgeddaboudit has joined #ruby
sinkensabe has joined #ruby
tobacco_joe has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
DaniG2k has joined #ruby
ptrrr has quit [Quit: ptrrr]
rkalfane has quit [Read error: Connection reset by peer]
lbrf has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
rkalfane has joined #ruby
kirun has joined #ruby
<n3b_> hello
StoneCypher has joined #ruby
Cyberheb has joined #ruby
diego_ar has joined #ruby
jimbach has joined #ruby
Channel6 has joined #ruby
iamninja has joined #ruby
lbrf has quit [Ping timeout: 258 seconds]
enebo has joined #ruby
Xeago has quit [Remote host closed the connection]
DaniG2k has quit [Quit: leaving]
<n3b_> I have a short question. I'm a beginner and I'm trying write some code to grab part of an object, convert them to an hash an put them into a mongo database. No problem for the object, the hash, but I was wondering how to organise my code to do it. For the moment I have an initialize, a to_hash, but where I can put the "mongo insert" method into a new one?
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diego_ar has quit [Ping timeout: 245 seconds]
Aswebb_ has joined #ruby
yfeldblum has joined #ruby
lampd1 has joined #ruby
jimbach has quit [Ping timeout: 250 seconds]
moritzschaefer has joined #ruby
Hobogrammer has joined #ruby
Vile` has quit [Ping timeout: 252 seconds]
t3h_j4n170r has joined #ruby
debia has joined #ruby
<debia> in ruby erb: how to check if a variable is an array?
<debia> @var.is_array?
tier has joined #ruby
Vile` has joined #ruby
s00pcan has joined #ruby
tier has quit [Remote host closed the connection]
einarj has joined #ruby
TL has quit [Disconnected by services]
<elastik> Hello again
yfeldblum has quit [Ping timeout: 244 seconds]
<centrx> debia, @var.is_a?(Array)
TerjeLarsen has joined #ruby
tier has joined #ruby
<elastik> I need a little help. I'm trying to insert one element of an array at a time into my db.
t7y9r has joined #ruby
<elastik> Would anyone throw me a bone?
tlarevo has quit [Remote host closed the connection]
<debia> centrx: could I also write @var.is_array? (because _a is not meaningful enough to me)?
perturbation has quit [Quit: Leaving]
tlarevo has joined #ruby
jtheuer has joined #ruby
<crome> debia: it's like an english sentence: is @var a(n) array?
<centrx> debia, You can make your own #is_array? method if you wanted, you could also use @var.kind_of?(Array) if that makes more sense
<crome> >> 9.is_a?(Integer)
<eval-in__> crome => true (https://eval.in/231725)
<centrx> elastik, The INSERT string at the beginning is created with the entire ad_links array being interpolated there
danman has quit [Quit: danman]
CrazyM4n has joined #ruby
sea_local has joined #ruby
<debia> yes, this looks easier
<centrx> elastik, each miami_computer needs its own INSERT string (or use prepared statements with MySQL, but that is more complicated)
Xeago has joined #ruby
ringarin has quit [Ping timeout: 244 seconds]
danman has joined #ruby
ringarin has joined #ruby
tlarevo has quit [Ping timeout: 244 seconds]
<elastik> Is there any way you could show me an example or point me to a link or what to search?
josephndenton has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
<centrx> elastik, Note, both of these are security risks if ad_links contains unescaped user input
<centrx> elastik, Also you may want to use an ORM
jtheuer has quit [Quit: This computer has gone to sleep]
tier has quit [Remote host closed the connection]
konsolebox has joined #ruby
<elastik> centrx, thank you for the example. I am going to test it and try to wrap my head around it. For now this is a learning project. My idea is to get the very basics working first then add security etc.
arietis has joined #ruby
<elastik> I'm going to read up on ORM
<elastik> Is there a specific you had in mind? like SQLlite?
einarj has quit [Remote host closed the connection]
<centrx> elastik, Sequel and ActiveRecord are the two big Ruby ORMs now
<centrx> elastik, SQLite is a lightweight database (like MySQL but lightweight)
<centrx> (RDBMS)
danman has quit [Quit: danman]
<apeiros_> I prefer Sequel without its ORM part actually
<elastik> thank you for sharing that. reading http://en.wikipedia.org/wiki/Object-relational_mapping
warprobot has joined #ruby
tier has joined #ruby
rurban_ has left #ruby ["Leaving"]
<st0mar> another ORM: DataMapper
gsd has joined #ruby
Tranquility has joined #ruby
fantazo has joined #ruby
josephndenton has joined #ruby
nateberkopec has joined #ruby
lifenoodles has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
lifenoodles has joined #ruby
<apeiros_> st0mar: isn't that being replaced by ROM?
<havenwood> speaking of ROM, 0.4.0 is out!
Czupa has joined #ruby
kireevco has quit [Ping timeout: 250 seconds]
jaequery has joined #ruby
tobacco_joe has quit []
<arietis> hello
<arietis> is there any way to speed up ruby process?
fgo has quit [Ping timeout: 264 seconds]
<arietis> i have WEBrick executing some request, wonder if it's possible to perform its logic concurently
agrinb has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
TheNet has quit [Remote host closed the connection]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
jaequery has quit [Client Quit]
kireevco has joined #ruby
<elastik> apeiros_: & centrx: the code worked! finally got it. thank you once again.
TheNet has joined #ruby
<apeiros_> arietis: if you want performance, you don't want webrick.
warprobot has quit [Remote host closed the connection]
<apeiros_> use puma, unicorn, thin
<arietis> is unicorn ok for development?
danman has joined #ruby
MrIlyas has joined #ruby
<havenwood> arietis: yup
AmirolAh_ has quit []
danman has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 258 seconds]
rkalfane has quit [Read error: Connection reset by peer]
HFSPLUS has joined #ruby
kireevco has quit [Ping timeout: 244 seconds]
rkalfane has joined #ruby
HFSPLUS has quit [Max SendQ exceeded]
iamayam has quit [Ping timeout: 250 seconds]
tristanp has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
Czupa has quit [Quit: Wychodzi]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
iamayam has joined #ruby
danman has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
blueOxigen has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
enebo has quit [Quit: enebo]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
danman has quit [Client Quit]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
jtheuer has joined #ruby
st0mar has quit [Ping timeout: 244 seconds]
lbrf has joined #ruby
kiyote23 has joined #ruby
yfeldblum has joined #ruby
st0mar has joined #ruby
lifenoodles has quit [Ping timeout: 256 seconds]
lifenoodles has joined #ruby
lbrf has quit [Ping timeout: 240 seconds]
ringarin has quit [Quit: Leaving]
jheg has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
momomomomo has joined #ruby
pwh has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
hmsimha has quit [Ping timeout: 252 seconds]
kiyote23 has quit [Remote host closed the connection]
devdazed has quit [Quit: Computer has gone to sleep.]
kiyote23 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
klmlfl has quit [Remote host closed the connection]
kobain has quit [Read error: Connection reset by peer]
Lightsword has joined #ruby
devdazed has joined #ruby
<shevy> "0".to_i == 0.0
<shevy> 0.0.class
<shevy> hmm
<shevy> ok so Integers are also valid Floats
Lightsword has quit [Client Quit]
kiyote23 has quit [Ping timeout: 252 seconds]
<apeiros_> shevy: no. integers can be compared with floats. they are not floats.
ohaibbq has joined #ruby
CakeMeat has joined #ruby
<havenwood> >> 0.0.eql? 0
kiyote23 has joined #ruby
sud0x has joined #ruby
_ixti_ is now known as ixti
<eval-in__> havenwood => false (https://eval.in/231754)
sud0x has quit [Changing host]
sud0x has joined #ruby
sud0x has joined #ruby
_JokerDoomWork has joined #ruby
__JokerDoom has joined #ruby
<sud0x> hey guys, any tips on how to parse a multi dimensional array would be awesome https://gist.github.com/anonymous/014211b73313966c101f
timonv_ has joined #ruby
kiyote23 has quit [Remote host closed the connection]
bluOxigen has joined #ruby
<sud0x> nvm, got it!
kiyote23 has joined #ruby
<gr33n7007h> >> 0.0 == 0
<eval-in__> gr33n7007h => true (https://eval.in/231755)
<shevy> >> 0.0 - 0
<eval-in__> shevy => 0.0 (https://eval.in/231756)
JokerDoomWork has quit [Ping timeout: 244 seconds]
_JokerDoom has quit [Ping timeout: 245 seconds]
tier has quit [Remote host closed the connection]
<gr33n7007h> >> 0 ** 0.0
<eval-in__> gr33n7007h => 1.0 (https://eval.in/231757)
fgo has joined #ruby
blueOxigen has quit [Ping timeout: 240 seconds]
chinmay_dd has quit [Quit: Leaving]
anaeem1_ has joined #ruby
<shevy> >> 0 ** 1.0
<eval-in__> shevy => 0.0 (https://eval.in/231758)
kiyote23 has quit [Ping timeout: 245 seconds]
lifenoodles has quit [Ping timeout: 250 seconds]
<shevy> is 0 ** 0.0 being 1.0 really correct?
<apeiros_> use your own pry/irb please.
agrinb has joined #ruby
Xeago has joined #ruby
<gr33n7007h> yep
Xeago has quit [Remote host closed the connection]
<apeiros_> 0 ** 0 == 1 follows IEE 754
<apeiros_> *IEEE
kiyote23 has joined #ruby
<gr33n7007h> apeiros, Sorry, I get carried away :)
nobitanobi has joined #ruby
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
<shevy> cool, didn't know it was in a standard
kiyote23 has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Takle has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
lifenoodles has joined #ruby
fantazo has quit [Quit: Verlassend]
tristanp has quit [Ping timeout: 258 seconds]
MuffinPimp has quit [Quit: ZNC - http://znc.in]
timonv_ has quit [Remote host closed the connection]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<st0mar> apeiros_: ROM is not a replacement for DataMapper, it's a completely different thing
<apeiros_> st0mar: ok. I was under the impression that it was its successor.
rylev has joined #ruby
blueOxigen has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
codezomb has joined #ruby
<st0mar> I believe one of (the main?) author of DataMapper now works on ROM
nobitanobi has quit [Remote host closed the connection]
<havenwood> st0mar: seems like a replacement to me. you're not going to use DataMapper AND ROM.
bluOxigen has quit [Ping timeout: 245 seconds]
Aswebb_ has quit [Remote host closed the connection]
<st0mar> or DataMapper AND ActiveRecord?
<havenwood> well the ActiveRecord folk didn't stop working on it and start ROM
anaeem1_ has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
adriancb has joined #ruby
<st0mar> some ActiveRecord developer could start working on ROM, it's still not a successor
anaeem1_ has joined #ruby
<havenwood> DataMapper is dead, long live ROM!
<shevy> long live CDROM!
Azure has joined #ruby
<st0mar> ROM is still labeled "experimental" by the authors, maybe a little premature to bury DataMapper
* Hanmac feels so old because he still knows how to use a walkman ;P
kedibasi has left #ruby [#ruby]
shock_one has joined #ruby
adriancb has quit [Ping timeout: 256 seconds]
Soda has joined #ruby
MuffinPimp has joined #ruby
anaeem1_ has quit [Ping timeout: 252 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diego_ar has joined #ruby
fuhgeddaboudit has quit [Remote host closed the connection]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
tier has joined #ruby
adriancb has joined #ruby
jimbach has joined #ruby
jdj_dk has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
rj46 has joined #ruby
diego_ar has quit [Ping timeout: 260 seconds]
rylev has quit [Remote host closed the connection]
<rj46> hello, can I ask here about rbenv ?
<centrx> yes
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
jimbach has quit [Ping timeout: 272 seconds]
motto has joined #ruby
motto is now known as Guest19872
jaequery has joined #ruby
pwh has quit []
tier has quit [Remote host closed the connection]
tjohnson has quit [Quit: Connection closed for inactivity]
<havenwood> rj46: there's no rbenv channel
<rj46> oo great :) So I am not sure whats happening with my rbenv, on my desktop it works like a charm, but on server it has some problem with permission or paths, and I cant figure out whats wrong, $PATHS are the same, ~/.bashrc the same, chmods the same
m8 has quit [Ping timeout: 250 seconds]
<havenwood> a chruby and rvm channel, but no rbenv
<rj46> but everytime I tried run rbenv it says: bad interpreter and not permissions
lbrf has joined #ruby
crdpink2 has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
crdpink has quit [Ping timeout: 258 seconds]
st0mar has quit [Ping timeout: 250 seconds]
m8tt8 has joined #ruby
klmlfl has joined #ruby
mary5030 has joined #ruby
<rj46> it drives me crazy bash: /home/user/.rbenv/bin/rbenv: /usr/bin/env: bad interpreter: no permission
mary5030 has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
mary5030 has joined #ruby
lbrf has quit [Ping timeout: 245 seconds]
Guest19872 has quit [Ping timeout: 258 seconds]
<shevy> long live compiling from source
jdj_dk has quit [Remote host closed the connection]
<shevy> rj46 sounds like a simple fix, no? what are the permissions of the binary /usr/bin/env
<shevy> you could also hardcode the path towards your ruby directly, rather than having to rely on env, though of course this makes it less flexible. always tradeoffs
reinaldob has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<rj46> shevy: I thought that at the beginning but it has proper chmods
mollitz has joined #ruby
<shevy> what exactly are its chmod values?
<rj46> This errors shows only when I export path to .rbenv
danijoo has joined #ruby
<rj46> shevy: -rwxr-xr-x
<rj46> shevy: The same are on my desktop and everything is fine
moritzschaefer has quit [Ping timeout: 265 seconds]
mary5030 has quit [Ping timeout: 258 seconds]
ValicekB has quit []
redjack1964 has joined #ruby
<rj46> I figured out that on desktop where rbenv works $PATH has one more path, to shims, I added it manually on server
<shevy> cool I have the same permissions as that
<rj46> didnt help
<shevy> and what if you change the first line, the shebang, to your ruby ?
henesy has quit [Remote host closed the connection]
<havenwood> rj46: maybe a good opportunity to switch to chruby: https://github.com/postmodern/chruby#readme
reinaldob has quit [Ping timeout: 250 seconds]
<shevy> havenwood hehe
<shevy> rj46 or to compile from source!
<rj46> shevy: I tried change shebang direct to bash instead of env bash, didnt help
<shevy> huh
<shevy> why not
<rj46> shevy: I have rbenv from github
<shevy> you directly invoke ruby now
<shevy> so surely it must work
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ARCADIVS has joined #ruby
<rj46> shevy: sec
<shevy> do you even have a bin/ruby file at all :)
<shevy> something like this:
<shevy> ldd ruby
<shevy> linux-gate.so.1 (0xffffe000)
<shevy> libpthread.so.0 => /lib/libpthread.so.0 (0xb74e8000)
<shevy> librt.so.1 => /lib/librt.so.1 (0xb74df000)
lemur has joined #ruby
<rj46> shevy: did you want me to change .rbenv/bin/rbenv shebang ?
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adriancb has quit [Read error: Connection reset by peer]
adriancb has joined #ruby
rshetty has joined #ruby
jimbach has joined #ruby
rylev has joined #ruby
arup_r has quit [Quit: Leaving.]
adriancb has quit [Remote host closed the connection]
<shevy> just to test
<shevy> in any .rb file, change the shebang to point towards your ruby version. where is bin/ruby on your system anyway?
<rj46> the problem is that I want install ruby from rbenv
DivineEntity has quit [Quit: Lost terminal]
shock_one has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 245 seconds]
MuffinPimp has quit [Quit: ZNC - http://znc.in]
ValicekB has joined #ruby
<shevy> you don't have any working ruby on your system right now?
jimbach has quit [Ping timeout: 258 seconds]
Takle has quit [Remote host closed the connection]
<rj46> shevy: at this moment yes, but it should not be problem to rbenv
ht__th has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
jimbach has joined #ruby
lemur has quit [Read error: Connection reset by peer]
ragingcake has joined #ruby
lemur has joined #ruby
<shevy> well ok that explains why the above code can not work
Jackneill has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
jimbach has quit [Ping timeout: 245 seconds]
<rj46> shevy: damn
tristanp has joined #ruby
chipotle_ has joined #ruby
<rj46> shevy: I've recently change username for one of users on that machine
<rj46> changed*
mary5030 has joined #ruby
<rj46> I am not sure if the group is good
<rj46> ok id better check this ;p
pandaant has quit [Quit: Lost terminal]
st0mar has joined #ruby
fgo has quit [Ping timeout: 258 seconds]
CakeMeat has left #ruby [#ruby]
ragingcake has quit [Quit: ragingcake]
chipotle has quit [Ping timeout: 252 seconds]
decoponio has quit [Quit: Leaving...]
tristanp has quit [Ping timeout: 258 seconds]
<shevy> so much hassle
<shevy> cd /tmp; wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.bz2
<shevy> tar jxf ruby-2*bz2; cd ruby-2*; ./configure --prefix=/usr; make; make install
<shevy> \o/
ragingcake_ has joined #ruby
<shevy> Has anyone used mruby? Is it possible to have a completely static mruby (no dependencies on any .so)?
TheNet has quit [Quit: Leaving...]
Takle has joined #ruby
kobain has joined #ruby
Megtastique has joined #ruby
kobain has quit [Max SendQ exceeded]
_mtr has joined #ruby
livingstn has joined #ruby
livingstn has quit [Max SendQ exceeded]
devdazed has quit [Quit: Computer has gone to sleep.]
livingstn has joined #ruby
livingstn has quit [Max SendQ exceeded]
livingstn has joined #ruby
livingstn has quit [Max SendQ exceeded]
toretore has joined #ruby
DivineEntity has joined #ruby
nfk has quit [Quit: yawn]
<_mtr> part
livingstn has joined #ruby
livingstn has quit [Max SendQ exceeded]
livingstn has joined #ruby
livingstn has quit [Max SendQ exceeded]
Azure has quit [Ping timeout: 244 seconds]
kiyote23 has joined #ruby
livingstn has joined #ruby
livingstn has quit [Max SendQ exceeded]
livingstn has joined #ruby
livingstn has quit [Max SendQ exceeded]
<havenwood> shevy: otool -L /usr/local/bin/mruby #=> /usr/local/bin/mruby: /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1212.0.0)
livingstn has joined #ruby
livingstn has quit [Max SendQ exceeded]
livingstn has joined #ruby
livingstn has quit [Max SendQ exceeded]
<shevy> hmm not sure how this works from osx to linux
teddyp1cker has quit [Remote host closed the connection]
_mtr has quit [Ping timeout: 258 seconds]
teddyp1cker has joined #ruby
fabrice31 has joined #ruby
teddyp1cker has quit [Read error: No route to host]
teddyp1cker has joined #ruby
mikesplain has joined #ruby
fandi has quit [Read error: Connection reset by peer]
SCHAAP137 has quit [Quit: Leaving]
Azure has joined #ruby
_mtr has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
spastorino has joined #ruby
mikesplain has quit [Client Quit]
<sud0x> quick question guys, I have a string being split by comma (.split(',')) and going into an array. I want to split it up into two arrays with a colon :. My string will be something like a, b, c:d,e,f would it be possible to split this into two arrays by the colon delimeter?
mbff has joined #ruby
klmlfl has quit [Remote host closed the connection]
<mbff> Hello! I have a ruby file that is getting to large to handle. Is there a way to split up my code into different files and call them from a main file without having to change how my code is structured?
jrunning_ is now known as jrunning
<centrx> sud0x, a.split(':').map { |x| x.split(',') } ?
kiyote23 has quit [Remote host closed the connection]
spastorino has quit [Client Quit]
spastorino_ has joined #ruby
rylev has quit [Remote host closed the connection]
<apeiros_> mbff: see require and require_relative
<apeiros_> mbff: but if your file is getting too large, your structure will be next soon
moritzschaefer has joined #ruby
<mbff> alright thanks
kiyote23 has joined #ruby
kiyote23 has quit [Remote host closed the connection]
teddyp1cker has quit [Remote host closed the connection]
mollitz has quit [Ping timeout: 252 seconds]
teddyp1cker has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<sud0x> centrx: cool I'll try that
_mtr has quit [Ping timeout: 255 seconds]
Soda has quit [Remote host closed the connection]
ta has joined #ruby
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
teddyp1cker has quit [Ping timeout: 256 seconds]
lbrf has joined #ruby
Sawbones has joined #ruby
Sawbones has quit [Remote host closed the connection]
<apeiros_> =(
<apeiros_> keyword args are ~19x slower than positional arguments in ruby 2.1.5
lbrf has quit [Ping timeout: 258 seconds]
jtheuer has quit [Quit: This computer has gone to sleep]
shock_one has joined #ruby
moritzschaefer has quit [Remote host closed the connection]
ARCADIVS has quit [Quit: ARCADIVS]
stormbytes has joined #ruby
hiyosi has joined #ruby
_JokerDoomWork has quit [Ping timeout: 250 seconds]
__JokerDoom has quit [Ping timeout: 264 seconds]
shock_one has quit [Remote host closed the connection]
KLVTZ has joined #ruby
ikaros has quit [Quit: Ex-Chat]
<momomomomo> I'm so amazingly lazy when it comes to my personal blog
ARCADIVS has joined #ruby
<momomomomo> hacked together a simple solution for a "more posts" button in my nav with jekyll/js
Stichoza has joined #ruby
Stalkr_ has joined #ruby
<soahccc> momomomomo: I know what you mean, I don't even have one :D
<KLVTZ> Maybe todays the day I might jekyll...
<momomomomo> brb
momomomomo has quit [Quit: momomomomo]
agrinb has joined #ruby
dts|pokeball has quit [Ping timeout: 260 seconds]
tier has joined #ruby
chishiki has quit [Quit: WeeChat 1.0.1]
boombadaroomba has joined #ruby
mbff has quit [Remote host closed the connection]
_mtr has joined #ruby
chishiki has joined #ruby
MuffinPimp has joined #ruby
Joufflu has joined #ruby
Stichoza has quit [Quit: Be back later ...]
Stichoza has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
ta has quit [Remote host closed the connection]
boombadaroomba has quit [Ping timeout: 244 seconds]
ta has joined #ruby
Lightsword has joined #ruby
pwh has joined #ruby
kiyote23 has joined #ruby
tkuchiki has joined #ruby
tier has quit [Remote host closed the connection]
JokerDoom has joined #ruby
Channel6 has quit [Quit: Leaving]
fgo has joined #ruby
Sawbones has joined #ruby
spastorino_ is now known as spastorino
rkalfane has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
tristanp has joined #ruby
Danishman has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
rdark has quit [Quit: leaving]
DLSteve has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
Sawbones has quit [Ping timeout: 255 seconds]
ragingcake_ has quit [Quit: ragingcake_]
claymore has joined #ruby
kiyote23 has quit [Remote host closed the connection]
exadeci has quit [Quit: Connection closed for inactivity]
st0mar has quit [Quit: quit]
Rollabunna has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby
JokerDoom has quit [Ping timeout: 245 seconds]
<apeiros_> nice. keyword args overhead for 15 args in ruby 2.1: 75x. In ruby 2.2: 1.9x
<apeiros_> that's a 40x speedup. amazing.
kobain has joined #ruby
claymore has quit [Quit: Leaving]
giuseppesolinas has joined #ruby
JokerDoom has joined #ruby
stormbytes has left #ruby ["Textual IRC Client: www.textualapp.com"]
Rollabunna has quit [Ping timeout: 265 seconds]
kylekersey has joined #ruby
<sud0x> centrx: that worked thank you
_mtr has quit [Disconnected by services]
giuseppesolinas has quit [Client Quit]
<sud0x> one more question guys, how would I be able to remove the quotes from a string in an array? i.e. i have ["a", "b", "c"] but I want to make it [a,b,c]?
<Radar> sud0x: .inspect
shock_one has joined #ruby
shock_one has quit [Remote host closed the connection]
<Radar> Oops, not in recent versions of Ruby :P
<Radar> sud0x: why do you want that output?
diego_ar has joined #ruby
zemiudo has joined #ruby
tier has joined #ruby
<sud0x> hmm that doesn't work Radar
<Radar> '[' + ['a','b','c'].join(',') + ']'
<Radar> sud0x: yes, that is why I said "oops"
<sud0x> I have the contents in a file, when I pull them from the file they're getting pulled as a string
<sud0x> I need to put them into an array
<Radar> sud0x: what contents?
<Radar> How are you pulling them?
<Radar> Why do they need to be an arrayu?
<Radar> -u
<sud0x> It has to be an array, I am pulling them from a file using readlines and doing stripping of newlines and all
<sud0x> I just have to get rid of the quotes
tier has quit [Remote host closed the connection]
<sud0x> for their values
<sud0x> but I don't understand the answer
<Radar> sud0x: Can you show us this file so that we can understand?
<sud0x> I can give you a sample of everything
tjohnson has joined #ruby
diego_ar has quit [Ping timeout: 260 seconds]
jaequery has joined #ruby
atomical has quit [Read error: Connection reset by peer]
jheg has quit [Quit: jheg]
* Radar gives up because sud0x is providing fake values
* Radar is getting tired of helping people on IRC with fake problems
<shevy> hahaha
<debia> so I add some control structures to an erb template
<shevy> sud0x he says you are a fake!
<debia> however, this introduces some unintended whitespace/new lines
<debia> can I avoid this for a line?
<sud0x> shevy: typical irc behavior
_mtr has joined #ruby
<sud0x> does anyone care to help?
giuseppesolinas has joined #ruby
<wasamasa> sud0x: your description sounds like you don't understand what representations are
<Radar> sud0x: Yes I care to help but only with real problems.
<Radar> And real code, and real files.
<Radar> If you give me this fake bullshit then I'm going to be solving a COMPLETELY DIFFERENT problem to the one you're solving.
<wasamasa> <sud0x> one more question guys, how would I be able to remove the quotes from a string in an array? i.e. i have ["a", "b", "c"] but I want to make it [a,b,c]?
pwh has quit []
atomical has joined #ruby
<wasamasa> ruby puts quotes around strings to tell you they're strings
<sud0x> Radar: My file's contents are none of your concern. If you want to help, help -- don't cry like a child.
<Radar> sud0x: I can't help you if I don't have the real information that I need to help you.
<debia> shevy: hi
<momomomomo> sud0x: !fake
<helpa> sud0x: Please do not use fake values, as they can be confusing or misleading. Sometimes both.
<debia> I get this: <% if @value and not @value.empty? -%>
<Radar> sud0x: Saying that I am crying like a child is a personal attack and pretty low imo
<debia> Detail: undefined method `empty?' for true:TrueClass
<sud0x> wasamasa: hmm, care to elborate?
yourabi has joined #ruby
<debia> because value can be a boolean
<wasamasa> sud0x: no, that's a pretty basic thing to know as a programmer
<debia> how to use an empty function which does not whine on a boolean?
<debia> anyone?
<sud0x> wasamasa: gotcha, thanks
_mtr has quit [Client Quit]
<wasamasa> sud0x: just because irb displays strings as some glyphs with quotes around them doesn't mean they contain quotes
last_staff has quit [Quit: goin' to be- zzZZzzzz....]
<soahccc> what about %w[a b c d e] ?
<debia> anyone? :D
<momomomomo> debia: !beg
<debia> empty? which doesn't whine on boolean?
<momomomomo> I can never remmeber that command
<debia> !desperated
<debia> !depressed
<debia> !sad
<momomomomo> !rule10
<helpa> Do not beg / plead with people to help you. This includes asking questions like "Any ideas?" after posting your original question.
<centrx> debia, ActiveSupport/Rails has #blank? you can copy/use that
<shevy> >> %w[a b c d e]
<eval-in__> shevy => ["a", "b", "c", "d", "e"] (https://eval.in/231784)
<shevy> all ""
<sud0x> Radar: say what you want. I gave you real code, with sample values. I am not going to write the sentences that I have in my file for you or the www
<momomomomo> debia: !ask
<helpa> debia: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
<debia> hm
<soahccc> momomomomo: !anyone
<helpa> momomomomo: Nope. No one. Ever. In the history of the world.
<debia> !helpa
<Radar> !unworthy
<helpa> You are not worthy of this bot!
<debia> centrx: but I can't use native ruby functions?
<shevy> god guys
<debia> lol
<shevy> you are bot milking
ta has quit [Remote host closed the connection]
<debia> the bot feels purposeful now
<wasamasa> lol
<soahccc> debia: look at how blank? is implemented, it's quite simple but useful
_JokerDoom has joined #ruby
<centrx> debia, Well your design looks odd, may be a better way to do it in native Ruby
Mothore_____ has quit [Quit: Be back later ...]
<centrx> debia, if @value and not @value.empty? yet "true" is an accepted value, what is your real intention?
JokerDoom has quit [Ping timeout: 265 seconds]
<sud0x> wasamasa: the values are coming from a file (string). I think I'm understanding their representation -- but thanks. I actually figured it out while trying to explain it
<debia> centrx: to catch undefined, null
<debia> right, false wouldn't pass through
<wasamasa> sud0x: rubberduck debugging ftw :P
<debia> damn damn
<sud0x> wasamasa: :P
<centrx> debia, Then if @value is all you need, @value.empty? is for arrays
<wasamasa> sud0x: also, there's some stuff in ruby's stdlib (and external libraries) that applies magic
<wasamasa> sud0x: like, the csv library that sees quoted values and stripes the quotes away automatically
<debia> centrx: ok, but would @value let a boolean false still pass?
<debia> because it should
<sud0x> hmm interesting let me check that out
<sud0x> thanks wasamasa
Lightsword has quit [Quit: Lightsword]
akaiiro has joined #ruby
<centrx> >> @value = false; @value ? 'truthy' : 'falsey'
<eval-in__> centrx => "falsey" (https://eval.in/231785)
sud0x has quit [Quit: Page closed]
Lightsword has joined #ruby
<wasamasa> *strips
<debia> ok, it still let null values pass
<debia> I don't want null
momomomomo has quit [Quit: momomomomo]
Lightsword has quit [Client Quit]
JokerDoom has joined #ruby
sinkensabe has joined #ruby
Ulrike_Rayne is now known as ulisaurus
charliesome has joined #ruby
_JokerDoom has quit [Ping timeout: 265 seconds]
<centrx> >> @value = nil; @value ? 'truthy' : 'falsey'
<eval-in__> centrx => "falsey" (https://eval.in/231786)
Dopagod has quit [Remote host closed the connection]
<F__i__L> Radar which oauth2 ruby gem have you written ?
<debia> hm,
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<centrx> debia, In Ruby, nil and false are falsy, everything else is truthy
<centrx> debia, undefined @instance_variable evaluates to nil
TerjeLarsen has quit [Ping timeout: 244 seconds]
_mtr has joined #ruby
<gr33n7007h> to get binary value greater than 255 do you pack with 'S' ?
_mtr has quit [Client Quit]
Mothore_____ has joined #ruby
Sawbones has joined #ruby
lbrf has joined #ruby
lbrf has quit [Client Quit]
JokerDoom has quit [Ping timeout: 265 seconds]
Sawbones has quit [Client Quit]
ta has joined #ruby
Sawbones has joined #ruby
sinkensabe has quit [Ping timeout: 264 seconds]
<eam> gr33n7007h: what do you mean binary value?
_mtr has joined #ruby
_mtr has quit [Client Quit]
_mtr has joined #ruby
_mtr has quit [Client Quit]
<gr33n7007h> e.g [255].pack('C').unpack('b*') after the 255 you use 'S' ?
<gr33n7007h> eam, ^^
_mtr has joined #ruby
_mtr has quit [Client Quit]
JokerDoom has joined #ruby
workmad3 has joined #ruby
<eam> gr33n7007h: 'C' is an unsigned octet (char)
danman has joined #ruby
kylekersey has quit [Quit: leaving]
<eam> S is a short/16bit
<eam> L is long/32bit
<eam> etc
_mtr has joined #ruby
<gr33n7007h> eam, 'Q' is long long/64bit?
<eam> yes
<eam> you can pick any size you like, of course the integer inputs must fit
Mothore_____ has quit [Quit: Be back later ...]
mary5030 has quit [Remote host closed the connection]
<eam> I believe you get value % sizeof(type)
mary5030 has joined #ruby
kiyote23 has joined #ruby
<gr33n7007h> oh, one question packing with > means big endian right?
agrinb has joined #ruby
<eam> afaik yes
<gr33n7007h> eam, cool thanks :)
jimbach has joined #ruby
Megtastique has quit []
jimbach has quit [Remote host closed the connection]
_mtr has quit [Client Quit]
pwh has joined #ruby
_mtr has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
josephndenton has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 258 seconds]
zemiudo has quit [Quit: Leaving]
marr has joined #ruby
josephndenton has joined #ruby
oleo is now known as Guest32365
oleo__ has joined #ruby
charliesome has quit [Quit: zzz]
_JokerDoom has joined #ruby
Lightsword has joined #ruby
charliesome has joined #ruby
pwh has quit []
Guest32365 has quit [Ping timeout: 244 seconds]
Lightsword has quit [Client Quit]
duncannz has joined #ruby
tristanp has joined #ruby
<redjack1964> hey guys, how can i define a destructor in a ruby class?
dts|pokeball has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
<redjack1964> actually, i've a class variable which is incresead each times this one is iterated
<redjack1964> and i would like to decrease it each times i remove an object of this class
__JokerDoom has joined #ruby
JokerDoom has quit [Ping timeout: 244 seconds]
rylev_ has joined #ruby
fgo has joined #ruby
rikai has quit [Ping timeout: 272 seconds]
JokerDoom has joined #ruby
rylev has quit [Ping timeout: 260 seconds]
_JokerDoom has quit [Ping timeout: 255 seconds]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
rikai has joined #ruby
maletor has joined #ruby
__JokerDoom has quit [Ping timeout: 244 seconds]
fgo has quit [Ping timeout: 250 seconds]
TgMts has joined #ruby
_JokerDoom has joined #ruby
kiyote23 has quit [Remote host closed the connection]
Mothore_____ has joined #ruby
ta_ has joined #ruby
_mtr has quit [Ping timeout: 244 seconds]
__JokerDoom has joined #ruby
gtrak has joined #ruby
ta has quit [Ping timeout: 260 seconds]
fabrice31 has joined #ruby
JokerDoom has quit [Ping timeout: 265 seconds]
__JokerDoom has quit [Read error: Connection reset by peer]
__JokerDoom has joined #ruby
Lightsword has joined #ruby
Lightsword has quit [Client Quit]
_JokerDoom has quit [Ping timeout: 264 seconds]
kirun has quit [Quit: Client exiting]
nobitanobi has joined #ruby
Sawbones has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<gr33n7007h> eam, Does this look right to you: https://gist.github.com/anonymous/329e81228fcc91c8056c
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
ghr has joined #ruby
_mtr has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
_mtr has quit [Client Quit]
<centrx> redjack1964, I would do it explicitly, but you can use http://www.ruby-doc.org/core-2.1.5/ObjectSpace.html#method-c-define_finalizer to do it automatically
evanjs has joined #ruby
Areessell has joined #ruby
diego_ar has joined #ruby
klmlfl has joined #ruby
Tranquility has quit [Quit: Connection closed for inactivity]
ta has joined #ruby
iamjarvo has quit [Client Quit]
ta_ has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
CpuID has joined #ruby
diego_ar has quit [Ping timeout: 250 seconds]
klmlfl has quit [Ping timeout: 255 seconds]
CpuID2 has joined #ruby
rylev_ has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
_mtr has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
diego_ar has joined #ruby
jimbach has joined #ruby
CpuID has quit [Ping timeout: 255 seconds]
aspires has joined #ruby
n008f4g_ has joined #ruby
ulisaurus is now known as Ulrike
Ulrike is now known as Ulrike_Rayne
JokerDoom has joined #ruby
__JokerDoom has quit [Ping timeout: 260 seconds]
mengu has quit [Remote host closed the connection]
klmlfl has joined #ruby
teddyp1cker has joined #ruby
_mtr has quit [Quit: leaving]
JBreit has joined #ruby
_mtr has joined #ruby
_mtr has quit [Client Quit]
sinkensabe has joined #ruby
_mtr has joined #ruby
teddyp1cker has quit [Ping timeout: 244 seconds]
Aswebb_ has joined #ruby
momomomomo has joined #ruby
diego_ar has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby
aspires has quit []
JokerDoom has quit [Ping timeout: 244 seconds]
graydot has joined #ruby
evanjs has quit [Remote host closed the connection]
graydot has quit [Client Quit]
_ixti_ has joined #ruby
JokerDoom has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
ixti has quit [Ping timeout: 264 seconds]
tristanp has quit [Remote host closed the connection]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gtrak has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
Mothore_____ has quit [Quit: Be back later ...]
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
aspires has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
duncannz has quit [Ping timeout: 250 seconds]
diego_ar has joined #ruby
JokerDoom has quit [Ping timeout: 272 seconds]
adriancb has joined #ruby
renderful has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
_1_niceguy2 has joined #ruby
JBreit has left #ruby ["Leaving"]
<_1_niceguy2> sup
adriancb has quit [Ping timeout: 258 seconds]
dblessing has joined #ruby
KnownSyntax has joined #ruby
renderful has quit [Ping timeout: 264 seconds]