scripore has quit [Quit: This computer has gone to sleep]
maloik has joined #ruby
yoongkang has joined #ruby
bkxd has quit [Ping timeout: 272 seconds]
czsr has quit [Quit: Leaving]
saddad has quit [Ping timeout: 260 seconds]
houhoulis has joined #ruby
maloik has quit [Ping timeout: 260 seconds]
zomgbie has joined #ruby
EllisTAA has joined #ruby
Melpaws has quit [Quit: Leaving.]
htmldrum has joined #ruby
cyb3rspy has quit [Quit: leaving]
eminencehc has joined #ruby
Elysia has joined #ruby
nolic has quit [Ping timeout: 246 seconds]
Elysia has quit [Client Quit]
purplexed- has quit [Quit: Leaving]
Elysia has joined #ruby
Elysia has quit [Client Quit]
axsuul has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
asas has quit [Ping timeout: 260 seconds]
cyb3rspy has joined #ruby
Elysia has joined #ruby
Xeago has joined #ruby
cyb3rspy has quit [Client Quit]
SCHAAP137 has quit [Quit: Leaving]
cyb3rspy has joined #ruby
SCHAAP137 has joined #ruby
ta has joined #ruby
cyb3rspy has quit [Client Quit]
cyb3rspy has joined #ruby
pawnbox has joined #ruby
yqt has quit [Ping timeout: 264 seconds]
maloik has joined #ruby
skweek has joined #ruby
ta has quit [Ping timeout: 252 seconds]
cyb3rspy has quit [Quit: leaving]
cyb3rspy has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
davedev24 has quit []
maloik has quit [Ping timeout: 246 seconds]
cdg has joined #ruby
Bellthoven has quit [Ping timeout: 272 seconds]
Bellthoven has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
marr has quit []
jud has joined #ruby
scripore has joined #ruby
moeabdol has quit [Ping timeout: 255 seconds]
cyb3rspy has quit [Quit: leaving]
cyb3rspy has joined #ruby
<EllisTAA>
i’m trying to decompress files that i compressed using Zlib.deflate, and i keep getting this error ‘`inflate': incorrect header check (Zlib::DataError)’ … anyone see anything obvious with my code that would prevent me from decrompressing .gz files? https://github.com/ellismarte/neatfreak/blob/master/neatfreak.rb#L36
rgrmatt has quit [Remote host closed the connection]
gusTester has joined #ruby
vdamewood has quit [Quit: Life beckons.]
diegoaguilar has quit [Ping timeout: 244 seconds]
antoniobeyah has joined #ruby
maloik has joined #ruby
rgrmatt has joined #ruby
eni_ has joined #ruby
<Ox0dea>
EllisTAA: Zlib.inflate expects compressed data; you're giving it a path.
lemur has quit [Read error: Connection reset by peer]
build22 has quit [Ping timeout: 240 seconds]
rgtk_ has quit [Read error: No route to host]
baweaver has joined #ruby
rgtk_ has joined #ruby
ta has quit [Ping timeout: 252 seconds]
rgtk_ has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 246 seconds]
allcentury has quit [Ping timeout: 240 seconds]
maloik has joined #ruby
juddey has joined #ruby
pen has quit []
rgrmatt has quit [Remote host closed the connection]
lemondom has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
rgtk_ has joined #ruby
rgrmatt has joined #ruby
maloik has quit [Ping timeout: 264 seconds]
zfez_ has joined #ruby
rgtk_ has quit [Read error: Connection reset by peer]
lemondom_ has quit [Ping timeout: 276 seconds]
zfez_ has quit [Client Quit]
<blubjr>
wow ruby doesnt do tco ?
<Ox0dea>
blubjr: Consider lurking harder.
<al2o3-cr>
yeah look at RubyVM :)
kp666 has quit [Ping timeout: 260 seconds]
sondr3 has quit [Quit: Sleep]
Coldblackice has quit [Ping timeout: 240 seconds]
Guest42726 has quit [Ping timeout: 276 seconds]
<Ox0dea>
It's difficult to bump into the realization that Ruby doesn't do TCO without quickly finding that it can be finagled into doing so. I suspect blubjr is Blubbing.
<havenwood>
blubjr: CRuby has TCO. It's just disabled by default in favor of backtrace info.
<blubjr>
i just had a recursive function blow up and i was surprised thats all..
davedev24 has quit [Read error: Connection reset by peer]
lemondom has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
_stu_ has joined #ruby
ta has joined #ruby
build22 has quit [Ping timeout: 240 seconds]
JammyHammy has joined #ruby
EllisTAA has joined #ruby
<EllisTAA>
anyone know why this line is giving me the following error ‘Zlib::GzipFile::Error message is not in gzip format .. https://github.com/ellismarte/neatfreak/blob/master/neatfreak.rb#L37 is that saying gz.read is not in gzip format or the path isn’t in gzip format?
<Ox0dea>
> I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
maloik has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
<Ox0dea>
EllisTAA: No, the code you had before that commit was fine.
jschmid has quit [Ping timeout: 255 seconds]
<EllisTAA>
….
JazzyVariable227 has quit [Remote host closed the connection]
m0nge has joined #ruby
<Ox0dea>
I suspect you've got some files with a .gz extension that aren't actually gzipped data.
<EllisTAA>
Ox0dea: damn how did u know.
xxneolithicxx has quit [Ping timeout: 264 seconds]
<Ox0dea>
> Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth.
bkxd has quit [Ping timeout: 240 seconds]
lkba_ has joined #ruby
<darix>
file *gz
JazzyVariable227 has joined #ruby
bkxd has joined #ruby
toretore has quit [Ping timeout: 250 seconds]
CodingWolf has quit [Ping timeout: 265 seconds]
lkba has quit [Ping timeout: 276 seconds]
PaulCapestany has quit [Quit: .]
Yzguy has quit [Quit: Zzz...]
rjn2 has joined #ruby
PaulCapestany has joined #ruby
_stu_ has quit [Quit: _stu_]
jessemcgilallen has joined #ruby
maloik has joined #ruby
CloCkWeRX has joined #ruby
ta has quit [Ping timeout: 252 seconds]
rgtk_ has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
rgtk_ has quit [Read error: No route to host]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
maloik has quit [Ping timeout: 252 seconds]
<shevy>
we gotta make ruby more kickass
JazzyVariable227 has quit [Quit: Leaving...]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tulak has joined #ruby
<EllisTAA>
shevy: how
<shevy>
unsure
<shevy>
the documentation is not too great
Paradox has quit [Ping timeout: 240 seconds]
<EllisTAA>
so i’m getting an error saying file is not in gzip format. if this code is valid then that must mean some file with a .gz extension but that isn’t a compressed file is causing the problem. is this code correct? https://github.com/ellismarte/neatfreak/blob/master/neatfreak.rb#L39-L42
tulak has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
amclain has joined #ruby
amclain has quit [Read error: Connection reset by peer]
saddad has quit [Ping timeout: 246 seconds]
<Ox0dea>
EllisTAA: Uncomment Line 37 and delete Lines 39-43.
<Ox0dea>
And change "data" to "path"; how did it even become "data"?
pwnd_nsfw has joined #ruby
<Ox0dea>
Programming is not a guessing game.
Oog has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
<EllisTAA>
Ox0dea: data was refering to open(path)
Oog has quit [Max SendQ exceeded]
<EllisTAA>
Ox0dea: well the docs suck so i had to guess
<Ox0dea>
EllisTAA: I gave you that code.
<Ox0dea>
It works.
baweaver has quit [Remote host closed the connection]
<Ox0dea>
Your problem is coming from another castle, namely the directory in which you have .gz files that aren't what they say they aare
<Ox0dea>
*are.
Oog has joined #ruby
mooe has joined #ruby
<EllisTAA>
Ox0dea: word
htmldrum has quit [Ping timeout: 250 seconds]
maloik has joined #ruby
ibouvousaime has quit [Ping timeout: 250 seconds]
ja has quit [Remote host closed the connection]
dlitvak has quit [Remote host closed the connection]
rgrmatt has quit [Remote host closed the connection]
terminalrecluse has joined #ruby
m0nge has quit [Quit: Lost terminal]
plumbus has joined #ruby
maloik has quit [Ping timeout: 252 seconds]
build22 has joined #ruby
ja has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
RobertBirnie has joined #ruby
RandyT_ has joined #ruby
NeverTired has joined #ruby
helpa has quit [Remote host closed the connection]
houhouli_ has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 240 seconds]
jimbeaudoin has quit [Quit: Connection closed for inactivity]
diegoviola has joined #ruby
makenoise has joined #ruby
arup_r has joined #ruby
arup_r is now known as Guest77804
dravine has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 1.3]
trosborn has joined #ruby
trosborn has quit [Client Quit]
VeryBewitching has quit [Quit: Konversation terminated!]
tubuliferous_ has joined #ruby
driftig has joined #ruby
nso95 has joined #ruby
gustav_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
zotherstupidguy has quit [Ping timeout: 265 seconds]
gustav_ has quit [Ping timeout: 272 seconds]
dionysus69 has joined #ruby
driftig has quit [Quit: Lost terminal]
myztic has quit [Quit: leaving]
driftig has joined #ruby
Pupp3tm4st3r has joined #ruby
myztic has joined #ruby
Mnemonic has joined #ruby
MyMind has quit [Quit: WeeChat 1.4-dev]
Mnemonic has quit [Client Quit]
trosborn has joined #ruby
RedDwarf is now known as Zackio
Pupp3tm4st3r has quit [Read error: Connection reset by peer]
Pupp3tm4st3r has joined #ruby
trosborn has quit [Client Quit]
Pupp3tm4st3r has quit [Remote host closed the connection]
User458764 has joined #ruby
SCHAAP137 has joined #ruby
Spami has joined #ruby
diegoviola has joined #ruby
tildes has joined #ruby
Jackneill has joined #ruby
build22_ has joined #ruby
Sam0163141155 has joined #ruby
nofxx has joined #ruby
Xeago has joined #ruby
build22_ has quit [Ping timeout: 240 seconds]
lokulin has quit [Changing host]
lokulin has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
xet7 has quit [Quit: Leaving]
bkxd has joined #ruby
<Sam0163141155>
This is from ruby monk's section on inheritance. They're trying to establish how many instance methods float has that aren't inherited. I don't understand why they also subtract Object's instance methods. Aren't all of Object's methods inherited by Numeric? I see the same result in the REPL when I leave out the Object line. Is this a version thing, or am I missing something? http://codepad.org/v5ro1Lsn
nofxx has quit [Ping timeout: 255 seconds]
Spami has quit [Quit: This computer has gone to sleep]
moeabdol has joined #ruby
Pupp3tm4st3r has joined #ruby
makenoise has quit []
tildes has quit [Ping timeout: 255 seconds]
<apeiros>
Sam0163141155: yeah, that's rather pointless
neanderslob has quit [Remote host closed the connection]
trosborn has joined #ruby
<apeiros>
and I wonder what codepad is smoking that it says "undefined method `count' for #<Array:0xf7580564> (NoMethodError)"
<apeiros>
afair that's been around for quite a while
<apeiros>
(even though it's the wrong method if you don't use it with an arg - use length/size instead)
Guest77804 has quit [Ping timeout: 265 seconds]
myztic has quit [Quit: leaving]
<Sam0163141155>
apeiros: tbh, I rarely look at what codepad spits out as output. I use it as a glorified clipboard. But I see what you're saying, count should take a condition as a filter of sorts? Anyway, the example had me scratching my head, as it's in a section on inheritance. Just wanted to be sure I hadn't missed something.
trosborn has quit [Client Quit]
Pupp3tm4st3r has quit [Remote host closed the connection]
<apeiros>
Sam0163141155: yes, count takes either a block as predicate or a value to count
<Sam0163141155>
apeiros: Thanks!
tildes has joined #ruby
<apeiros>
Sam0163141155: btw., the correct way doesn't use -, because even Klass.instance_methods - Klass.superclass.instance_methods can leave some inherited methods (namely ones inherited through modules included directly into Klass)
<apeiros>
the correct way would be Klass.instance_methods(false)
<TTilus>
i've got that "alimiracle is doing it wrong" tingle in my wrists...
dlitvak has joined #ruby
<Ox0dea>
It's probably for some kata-like?
joonty has quit [Quit: joonty]
<TTilus>
dunno, my chrystall ball is hazy today
<apeiros>
TTilus: same tingle. but I stopped bothering for many cases.
kies has joined #ruby
yoongkang has joined #ruby
<alimiracle>
Can you explain how I do not want code
<Ox0dea>
alimiracle: Wrong channel.
unshadow has joined #ruby
<alimiracle>
ok thnx
dlitvak has quit [Ping timeout: 240 seconds]
<unshadow>
When you create a new socket, non_blocking or blocking. ASAIK this is only efective to the Ruby socket and not the kernel\OS socket which behaves differently as dictated by the OS itself right ?
dionysus69 has quit [Quit: dionysus69]
<unshadow>
*ASAIK = AFAIK
_derpy is now known as `derpy
tref has quit [Quit: tref]
aryaching has joined #ruby
alimiracle has quit [Remote host closed the connection]
trosborn has joined #ruby
trosborn has quit [Client Quit]
<yardenbar>
Hi all, I'm trying to install ruby 2.2.3 on SL6.1(carbon), getting permission denied when the install process tried to create minitest directory: "/usr/local/rvm/src/ruby-2.2.3/lib/fileutils.rb:252:in `mkdir': Permission denied @ dir_s_mkdir - /usr/local/rvm/gems/ruby-2.0.0-p645/gems/minitest-5.4.3 (Errno::EACCES)", any ideas?
<Ox0dea>
yardenbar: It seems RVM wants you to be root.
<yardenbar>
Ox0dea, of course i understand that, but is it a regular thing that rvm installs ruby as root?
AndChat479316 has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
AndChat479316 has joined #ruby
baweaver has quit [Remote host closed the connection]
rgrmatt has joined #ruby
ruid has quit [Ping timeout: 252 seconds]
devbug_ has quit [Read error: Connection reset by peer]
gremax has joined #ruby
xaitec has joined #ruby
hinbody has quit [Ping timeout: 265 seconds]
allcentury has joined #ruby
<lipoqil>
On satturday I am going to Rome for almost two weeks. Is there some dev-interesting by that time in Rome or around?
madhatter has quit [Ping timeout: 260 seconds]
<lipoqil>
* there something
maloik has joined #ruby
Trynemjoel has joined #ruby
madhatter has joined #ruby
tk__ has joined #ruby
kp666 has quit [Ping timeout: 240 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
NeverDie has joined #ruby
jackcom has joined #ruby
<jackcom>
i want to learn ruby.
<jackcom>
but i don’t know what tutorial is good?
<driftig>
jackcom: Why do you want to learn Ruby?
<jackcom>
because i like red
<jackcom>
jewry
tildes has quit [Ping timeout: 240 seconds]
<jackcom>
heh
AlphaAtom has joined #ruby
<jackcom>
jewelry
<jackcom>
driftig:
<driftig>
jackcom: Do you have an intelligent reason for wanting to pursue something that has taken hundreds of thousands of people years of dedicated work to create?
<driftig>
jackcom: Because, there are various documents that are geared at varying audiences. Ultimately, you want something elementary, but which leads towards a focus in your general area of interest.
<jackcom>
what tutorial is good?
<driftig>
jackcom: The Well Grounded Ruby is generic enough a document to get your feet wet. After that, you really do have to decide on how you pursue your understanding.
<jackcom>
yes
<jackcom>
give me tutorial
beast has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
<jackcom>
driftig:
<jackcom>
?
<driftig>
See above.
<jackcom>
what?
<jackcom>
what tutorial is good? i don’t know
Mia has joined #ruby
Mia has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
nso95- has quit [Remote host closed the connection]
toretore has joined #ruby
dorei has joined #ruby
gremax is now known as off
Averna has joined #ruby
lubarch has joined #ruby
<driftig>
Groan.
atomical has joined #ruby
sdothum has joined #ruby
monod has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
<jackcom>
No one is here except driftig
solocshaw has joined #ruby
wildlander has joined #ruby
atomical has quit [Client Quit]
Averna has quit [Quit: Ex-Chat]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
agit0 has joined #ruby
Xeago has quit [Remote host closed the connection]
radgeRayden has joined #ruby
millerti has joined #ruby
rgrmatt has quit [Remote host closed the connection]
Erik_Underline has joined #ruby
freerobby has joined #ruby
tildes has joined #ruby
<Erik_Underline>
Hello
mooe has quit [Quit: Connection closed for inactivity]
<adaedra>
Hi
nofxx has joined #ruby
JazzyVariable227 has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
Averna has joined #ruby
gustav_ has quit [Remote host closed the connection]
<jackcom>
what is good tutorial?
karapetyan has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 255 seconds]
xaitec has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<Erik_Underline>
I know this is per se a Ruby-unrelated question, but I really really need help with this and I can't find any solution that works for me on other forums, so I'll try my luck here. I recently got Ubuntu Linux distro and installed it on a SSD, and everything went fine. However, I'm having two big problems; first the headphone jack doesn't work, like it does while I run Windows on my older HDD. It is registered by the computer, as
<Erik_Underline>
refuses to play any sound
<Erik_Underline>
My headphones are perfectly functional on other devices
<Papierkorb>
Erik_Underline: #ubuntu
rgrmatt has joined #ruby
IcyDragon is now known as IceDragon
kirun has joined #ruby
<Erik_Underline>
Oh, didn't know they existed, okay, I won't disturb you ;)
pestle has quit [Remote host closed the connection]
<jackcom>
who can introduce me good tutorial?
Averna has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
rgrmatt has quit [Remote host closed the connection]
pestle has joined #ruby
kies has quit [Ping timeout: 240 seconds]
rgrmatt has joined #ruby
rgrmatt has quit [Remote host closed the connection]
dkphenom has joined #ruby
baweaver has joined #ruby
bMalum has quit [Read error: No route to host]
bMalum has joined #ruby
JazzyVariable227 has quit [Remote host closed the connection]
rgrmatt has joined #ruby
rgrmatt has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 272 seconds]
CloCkWeRX has quit [Ping timeout: 255 seconds]
bMalum has quit [Ping timeout: 264 seconds]
Pupp3tm4st3r has joined #ruby
leat has quit [Remote host closed the connection]
gustav_ has joined #ruby
leat has joined #ruby
<Erik_Underline>
Jackcom, there's a great tutorial for beginners on Codecademy
<Erik_Underline>
After that you can learn more with RubyMonk, which is a harder experience, but much more educational.
Erik_Underline has quit [Ping timeout: 246 seconds]
gustav_ has quit [Remote host closed the connection]
<adaedra>
It was put on starvation.
CodingWolf has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
User458764 has joined #ruby
Trynemjoel has joined #ruby
lubarch has quit [Quit: leaving]
<Ox0dea>
> Dulce et decorum est pro stultitia mori.
agit0 has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
CloCkWeRX has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
synthroid has joined #ruby
sondr3 has joined #ruby
cajone_afk is now known as cajone
<jackcom>
ruby method don’t add ‘()’?
nolic has quit [Quit: leaving]
s2013 has joined #ruby
_blizzy_ has joined #ruby
<unshadow>
(Asking again) When you create a new socket, non_blocking or blocking. AFAIK this is only efective to the Ruby socket and not the kernel\OS socket which behaves differently as dictated by the OS itself right ?
blackjid has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 250 seconds]
blackjid has joined #ruby
Trynemjoel has joined #ruby
<unshadow>
I got this info from "flush" and IO.write: "Flushes any buffered data within ios to the underlying operating system (note that this is Ruby internal buffering only; the OS may buffer the data as well)."
solocshaw1 has joined #ruby
IrishGringo has quit [Ping timeout: 272 seconds]
solocshaw has quit [Remote host closed the connection]
solocshaw1 is now known as solocshaw
<unshadow>
So my question is, is there a way to tell the OS (Linux) that I want the underlying socket to also be blocking\non-blocking ?
RobertBirnie has joined #ruby
Cokie990 has joined #ruby
doddok has joined #ruby
tref has joined #ruby
dlitvak has joined #ruby
Pumukel has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
Cokie990 has left #ruby [#ruby]
Pupp3tm4st3r has quit [Remote host closed the connection]
johnzorn has quit [Read error: Connection reset by peer]
skade has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
blackmesa has joined #ruby
maloik has quit [Ping timeout: 272 seconds]
houhoulis has joined #ruby
ibouvousaime has quit [Ping timeout: 272 seconds]
A124 has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
ibouvousaime has joined #ruby
gigetoo has joined #ruby
loechel has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
nertzy has quit [Quit: This computer has gone to sleep]
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 246 seconds]
Mnemonic has joined #ruby
TomPeed has joined #ruby
futilegames has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
futilegames has left #ruby [#ruby]
khwilo has left #ruby ["Leaving"]
tref has joined #ruby
nofxx has joined #ruby
futilegames has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stamina has quit [Quit: WeeChat 1.3]
IrishGringo has joined #ruby
<yardenbar>
Hi all, I'm tying to run ruby app with non-default ruby using 'rvm ruby-2.2.3 do RUBY_SCRIPT.rb' and I get '/usr/local/rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler/setup (LoadError)', I've installed the bundler gem (shown by bundle show bundler), any idea?
nofxx has quit [Ping timeout: 255 seconds]
bluOxigen has joined #ruby
<havenwood>
yardenbar: Are you a non-root user? What do you get for `which bundler` and `gem which bundler`?
moeabdol has quit [Quit: WeeChat 1.3]
tulak has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 260 seconds]
<yardenbar>
"gem which bundler" -> /usr/local/rvm/gems/ruby-2.2.3/gems/bundler-1.10.6/lib/bundler.rb
<havenwood>
yardenbar: And you're running the command yourself? Not cron or init or anything?
Xeago has quit [Remote host closed the connection]
<dreinull75>
tomorrow someone will probably tell me that I can't run a crucial app on a linux server any more. I'm in windows hell. Right now there's a laptop plugged into our network but I guess it has to leave. What are the solutions for running a really small sinatra app on windows? It runs fine on JRuby. However, I somehow need to frequently update my git repo.
skade has quit [Quit: Computer has gone to sleep.]
<yardenbar>
Generally I use circus to manage processes on this server
<yardenbar>
the process in question runs perfectly on ruby 2.0.0-p645
<yardenbar>
which is the rvm-default
<yardenbar>
I've installed ruby-2.2.3 (also using rvm) and execute bundle install and the process does not run
<havenwood>
yardenbar: Does Bundler work with 2.2.3 if you just run it yourself manually?
zacts has joined #ruby
karapetyan has joined #ruby
<havenwood>
yardenbar: I'm wondering if you don't need to create a wrapper for 2.2.3 since it seems your env is getting dropped.
<havenwood>
dreinull75: JRuby seems like a nice option. Or MRI does install on Win.
inukshuk has quit [Quit: leaving]
davedev24 has joined #ruby
scripore has joined #ruby
chipotle has quit [Max SendQ exceeded]
chipotle has joined #ruby
karapetyan has quit [Remote host closed the connection]
<dreinull75>
havenwood does jruby hava some kind of ecosystem that will help me?
naftilos76 has joined #ruby
jackcom has quit [Quit: jackcom]
<dreinull75>
I think I could do a per user install but then would like to be able to remotely tell clients to update. ie run the server on the client.
<havenwood>
dreinull75: Ah, so you want to ship Ruby to users?
<havenwood>
dreinull75: I think I'm confused.
<dreinull75>
havenwood can't say. I want a simple solution
<havenwood>
dreinull75: Say more about what you're doing?
baweaver has joined #ruby
<dreinull75>
I hava a sinatra app that talks to a db through sequel and outputs some html/pdf. I don't hava problem running this script on a client machine.
<dreinull75>
right now it's on that linux machine, users going there via local ip.
m8 has joined #ruby
cornerma1 has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.3]
zotherstupidguy has joined #ruby
antoniobeyah has joined #ruby
baweaver has quit [Ping timeout: 272 seconds]
PlasmaStar has quit [Ping timeout: 252 seconds]
JazzyVariable227 has joined #ruby
cornerman has quit [Ping timeout: 272 seconds]
cornerma1 is now known as cornerman
PlasmaStar has joined #ruby
antoniobeyah has quit [Ping timeout: 244 seconds]
Mnemonic has quit [Quit: Leaving]
_stu_ has quit [Quit: _stu_]
shinenelson has quit [Quit: Connection closed for inactivity]
inukshuk has joined #ruby
Nahra has joined #ruby
htmldrum has joined #ruby
VladGh has quit [Remote host closed the connection]
<havenwood>
dreinull75: So you're thinking of making self-contained versions of the app that you can put on more boxes? Want a copy locally wherever it's run?
codecop has joined #ruby
<dreinull75>
havenwood sounds good to me.
VladGh has joined #ruby
JazzyVariable227 has quit [Remote host closed the connection]
<havenwood>
vnk: One should be cautious though re-opening core Classes like that ^ since your global changes can get confusing quickly. :)
<vnk>
havenwood: NoMethodError: undefined method `x' for main:Object
<havenwood>
vnk: I have to relocate right now but there are plenty other to help! :) Happy coding!
allcentury has joined #ruby
zotherstupidguy has quit [Ping timeout: 246 seconds]
maloik has joined #ruby
Mon_Ouie has quit [Ping timeout: 255 seconds]
s2013 has joined #ruby
tubuliferous_ has joined #ruby
symm- has joined #ruby
govg has joined #ruby
antoniobeyah has joined #ruby
maloik has quit [Ping timeout: 244 seconds]
antoniobeyah has quit [Client Quit]
tref has quit [Quit: tref]
akem has quit [Read error: No route to host]
akem has joined #ruby
haxrbyte has joined #ruby
howdoicomputer has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
gypsydave5 has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
platzhirsch has joined #ruby
kobain has joined #ruby
govg has quit [Ping timeout: 250 seconds]
psy_ has quit [Ping timeout: 255 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnzorn has joined #ruby
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
Xeago has joined #ruby
kies has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
zotherstupidguy has joined #ruby
BTRE has quit [Quit: Leaving]
jhn has joined #ruby
baweaver has joined #ruby
aryaching has joined #ruby
symm- has quit [Quit: Leaving...]
BTRE has joined #ruby
wnd has quit [Excess Flood]
wnd has joined #ruby
Xeago has quit [Remote host closed the connection]
xaitec has joined #ruby
kallisti5 has joined #ruby
gustav_ has quit [Remote host closed the connection]
<kallisti5>
question.. wouldn't it make more sense to have gem install as --user-install by default?
<kallisti5>
it's always strange that gem install as a non-root user tries to install to system paths :-\
gix has quit [Quit: Client exiting]
woodruff- is now known as woodruffw
baweaver has quit [Ping timeout: 272 seconds]
gix has joined #ruby
<apeiros>
kallisti5: most ruby version managers do that (not sure how exactly)
<apeiros>
e.g. with rvm, gems by default are not installed systemwide.
cwong_on_irc has quit [Quit: Leaving.]
<adaedra>
version managers changes (by env, i think) the default path of gem installation.
<kallisti5>
hm. On Haiku our ruby install is always read-only
<kallisti5>
(system paths are read only)
<kallisti5>
thinking of making --user-install default in our patches
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<kallisti5>
it makes sense... then system packages get read, but user gem installs over-ride system
<adaedra>
For the system-provided, the choice is actually the distribution's, which can provide a gemrc with default to user-install (iirc Arch does it)
<kallisti5>
ooh.. didn't know about gemrc
* kallisti5
was looking at a patch to def install_update_defaults_str
<kallisti5>
in rubygems
<kallisti5>
(adding --user-install to default install flags :-) )
<adaedra>
Under Haiku, everything is root:root, no?
<kallisti5>
in Haiku, anything system (think /usr) is read only
<kallisti5>
packages are mounted over each other and layered
<adaedra>
this ok
<adaedra>
but last time I ran an Haiku, there was only root
<kallisti5>
yeah, there is a single user atm
<adaedra>
ah, atm
<kallisti5>
but yeah... even root can't modify /usr
<adaedra>
there could be a place in the fs for this
<kallisti5>
we use our own package filesystem. install a "system" os package, and it gets mounted at /boot/system
<kallisti5>
nothing in our system paths are read-write.. so installing gems fails :-)
<kallisti5>
however... default user-install fixes that
<adaedra>
there could be
<kallisti5>
then packaged gems installed work... and non-packaged gems installed to user work
<adaedra>
this is a problem you'll have with other systems, like npm
symm- has joined #ruby
<kallisti5>
yeah. Luckily the ruby solution is pretty easy
<marahin>
Hello. I am pretty sure it would be possible, but HOW do I override String class, so whenever I do something like "puts 'abcd'", it would result in printing "(abcd)"?
IrishGringo has quit [Ping timeout: 276 seconds]
<marahin>
(so a function that appends '(' to the beginning of the string, and ')' to the end of the string)
maloik has joined #ruby
karapetyan has joined #ruby
futilegames has quit [Quit: futilegames]
gustav_ has quit [Remote host closed the connection]
<adaedra>
Why would you want that
s2013 has joined #ruby
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maloik has quit [Ping timeout: 272 seconds]
karapetyan has quit [Ping timeout: 272 seconds]
jhn has joined #ruby
jhn has quit [Client Quit]
kies has quit [Ping timeout: 240 seconds]
sankaber has joined #ruby
gix has quit [Quit: Client exiting]
yardenbar has quit [Ping timeout: 260 seconds]
zenguy_pc has quit [Read error: Connection reset by peer]
Drakevr has quit [Changing host]
Drakevr has joined #ruby
xaitec has quit [Read error: Connection reset by peer]
xaitec has joined #ruby
moeabdol has joined #ruby
Oli has joined #ruby
sankaber has quit [Remote host closed the connection]
<marahin>
adaedra, just out of curiosity, I am wondering if it's even possible and if it is, how to access that kind of stuff
yardenbar has joined #ruby
Oli is now known as Guest44916
sankaber has joined #ruby
<vnk>
can anyone explain me what is raise used for?
<adaedra>
To raise exceptions. You may find more complete documentation in most ruby guides.
<djellemah>
Which is a trivially useless use of a regex.
stannard has joined #ruby
finisherr has joined #ruby
hotpancakes has joined #ruby
finisherr has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
<vnk>
djellemah: I am currently trying to understund what regex is, watching some tutorials.. seem like its module with collection of various methods that help us play with strings?
freerobby has joined #ruby
sepp2k has joined #ruby
skcin7 has joined #ruby
<jhass>
vnk: it's a domain specific language specialized to matching and extracting patterns from strings
yardenbar has joined #ruby
<adaedra>
regex is a developer's heaven and a beginner's hell. :p
jordanm has quit [Quit: Konversation terminated!]
<djellemah>
vnk: regex in general is a Regular Expression, which is for doing pattern matching on strings. Regexp is the class that implements regular expressions in ruby. http://ruby-doc.org/core-2.1.1/Regexp.html
<vnk>
adaedra: haha :)
<vnk>
djellemah: tnx will take a look.. also tnx for trying to explain me jhass but I just think I need to get deeper into it to truly understund it.
dealpete has quit [Read error: Connection reset by peer]
stannard has quit [Ping timeout: 252 seconds]
tref has joined #ruby
freerobby has quit [Quit: Leaving.]
Xeago has joined #ruby
gix has quit [Quit: Client exiting]
nertzy has joined #ruby
BSaboia has quit [Ping timeout: 265 seconds]
Xeago has quit [Remote host closed the connection]
Bellthoven has quit [Ping timeout: 260 seconds]
<kallisti5>
norc: thanks :-) Last time it took quite some time... likely because I didn't mention it on redmine?
<jhass>
vnk: the * means that the expression from the first line isn't finished yet
karapetyan has quit [Ping timeout: 240 seconds]
<jhass>
vnk: and that's because you closed with a > instead of a ), so the ( is still open
houhoul__ has joined #ruby
<vnk>
jhass: it should look like this puts "Telephone number cannot contain characters" if "3582fq".match(/[a-z]/), right?
millerti has joined #ruby
houhoulis has quit [Ping timeout: 240 seconds]
<jhass>
?try
<ruboto>
Why don't you try it and see for yourself?
<havenwood>
vnk: Are you familiar with irb or pry?
<vnk>
havenwood: I am using irb currently :)
_blizzy_ has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bMalum has joined #ruby
<vnk>
havenwood: problem is I open terminal, run irb and paste this code "puts "Telephone number cannot contain characters" if "3582fq".match(/[a-z]/)" nothing happens.. its finished this time, no * anymore but nothing happens.. and obviously it should write "Telephone number cannot...."
<havenwood>
>> puts "Telephone number cannot contain characters" if "3582fq".match(/[a-z]/)
<ruboto>
havenwood # => Telephone number cannot contain characters ...check link for more (https://eval.in/473925)
hotpancakes has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
houhouli_ has quit [Ping timeout: 246 seconds]
<jhass>
vnk: still the * visible? hit ctrl-c
<havenwood>
vnk: Are you hitting return?
aspiers has joined #ruby
<vnk>
jhass: noup. it just doesnt do anything
<vnk>
lol.. it just started working for no special reson, I runed it like 5 times before this..
<vnk>
thanks a lot guys! soory for bothering.
maikowblue has joined #ruby
cajone_afk is now known as cajone
karapetyan has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
m3_del has joined #ruby
greenbigfrog has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby
Xeago has joined #ruby
m3_del has quit [Remote host closed the connection]
Jackneill has quit [Quit: Leaving]
m3_del has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
genpaku has quit [Remote host closed the connection]
<vnk>
trivial question, but if regex is kinda language for itself. does that mean that when you learn regex in ruby it will be almost same as regex in java? from my point of view and understunding it should be bescause it doesnt have anything with java or ruby it is its own language.
juddey has joined #ruby
<shevy>
no idea about java but perl and ruby regex are very similar
genpaku has joined #ruby
<shevy>
I think both default to pcre but I am not sure
<jhass>
vnk: yes, the basic concepts are the same. The differences appear in the advanced features and edge case behavior in a particular regex engine
<vnk>
jhass: thanks.
skweek has quit [Ping timeout: 255 seconds]
RobertBirnie has quit [Ping timeout: 265 seconds]
DoubleMalt has joined #ruby
cpup has quit [Ping timeout: 272 seconds]
RobertBirnie has joined #ruby
millerti has joined #ruby
m3_del has quit [Ping timeout: 265 seconds]
cpup has joined #ruby
genpaku has quit [Remote host closed the connection]
genpaku has joined #ruby
akem has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
zenguy_pc has joined #ruby
lxsameer has joined #ruby
spider-mario has joined #ruby
stannard has joined #ruby
<droptone>
Afternoon, ladies and gentlemen!
<droptone>
How are everyone's various projects going today?
cpup has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Quit: Leaving]
cpup has joined #ruby
SCHAAP137 has joined #ruby
ekleog_ is now known as ekleog
dionysus69 has quit [Ping timeout: 240 seconds]
fbidu has joined #ruby
stannard has quit [Ping timeout: 244 seconds]
platzhirsch has quit [Remote host closed the connection]
teoric has quit [Quit: WeeChat 1.3-dev]
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
allcentury has joined #ruby
last_staff has quit [Remote host closed the connection]
last_staff has joined #ruby
moss has joined #ruby
diegoaguilar has joined #ruby
saddad has quit [Ping timeout: 252 seconds]
futilegames has quit [Quit: futilegames]
ibouvousaime has quit [Read error: No route to host]
genpaku has quit [Ping timeout: 244 seconds]
genpaku has joined #ruby
greenbigfrog has joined #ruby
nofxx has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
genpaku has quit [Remote host closed the connection]
<bigmac>
im looking into gdbm vs Hash.new
<bigmac>
hash["text"]=1
<bigmac>
gdbm["text"]=1 => cant convert fixnum to string
genpaku has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
mattwildig has joined #ruby
Channel6 has quit [Quit: Leaving]
<droptone>
kallisti5: I don't know, I manage multiple boxes with per-user rvm deployments, I don't have any issues.
<droptone>
I mean, I suppose it would be nice if it defaulted to non-system-wide by default, but considering how easy it is to do per-user deployments, not sure if they'll do anything here.
<bahar>
hi guys.... trying to update my pg gem.... im getting the following error (using postgres.app btw): invalid option: --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config
<bahar>
anyone know how to get around that?
<droptone>
Also, it may default to system-wide because a lot of *nix builds these days come with a default Ruby deployment, not per-user
BSaboia has joined #ruby
<shevy>
kallisti5 don't think this is a suggestion that is easily feasible since the other way works as well, for those users who prefer the default system-install
<havenwood>
bigmac: DBM only allows Strings for keys and values.
<havenwood>
bigmac: Then you can have a Fixnum value.
bkxd has quit [Ping timeout: 265 seconds]
<bigmac>
oh thank you
<havenwood>
bigmac: you're welcome
arup_r has quit [Quit: Leaving]
shinenelson has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jordanm has joined #ruby
m3_del has joined #ruby
<havenwood>
kallisti5: I prefer the local user dir gem install as well.
nertzy has joined #ruby
varunwachaspati_ has quit [Quit: Connection closed for inactivity]
<kallisti5>
havenwood: i'm suprised no previous tickets were open on it
bkxd has joined #ruby
<kallisti5>
I get how having it default to system-wide might be easier sometimes... but it isn't easier for the right reasons
<kallisti5>
just like compiling sources and installing them to /usr isn't technically correct
myztic has quit [Ping timeout: 265 seconds]
sivoais has quit [Remote host closed the connection]
nbjoerg has joined #ruby
<nbjoerg>
anyone here to take care of a fix for the setjmp use in the interpreter core?
sivoais has joined #ruby
<kallisti5>
tools like rvm override gem installs with --user-directory because it makes more sense and is easier to deal with. --user-directory default means things like vendor gem directories become unnecessary
tildes has quit [Ping timeout: 264 seconds]
zenguy_pc has joined #ruby
eminencehc has joined #ruby
<kallisti5>
anyway, it's a large change... with semi-wide reaching potential impact... so I think a lot of community consensus would be required
zenguy_pc has quit [Read error: Connection reset by peer]
akira__ has joined #ruby
Guest96462 has quit [Ping timeout: 265 seconds]
tildes has joined #ruby
Parko has joined #ruby
quazimodo has joined #ruby
fbidu has quit [Quit: Leaving]
hotpancakes has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 272 seconds]
platzhirsch has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dionysus69 has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
rvm installs into the user's home directory so the prefix is different than /usr anyway; they don't have much of an alternative to defaul to the home dir; gobolinux with its versioned appdirs also got started in that way, by compiling into the user's home prefix
synthroid has quit []
solocshaw has joined #ruby
millerti has joined #ruby
bigmac has quit [Quit: Leaving]
<shevy>
on my system ruby resides at /Programs/Ruby/2.2.3/; gem cache will be at /Programs/Ruby/Current/lib/ruby/gems/2.2.0/cache/
bkxd has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
NeverDie has joined #ruby
saddad has joined #ruby
millerti has quit [Client Quit]
Yzguy has joined #ruby
fbidu has joined #ruby
millerti has joined #ruby
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
icey has joined #ruby
fbidu has quit [Client Quit]
icey has quit [Remote host closed the connection]
ismaelga has quit [Remote host closed the connection]
mutantkeyboard has joined #ruby
s1kx has quit [Ping timeout: 240 seconds]
icey has joined #ruby
lxsameer has quit [Quit: Leaving]
zenguy_pc has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
zenguy_pc has quit [Max SendQ exceeded]
zenguy_pc has joined #ruby
leat has joined #ruby
<havenwood>
Speaking of RVM... a stable release is long overdue. If anyone wants to weigh in on or help with one of the seven milestone blockers left it'd be much appreciated: https://github.com/rvm/rvm/milestones/rvm-1.26.12
framlinqp has joined #ruby
<droptone>
Is it? Any particular reason rvm development has slowed?
<droptone>
I use it on a daily basis, have for years, I love it, works great.
<droptone>
Is there some competitor everyone is switching to?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
droptone: chruby continues to grow in popularity
nertzy has quit [Quit: This computer has gone to sleep]
scripore has quit [Quit: This computer has gone to sleep]
zenguy_pc has quit [Max SendQ exceeded]
millerti has joined #ruby
framling has quit [Ping timeout: 260 seconds]
zenguy_pc has joined #ruby
hotpancakes has joined #ruby
decoponio has quit [Quit: Leaving...]
dtordable has quit [Remote host closed the connection]
IrishGringo has joined #ruby
millerti has quit [Client Quit]
maloik has quit [Ping timeout: 255 seconds]
NeverDie_ has joined #ruby
framlinqp has quit [Remote host closed the connection]
zenguy_pc has quit [Max SendQ exceeded]
zenguy_pc has joined #ruby
NeverDie_ has quit [Client Quit]
vdamewood has joined #ruby
hotpancakes has quit [Ping timeout: 250 seconds]
NeverDie has quit [Ping timeout: 272 seconds]
Yzguy has quit [Quit: Zzz...]
DLSteve has joined #ruby
mattwildig has quit [Remote host closed the connection]
<havenwood>
droptone: The original author or RVM left after some mudslinging by the author of rbenv. After than mpapis took the helm and was sponsored by Engine Yard. They stopped sponsorship and mpapis went to work on RVM 2 and got a new job. So about nine months ago he stepped down as maintainer of RVM 1.
<havenwood>
After that*
nofxx has joined #ruby
techietrash has quit [Quit: Bye! <(^_^<)]
techietrash has joined #ruby
dtordable has joined #ruby
<havenwood>
droptone: TL;DR: There was a full-time dev working on RVM. Now there are volunteers on the weekends.
<havenwood>
droptone: It's over 10,000 lines of portable shell so it's not easy to maintain.
<vnk>
is there difference and when betwen using "" and ''? in ruby ofc :)
<adaedra>
interpolation is not performed inside ''
<vnk>
I am coming from java and we used to put characters only under '' and normal strings under ""
<havenwood>
droptone: We have to choreograph releases with mpapis, who is busy, so that makes it even harder to get stable releases out frequently.
tubuliferous_ has quit [Ping timeout: 272 seconds]
nofxx has quit [Ping timeout: 255 seconds]
radgeRayden_ has joined #ruby
radgeRayden has quit [Ping timeout: 265 seconds]
Averna has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
greenbigfrog has quit [Ping timeout: 240 seconds]
zenguy_pc has quit [Read error: Connection reset by peer]
saddad has quit [Ping timeout: 272 seconds]
Paradox has quit [Ping timeout: 260 seconds]
zacts has joined #ruby
<zacts>
is it more difficult to learn OOP after Functional, or Functional after OOP?
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zacts>
(I wonder if I should try Clojure first, or Ruby)
<mutantkeyboard>
it's just a different approach of solving things
djbkd has joined #ruby
<havenwood>
zacts: Either Clojure or Ruby are good options.
genpaku has quit [Ping timeout: 265 seconds]
<havenwood>
zacts: Or Elixir for that matter. ;)
<havenwood>
zacts: (Elixir borrows a lot from both Clojure and Ruby.)
<mutantkeyboard>
@zacts try to look at this way. If you have a fixed set of operation on things use OOP, but if you have a fixed set of things, and you need a new operation on these, use FP
dtordable has quit [Quit: Lost terminal]
cajone has quit [Remote host closed the connection]
<Coraline>
although I think you want file_num, not :file_num and key, not :key
hotpancakes has joined #ruby
<wilsonc91>
hmm ok, whats the difference between : and without it? Still a bit confused about that
htmldrum has joined #ruby
<Coraline>
Otherwise you have a literal key of :file_num instead of the value from your enumerable
stannard has quit [Ping timeout: 240 seconds]
griffindy has joined #ruby
Melpaws has joined #ruby
<droptone>
Holy crap it's so much nicer deving on 2 27" external monitors.
<Coraline>
:file_num is a symbol, file_num in your case is a variable
<droptone>
I can fit 6 terminal windows on each.
<Coraline>
Does that make sense?
<wilsonc91>
I think so
<wilsonc91>
so :file_num would literally be 'file_num'?
<Coraline>
Yes
<Coraline>
You want the hash key to be dynamic based on the variable's value
<Coraline>
So by not using the : you get updated_script_files["1"]["script_name"]
<Coraline>
:)
<wilsonc91>
okay thnaks :)
<Coraline>
Sure
zenguy_pc has quit [Ping timeout: 255 seconds]
tref has joined #ruby
<shevy>
droptone now you can use your 4 arms to code faster too
<droptone>
shevy: Exactly, ever since transforming into Goro I've seen my development rate increase 82%
<droptone>
I use 2 27" external monitors, 4 keyboards, and an army of underpaid Koreans to develop my Ruby projects.
juddey has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
zenguy_pc has joined #ruby
zenguy_pc has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
zenguy_pc has quit [Client Quit]
maloik has joined #ruby
zenguy_pc has joined #ruby
<shevy>
lol
zenguy_pc has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
Trynemjoel has joined #ruby
maloik has quit [Ping timeout: 244 seconds]
Rickmasta has joined #ruby
loechel has quit [Ping timeout: 252 seconds]
nfk has quit [Remote host closed the connection]
vdamewood has quit [Quit: Life beckons.]
<apeiros>
droptone: how do you stuff the army of koreans in front of your 2 monitors?
ta has joined #ruby
ismaelga has joined #ruby
rgrmatt has joined #ruby
lurch_ has joined #ruby
zenguy_pc has quit [Quit: Leaving]
<adaedra>
they're Koreans, they don't need your poor screens and keyboards to code.
<EllisTAA>
has anyone ever not been able to unzip a .gz file?
zenguy_pc has joined #ruby
<vnk>
guys how often do we actually use .send method in ruby on rails development?
<EllisTAA>
i read there may have been a problem when the file was compressed ...
howdoicomputer has quit [Ping timeout: 265 seconds]
nofxx has joined #ruby
<adaedra>
EllisTAA: does gzip(1) can decode your file?
<adaedra>
does...can, great english here adaedra
gustav_ has quit [Remote host closed the connection]
ta has quit [Ping timeout: 264 seconds]
<shevy>
le fabulous english
tulak has quit [Remote host closed the connection]
rgrmatt has quit [Remote host closed the connection]
sulky has quit [Ping timeout: 260 seconds]
bMalum has joined #ruby
<jhass>
EllisTAA: what does the file command report for that file?
tulak has joined #ruby
w14d0my has left #ruby [#ruby]
digneety has joined #ruby
nofxx has quit []
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
asas has quit [Ping timeout: 276 seconds]
m8 has quit [Quit: Sto andando via]
rgrmatt has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
ekleog has quit [Read error: Connection reset by peer]
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
wildlander has quit [Quit: Saliendo]
scripore has quit [Client Quit]
ekleog has joined #ruby
<wilsonc91>
Could use a hand again :3 http://pastie.org/10574753 Getting a syntax error on line 10 saying it excepts a ':' I basically want to check if theres an existing file with this filename already before creating it
stannard has joined #ruby
<jhass>
wilsonc91: TestScript is an active record model or what?
stannard has quit [Remote host closed the connection]
<wilsonc91>
Yes
<jhass>
the where(...)? is invalid syntax, you want exists?(...)
<wilsonc91>
ah
<jhass>
note that the ? there is part of the method name
quazimodo has joined #ruby
millerti has joined #ruby
millerti has quit [Client Quit]
kirun has quit [Quit: Client exiting]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ChameleonSix has joined #ruby
<ChameleonSix>
Hello
<ChameleonSix>
?
<jhass>
Hello
<jhass>
!
<ChameleonSix>
Ruby
<apeiros>
We greet you
<apeiros>
.
<ChameleonSix>
Are you people programmers
<apeiros>
I'm a contragrammer
<ChameleonSix>
Lol
<apeiros>
but I guess there's a lot of programmers here too
<ChameleonSix>
Can you explain me something
agit0 has joined #ruby
<ChameleonSix>
Do you know Ruby ?
<apeiros>
a little bit
<ChameleonSix>
What does that mean
NeverDie has joined #ruby
millerti has joined #ruby
<ChameleonSix>
Have you written any programs in it
<apeiros>
yes
<jhass>
How about we get to your actual question?
<apeiros>
and ^
<havenwood>
ChameleonSix: A common thing you'll find in the #ruby channel is Rubyists.
<jhass>
ChameleonSix: you should pick some concrete problem/goal that you want to solve, makes it much easier to find the right things to learn in order to do so
<ChameleonSix>
Lol
<ChameleonSix>
Ok
<ChameleonSix>
How do I change a text written in a file using ruby console
<ChameleonSix>
Lol
sepp2k has quit [Quit: Leaving.]
scripore has joined #ruby
<adaedra>
Ruby console?
<jhass>
havenwood: hehe
jschmid has joined #ruby
<ChameleonSix>
Ruby code
User458764 has joined #ruby
<ChameleonSix>
Lol
<ChameleonSix>
Script
trosborn has joined #ruby
<adaedra>
Using the right terminology is the first step of asking efficiently.
<shevy>
did you work through the chris pine tutorial yet?
<apeiros>
-but
<shevy>
^^^
<ChameleonSix>
What
<ChameleonSix>
No
<jhass>
Yes.
jackcom has joined #ruby
<shevy>
hehehe
glenny has joined #ruby
Xeago has joined #ruby
<ChameleonSix>
I use code academy
<ChameleonSix>
And tree house
<wilsonc91>
sorry still having issue with there where? thing. I just want to check if a file doesn't exist
<ChameleonSix>
Do you have any recommendations
<shevy>
unless File.exist? location
<jhass>
ChameleonSix: finish the courses you started. If you're still confused after that read the book I linked above.
<ChameleonSix>
I just don't get something
jschmid has quit [Ping timeout: 260 seconds]
<ChameleonSix>
How to I use that knowledge to manipulate with programs
<jhass>
so you still didn't ask your actual question?
<ChameleonSix>
I got many questions
<ChameleonSix>
Lol
<jhass>
ChameleonSix: don't worry about that for now, it'll become apparent soon enough
<ChameleonSix>
Are you sure
<jhass>
you should understand the basics first
<ChameleonSix>
I understand that
<jackcom>
ruby vs lua, which is more used?
<ChameleonSix>
Idk
<jhass>
ChameleonSix: yes, programming is about building abstractions over abstractions over abstractions and so on
<ChameleonSix>
Can you give me a code example
<jhass>
ChameleonSix: once you understand the lower abstraction such as those for reading and writing files or loops, higher abstractions will become easier to understand
<ChameleonSix>
I got that
<jhass>
ChameleonSix: no, please just proceed with the basics for now
<ChameleonSix>
I understand that basic stuff
<ChameleonSix>
Lol
<havenwood>
jackcom: Ruby. Though it was out of Lua-envy that mruby was born.
<jhass>
ChameleonSix: then you should understand the documentation I linked earlier
<ChameleonSix>
I need to finish ruby gems and objects
<droptone>
jhass: No, I hang in #ruby but know nothing of Ruby.
<ChameleonSix>
Spamming ?
<droptone>
I'm wacky like that.
<ChameleonSix>
Lol
<havenwood>
ChameleonSix: Repeatedly entering into the channel.
<VeryBewitching>
jhass: I think someone is having a little fun with you.
<havenwood>
!kick ChameleonSix Not Lol
ChameleonSix was kicked from #ruby by ruboto [Not Lol]
* jhass
forks Ruby and calls it RBasic
<VeryBewitching>
Thank you havenwood
<droptone>
lmao
<adaedra>
One down
<jhass>
VeryBewitching: nah, just a 12 year old
<droptone>
He's off to hack port 80.
ChameleonSix has joined #ruby
<VeryBewitching>
Or an individual with similar brain setbacks.
<ChameleonSix>
Hmm
<jhass>
ChameleonSix: now you learned what happens if you ignore ops
htmldrum has quit [Ping timeout: 276 seconds]
<ChameleonSix>
I leaned that long ago
<droptone>
"It's not my first rodeo"
<jhass>
how did you get yourself kicked then?
<ChameleonSix>
Hmm idk
<ChameleonSix>
Is ddos firewall bypassable
* droptone
grabs popcorn
<havenwood>
?ot ChameleonSix
<ruboto>
ChameleonSix, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<ChameleonSix>
-_-
<ChameleonSix>
Ruboto hacker
howdoicomputer has joined #ruby
<jhass>
?justabot
<ruboto>
I'm just a bot. You don't need to address me.
<ChameleonSix>
I installed that on my android phone lol
<ChameleonSix>
And it can't execute programs for some reason
<ChameleonSix>
Rooted phone
<adaedra>
Got any real and precise ruby question?
<jhass>
I believe they have their own help channel
djbkd has quit [Remote host closed the connection]
<Radar>
what adaedra said
<ChameleonSix>
Yeah
<ChameleonSix>
Can I create and exe file from .rb
<Radar>
no
<VeryBewitching>
I put him on ignore, the quiet is refreshing.
<Radar>
jackcom: We're happy to answer non-googleable questions in here.
<adaedra>
We can help you here, but not to answer the first question you can answer by some google and/or doc searching. You also have to do some research.
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
be nice
jessemcgilallen has joined #ruby
<Radar>
!kick doddok not nice
doddok was kicked from #ruby by ruboto [not nice]
doddok has joined #ruby
<Radar>
Why are those who have some experience unkind to those without? You were one of those people before.
<Radar>
How quickly you forget!
<doddok>
no
<doddok>
fisrt rule
<Radar>
"We are a polite and inclusive channel. Everybody is welcome."
<Radar>
That is the first rule.
<Radar>
You were not polite.
juddey has quit [Ping timeout: 264 seconds]
<doddok>
if you dont know something try spend couple of days to searching alone
phutchins2 has quit [Quit: WeeChat 1.3]
agent_white has joined #ruby
<droptone>
Radar has seen the light.
<Radar>
days? pah. I expect 15 minutes of trying it out yourself from anyone who I mentor and then if they still can't find the answer then we pair on it.
<agent_white>
Evenin' folks
<droptone>
evening.
<adaedra>
morning.
<blubjr>
hi agent white
<Radar>
When I pair with them I don't start out with "You fucking idiot. It's right there in the docs!" I lead them to the answer very carefully and make sure that they understand where the answer is so that they can find it again.
<jackcom>
"The string you just gave me has a length of #{incoming_string.length}" <—— this is wrong?
<jhass>
looks okay, did you try it out prior asking?
zenguy_pc has joined #ruby
axsuul has quit [Ping timeout: 260 seconds]
<Radar>
Two weeks ago I was at a hack night here in Melbourne where one of the people I mentored was helping out other people. It was fantastic to see.
ledestin has joined #ruby
<Radar>
Do you think he would've gotten to that point if I berated him for not knowing?
<Radar>
doddok: Eagerly awaiting your reply.
bMalum has quit [Quit: bMalum]
<doddok>
radar, has he achieved something worthwhile? can you boast of?
<Radar>
doddok: jackcom or the other person I mentioned?
gustav_ has joined #ruby
<adaedra>
good night.
<jackcom>
:(
<doddok>
other
Spami has quit [Quit: This computer has gone to sleep]
<Radar>
doddok: He is on the way to being a better Ruby and Rails programmer. He recognises where his abilities are lacking and he knows now where he can go to learn things to fill those holes in his knowledge.
<Radar>
jackcom: Please answer the questions with words and not emoticons. jhass asked if you had tried it.
<ruboto>
jackcom, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<Radar>
of course it has to be backwards
<jackcom>
ok jhass
braincrash has quit [Ping timeout: 252 seconds]
safe has joined #ruby
davedev24 has quit [Remote host closed the connection]
braincrash has joined #ruby
karapetyan has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
vnk has joined #ruby
davedev24 has joined #ruby
<vnk>
I am making method that check 2 biggest elements of array(integers). here is my code http://pastie.org/10574859 for some reson it bugs, it shows biggest element but second biggest is always 0 for some reson :( anyone have idea what to do?
<apeiros>
Radar: the idea is simple: `nick: …text…` does not address the bot but `nick`. `ruboto: command args…` is the basic form. `!command args…` and `?fact args…` are contractions of that (for convenience)
doodleha_ has joined #ruby
<apeiros>
i.e. ruboto follows the rule for bots to only speak when addressed, with the exception of having two allowed command prefixes.
<Radar>
ok
sulky has joined #ruby
waka has quit [Read error: Connection reset by peer]
<apeiros>
oh, actually there are more exceptions :-/ (pastebin -> gist f.ex.)
<jhass>
vnk: think about lines 10 and 11, what value does largest have on line 11?
<apeiros>
and now for real, no more reading x64 assembler - to bed with me! :D
<doddok>
max1 = array.max; second = (array-[max1]).max
<doddok>
vnk
<al2o3-cr>
arr.max(2)
<Radar>
^
<vnk>
jhass: largest should have on start value of first element.