kirun has quit [Remote host closed the connection]
<|meta>
I've read a lot of your logs
tristanp has joined #ruby
<|meta>
I'm fairly certain you would *literally* cry or something if I shared my opinions on the worth of a conversation with you. I'll spare you the trauma
<Arcaire>
lmao
<Radar>
!rude |meta
<Radar>
Don't need to.
<Arcaire>
|meta: You will feel at home here: reddit.com/r/iamverysmart
diegoaguilar has joined #ruby
der-landgraf has joined #ruby
nankyokusei has joined #ruby
jancel has joined #ruby
madgen has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
RegulationD has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moon_man_420 has joined #ruby
aupadhye has joined #ruby
aupadhye has quit [Remote host closed the connection]
karmatr0n has joined #ruby
roamingdog has quit [Remote host closed the connection]
marr has quit [Remote host closed the connection]
aupadhye has joined #ruby
hightower3 has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
tristanp_ has joined #ruby
arlek has joined #ruby
<benzrf>
|meta: loooooooooooooooooooool
nando293921 has quit [Quit: Lost terminal]
trista___ has joined #ruby
gilfoyle has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
tristanp has quit [Ping timeout: 260 seconds]
sarkis has joined #ruby
<sarkis>
hey all - so what do you all use for production ruby apps? brightbox ruby repos?
karmatr0n has quit [Ping timeout: 250 seconds]
<sarkis>
we've been using rbenv - sick of compiling rubies during provisioning/upgrading to new version of ruby :9
Xeago has joined #ruby
<sarkis>
curious how "prod ready" those brightbox debs ar
allcentury has quit [Ping timeout: 272 seconds]
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
gilfoyle has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
trista___ has quit [Ping timeout: 252 seconds]
jancel has quit [Remote host closed the connection]
tristanp_ has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
tristanp has quit [Ping timeout: 260 seconds]
nando293921 has joined #ruby
bob434 has joined #ruby
nettoweb has joined #ruby
bob434 has quit [Client Quit]
<von-strauss>
Radar, ok
tristanp has joined #ruby
<von-strauss>
jesus
<von-strauss>
it costs way too much
tristanp_ has quit [Read error: Connection reset by peer]
<von-strauss>
something tells me i shouldn't be developing on a debian distro
<von-strauss>
Nawn, yeah i'm going to end up using this
elifoster has quit [Ping timeout: 276 seconds]
bob434 has joined #ruby
<shevy>
you are still on debian!
<shevy>
though, if you can get ruby to work, it should not be a huch hassle anymore really
gilfoyle has joined #ruby
<von-strauss>
hayden@mint ~/new_project $ bin/rails server
<von-strauss>
bash: bin/rails: No such file or directory
<von-strauss>
ruby works fine in general but can't get rails to work. what distro do you recommend?
<Nawn>
I use ubuntu just fine :o
<von-strauss>
hayden@mint ~ $ rails -v
<von-strauss>
Rails 3.2.16
<Arcaire>
wat
<Radar>
von-strauss: Yeah, so Rails 3.2.16 didn't have a bin/rails directory.
<Nawn>
Why not use 4.x.x?
<Radar>
?rails
symm- has quit [Ping timeout: 258 seconds]
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<von-strauss>
?sorry
<ruby[bot]>
von-strauss: I don't know anything about sorry
gilfoyle has quit [Ping timeout: 272 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
ssiris has joined #ruby
dhk has quit [Read error: Connection reset by peer]
dhk has joined #ruby
<Nawn>
ls
<Nawn>
woops, wrong buffer haha
moon_man_420 has quit [Ping timeout: 250 seconds]
<von-strauss>
ls
WebDawg has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cheerio]
Nawn has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
WebDawg has joined #ruby
dhk has quit [Read error: Connection reset by peer]
dhk has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
Rodya_ has quit [Remote host closed the connection]
smathy has joined #ruby
elementaru has quit [Remote host closed the connection]
maletor2 has joined #ruby
Ebok has quit [Read error: No route to host]
roamingdog has joined #ruby
Ebok has joined #ruby
Rodya_ has joined #ruby
maletor2 has quit [Ping timeout: 276 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Ping timeout: 258 seconds]
tristanp has quit [Ping timeout: 260 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tristanp has joined #ruby
Yzguy has joined #ruby
arlek has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
wetriner has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
tristanp has joined #ruby
bravowhiskey has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 244 seconds]
karmatr0n has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
Yiota has joined #ruby
tildes_ has quit [Ping timeout: 276 seconds]
karmatr0n has quit [Ping timeout: 258 seconds]
sdothum has joined #ruby
mattwashere has quit [Remote host closed the connection]
shakes has joined #ruby
duckpuppy has joined #ruby
tmtwd has joined #ruby
dar123 has joined #ruby
mattwashere has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
Devalo has joined #ruby
m_antis has joined #ruby
houhoulis has quit [Remote host closed the connection]
tristanp_ has joined #ruby
blaxter has quit [Quit: KTHXBYE]
Devalo has quit [Ping timeout: 260 seconds]
yqt has quit [Ping timeout: 244 seconds]
konsolebox has joined #ruby
trista___ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
konsolebox has quit [Max SendQ exceeded]
allcentury has joined #ruby
konsolebox has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
wetriner has left #ruby ["Leaving"]
Rodya_ has quit [Remote host closed the connection]
tristanp_ has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
tristanp_ has joined #ruby
trista___ has quit [Ping timeout: 252 seconds]
paradisaeidae_ has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
davedev2_ has quit []
tristanp has quit [Ping timeout: 252 seconds]
lightt has joined #ruby
<paradisaeidae_>
So I've moved my previous ~/.e dir aside, new one is created on login, same issue with sound.
<paradisaeidae_>
So must be a pulse config?
mattwashere has quit [Remote host closed the connection]
Yzguy has quit [Quit: Zzz...]
maletor2 has joined #ruby
mattwashere has joined #ruby
arlek has joined #ruby
<lightt>
im new to programming should i learn Ruby first or Python
<lightt>
or both at once
<paradisaeidae_>
good question...
<paradisaeidae_>
For the log term, reading your own code in Ruby is more bearable than any previous language I've used.
<paradisaeidae_>
... I've used around twenty by now.
<lightt>
:)
<paradisaeidae_>
SO I stick to it, not exposed myself to much python.
<paradisaeidae_>
Though when I have to read some python, usually it's understandable.
maletor2 has quit [Ping timeout: 244 seconds]
nando293921 has quit [Ping timeout: 260 seconds]
<lightt>
thanks for your answer
magikid has joined #ruby
Madplatypus has joined #ruby
mattwashere has quit [Remote host closed the connection]
bravowhiskey has quit [Remote host closed the connection]
tristanp has joined #ruby
phredus__ has joined #ruby
mattwashere has joined #ruby
nankyokusei has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
ssiris has quit [Ping timeout: 272 seconds]
tvon has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
Contigi has quit [Quit: Leaving]
m_antis has quit [Ping timeout: 240 seconds]
Yzguy has joined #ruby
Alazoral has quit [Ping timeout: 250 seconds]
threh has joined #ruby
tristanp has joined #ruby
karmatr0n has joined #ruby
mattwashere has quit [Remote host closed the connection]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karmatr0n has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160511223818]]
gusrub has quit [Ping timeout: 250 seconds]
paradisaeidae has joined #ruby
M570 has joined #ruby
jaiks1 has quit [Ping timeout: 272 seconds]
shakes has quit [Quit: Leaving]
tristanp has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tristanp has joined #ruby
jaguarmagenta has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
threh has quit [Ping timeout: 250 seconds]
magikid has quit [Quit: Leaving.]
Yzguy has quit [Quit: Zzz...]
mjuszczak has quit []
hutch34 has joined #ruby
Nawn has joined #ruby
Nawn has quit [Remote host closed the connection]
jaiks1 has joined #ruby
roamingdog has quit [Remote host closed the connection]
allcentury has joined #ruby
hutch34 has quit [Ping timeout: 244 seconds]
wnd_ has joined #ruby
robbyoconnor has quit [Ping timeout: 244 seconds]
wnd has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
Alazoral has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
arooni has joined #ruby
allcentury has quit [Ping timeout: 276 seconds]
<arooni>
hey anyone here use rvm with fish ? i'm having trouble getting it installed correctly i keep seeing, "Warning! PATH is not properly set up, '/home/david/.rvm/gems/ruby-2.3.0/bin' is not at first place" ... even though ive installed fish functions as instructed
braincrash has quit [Quit: bye bye]
tristanp has joined #ruby
<sarkis>
lightt: generally you will get more help with ruby and there are more resources imo
tristanp_ has quit [Read error: Connection reset by peer]
<sarkis>
i've used both languages now and prefer ruby ... whereas earlier in my career preferred python
<sarkis>
can't go wrong with either though.. both great first options
darkxploit has quit [Quit: Leaving]
tristanp_ has joined #ruby
wnd_ is now known as wnd
arescorpio has joined #ruby
grios has quit [Ping timeout: 240 seconds]
|meta has quit [Quit: Connection closed for inactivity]
tristanp has quit [Ping timeout: 252 seconds]
braincrash has joined #ruby
braincrash is now known as braincras
maletor2 has joined #ruby
lightt has quit [Remote host closed the connection]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has quit [Quit: WeeChat 1.4]
Vingador has joined #ruby
maletor2 has quit [Ping timeout: 244 seconds]
k3rn31 has joined #ruby
aries_liuxueyang has quit [Read error: Connection reset by peer]
aries_liuxueyang has joined #ruby
nettoweb has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
c355e3b has quit [Quit: Connection closed for inactivity]
k3rn31 has quit [Quit: Computer has gone to sleep.]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160511223818]]
lxsameer has joined #ruby
jenrzzz has joined #ruby
roamingdog has quit [Remote host closed the connection]
bob434 has joined #ruby
arlek has quit [Ping timeout: 260 seconds]
mloy has joined #ruby
chip_ has quit [Ping timeout: 244 seconds]
safe has joined #ruby
allcentury has joined #ruby
northfurr has joined #ruby
roamingdog has joined #ruby
tie has joined #ruby
paradisaeidae has joined #ruby
<tie>
is there a binary to string and string to binary call in ruby?
tristanp has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
tristanp has joined #ruby
mattwashere has quit [Ping timeout: 276 seconds]
xlegoman has joined #ruby
northfurr has quit [Quit: northfurr]
roamingdog has quit [Remote host closed the connection]
Sammichmaker has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lightt has joined #ruby
kareeoleez has joined #ruby
YaknotiS has quit [Ping timeout: 272 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
maletor2 has joined #ruby
tie has quit [Ping timeout: 250 seconds]
guardianJ has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
dimasg has joined #ruby
YaknotiS has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
maletor2 has quit [Ping timeout: 276 seconds]
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
jaguarma_ has joined #ruby
tristanp_ has joined #ruby
nankyokusei has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
CorOne has joined #ruby
roamingdog has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
northfurr has joined #ruby
Corrosive_ has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
<Radar>
I'm generating a CSV using CSV.generate, but it's a few hundred thousand lines of CSV data so that leads to memory bloat. Is there a recommended way to kind of write this file in chunks?
pawnbox has quit [Remote host closed the connection]
tristanp_ has quit [Ping timeout: 260 seconds]
<Radar>
Maybe CSV.open might be what I want.
k3rn31 has joined #ruby
tristanp_ has joined #ruby
<Arcaire>
Radar: probably open with append mode, write in 4096kb chunks
Sammichmaker has joined #ruby
JoshGlzBrk has joined #ruby
<Arcaire>
i guess that depends on the length of each line tho actually, pick a number :^)
<Arcaire>
does it really matter though? it'll be gc'd after a couple seconds
karmatr0n has joined #ruby
tax has joined #ruby
<Arcaire>
oh neat i just found a typo in the ruby docs while looking at this
ramfjord has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
dhk has quit [Quit: Leaving]
karmatr0n has quit [Ping timeout: 260 seconds]
d0lph1n98 has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
mikecmpbll has joined #ruby
allcentury has joined #ruby
Devalo has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
Devalo has quit [Remote host closed the connection]
bob434 has joined #ruby
allcentury has quit [Ping timeout: 276 seconds]
roamingdog has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dar123 has joined #ruby
roamingdog has joined #ruby
tie has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nando293921 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
armyriad has joined #ruby
armyriad has quit [Max SendQ exceeded]
<tie>
Is there a limit to how many datamember function calls you can make on one line? like 'what = test[0].to_i.to_s(2)'
ur5us has quit [Remote host closed the connection]
<Radar>
no, you can chain as many as you like
bob434 has quit [Quit: This computer has gone to sleep]
<tie>
Great, i know in Scheme theres a limit of 4-5 but i didnt know if my code had a bug or if it was a limit in the language.
<apeiros>
you might be limited by your OS' max file size ;-p
Vingador has quit [Ping timeout: 252 seconds]
<apeiros>
now I actually wonder whether ruby has limits on method name size
<tie>
Alright, if i need to .upcase.downcase.upcase 4.2 million times, im pretty sure the problem isnt with the code...
<apeiros>
hm, seems to be the same as string-length, and since stringlength is a long, that limit is pretty high
mleung has joined #ruby
tildes has joined #ruby
<Arcaire>
upon trying, i've crashed my text editor
<tie>
I beginner Ruby programmer has broken Ruby. I feel pretty accomplished.
<tie>
a*
roamingdog has quit [Remote host closed the connection]
tristanp_ has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
tristanp has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
<apeiros>
Arcaire: achievement unlocked? :D
* apeiros
off now, bye :)
<Arcaire>
apeiros: it also crashed nano, and vim is struggling
<tie>
test = "10"
<tie>
print test.to_i.to_s(10)
<tie>
I'm tying to convert 10 (binary) to '2' decimal. But its converting it to 10. What would you recommend I change?
<Arcaire>
λ ruby x.rb
<Arcaire>
x.rb: stack level too deep (SystemStackError)
thejamespinto has quit [Ping timeout: 258 seconds]
kareeoleez has quit [Remote host closed the connection]
craigp has joined #ruby
maletor2 has joined #ruby
tristanp has joined #ruby
slackbotgz has joined #ruby
von-strauss has quit [Ping timeout: 244 seconds]
lictor36 has quit [Quit: lictor36]
maletor2 has quit [Ping timeout: 244 seconds]
Devalo has joined #ruby
arooni has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bob434 has joined #ruby
roamingdog has joined #ruby
mloy has quit [Quit: Leaving]
northfurr has quit [Quit: northfurr]
ur5us has joined #ruby
threh has joined #ruby
tmtwd has joined #ruby
RegulationD has joined #ruby
<tie>
I'm starting to love Ruby more and more. I used C++ for 6 months and the algorithm i wrote took 226 lines and 2 days to write. In four hours I've been able to write the same algorithm in Ruby in 108 lines...
<tie>
Go functional languages :3
Akagi201 has joined #ruby
<tie>
I've only been doing ruby for 13 hours.
d0lph1n98 has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
jancel has joined #ruby
dkam has quit [Quit: Be back later ...]
bobbycvi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160511223818]]
karmatr0n has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
pawnbox_ has joined #ruby
jancel has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
karmatr0n has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
sarkis has quit [Ping timeout: 276 seconds]
tristanp has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
gilfoyle has joined #ruby
northfurr has joined #ruby
dimasg has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
tristanp_ has joined #ruby
duncannz has joined #ruby
arescorpio has quit [Quit: Leaving.]
tie has quit [Ping timeout: 250 seconds]
gilfoyle has quit [Ping timeout: 240 seconds]
moeabdol has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
dar123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agit0 has quit [Quit: zzzZZZ….]
lxsameer has quit [Quit: WeeChat 1.5]
ur5us has joined #ruby
duckpuppy has quit [Ping timeout: 272 seconds]
slackbotgz has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
last_staff has joined #ruby
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 258 seconds]
ta_ has joined #ruby
aufi has joined #ruby
djbkd has joined #ruby
threh has quit [Ping timeout: 258 seconds]
Ebok has quit [Quit: Leaving]
dionysus69 has joined #ruby
M570` has joined #ruby
djbkd has quit [Remote host closed the connection]
M570 has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
aganov has joined #ruby
kareeoleez has joined #ruby
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
Macaveli has joined #ruby
n1x-nz has joined #ruby
roamingdog has quit [Remote host closed the connection]
allcentury has joined #ruby
goeast has joined #ruby
k0n has joined #ruby
<k0n>
how do we view the channel's owner?
tristanp has joined #ruby
<jhass>
k0n: /msg ChanServ ACCESS #channel LIST
<jhass>
what's the matter?
QpQ4 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
<k0n>
thank you jhass
maletor2 has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
<Radar>
:bike:
pnbeast has quit [Quit: leaving]
<Radar>
You saw nothing.
<k0n>
i don't like that there are founders that are mean
trista___ has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
<Arcaire>
what
<jhass>
in #ruby?
tax has quit [Ping timeout: 240 seconds]
<k0n>
no in #css
<jhass>
ah well
<k0n>
you guys seem nice
agit0 has joined #ruby
<Arcaire>
oh lol
<jhass>
?offtopic ;)
<ruby[bot]>
jhass: I don't see no ;), whom should I tell about offtopic?
<Arcaire>
i was gonna say
<jhass>
?offtopic
<ruby[bot]>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<jhass>
:)
<Arcaire>
#ruby is almost as safe a space as #node
maletor2 has quit [Ping timeout: 240 seconds]
<k0n>
what is a good route for a self-taught rubyist
<k0n>
in terms of being able to find a job without a college education
<k0n>
and learning rub
<k0n>
ruby
tristanp_ has quit [Ping timeout: 252 seconds]
konsolebox has quit [Quit: Leaving]
uncertainty has joined #ruby
tristanp has joined #ruby
solars has joined #ruby
roshanavand has joined #ruby
<mikecmpbll>
k0n : learn it, make some stuff that demonstrates to employers you're proficient.
ramfjord has quit [Ping timeout: 240 seconds]
<k0n>
what kind of stuff should you make?
<Arcaire>
Things you're interested in.
<mikecmpbll>
whatever takes your fancy, go wild.
<Arcaire>
I'm building a GitHub clone for BitKeeper, for instance.
trista___ has quit [Ping timeout: 252 seconds]
<mikecmpbll>
i like horse racing, so i made a system that predicts winners of horse races.
Contigi has joined #ruby
<Arcaire>
Does it use LSTM?
<mikecmpbll>
'fraid not :)
<Arcaire>
or any other form of neural network, but LSTM would be the best for such discrete data
nankyokusei has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
<mikecmpbll>
no neural network at all, atm.
uncertainty has quit [Ping timeout: 240 seconds]
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
fenre has joined #ruby
tax has joined #ruby
ur5us has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 244 seconds]
LoneHermit has quit [Remote host closed the connection]
uncertainty has joined #ruby
tristanp has joined #ruby
fenre has quit [Remote host closed the connection]
dkam has joined #ruby
raeoks has joined #ruby
fenre has joined #ruby
grassass has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
tax has quit [Ping timeout: 250 seconds]
tristanp_ has joined #ruby
karmatr0n has joined #ruby
jaguarma_ has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 252 seconds]
tildes has joined #ruby
karmatr0n has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
User458764 has joined #ruby
dkam has quit [Ping timeout: 246 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hanmac>
mikecmpbll: wait until your system does tell you the wrong horses and then does use your money to bet on the right ones ;P
codecop has joined #ruby
<mikecmpbll>
:D
norc has joined #ruby
grassass has quit [Ping timeout: 258 seconds]
andikr has joined #ruby
nando293921 has quit [Ping timeout: 244 seconds]
d0lph1n98 has joined #ruby
tristanp has joined #ruby
isxek has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
phredus__ has quit [Remote host closed the connection]
Omni_ has quit [Ping timeout: 240 seconds]
uncertainty has quit [Ping timeout: 240 seconds]
gagrio has joined #ruby
Omni has joined #ruby
Omni is now known as Guest62665
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
tristanp has joined #ruby
anisha has joined #ruby
avelldiroll has quit [Quit: WeeChat 1.0.1]
tristanp_ has quit [Ping timeout: 252 seconds]
tristanp has quit [Read error: Connection reset by peer]
uncertainty has joined #ruby
tristanp has joined #ruby
Akagi201_ has joined #ruby
Akagi201 has quit [Read error: Connection reset by peer]
c0mrad3 has joined #ruby
dkam has joined #ruby
avelldiroll has joined #ruby
dling has quit [Ping timeout: 240 seconds]
dling` has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
okdas has quit [Ping timeout: 276 seconds]
chridal has quit [Ping timeout: 240 seconds]
k0n has quit [Quit: flashing]
roamingdog has joined #ruby
twistedpixels has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vondruch has quit [Ping timeout: 276 seconds]
veloutin has quit [Ping timeout: 272 seconds]
Guest16607 has quit [Ping timeout: 260 seconds]
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
twistedpixels has joined #ruby
twistedpixels has quit [Changing host]
twistedpixels has joined #ruby
Ariadeno has joined #ruby
z0id has left #ruby ["Leaving"]
Ariadeno is now known as Guest56222
chridal has joined #ruby
veloutin has joined #ruby
solars has quit [Ping timeout: 264 seconds]
roamingdog has quit [Ping timeout: 246 seconds]
northfurr has quit [Quit: northfurr]
maletor2 has joined #ruby
solars has joined #ruby
dkam has quit [Ping timeout: 250 seconds]
skade has joined #ruby
lxsameer has joined #ruby
ur5us has joined #ruby
skade has quit [Client Quit]
maletor2 has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
okdas has quit [Ping timeout: 240 seconds]
edwinvdgraaf has joined #ruby
n1x-nz has quit [Ping timeout: 276 seconds]
uncertainty has quit [Ping timeout: 244 seconds]
User458764 has joined #ruby
Ishido has joined #ruby
Guest56222 has quit [Ping timeout: 260 seconds]
okdas has joined #ruby
okdas has quit [Changing host]
okdas has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Ariadeno_ has joined #ruby
eGGshke has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
troulouliou_div2 has joined #ruby
Azure has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has joined #ruby
LoneHermit has joined #ruby
tristanp has joined #ruby
last_staff has quit [Quit: last_staff]
karmatr0n has joined #ruby
the_drow has joined #ruby
safe has quit [Quit: Leaving]
uncertainty has joined #ruby
LoneHermit has quit [Ping timeout: 276 seconds]
TvL2386 has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
[spoiler] has quit [Quit: Cheers!]
n1x-nz has joined #ruby
pen has joined #ruby
dkam has joined #ruby
skade has joined #ruby
terlar has joined #ruby
r0bby_ has joined #ruby
r0bby_ has quit [Client Quit]
skade has quit [Client Quit]
r0bby_ has joined #ruby
pen has quit [Client Quit]
antgel has joined #ruby
hfp has quit [Ping timeout: 264 seconds]
duckpuppy has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ICantCook has quit [Ping timeout: 250 seconds]
mrmortondk has joined #ruby
crdpink has quit [Remote host closed the connection]
crdpink2 has joined #ruby
TomyWork has joined #ruby
hfp has joined #ruby
cfillion has quit [Ping timeout: 260 seconds]
cfillion has joined #ruby
creat has quit [Ping timeout: 264 seconds]
creat has joined #ruby
watersoul has quit [Remote host closed the connection]
watersoul has joined #ruby
duckpuppy has quit [Ping timeout: 272 seconds]
jnoob22 has quit [Ping timeout: 264 seconds]
DTZUZU has quit [Ping timeout: 240 seconds]
sluukkonen has quit [Ping timeout: 240 seconds]
dkam has quit [Ping timeout: 244 seconds]
johnny56 has quit [Ping timeout: 264 seconds]
neanderslob has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
<adaedra>
Hi
johnny56 has joined #ruby
bigkevmcd has joined #ruby
saltsa has quit [Ping timeout: 252 seconds]
galeido has quit [Ping timeout: 252 seconds]
roshanavand has quit []
saltsa has joined #ruby
galeido has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga____
jnoob22 has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
uncertainty has quit [Ping timeout: 244 seconds]
thejamespinto_ has quit [Remote host closed the connection]
skakri has quit [Ping timeout: 240 seconds]
tristanp has quit [Ping timeout: 260 seconds]
thejamespinto has joined #ruby
firstdayonthejob has joined #ruby
hightower3 has joined #ruby
skakri has joined #ruby
thejamespinto has quit [Ping timeout: 240 seconds]
johnny56 has quit [Ping timeout: 264 seconds]
mleung has quit [Quit: mleung]
goeast has quit [Ping timeout: 258 seconds]
eGGshke has quit [Remote host closed the connection]
ocbtec has joined #ruby
tristanp has joined #ruby
biox- has quit [Ping timeout: 250 seconds]
gilfoyle has joined #ruby
mark_66 has joined #ruby
biox has joined #ruby
roamingdog has joined #ruby
vondruch has joined #ruby
allcentury has joined #ruby
johnny56 has joined #ruby
gilfoyle has quit [Ping timeout: 276 seconds]
dkam has joined #ruby
roamingdog has quit [Ping timeout: 246 seconds]
maletor2 has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
sluukkonen has joined #ruby
maletor2 has quit [Ping timeout: 260 seconds]
eGGshke has joined #ruby
nankyokusei has joined #ruby
einarj has joined #ruby
uncertainty has joined #ruby
marr has joined #ruby
Tempesta has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
Ropeney has joined #ruby
CloCkWeRX has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
d0lph1n98 has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
joonty has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pawnbox_ has quit [Ping timeout: 272 seconds]
karmatr0n has joined #ruby
jaguarmagenta has joined #ruby
sarkis has joined #ruby
syngularity has quit [Ping timeout: 272 seconds]
syngularity has joined #ruby
minimalism has quit [Quit: minimalism]
antgel has quit [Ping timeout: 276 seconds]
uncertainty has quit [Ping timeout: 240 seconds]
duncannz has quit [Remote host closed the connection]
antgel has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
maladr0it has joined #ruby
<maladr0it>
morning!
jaguarmagenta has quit [Ping timeout: 252 seconds]
Snowy has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<maladr0it>
i have my first ever technical interview next week. i have to refactor some 'basic' ruby code. Any advice on where to get some practice in?
sarkis has quit [Ping timeout: 260 seconds]
Snowy has quit [Remote host closed the connection]
<shevy>
write lots and lots of code yourself
tristanp_ has joined #ruby
<jhass>
maladr0it: excercism.io codewars.com, idle here and help folk out
CloCkWeRX has quit [Ping timeout: 240 seconds]
<maladr0it>
thanks so much, exercism looks good
tristanp has quit [Ping timeout: 252 seconds]
skade has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
ur5us has quit [Remote host closed the connection]
tristanp has joined #ruby
anisha has quit [Ping timeout: 276 seconds]
lsmola_ has joined #ruby
lsmola has quit [Ping timeout: 244 seconds]
anisha has joined #ruby
xkapastel has quit [Quit: Connection closed for inactivity]
phatypus has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
CloCkWeRX has joined #ruby
thejamespinto has joined #ruby
gilfoyle has joined #ruby
senayar has joined #ruby
anisha has quit [Quit: Leaving]
anisha has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
goeast has joined #ruby
etehtsea has joined #ruby
claudiuinberlin has left #ruby ["Textual IRC Client: www.textualapp.com"]
gilfoyle has quit [Ping timeout: 264 seconds]
thejamespinto has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
allcentury has joined #ruby
ur5us has joined #ruby
toretore has joined #ruby
pawnbox has quit [Remote host closed the connection]
craigp has quit [Quit: WeeChat 1.5]
allcentury has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
pawnbox has joined #ruby
d0lph1n98 has joined #ruby
digneety has joined #ruby
roamingdog has joined #ruby
r0bby_ is now known as robbyoconnor
CausaMortis has joined #ruby
craigp has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
tie_ has joined #ruby
User458764 has joined #ruby
n1x-nz has quit [Quit: Computer says no]
anisha has quit [Ping timeout: 244 seconds]
maletor2 has joined #ruby
roamingdog has quit [Ping timeout: 276 seconds]
maximilian has joined #ruby
LoneHermit has joined #ruby
maletor2 has quit [Ping timeout: 240 seconds]
weckl has joined #ruby
weckl has quit [Max SendQ exceeded]
weckl has joined #ruby
joonty has joined #ruby
weckl has quit [Max SendQ exceeded]
anisha has joined #ruby
weckl has joined #ruby
lightt has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 240 seconds]
aupadhye has quit [Ping timeout: 260 seconds]
Vingador has joined #ruby
sash_ has joined #ruby
tristanp_ has joined #ruby
Gasher has joined #ruby
eGGshke has quit [Remote host closed the connection]
<sash_>
toretore: Comparable#== will no more rescue exceptions of #<=> in the next release.
tristanp has quit [Ping timeout: 252 seconds]
<sash_>
toretore: and Return nil in #<=> if the comparison is inappropriate or avoid such comparison.
jaruga___ has joined #ruby
jaruga___ is now known as jaruga____
sarkis has joined #ruby
<sash_>
However, I am more interested in the line itself, it looks like dead code to me, because some tests I made always return false if I compare anything with a class like that.
<norc>
sash_: Unless you use the class itself.
uncertainty has quit [Ping timeout: 240 seconds]
<norc>
sash_: It's probably used as a poison token.
lightt has joined #ruby
saneax_AFK is now known as saneax
karmatr0n has quit [Ping timeout: 252 seconds]
<sash_>
norc: Exactly, Test == Test is true. But how should response_vb.value ever become a ruby class definition?
<norc>
sash_: not a class definition
<norc>
sash_: SNMP::EndOfMibView is a constant pointing to an object of class Class.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<norc>
sash_: I commonly use this in consumer/producer patterns. When my producer has no more work to do, it injects a StopToken into a shared queue, and my consumers pop from the queue until the object is a StopToken.
goeast has joined #ruby
braincras has quit [Ping timeout: 276 seconds]
<norc>
sash_: the only things making classes special is that they have a class method ::new (Ruby provides this for you), which creates new objects of that kind. Other than that they are objects like anything else.
braincra- has joined #ruby
<norc>
Well, there are some other subtle things. But for the sake of this lets assume that to be true.
pawnbox has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
zapata has joined #ruby
tristanp_ has joined #ruby
ur5us has quit [Remote host closed the connection]
trista___ has quit [Ping timeout: 252 seconds]
beilabs has quit [Ping timeout: 260 seconds]
maletor2 has joined #ruby
M570` has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
roamingdog has joined #ruby
maletor2 has quit [Ping timeout: 252 seconds]
tristanp_ has quit [Ping timeout: 260 seconds]
<norc>
jhass: I just meant it would be more obvious to show that a class is just an object.
last_staff has joined #ruby
digneety has joined #ruby
trista___ has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
Dimik has quit [Ping timeout: 244 seconds]
braincra- has joined #ruby
nankyokusei has joined #ruby
roamingdog has quit [Ping timeout: 276 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
ruby-lang227 has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
flopsec has joined #ruby
emilkarl is now known as emilkarl[away]
emilkarl[away] is now known as emilkarl
pajton has joined #ruby
CausaMortis has joined #ruby
ur5us has joined #ruby
nettoweb has joined #ruby
bob434 has joined #ruby
karmatr0n has joined #ruby
jaguarmagenta has joined #ruby
bob434 has quit [Client Quit]
sarkis has joined #ruby
phatypus has quit [Quit: .>]
pajton has quit [Quit: I'm out!]
pajton has joined #ruby
digneety has quit [Ping timeout: 264 seconds]
jaguarmagenta has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 244 seconds]
<ruby-lang227>
Hello, I've been learning Ruby as of late and I'm not entirely certain of my thinking. Could you say that .class can be run on any object and returns the name of the class from which the object was instantiated (so any ClassName.class == Class), whereas .superclass can only be called on objects that are also classes and it's directly related to class inheritance?
sarkis has quit [Ping timeout: 260 seconds]
bob434 has joined #ruby
jyaworski has quit [Ping timeout: 250 seconds]
jyaworski has joined #ruby
zel has joined #ruby
zel is now known as Guest20497
illusionmedic has joined #ruby
pajton has quit [Client Quit]
pajton_ has joined #ruby
pajton_ has quit [Remote host closed the connection]
pajton has joined #ruby
pajton has quit [Remote host closed the connection]
sdothum has joined #ruby
pajton has joined #ruby
uncertainty has joined #ruby
pajton has quit [Client Quit]
twintail has quit [Remote host closed the connection]
phredus_ has quit [Remote host closed the connection]
<norc>
ruby-lang227: #superclass is a method of Class, and can be called on any object of class Class.
ur5us has quit [Remote host closed the connection]
<jhass>
I strongly prefer {} over Hash.new, but that's style I guess
<leitz>
jhass, line 38 is supposed to end with the resume_data file in a hash. When line 58 occurs it's supposed to write the updated resume hash into the file.
<leitz>
jhass, as to style, I'm re-learning what little I knew. So there is a lot of room for improvement. FIrst, though, is making the program functional.
<jhass>
line 58 only occurs if reading your file fails
<jhass>
see my first point
<jhass>
also it's commented in your gist
<leitz>
Ah, sorry, lines 39, 40 were to test what was going on. I should have removed them from the gist before posting.
User458764 has joined #ruby
ruby-lang227 has quit [Quit: Page closed]
maletor2 has joined #ruby
<leitz>
The logic should be: open the file into a hash. Add data to the hash. Overwrite the old file with the new hash.
<User458764>
Hi, you often need unique sequence of characters what is the best way to deal with thi, use timestamp?
tristanp_ has quit [Ping timeout: 252 seconds]
beilabs has joined #ruby
<jhass>
the best way depends on the specific usecase most of the time
<norc>
User458764: For cryptographic needs I recommend university. For everything else it depends.
tristanp_ has joined #ruby
<User458764>
jhass I think so in my case it is for naming filenames
alfiemax has quit [Ping timeout: 244 seconds]
tristanp has quit [Ping timeout: 252 seconds]
<jhass>
that's still fairly general of a usecase
bob434 has quit [Quit: This computer has gone to sleep]
bob434 has joined #ruby
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
bob434 has quit [Client Quit]
<User458764>
Another question about this sometimes sofware or web service creates temporary data like a temp file. Does the service takes care of uniqueness before creating the file or does it assume a random string will be enough to be unique?
thejamespinto has quit [Ping timeout: 276 seconds]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
Guest38693 has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
bob434 has joined #ruby
bkxd has joined #ruby
bob434 has quit [Client Quit]
bob434 has joined #ruby
bob434 has quit [Client Quit]
karmatr0n has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
bob434 has joined #ruby
bob434 has quit [Client Quit]
bob434 has joined #ruby
eljimmy has joined #ruby
maletor2 has joined #ruby
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beilabs has joined #ruby
bob434 has quit [Client Quit]
maletor2 has quit [Ping timeout: 272 seconds]
rkazak has joined #ruby
vondruch has quit [Ping timeout: 272 seconds]
bob434 has joined #ruby
slackbotgz has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tristanp has joined #ruby
mdw has joined #ruby
<maloik>
jhass you can shift click lines ;-)
<maloik>
oh apologies, not the same file
<jhass>
I knew but thanks anyway ;)
antgel has quit [Ping timeout: 240 seconds]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
mdw_ has quit [Ping timeout: 260 seconds]
trista___ has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
Yiota has joined #ruby
arlek has joined #ruby
Yiota has quit [Max SendQ exceeded]
Yiota has joined #ruby
prestorium has joined #ruby
mdw has quit [Read error: Connection reset by peer]
tristanp has quit [Ping timeout: 252 seconds]
cwenner has joined #ruby
<tildes>
chridal: you could write the function so, that the sh command is its default parameter, substituted by something else in your unit test. in another test, you could check the content of the default sh command
<tildes>
chridal: actual stubbing options might depend on how you call sh in your program
<tildes>
chridal: with regard to the return file, does the same function also return the file?
mdw has joined #ruby
thejamespinto has joined #ruby
tristanp has joined #ruby
<tildes>
chridal: you might want to have file fetching in a separate method, there also giving the normal file path as the default parameter, substituted by your test file path, for the tests
trista___ has quit [Ping timeout: 260 seconds]
agit0 has quit [Ping timeout: 276 seconds]
<tildes>
actually I have never seen a ruby program call sh to scp, now that I think about it :)
tristanp_ has joined #ruby
<tildes>
in any case, this is how you could write something unit-testish without executing the actual call
symm- has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
sarkis has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
antgel has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
bob434 has joined #ruby
croberts has joined #ruby
jackjackdripper1 has joined #ruby
wojtodzio has joined #ruby
User458764 has joined #ruby
sarkis has quit [Ping timeout: 258 seconds]
jackjackdripper has quit [Ping timeout: 272 seconds]
<goeast>
Hello I have library.rb:32:in `add_song': undefined method `<<' for nil:NilClass (NoMethodError). I know why its because I need to use two different instances of Artist as equivalent hash keys and use eql? and hash appropriately.
beilabs has quit [Remote host closed the connection]
terlar has quit [Quit: WeeChat 1.5]
DTZUZU has quit [Ping timeout: 260 seconds]
<tildes>
goeast: song should probably be a class of its own, and the song would have an artist member
kedare has joined #ruby
<Hates_>
yeah, plenty of small improvements like that should be made ^^
bluOxigen has quit [Ping timeout: 252 seconds]
<tildes>
goeast: you're new to ruby right? :)
<goeast>
@tildes : yes
<goeast>
ahahah
<goeast>
I am doing it as an exercise
<tildes>
goeast: small toy projects can be really useful
bob434 has joined #ruby
<goeast>
OK so I will do one class for song
<goeast>
one class for artist
skade has quit [Quit: Computer has gone to sleep.]
terlar has joined #ruby
<tildes>
goeast: keep going. add some more object oriented programming on your reading / tutorial list
<goeast>
the add song will that 2 parameters artist and song
<goeast>
I will check my attr-accessor that I am using
<goeast>
in the Library class
goeast_ has joined #ruby
goeast has quit [Read error: Connection reset by peer]
goeast_ is now known as goeast
moeabdol has quit [Ping timeout: 244 seconds]
stev has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<goeast>
I had a problem with my conection
kaleido has quit [Changing host]
kaleido has joined #ruby
m_antis has joined #ruby
<goeast>
@tildes and @hates thank you very mich for your kind help
stev_ has joined #ruby
<goeast>
I will try to improve my code first
<goeast>
with your suggestion
<tildes>
goeast: you're welcome. come back with the new version :)
<goeast>
thanks
brendan- has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
beilabs has joined #ruby
pawnbox has quit [Remote host closed the connection]
sarbs has quit [Ping timeout: 260 seconds]
craigp has quit [Ping timeout: 240 seconds]
vikid has joined #ruby
Nahra has quit [Ping timeout: 244 seconds]
sarbs has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
dimasg has joined #ruby
etehtsea has joined #ruby
codecop has quit [Remote host closed the connection]
justapersona has joined #ruby
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
User458764 has joined #ruby
k3rn31 has joined #ruby
Oclair has joined #ruby
jhack has joined #ruby
roamingdog has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
jackjackdripper1 has quit [Quit: Leaving.]
SilverKey has joined #ruby
TomyWork has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby
kareeoleez has quit [Remote host closed the connection]
fenre has quit [Ping timeout: 240 seconds]
maletor2 has joined #ruby
tristanp has joined #ruby
Akagi201 has joined #ruby
justapersona has quit [Quit: Leaving.]
SilverKey has quit [Quit: Halted.]
goeast has quit [Read error: No route to host]
aganov has quit [Remote host closed the connection]
kriskropd has quit [Ping timeout: 260 seconds]
goeast has joined #ruby
maletor2 has quit [Ping timeout: 276 seconds]
SMackMyBitchUp has joined #ruby
beilabs has quit []
ferr has joined #ruby
SilverKey has joined #ruby
nankyokusei has joined #ruby
symm- has joined #ruby
SilverKey has quit [Client Quit]
m_antis has quit [Ping timeout: 252 seconds]
justapersona has joined #ruby
kriskropd has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thejamespinto_ has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
thejamespinto has quit [Ping timeout: 272 seconds]
Alazoral has joined #ruby
nfk has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
SMackMyBitchUp has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
Fernando-Basso has quit [Ping timeout: 264 seconds]
symm- has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
emilkarl is now known as emilkarl[away]
tristanp has quit [Ping timeout: 260 seconds]
digneety has quit [Ping timeout: 252 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
kgrz has joined #ruby
daguilaraguilar has joined #ruby
jaguarmagenta has joined #ruby
tk__ has quit [Quit: ばいばい]
tristanp_ has quit [Ping timeout: 260 seconds]
mdw has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
arlek has quit [Read error: Connection reset by peer]
<chridal>
tildes: Is there some other way I should be SCPing from Ruby besides using sh?
jaguarmagenta has quit [Ping timeout: 276 seconds]
<chridal>
The way I had written it now it first fetches the file, and then runs CSV.read on it, and returns the contents.
<chridal>
But you basically think I should move the sh-scp into its own function, and just not unit test that function specifically?
diegoaguilar has quit [Remote host closed the connection]
daguilaraguilar has quit [Remote host closed the connection]
eGGshke has quit [Quit: Leaving...]
SilverKey has joined #ruby
tristanp has joined #ruby
<chridal>
And then just stub that function for the remaining functions?
jhack has quit [Quit: jhack]
Fernando-Basso has joined #ruby
antgel has joined #ruby
scepticulous has joined #ruby
jhbs has joined #ruby
ocbtec has quit [Ping timeout: 244 seconds]
kgrz has quit [Ping timeout: 260 seconds]
emilkarl[away] is now known as emilkarl
ocbtec has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
mleung has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
k3rn31 has quit [Quit: Computer has gone to sleep.]
depesz has joined #ruby
Rodya_ has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
anisha has quit [Quit: Leaving]
bob434 has quit [Quit: Leaving]
minimalism has joined #ruby
ferr has quit [Ping timeout: 264 seconds]
<depesz>
hi. I mightbe lacking some vocabulary to explain what I need, but let me show you simple example. Given this input: [["a", "b", "c", "d"], ["9", "8", "7"]], I would like to generate all 12 results: [a, 9], [a,8], [a,7], [b,9], ...
ocbtec has quit [Quit: Lost terminal]
<depesz>
but I need a way that will not require me to set specific number of loops inside - it should work with any number of elements in source arrays, on both levels
<madgen>
depesz: that would be a cartesian product
workmad3 has quit [Ping timeout: 240 seconds]
<depesz>
madgen: ok, how to get it? any ready function/method/class/gem?
<madgen>
depesz: checkout Array#product
scepticulous has quit [Ping timeout: 244 seconds]
<madgen>
depesz: it is built in in the Array class
<depesz>
thank you, reading.
rippa has joined #ruby
andikr has quit [Remote host closed the connection]
<elementaru>
shouldn't "listen" method run all the time?
Cohedrin has joined #ruby
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
Gasher has quit [Quit: Leaving]
armyriad has joined #ruby
armyriad has quit [Max SendQ exceeded]
<elementaru>
and I think I got it, I'm not passing "client" most of the time
bluOxigen has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
CloCkWeRX has quit [Quit: Leaving.]
idefine has joined #ruby
moeabdol has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol1 has joined #ruby
armyriad has joined #ruby
kriskropd has quit [Ping timeout: 260 seconds]
<norc>
elementaru, the idea of classes in Ruby is not that you create one class and stuff everything inside it, but split your program into parts.
joonty has quit [Quit: This computer has gone to sleep]
<norc>
elementaru, so you would have one class maybe dealing with connections, another class for cards, another class for the game engine.
<norc>
Just to give you a rough idea.
nankyokusei has joined #ruby
<elementaru>
I see your point
pglombardo has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
threh has joined #ruby
senayar has quit []
<jhbs>
An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
<jhbs>
continue.
<jhbs>
Make sure that `gem install sqlite3 -v '1.3.11'` succeeds before bundling.
mattwashere has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Remote host closed the connection]
<norc>
jhbs, try installing the gem manually, that will give you the error message.
nankyokusei has joined #ruby
<norc>
(Not sure whether Bundler actually writes its log somewhere, this is probably easier)
dimasg has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
Mia has joined #ruby
dar123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc>
elementaru, also please try to use 2-space indentation - it is common enough in Ruby to ask everybody to follow that convention (for readability sakes)
kriskropd has joined #ruby
<elementaru>
anyhow, I do not get actually. So I pass (client) to "listen" method in the "run" method, and there's a 'msg = client.gets.chomp' on the loop, so why doesn't it pick up the messages?
<elementaru>
it only picks up the messages and does msg_all method, when other methods are waiting for user's input
<norc>
elementaru, the difficulty in debugging this is a result from your program design. By not separating all your modules it is hard to tell what is doing what.
<norc>
It would force anyone to understand the entire scope of your program first.
Spami has quit [Ping timeout: 250 seconds]
Spami_ has joined #ruby
<elementaru>
I see
tristanp_ has joined #ruby
binaryplease1 has joined #ruby
arlek has quit [Ping timeout: 260 seconds]
mark_66 has quit [Remote host closed the connection]
<norc>
elementaru, you could start by extracting all the code that defines the game engine (dealing with players and cards) into a separate class that does not know about network connections.
<norc>
For example.
tristanp has quit [Ping timeout: 260 seconds]
tlaxkit has quit [Quit: ¡Adiós!]
<elementaru>
what is 2-space indentation btw? I should press space 2 times instead of tabbing?
maletor2 has joined #ruby
<norc>
elementaru, which editor are you using?
binaryplease has quit [Ping timeout: 272 seconds]
northfurr has quit [Quit: northfurr]
<elementaru>
notepad++
tristanp has joined #ruby
<norc>
elementaru, go to Settings > Preferences > Tab Settings, set Tab Size to 2, and enable "Replace by space"
<elementaru>
ok ty
idefine has quit [Read error: Connection reset by peer]
SCHAAP137 has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
hutch34 has joined #ruby
mattwashere has joined #ruby
tristanp_ has joined #ruby
allcentury has joined #ruby
maletor2 has quit [Ping timeout: 252 seconds]
tristanp has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
einarj has quit [Remote host closed the connection]
binaryplease1 is now known as binaryplease
tristanp has joined #ruby
hutch34 has quit [Ping timeout: 272 seconds]
weckl has quit [Quit: Leaving]
allcentury has quit [Ping timeout: 276 seconds]
nankyoku_ has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
mleung has joined #ruby
diegoaguilar has joined #ruby
<jhbs>
Errno Message
<jhbs>
conftest.c:3:21: fatal error: sqlite3.h: No such file or directory
<norc>
jhbs, gist the entire error message. Check the topic for a link on where.
northfurr has joined #ruby
nankyokusei has quit [Ping timeout: 272 seconds]
cgfbee has joined #ruby
<norc>
elementaru, also extract your client code (should be your listen method) into a separate class that you can test externally.
imperator has joined #ruby
cfloare has joined #ruby
idefine has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
ramfjord has joined #ruby
Noxilex has quit [Ping timeout: 244 seconds]
<norc>
imperator, there is no guarantee that the assignment is actually executed before your assertion. Or am I being silly here?
<imperator>
norc, i think you're right. Adding a small sleep call to the setup worked
<norc>
imperator, let's figure out how to solve it *properly* then.
<imperator>
join the thread?
pawnbox has joined #ruby
jaguarmagenta has joined #ruby
<norc>
imperator, sounds like an idea.
vikaton has joined #ruby
<norc>
imperator, Not sure whether the thread is still alive enough to the point where you can use #key? though
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc>
imperator, do you have external code that relies on that key?
<imperator>
does a thread have to be alive to retain its keys? irb would indicate no
<norc>
imperator, I am not sure how that minitest is actually useful.
<norc>
imperator, either you have some code that relies on that key being present (which needs some form of synchronization to communicate to the outside), or you have no business testing it from outside the thread.
ramfjord has quit [Ping timeout: 250 seconds]
jaguarmagenta has quit [Ping timeout: 276 seconds]
Akagi201 has quit [Remote host closed the connection]
<norc>
imperator, testing whether a key is present *after* a thread has been joined is pointless because it tells you nothing about the state during the thread.
thejamespinto has joined #ruby
dar123 has joined #ruby
<norc>
So really. This makes no sense to me.
hutch34 has joined #ruby
<imperator>
norc, how would you test it?
<norc>
imperator, test the behaviour of code.
<norc>
Not internals.
tristanp_ has joined #ruby
<norc>
Whether something sets some key at some point cannot be of relevance to you, unless some code depends on it.
thejamespinto_ has quit [Ping timeout: 260 seconds]
<norc>
If some code depends on it, test it from *that* situatoin using the same synchronization methos.
<norc>
*methods.
<jhbs>
norc: i'll gist it thanks
etehtsea has quit [Quit: Computer has gone to sleep.]
cfloare has quit [Ping timeout: 258 seconds]
tristanp has quit [Ping timeout: 260 seconds]
<norc>
imperator, and if you are testing your own thread implementation, test from inside your thread
<norc>
jhbs, google for the error message "sqlite3.h: No such file or directory"
tristanp has joined #ruby
<norc>
You will find plenty of links helping you solve this. :)
hutch34 has quit [Ping timeout: 258 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
VeryBewitching has joined #ruby
CamCam2 has joined #ruby
uncertainty has joined #ruby
jancel has quit [Remote host closed the connection]
<shevy>
jhbs ah you are von strauss with another nick!
<CamCam2>
I thought I understood the ternary operator, but then I found this: `@status = status ? status[0...140] : status` which limits the length of status to 140. Can anyone explain to me how this works?
<CamCam2>
In other words, if status is false, status = status?
<pontiki>
that's it
<apeiros>
yes
<CamCam2>
But when would status = false
<apeiros>
and it could be shortened to: @status = status && status[0,140]
<jhass>
CamCam2: false or nil
idefine has joined #ruby
<CamCam2>
Makes sense. Gracias amigos!
<apeiros>
it's "limit status to 140 chars, if it is present, else don't do anything"
<jhbs>
i'm not a power user so i'm hesitant to apply the workaround i found
uncertainty has quit [Ping timeout: 240 seconds]
<jhbs>
i'll do it and see where it takes me. hopefully not to some awful, horrible eighth circle of hell
Guest38693 has joined #ruby
joonty has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
rodfersou|lunch is now known as rodfersou
joonty has quit [Client Quit]
RegulationD has joined #ruby
joonty has joined #ruby
<shevy>
only if you would use a certain distribution
mdw has quit [Quit: Sleeping Zzzzz]
idefine has quit [Remote host closed the connection]
gusrub has joined #ruby
chops_ has quit [Remote host closed the connection]
tildes_ has joined #ruby
terlar has quit [Ping timeout: 272 seconds]
symm- has joined #ruby
<jhbs>
so where do i go to get extconf.rb
User458764 has joined #ruby
User458764 has quit [Client Quit]
czerasz has quit [Ping timeout: 276 seconds]
symm-_ has joined #ruby
Gasher has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<jhbs>
yfeldblum has joined #ruby
QpQ4 has joined #ruby
symm- has quit [Ping timeout: 258 seconds]
allcentury has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
houhoulis has joined #ruby
leitz has quit [Quit: Nappy time]
goeast has quit [Remote host closed the connection]
symm-_ has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
craigp has joined #ruby
Guest38693 has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
gopz has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
pietr0 has quit [Quit: pietr0]
cgfbee has joined #ruby
cfloare has joined #ruby
tristanp has joined #ruby
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
mattwashere has quit [Remote host closed the connection]
kareeol__ has joined #ruby
northfurr has quit [Quit: northfurr]
tristanp_ has quit [Ping timeout: 252 seconds]
<gopz>
Why would doing: "require './lib/arugula'" cause an error 'cannot load such file -- arugula/data_handler', but then doing "require './lib/arugula/data_handler'" produces no error. The only line in arugula.rb is "require 'aruguala/data_handler'
aries_liuxueyang has joined #ruby
spider-mario has joined #ruby
Sammichmaker has joined #ruby
<jhass>
gopz: do ruby -Ilib arugula and require "arugula"
tristanp has quit [Read error: Connection reset by peer]
<jhass>
later when your gem is installed lib will be added to the load path by rubygems
kareeoleez has quit [Ping timeout: 276 seconds]
tristanp has joined #ruby
<gopz>
jhass: ruby -Ilib arugula gives me No such file or directory -- arugula (LoadError)
flughafen_ has joined #ruby
<jhass>
gopz: arugula was meant to be whatever script you run
justapersona has quit [Quit: Leaving.]
<gopz>
I am just entering these commands in rib
kareeol__ is now known as kareeoleez
<gopz>
irb*
ramfjord has joined #ruby
symm- has joined #ruby
maletor2 has joined #ruby
justapersona has joined #ruby
7F1ABE0WR has joined #ruby
justapersona has quit [Client Quit]
<jhass>
gopz: run irb with irb -Ilib then
dionysus69 has joined #ruby
joneshf-laptop has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
Billias has quit [Read error: Connection reset by peer]
mleung has quit [Quit: mleung]
<gopz>
jhass, should i run that from within the top level directory? I get irb/magic-file.rb:8:in `initialize': No such file or directory @ rb_sysopen - arugula (Errno::ENOENT)
maletor2 has quit [Ping timeout: 260 seconds]
joonty has joined #ruby
jancel has joined #ruby
joonty has quit [Client Quit]
pglombardo has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
allcentury has joined #ruby
codecop has joined #ruby
hutch34 has joined #ruby
startupality has joined #ruby
pglombardo has joined #ruby
symm- has quit [Ping timeout: 258 seconds]
einarj has joined #ruby
Madplatypus has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
nocnoc has quit [Quit: WeeChat 1.4]
Es0teric has joined #ruby
tristanp_ has joined #ruby
<jhbs>
Ok I fixed it!
<jhbs>
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
einarj has quit [Remote host closed the connection]
<jhbs>
how seriously should i take this
mtkd has quit [Ping timeout: 244 seconds]
evidex has quit [Ping timeout: 244 seconds]
<apeiros>
very
<jhbs>
ok
<apeiros>
seems to explain the consequences quite well, no?
<jhbs>
i should redo bundler
<jhbs>
yes
hutch34 has quit [Read error: Connection reset by peer]
hutch34_ has joined #ruby
<jhbs>
ok good
<jhbs>
redone
<jhbs>
sorry to even ask such trivium
tristanp has quit [Ping timeout: 260 seconds]
skade has joined #ruby
mtkd has joined #ruby
skade has quit [Client Quit]
tristanp has joined #ruby
arlek has quit [Ping timeout: 260 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
panpainter has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
mdw_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
skade has joined #ruby
<bio_grin>
jhass you there
<bio_grin>
?
<jhass>
some patience, doing more than just this ;)
<bio_grin>
ah ok
<bio_grin>
:P
LoneHerm_ has quit [Remote host closed the connection]
<bio_grin>
i would appreciate to tell me the problem in my code later
workmad3 has joined #ruby
<jhass>
bio_grin: well, it's not even close to tackling the problem tbh
<bio_grin>
hmm
<bio_grin>
but it works?
<bio_grin>
max 7 numbers?
<jhass>
coincidentally
allcentury has joined #ruby
<bio_grin>
hmm
sepp2k has joined #ruby
<bio_grin>
i am new to ruby
<bio_grin>
i might not be an expert
kriskropd has quit [Ping timeout: 276 seconds]
<jhass>
you should build up the 2d array
mdw has quit [Ping timeout: 272 seconds]
<bio_grin>
ah
<bio_grin>
i did
<jhass>
then compute the indicies for each hourglass
<bio_grin>
i made it all 1
<bio_grin>
indexes?
<jhass>
yes, don't
<jhass>
yes
<bio_grin>
i dont understand
dar123 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bio_grin>
isnt the point to find max 7 numbers?
<jhass>
did you read the task?
<bio_grin>
yes
uncertainty has joined #ruby
<jhass>
yes, in each "hourglass"
skolman has joined #ruby
<jhass>
not in each line
jackjackdripper has joined #ruby
<bio_grin>
ah lmao
<bio_grin>
wrong reading
<bio_grin>
calculate the sum of every glass and print the max
kriskropd has joined #ruby
<bio_grin>
i only print the max
<bio_grin>
this problem isnt easy
Cohedrin has joined #ruby
<bio_grin>
idk why is it in the easy section
panpainter has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
gopz has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 272 seconds]
allcentury has quit [Ping timeout: 246 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 260 seconds]
<bio_grin>
it will always contain 16 hourglasses
skade has quit [Quit: Computer has gone to sleep.]
ponga has quit [Quit: Connection closed for inactivity]
<jhass>
yeah
<jhass>
you could just figure out the indexes by hand and hardcode a list of them or something, but... ;)
uncertainty has quit [Ping timeout: 276 seconds]
Yiota has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
alfiemax has quit [Ping timeout: 264 seconds]
<bio_grin>
but you can be the ruby expert and do it easier
symm- has quit [Ping timeout: 272 seconds]
<bio_grin>
?
<bio_grin>
:P
panpainter has quit [Ping timeout: 244 seconds]
alfiemax has joined #ruby
<jhass>
not until you have a solution ;)
eljimmy has joined #ruby
<shevy>
:)
<bio_grin>
fair enough
<bio_grin>
i drank 4 beers
Guest62665 has quit [Ping timeout: 252 seconds]
<bio_grin>
in 1 hour it might take little longer
<shevy>
you know how to tackle problems
<bio_grin>
i guess
last_staff has joined #ruby
<bio_grin>
i can brute force it?
<bio_grin>
i mean anyone can do that
tw1sted has quit [Remote host closed the connection]
tw1sted has joined #ruby
<bio_grin>
any hints?
nerium has joined #ruby
<xpt>
Any centos user here? Is there a repo that gets recent ruby packages? Ruby 2.2.0 is too old for my needs and I am wondering if I can get it easy way or not.
<shevy>
have one more beer bio_grin
<bio_grin>
shevy that wont help
mdw has joined #ruby
kobain has joined #ruby
<bio_grin>
i will start writing html
<xpt>
have two moree beers bio_grin
<bio_grin>
and trying to execute it as ruby
<bio_grin>
lol
kobain has quit [Max SendQ exceeded]
<bio_grin>
jhass little hint
<bio_grin>
?
kobain has joined #ruby
Guest70551 has joined #ruby
dimasg has quit [Ping timeout: 244 seconds]
kobain has quit [Max SendQ exceeded]
mdw__ has joined #ruby
kobain has joined #ruby
bluOxigen has joined #ruby
johnmilton has joined #ruby
depesz_ has joined #ruby
<norc>
xpt, generally chruby/post-install is the common way to get Ruby on almost any distribution.
<bio_grin>
shevy?
<bio_grin>
So many people leave and join
<bio_grin>
lol
allcentury has joined #ruby
mdw_ has quit [Ping timeout: 240 seconds]
antgel has joined #ruby
<norc>
xpt, that way you get the most recent Ruby versions and a very non-intrusive version management if you should need multiple Ruby versions.
<bio_grin>
brb going to eat
<bio_grin>
and drink some water
anisha has joined #ruby
B1n4r10 has quit [Ping timeout: 244 seconds]
houhoulis has quit [Remote host closed the connection]
mdw has quit [Ping timeout: 244 seconds]
alfiemax has quit [Remote host closed the connection]
|meta has quit [Quit: Connection closed for inactivity]
Akagi201 has joined #ruby
Akagi201 has quit [Remote host closed the connection]
alfiemax has joined #ruby
tristanp has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
nerium has quit [Quit: nerium]
tristanp_ has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
testuser000 has joined #ruby
<jhass>
bio_grin: got a solution, 17 loc ;)
alfiemax has quit [Remote host closed the connection]
xkapastel has quit [Quit: Connection closed for inactivity]
<shevy>
lies!
testuser000 has left #ruby [#ruby]
tristanp_ has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
<jhass>
well, 11 significant ones
tristanp has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 260 seconds]
<jhbs>
ruby on rails is so different from anything else ive done
<jhbs>
i don't know how i feel about it forcing you to do something a certain way
<shevy>
use padrino!
bluOxigen has joined #ruby
johnmilton has quit [Ping timeout: 244 seconds]
alfiemax has joined #ruby
<xpt>
norc: thanks
roamingdog has quit [Remote host closed the connection]
<xpt>
I'll give it a shot
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
roamingdog has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
dimasg has joined #ruby
Dimik has joined #ruby
jancel has joined #ruby
yfeldblum has joined #ruby
Devalo has quit []
symm- has joined #ruby
roamingdog has quit [Remote host closed the connection]
greenride has joined #ruby
jaruga____ has quit [Quit: jaruga____]
maletor2 has joined #ruby
kgrz has joined #ruby
chip_ has joined #ruby
jancel has quit [Ping timeout: 272 seconds]
houhoulis has joined #ruby
nofxx has quit [Ping timeout: 244 seconds]
nofxx has joined #ruby
johnmilton has joined #ruby
dreinull has left #ruby ["undefined"]
roamingdog has joined #ruby
maletor2 has quit [Ping timeout: 276 seconds]
nerium has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phatypus has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
ule has quit [Ping timeout: 272 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
ule has joined #ruby
7F1ABE0WR has quit [Remote host closed the connection]
stev has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
<bio_grin>
back
<bio_grin>
jhass can you give this poor soul a hint
jackjackdripper has quit [Quit: Leaving.]
skade has joined #ruby
<jhass>
bio_grin: two loops, choose the start and end index so you don't have to do bound checks
skade has quit [Client Quit]
<bio_grin>
hmm
<bio_grin>
i need to find 7 numbers
<bio_grin>
right?
symm- has quit [Ping timeout: 276 seconds]
<jhass>
no
<jhass>
There are 16 hourglasses in A, and an hourglass sum is the sum of an hourglass' values.
<jhass>
</quote>
omphe has joined #ruby
<bio_grin>
hmm
<bio_grin>
i should sum all numbers
<bio_grin>
?
dmr8 has joined #ruby
<bio_grin>
like 7 random combos
<jhass>
"Calculate the hourglass sum for every hourglass in A, then print the maximum hourglass sum."
mozzarella has quit [Ping timeout: 258 seconds]
<jhass>
shall I copy paste the entire description for you or will you start reading it? ;)
zeroDi has quit [Quit: WeeChat 1.5]
<bio_grin>
i read it 10 times
<bio_grin>
im a little
<bio_grin>
getting sober
<bio_grin>
any more hints
axisys has joined #ruby
<jhass>
I don't have the feeling you tried much yet
<bio_grin>
fair enough
<bio_grin>
i will go to try
<bio_grin>
brb
emilkarl has joined #ruby
anisha has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 260 seconds]
kraken has joined #ruby
kraken is now known as _kraken
<_kraken>
Does an instance of a particular class inherit methods from its superclass?
tristanp has joined #ruby
<_kraken>
I mean it's superclasses's superclass
<_kraken>
It's grandparent
roamingdog has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
eGGshke has quit [Quit: Leaving...]
houhoulis has quit []
<jhass>
yes
allcentury has quit [Ping timeout: 246 seconds]
tristanp_ has quit [Ping timeout: 260 seconds]
jancel_ has joined #ruby
duckpuppy has joined #ruby
<jhass>
.singleton_class.ancestors is searched
roamingdog has joined #ruby
<norc>
_kraken, also don't forget about each singleton class in the ancestory chain.
roamingdog has quit [Read error: Connection reset by peer]
tristanp has quit [Read error: Connection reset by peer]
<_kraken>
hmm
roamingdog has joined #ruby
tristanp has joined #ruby
<norc>
(They will not be shown but are searched regardless)
<jhass>
.method(:foo).owner / .source_location to find where something comes from
DTZUZU has joined #ruby
MrBusiness2 has joined #ruby
uncertainty has joined #ruby
symm- has joined #ruby
<xpt>
norc: woohoo, only one issue submitted on ruby-install in process of getting most recent ruby
ur5us has joined #ruby
<xpt>
fortunatelly I managed to install it
Rodya_ has joined #ruby
<norc>
:)
<xpt>
thanks
duckpuppy has quit [Ping timeout: 252 seconds]
panpainter has joined #ruby
Maxifalk has joined #ruby
<bio_grin>
jhass
DTZUZU has quit [Ping timeout: 264 seconds]
<bio_grin>
im getting sober and more ideas
kgrz has quit [Ping timeout: 252 seconds]
uncertainty has quit [Ping timeout: 276 seconds]
_kraken has quit [Quit: Leaving]
symm- has quit [Ping timeout: 244 seconds]
hutch34_ has quit [Ping timeout: 246 seconds]
panpainter has quit [Ping timeout: 260 seconds]
Gasher^ has joined #ruby
B1n4r10 has joined #ruby
Maxifalk has quit [Remote host closed the connection]
tristanp_ has joined #ruby
Gasher has quit [Ping timeout: 244 seconds]
phatypus has quit [Quit: .>]
symm- has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
tristanp has quit [Ping timeout: 260 seconds]
MrBusiness2 has quit [Ping timeout: 272 seconds]
Rodya_ has quit [Remote host closed the connection]
Noxilex has joined #ruby
arlek has quit [Ping timeout: 260 seconds]
sebyx07 has joined #ruby
sebyx07 has left #ruby [#ruby]
tristanp has joined #ruby
ricer2 has quit [Ping timeout: 276 seconds]
yqt has joined #ruby
Rodya_ has joined #ruby
roamingdog has quit [Remote host closed the connection]
tristanp_ has quit [Ping timeout: 260 seconds]
<existensil>
Naming question: what would you call a generic machine that when turned on stays on for n seconds, turning off when n seconds have elapsed, and resetting its clock when started while running?
tristanp_ has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
art-solopov has joined #ruby
<existensil>
Basically how sleep features and motion detectors for lighting work
<norc>
existensil, timer
<existensil>
just looking for a generic term. Best I can come up with is "idle switch"
fenre has quit [Remote host closed the connection]
<norc>
existensil, the idea is that its a mechanism that after some time does something. That is called a timer.
roamingdog has joined #ruby
<existensil>
but not all timers would auto-reset like that
<norc>
This one does.
<existensil>
right. was hoping for something more precise that describes how this is different from a regular timer
<existensil>
will have several things that use a timer like this and just wanted a good name
tristanp has quit [Read error: Connection reset by peer]
pietr0 has joined #ruby
houhoulis has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
<norc>
existensil, can you give a concrete example of what your "timer" does?
TomyLobo has quit [Ping timeout: 260 seconds]
<existensil>
Turning on an appliance in response to a sensor. If the sensor is only on for a split second you can't cycle certain appliances that fast. You need a timer that has a minimum run time and each sensor trip resets that so the appliance just keeps running.
<existensil>
I'm using it for a sump pump right now but planning other uses.
jancel_ has quit [Remote host closed the connection]
moeabdol1 has quit [Ping timeout: 260 seconds]
<norc>
existensil, TimedSwitch perhaps?
<existensil>
yeah. that's better than idle switch probably. was hoping there was some word I've long forgotten that could get it done in one.
<norc>
Perhaps someone else with more experience can hop in and give you some input. That is as far as my limited background goes.
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<existensil>
naming is hard and I'm obsessing because its a hobby project
<norc>
existensil, naming things can be essential because it helps you identify what parts actually are.
lightt has joined #ruby
Billias has quit [Read error: Connection reset by peer]
stev has quit [Ping timeout: 250 seconds]
roamingdog has quit [Remote host closed the connection]
<existensil>
TimeoutSwitch wins for now
<norc>
existensil, not sure whether Timeout carries the right notion here.
Rodya_ has quit [Remote host closed the connection]
<elementaru>
is there a way to call a method or whatever, and not wait for it to finish to carry on with the rest of the code?
kus has joined #ruby
kus has quit [Max SendQ exceeded]
<existensil>
elementaru: Thread.new{ method }
<norc>
elementaru, using threads and processes
<elementaru>
ok ty
<norc>
elementaru, note that if you walk down that road you suddenly have to take care about thread safety, concurrency, reentrancy, synchronization.
<elementaru>
:-(
<norc>
Threads come with a high price tag attached to it.
maletor2 has joined #ruby
<existensil>
elementaru: you're spawning a new thread and that carries with it some complexities. Just that will work for some simple stuff but check out the Thread docs for info on what they are and how to control them.
Billias has joined #ruby
squigz has quit [Quit: Bye]
<existensil>
If you're waiting for something its likely threads have a comparably low price tag
lightt has quit [Ping timeout: 276 seconds]
<norc>
elementaru, note that in the topic of threads often the GIL (or GVM) is mentioned - but all it promsises is that Ruby won't crash horribly if you screw things up. Race conditions still apply..
Gasher^ has quit [Ping timeout: 250 seconds]
<elementaru>
googled "GIL ruby", first result "Nobody understands the GIL - Jesse Storimer"
<elementaru>
yeah ok..
minimalism has quit [Quit: minimalism]
<norc>
elementaru, just ignore the GIL really. It gives you no guarantees beyond not crashing.
<existensil>
elementaru: are you waiting on something external to ruby? like a network request or database request? if that's the case threads are a pretty great solution.
roamingdog has joined #ruby
<existensil>
but reading up will help you
<elementaru>
yes, tcp
<norc>
elementaru, make sure you read up on "Reentrancy" regardless of what you intend to do, and topics about synchronization and mutual exclusion if you want to share *any* data with the thread and the outside world.
<norc>
If you do not do that you will get bugs, race conditions, random behaviour you cannot debug..
skolman has quit [Remote host closed the connection]
eljimmy has quit [Quit: This computer has gone to sleep]
<elementaru>
ok I will ty
maletor2 has quit [Ping timeout: 244 seconds]
skolman_ has joined #ruby
dmr8 has quit [Quit: Leaving]
chouhoulis has joined #ruby
minimalism has joined #ruby
chouhoulis has quit [Remote host closed the connection]
isxek has quit [Remote host closed the connection]
symm- has joined #ruby
nankyokusei has quit [Remote host closed the connection]