joshman_ has quit [Quit: Computer has gone to sleep.]
u89 has quit [Read error: Connection reset by peer]
lenovodroid has joined #ruby
u89 has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
sterNiX has quit [Excess Flood]
<shevy>
cameron__: no idea but if I see code like that, I remove it as a whole in one second
<heftig>
cameron__: i don't quite get your question
<shevy>
there always should be some purpose. I dont think I ever saw code such as "super || nil" in reallife myself
sterNiX has joined #ruby
sterNiX has quit [Changing host]
sterNiX has joined #ruby
mytec has joined #ruby
<cameron__>
heftig I guess the regex fails but does not return nil, so that reverse! can still work. but I don't see how line 3 works -- thanks.
<shevy>
unXus: please no PRIVMSG
<shevy>
type here in #ruby ok
<shevy>
unXus
<ryanf>
cameron__: if super returns something other than nil or false, gsub! will return whatever that was
<ryanf>
otherwise it will return the string itself
<unXus>
shevy: check the priv8 and respond me if you want
<unXus>
next time i talk h ere
rakl has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
<shevy>
I have it closed already, sorry. I chat in browser tabs and have too many tabs open already, opening more tabs within a tab is too much effort for me, just copy/paste your stuff from PRIVMSG to #ruby I dont have it in any buffer
<shevy>
#ruby is the only channel I am on right now
Jasko has joined #ruby
<unXus>
i want to open a link that reproduce a music
<unXus>
<unXus> when i open it on terminal ./file.rb
<unXus>
<unXus> the music starts without open the browser
<unXus>
<unXus> only connecting to the url for receiving the music
tvw has quit [Remote host closed the connection]
<cameron__>
ryanf: sorry I don't follow. apparently the regex returns self in this case to override a return of nil, then reverse! uses super to get String#reverse! but I don't see how.
<heftig>
cameron__: the value of (a || b) is a if a is not false or nil, otherwise b
icole has quit [Remote host closed the connection]
monbro has quit [Ping timeout: 255 seconds]
awaage has quit [Quit: awaage]
awaage has joined #ruby
<cameron__>
heftig: thanks so precedence is used? ie the regex returns nil then returns self because || forces it to?
<heftig>
the "regex" doesn't return anything
<heftig>
super calls String#gsub! with the original arguments. the return value of this call is then examined
<heftig>
by ||, and if it's nil or false, the self is taken instead
awarner has quit [Remote host closed the connection]
<cameron__>
heftig: I see, so the left side is always interpreted first? (left side of ||)
Tombar has quit [Remote host closed the connection]
<heftig>
yes. the right side isn't run if the left side is already true
<heftig>
that's called shortcutting
<shevy>
unXus: if you use firefox, you can open from the commandline in a new tab
<heftig>
er, short-circuiting
<cameron__>
heftig: thank you. is that a sort of operator precedence?
Xeago has quit [Remote host closed the connection]
<cameron__>
heftig: thanks for that..
clj_newb has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
RantriX has quit [Remote host closed the connection]
sterNiX has quit [Quit: Lagging Off]
LennyLinux has quit [Remote host closed the connection]
strangeworks has quit [Quit: Leaving]
nwertman has joined #ruby
Roa has quit [Ping timeout: 256 seconds]
Jdubs has quit [Remote host closed the connection]
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
<nwertman>
Is there a strong preference in the ruby community about using 'self.value' instead of '@value' inside methods? It seems to me that self.value is more resilient to change, but it is also paranoid programming which ruby seems to hate
<OliverEiman>
whats a good way to hide variables in a mixin from the class that includes it
mrsolo has quit [Quit: Leaving]
davidcelis has quit [Quit: K-Lined.]
<OliverEiman>
so i dont have to be afraid of polluting an inheritees namespace
<blazes816>
self.value calls a method called value (actually passes a message but you get the point). @value is an instance variable. so self.value is probably a getter for @value, and so you should probably use it as it encapsulates the logic of accessing that value
<reactormonk>
nwertman, usually, you go `value` anyway
Zolrath has quit [Ping timeout: 240 seconds]
<nwertman>
blazes816: Thanks. I felt like 'self.value' was better, but a lot of sample code uses @value.
CaptainJet has quit [Ping timeout: 260 seconds]
<OliverEiman>
im adding some methods to a mixin that set instance variables (set state that other mixin methods need to use) whats the best way of encapsulating this state
<OliverEiman>
ao that it doesnt pollute the namespace of the class including it
<nwertman>
reactormonk: Thanks. Is that common? It seems to obscure what value is when reading code. Is it a method, a local variable, etc.
vickaita has quit [Ping timeout: 255 seconds]
CaptainJet has joined #ruby
BrianJ has quit [Quit: BrianJ]
cameron__ has left #ruby [#ruby]
BadLarry has quit [Quit: quitting]
<reactormonk>
nwertman, ruby doesn't know either
g-ram has joined #ruby
<reactormonk>
nwertman, but your methods should be short enough for it to not matter
<reactormonk>
much
Guest37737 has quit [Quit: This computer has gone to sleep]
<nwertman>
Right. Thanks.
BadLarry has joined #ruby
double_t has joined #ruby
jaygen has quit [Remote host closed the connection]
Jasko has quit [Read error: Connection reset by peer]
chessguy has quit [Remote host closed the connection]
margle has quit [Quit: Computer has gone to sleep.]
ananthakumaran has joined #ruby
pu22l3r has joined #ruby
fixl has joined #ruby
LouisGB has quit [Ping timeout: 240 seconds]
tpe11etier has quit [Quit: tpe11etier]
cpruitt has quit [Quit: cpruitt]
<reactormonk>
what lib to use to render haml templates?
pac1 has quit [Quit: I got it one line of code at a time]
kryptek_ has joined #ruby
undersc0re97 has quit [Read error: Connection reset by peer]
undersc0re97 has joined #ruby
G has quit [Ping timeout: 260 seconds]
pu22l3r has quit [Remote host closed the connection]
thinkdevcode has quit [Remote host closed the connection]
nitti has joined #ruby
radic has joined #ruby
aetcore_ has joined #ruby
Guest10501 has joined #ruby
shiin has quit [Quit: Computer has gone to sleep.]
becom33 has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
amacgregor_osx has quit [Read error: Connection reset by peer]
aetcore has quit [Ping timeout: 246 seconds]
radic_ has quit [Ping timeout: 255 seconds]
gauravag has joined #ruby
Guest10501 has quit [Read error: Connection reset by peer]
ninegrid has quit [Remote host closed the connection]
ninegrid has joined #ruby
cdehaan has joined #ruby
amacgregor_osx has joined #ruby
<becom33>
I have C programe and I want to it with a ruby application and stop in the middle of it like we do in Ctrl+c
<becom33>
anyone ?
RandyInLA has joined #ruby
mercwithamouth has quit [Quit: Lost terminal]
<rohit>
reactormonk, What exactly are you trying to do?
<rohit>
reactormonk, Ah I didn't know haml didn't have any built in way to render haml files. Try https://github.com/jlong/serve it will start a http server from any directory and will render haml files (among many others)
sepp2k has quit [Read error: Connection reset by peer]
<array>
reactormonk: did you (or anyone else that is available) have any suggestions to wire response.body into ProgressBar? http://privatepaste.com/f4927b13fb/rlang
swex has joined #ruby
<array>
i'm just looking for a way to print the progress bar on the cli while the file is streaming to the client
hsbt_away is now known as hsbt
<array>
(happy to read any relevant documentation if suggested!)
skaczor has quit [Remote host closed the connection]
<becom33>
anyone for me ?
max_dev has joined #ruby
<arietis>
is there any implementation of list in ruby?
max_dev has quit [Client Quit]
<arietis>
or actually, which one is closest to generic list
max_develop has joined #ruby
<arietis>
i mean data type
G has joined #ruby
Orcris has quit [Ping timeout: 246 seconds]
max_develop has quit [Read error: Connection reset by peer]
cakehero has joined #ruby
<heftig>
arietis: Array
<gauravag>
arietis: The ruby arrays can pretty much be used as lists, stacks and queues..
coderhut has joined #ruby
<heftig>
or deques
irclog0 has quit [Remote host closed the connection]
<coderhut>
hello all. i would like to know in following code that what this code 'r:ISO-8859-15:UTF-8' is doing. the full line of code is: File.open(File.join(WEBROOT, 'files', 'Week01-2.csv'), 'r:ISO-8859-15:UTF-8')
ryanf has joined #ruby
jeremywen has joined #ruby
<heftig>
means open the file in read mode, transparently reencoding from iso-8859-15 to utf-8
<RandyInLA>
and the File.join() part is just concatenating together the full path to the file
Toru has quit [Remote host closed the connection]
hsbt has quit [Ping timeout: 246 seconds]
ryanf has quit [Ping timeout: 260 seconds]
mahmoudimus has joined #ruby
<coderhut>
@heftig thanks dear
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
<coderhut>
@RandyInLA thanks too
amd has quit [Quit: amd]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
Connecti0n has joined #ruby
aharris6 has joined #ruby
Bosox20051 has joined #ruby
<aharris6>
hello, can anyone point in the correct direction regarding adding the ability for a user to choose to add additional instances of a specific field on a form
<aharris6>
for instance, there is file upload field, and if they want to upload a second file, they can click "attach another file" and a second field will appear
cakehero has quit [Quit: Leaving...]
<aharris6>
right now I render field with:
<aharris6>
<%= f.fields_for :attachments do |a| %>
<aharris6>
<%= a.file_field :file %>
<aharris6>
<% end %>
thinkdevcode has joined #ruby
<aharris6>
and would like to repeat that block, but if i do it with javascript, the name and id on the <input> do not increase
<aharris6>
*after the page is rendered
nari_ has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<gauravag>
aharris6: though this is not relevant to ruby, a tangential answer to the question would be nested_fields by Ryan Bates
<aharris6>
oh, should i be in a rails room?
xpen has joined #ruby
jaygen has joined #ruby
<gauravag>
I would argue that the question should rather belong in a rails room.. try #ror
<bigmcq77>
#rubyonrails is the correct chan, I think
<aharris6>
I see. ok sorry for my confusion, thanks for the help, and I will take further requests to #rubyonrails
hcs has joined #ruby
cantonic_ has joined #ruby
cantonic has quit [Ping timeout: 268 seconds]
cantonic_ is now known as cantonic
<coderhut>
hello all, i am using php system command to do some action in ruby file. but while looping in ruby file there are utf8 charachters which are working fine if i call ruby file directly but when i call ruby file using php system, ruby loop stops at first occurance of utf8 character. though i beleive its php problem but can any ruby expert also help?
nitti has joined #ruby
jaygen has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
jaygen has joined #ruby
rohit has quit [Quit: Leaving]
ryanf has joined #ruby
kil0byte has quit [Ping timeout: 246 seconds]
<charliesome>
coderhut: do you have any example code?
<heftig>
coderhut: add a comment "# encoding: utf-8" at the start of the file (first line, or second line if the first is a shebang #!)
<coderhut>
charliesome: yes here it is
<coderhut>
file = File.open(File.join(WEBROOT, 'files', 'Week01-2.csv'), 'r:ISO-8859-15:UTF-8') CSV.foreach(file) do |row| puts row[4] end
<coderhut>
row[4] is containing utf8 characters
medik has quit [Quit: medik has no reason]
<charliesome>
try getting rid of the :ISO-8859-15
<heftig>
no
<heftig>
just add the magic comment
<charliesome>
heftig: doesn't that only affect source file encoding?
jaygen has quit [Ping timeout: 252 seconds]
<gauravag>
I never really understood the magic comments
<charliesome>
if the file contains utf-8 chars, treating it as iso-8559-15 isn't going to help
<heftig>
charliesome: it also changes the default external encoding
<charliesome>
and the iso-8859-15 mode should override the default external encoding, right?
<heftig>
yeah, but that's not the issue
<heftig>
the issue is STDOUT
<heftig>
notice calling the ruby file directly works
<charliesome>
ah
<charliesome>
my b.
<heftig>
if ruby is run on an utf8 terminal, it sets the default encoding to utf-8
<heftig>
php system isn't a terminal
<heftig>
so default encoding is set to US-ASCII
thinkdevcode has quit [Remote host closed the connection]
<coderhut>
hefitg: dear i added the comment but it didnt work. however I didnt get the word shebang
<heftig>
yeah, i just noticed
<heftig>
coderhut: run ruby using -KU
cburyta has quit [Remote host closed the connection]
CaptainJet has quit []
<coderhut>
ok
<heftig>
charliesome: i was wrong, the comment doesn't affect the external encoding, but that's still the issue. so -KU should help
<charliesome>
or manually setting Encoding.default_external
khakimov has quit [Quit: Computer has gone to sleep.]
<coderhut>
heftig: did you suggest to use -KU in terminal window or in php system command?
Ry_ has joined #ruby
savage- has quit [Quit: savage-]
<heftig>
system
Connecti0n has quit [Quit: Leaving]
<heftig>
system("ruby -KU foobar.rb")
Ry__ has quit [Read error: Connection reset by peer]
<coderhut>
ok thanks
<coderhut>
heftig: awesome!!!
<coderhut>
it worked
<coderhut>
thanks a lot
hamed_r has joined #ruby
<array>
(apologies for the repeat).. hoping someone can chime in with this: http://privatepaste.com/f6479e618f/rlang - i'm just looking for a way to print the progress bar on the cli while the file is streaming to the client (response.body)
SmoothSage has joined #ruby
<array>
i'm not sure if what i'm trying to achieve is possible with WEBrick though
gauravag has left #ruby ["Leaving"]
gauravag has joined #ruby
gauravag has quit [Remote host closed the connection]
amacgregor_osx has quit [Ping timeout: 252 seconds]
pvh has joined #ruby
nomenkun_ has joined #ruby
nomenkun has quit [Ping timeout: 260 seconds]
mmikeym has quit [Ping timeout: 264 seconds]
amacgregor_osx has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
idletom has quit [Remote host closed the connection]
SilSila has joined #ruby
dakine has quit [Quit: Leaving]
wroathe has joined #ruby
Trioke has joined #ruby
jgilbert has joined #ruby
<havenn>
array: WEBrick's Rack adapter buffers all output, you might have better luck with Puma, Thin or Rainbows! Maybe check out Rack::Stream gem: https://github.com/intridea/rack-stream
<SilSila>
friends...i just started learning ruby in windows 7....the installation is successful...i installed only the ruby...and i tried with puts "hello world" its fine... output is Hello World => nil --- so this output is correct...but i executed in the interactive irb...but how can i get this output in the web browser...and being an oracle database administrator i dont want to connect this ruby db
<SilSila>
programming with any other database other than oracle....so..i will learn later of connecting the db...
aharris6 has left #ruby ["Leaving..."]
<array>
havenn: thank you very much!
mohanmcgeek has joined #ruby
aharris6 has joined #ruby
areil has joined #ruby
<SilSila>
so..is it must to install rails to get the ruby program outputs in a web browsers?
<mohanmcgeek>
Hey people, quick question. Is there a way to use class variables without the double-at-the-reds?
cburyta has joined #ruby
DarkFoxDK has quit [Read error: Operation timed out]
Debolaz has quit [Read error: Operation timed out]
DarkFoxDK has joined #ruby
<aharris6>
test
tekacs has quit [Read error: Operation timed out]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<havenn>
SilSila: There are many web frameworks in Ruby. Rails, Sinatra, Camping, Renee, Cuba, etc. Or you can just use Rack straight.
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<SilSila>
havenn: thanks...i will check it ..whether it support win7 64 bit or not...
<SilSila>
havenn: so can i use oracle as the backend of ruby is it?
srji has quit [Ping timeout: 244 seconds]
Debolaz has joined #ruby
<aharris6>
Hello all, I am attempt to use nested_forms, but when I add "<%= f.link_to_add "Add an attachment", :attachments %>
<aharris6>
" to my form, I get the error "Invalid association. Make sure that accepts_nested_attributes_for is used for :attachments association.". However, I have "accepts_nested_attributes_for :attachments" set in my model. When I remove that line, everything on form works as expected. Any ideas?
<Boohbah>
heftig: tried it, it can't handle arguments in the form '-eEn'
<TTilus>
Boohbah: tried trollop?
<TTilus>
(dont remember if it does combined opts)
<Boohbah>
and optionparser cannot handle the case 'echo.rb -e something -e'
<TTilus>
but it is allround nicer han optionparse ithink
<Boohbah>
the last -e is not an option, but should be echoed
<Boohbah>
TTilus: i read about trollop but have not tried it
<Boohbah>
the parts of my script i think could be better are the octal and hex handling parts, the global varaiables, and the manual loop index handling
Monie has joined #ruby
rakl has quit [Quit: sleeping]
* TTilus
has used trollop exclusively since first tried it
<Boohbah>
i could not figure out a better way to single step through the characters besides manually incrementing my iterator
<coderhut>
heftig: disturbing again... now again ruby code is working fine if i run it independently when i use this line of code category_id = Category.find_or_create_by_name(name: 'Uncategorized').id but not working using php system command :(
<TTilus>
php?!
fantazo has joined #ruby
<TTilus>
"not working" is pretty vague :)
tjbiddle has joined #ruby
hsbt has quit [Ping timeout: 245 seconds]
<coderhut>
TTilus: i am calling ruby from php system command. ruby works fine when i run it in terminal window independently but its not working when i call this ruby file using php system command
<coderhut>
and the ruby command is category_id = Category.find_or_create_by_name(name: 'Uncategorized').id
<yaymukund>
and what's the php system command?
wroathe has quit [Ping timeout: 265 seconds]
hsbt_away has joined #ruby
<TTilus>
coderhut: you still did not give any more info :(
<TTilus>
coderhut: and in system cmd redirect stderr to stdout to see it in output
Grieg has quit [Ping timeout: 268 seconds]
<TTilus>
coderhut: why did you need thet php?
<SilSila>
friends...is anybody using rubyonrails,sinatra etc in windows 7?
<coderhut>
TTilus: ok i never did that stderr/stdout before but let me try that. whole website is in php already thats why running ruby from php just for a specific purpose
<TTilus>
coderhut: purpose is a kind of import i see
<coderhut>
yes you are right
<coderhut>
csv file is huge and php stucks in browser whereas ruby working fine
<havenn>
SilSila: Yeah, they both work fine once properly installed. Can be a pain so you might want to try: http://railsinstaller.org/
<TTilus>
coderhut: wouldnt a simple sinatra app do the thing and youd be able to link it directly?
locriani_ has quit [Read error: Connection reset by peer]
<coderhut>
sorry new to ruby and never did work on sinatra app before
locriani has joined #ruby
<TTilus>
coderhut: you can make a tiny single file webapp using it
lenovodroid has joined #ruby
crackfu has quit [Remote host closed the connection]
<SilSila>
havenn: already i have installed the ruby alone...still i can installed this package installer...will it remove ruby and once again it will install or i have to remove manually the previous ruby?
<coderhut>
TTilus: hmmm...great
Monie has quit [Ping timeout: 255 seconds]
und3f has joined #ruby
locriani has quit [Read error: Connection reset by peer]
joshman_ has quit [Quit: Computer has gone to sleep.]
<TTilus>
coderhut: then again if you need auth you might be better off just the way you are now doing it
locriani has joined #ruby
<havenn>
SilSila: The package installer should leave existing Rubies in place. Allows you to switch to the one you want. I'd just leave the existing one and run the installer on top of it.
JeanMertz has joined #ruby
Zolrath has joined #ruby
hamed_r has joined #ruby
aharris6 has quit [Remote host closed the connection]
aharris6 has joined #ruby
pyx has quit [Quit: Leaving]
<SilSila>
havenn: thanks...let me install it...
SilSila has left #ruby [#ruby]
NsOmNiAc has quit [Ping timeout: 264 seconds]
<coderhut>
TTilus: yes auth is the issue and thats why using this method
<coderhs>
its mentioned there ruby is 20 years old in 2013
Y_Ichiro has quit [Read error: Connection reset by peer]
<coderhs>
ruby was 3 years in beta?
ananthakumaran has joined #ruby
gauravag has quit [Ping timeout: 248 seconds]
Jellyg00se has joined #ruby
gauravag has joined #ruby
stayarrr has joined #ruby
zaki[] has joined #ruby
cburyta has joined #ruby
<rcsheets>
The full history is explained pretty well the Wikipedia article, I think.
<rcsheets>
s/the/by the/
<rcsheets>
I have no first-hand knowledge of it, though.
cburyta has quit [Ping timeout: 246 seconds]
niklasb has joined #ruby
<coderhs>
ya, I just read through.. it seems feb 24th 1993 was the year in which the name ruby was decided...
<coderhs>
but then no ruby code was written
samuelj has joined #ruby
<samuelj>
Hey guys, anyone worked with import.io before? Or with the comet d protocol?
<samuelj>
Are there any good ruby libraries for comet d?
amacgregor_osx has quit [Read error: Connection reset by peer]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
Tuxist has quit [Read error: Connection reset by peer]
Amirh has joined #ruby
nitti has joined #ruby
Tuxist has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
niklasb has quit [Ping timeout: 252 seconds]
Jellyg00se has quit [Ping timeout: 246 seconds]
nitti has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
amacgregor_osx has joined #ruby
hamed_r has quit [Read error: Operation timed out]
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
niklasb_ has joined #ruby
banisterfiend has joined #ruby
JeanMertz has quit []
Grieg has quit [Quit: laterz! :D]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
samuelj has quit [Quit: This computer has gone to sleep]
hotovson has joined #ruby
joeycarmello has quit [Remote host closed the connection]
Y_Ichiro has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
frank has joined #ruby
<frank>
ciaoo
frank has quit [Client Quit]
frank has joined #ruby
jslowe has quit [Quit: Leaving]
gauravag has quit [Ping timeout: 252 seconds]
samuelj has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Xeago has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
niklasb_ has quit [Ping timeout: 252 seconds]
francisfish has joined #ruby
frank has quit []
sam_ has joined #ruby
alee has quit [Remote host closed the connection]
beiter has joined #ruby
samuelj has quit [Ping timeout: 252 seconds]
und3f has quit [Quit: Leaving.]
yshh has joined #ruby
postmodern has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
daniel_-_ has quit [Ping timeout: 252 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
Erfankam has joined #ruby
WP_87327 has joined #ruby
bier_ has quit [Ping timeout: 255 seconds]
bier has quit [Ping timeout: 260 seconds]
<WP_87327>
Hello
WP_87327 has quit [Client Quit]
hsbt has quit [Ping timeout: 245 seconds]
alee has joined #ruby
staafl has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
Erfankam has quit [Quit: Leaving.]
tenmilestereo has joined #ruby
beiter has quit [Read error: Connection reset by peer]
beiter has joined #ruby
hsbt has quit [Ping timeout: 246 seconds]
Erfankam has joined #ruby
bier has joined #ruby
bier_ has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
robbyoconnor has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
ltsstar has joined #ruby
Xeago has quit [Remote host closed the connection]
cburyta has joined #ruby
samuelj has joined #ruby
SeySayux has quit [Ping timeout: 246 seconds]
Villadelfia has quit [Ping timeout: 260 seconds]
banister_ has quit [Read error: Connection reset by peer]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
SeySayux has joined #ruby
cburyta has quit [Ping timeout: 255 seconds]
Villadelfia has joined #ruby
hamed_r has joined #ruby
sam_ has quit [Ping timeout: 268 seconds]
nitti has joined #ruby
shiin has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
u89 has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
nitti has quit [Ping timeout: 246 seconds]
BoomCow has left #ruby ["Leaving"]
ajf_ has joined #ruby
hsbt has quit [Ping timeout: 256 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
arturaz has joined #ruby
joeycarmello has joined #ruby
codeFiend has joined #ruby
postmodern has quit [Quit: Leaving]
<ajf_>
Hi, I would like to call a method dynamically using send and pass the parameters from a hash, how can I do this? So to call mc.status(:service => 'httpd') I would like to have :service => httpd in a hash and mc.send(:status, <hash to parameters>)
<Hanmac>
mc.send(:status,:service => "httpd") ?
<ajf_>
Yeah, I know that works, but I want to create the parameters dynamically too beforehand
jenrzzz has joined #ruby
joeycarmello has quit [Ping timeout: 255 seconds]
pmros has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
slopjong has joined #ruby
<pmros>
hi!
horofox has joined #ruby
Guest10501 has joined #ruby
xpen has quit [Read error: Connection reset by peer]
seanyo has joined #ruby
<slopjong>
I've installed the foreman but it's not on my PATH, to be honest, I'm just a ruby user and thus I'm not familiar with the gem stuff
codeFiend has left #ruby [#ruby]
<slopjong>
what must I do to put the local gems to the path?
codeFiend has joined #ruby
codeFiend has left #ruby [#ruby]
codecop has joined #ruby
kil0byte has joined #ruby
siefca has left #ruby [#ruby]
hsbt_away has quit [Ping timeout: 260 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
Tuxist_ has joined #ruby
areil_ has joined #ruby
<apeiros>
ajf_: send(:status) is silly
jenrzzz has quit [Ping timeout: 260 seconds]
<apeiros>
if you know the method name, you do NOT use send.
<SDr>
erm, I'm looking for websites, mostly, not utilities
Slivka has quit [Read error: Connection reset by peer]
NsOmNiAc has joined #ruby
Slivka has joined #ruby
grizlo42 has quit [Ping timeout: 246 seconds]
<Muz>
"how ruby's done right" - Ruby, like any language, is subject to many different schools of thoughts on any given design model. As for which is right, that's debateable. Pragmatism is hard, let's choose a colour for our bikeshed instead.
grizlo42 has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
<shevy>
SDr: then look at some rails sites, they all look the same but that's the pinnacle I guess
<Muz>
No no no.
Slivka has joined #ruby
cburyta has joined #ruby
<Muz>
To suggest that rails is the pinnacle of ruby done right is laughable, at best.
<shevy>
SDr you did use "pinnacle of ruby engineering" though, not ruby-website engineering :D
Slivka has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
<shevy>
hey it is popular
Slivka has quit [Read error: Connection reset by peer]
_alejandro has quit [Remote host closed the connection]
cdehaan has joined #ruby
<cdehaan>
Hello! I'm getting this error: no such file to load -- dm-mysql2-adapter, but there doesn't seem to be a package dm-mysql2-adapter. What can I do?
nkts has quit []
Banistergalaxy has quit [Ping timeout: 245 seconds]
<shevy>
reactormonk: this is the current one I use http://pastie.org/5357049 it's not very sophisticated. save_file should be available via gem install save_file, ansi_colours unfortunately is unavailable, it uses my old account at rubygems.org and I still have not found out how to remove that (I also removed that email account of that inactive account almost ~2 years ago)
grizlo42 has joined #ruby
k610 has joined #ruby
samphippen has joined #ruby
jblack has quit [Ping timeout: 265 seconds]
<shevy>
hmm
<shevy>
I could upload the ansi_colours .gem somewhere else
<shevy>
but where to hmmmm
twinturbo has quit [Quit: twinturbo]
vlad_starkov has quit [Ping timeout: 246 seconds]
vlad_sta_ has joined #ruby
awestroke has joined #ruby
icooba has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
<shevy>
ah well, would be nice to have one unified login for everywhere... one gmail account, one github account, one rubygems account... and register only once, afterwards allow a login-button
k610 has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
srji has quit [Quit: leaving]
maletor has joined #ruby
nkts has quit []
jblack has joined #ruby
codezombie has joined #ruby
jblack has quit [Client Quit]
becom33 has quit [Read error: Connection timed out]
k610 has quit [Ping timeout: 268 seconds]
tommyvyo has joined #ruby
becom33 has joined #ruby
k610 has joined #ruby
jgrevich has quit [Quit: jgrevich]
GoGoGarrett has quit [Remote host closed the connection]
chussenot has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
icole has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
skaczor has quit [Read error: Operation timed out]
F1skr has joined #ruby
jtcoon has quit [Ping timeout: 261 seconds]
alem0lars has joined #ruby
skaczor has joined #ruby
psycho_one has joined #ruby
whowantstolivefo has quit [Ping timeout: 246 seconds]
coderhut has quit [Quit: Page closed]
ananthakumaran has quit [Quit: Leaving.]
ablankfield has joined #ruby
cburyta has joined #ruby
tk__ has quit [Quit: ばいばい]
flip_digits has joined #ruby
<reactormonk>
shevy, where do I put gems so bundler finds them?
<Hanmac>
in your pants xD
<shevy>
hmmm I have no idea, never used bundler myself (successfully that is, I tried it at least twice, it failed powerfully both times). via "gem" alone it should work, all gems will be installed into ruby's SITE_DIR and a backup in cache/ directory, which on most linux systems by default should be under /usr/lib/ruby/gems/1.9.1/cache/
<shevy>
noone here knows bundler :)
<reactormonk>
shevy, hm
centipedefarmer has quit [Remote host closed the connection]
<shevy>
come on Hanmac, how does bundler make use of gems?
cburyta has quit [Ping timeout: 255 seconds]
rknLA has joined #ruby
Guest23587 has quit [Quit: Guest23587 has no reason]
<Hanmac>
i dont use it too
freakazoid0223 has quit [Quit: Leaving]
nitti has joined #ruby
vickaita has quit [Ping timeout: 246 seconds]
<shevy>
hehe
<shevy>
that's my man!
trevortwining_ has quit [Quit: trevortwining_]
theRoUS has quit [Ping timeout: 260 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
ninegrid has quit [Quit: brb]
jaygen has joined #ruby
jaygen has quit [Remote host closed the connection]
jaygen has joined #ruby
becom33 has quit [Read error: Connection timed out]
nitti has quit [Ping timeout: 246 seconds]
becom33 has joined #ruby
chittoor has quit [Quit: leaving]
Nisstyre-laptop has quit [Quit: Leaving]
grizlo42 has quit [Quit: Leaving.]
grizlo421 has joined #ruby
ninegrid has joined #ruby
alem0lars has quit [Remote host closed the connection]
banjara1 has quit [Quit: Leaving.]
enderx86 has quit [Remote host closed the connection]
und3f has joined #ruby
jipiboily has joined #ruby
joeycarmello has joined #ruby
daniel_- has joined #ruby
aharris6 has quit [Remote host closed the connection]
rampantmonkey has joined #ruby
Guest36125 has quit [Quit: WeeChat 0.3.9]
slainer68 has joined #ruby
blacktulip has quit [Read error: Connection reset by peer]
ilyam has quit [Ping timeout: 246 seconds]
blacktulip has joined #ruby
jipiboily has left #ruby [#ruby]
joeycarmello has quit [Ping timeout: 264 seconds]
daniel_- has quit [Ping timeout: 252 seconds]
OSInet has quit [Ping timeout: 246 seconds]
grizlo42 has joined #ruby
grizlo421 has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
ilyam has joined #ruby
rampantmonkey has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
savage- has joined #ruby
nateberkopec has joined #ruby
slainer68 has quit [Ping timeout: 268 seconds]
skaczor has quit [Remote host closed the connection]
<BrianJ>
how do I search a hash map for a value?
<banisterfiend>
BrianJ: find
<BrianJ>
what do I put into it? a string?
<banisterfiend>
BrianJ: no..what do you want to find?
<canton7>
BrianJ, sample input and output?
<heftig>
hash.find { |k,v| v == "foobar" }
rafter has quit [Remote host closed the connection]
<heftig>
it's a linear search
trevortwining has quit [Quit: trevortwining]
cakehero has quit [Quit: Computer has gone to sleep.]
raul782 has joined #ruby
<banisterfiend>
heftig: what're you up to these days
thismynick has joined #ruby
<strtok>
Spaceghostc2c: cute :) (turtle sandbox)
<heftig>
banisterfiend: not much
<Spaceghostc2c>
strtok: :D
<BrianJ>
heftig: thanks, not sure if I got it right because when I do a puts on it it doesn't return anything… here's my code http://pastie.org/5357249
Virunga has joined #ruby
<BrianJ>
my goal is to check if a repository on github exists
jenrzzz has joined #ruby
<Hanmac>
SpaceGhost is only "batman in space" :D
BoomCow has joined #ruby
rellin has joined #ruby
pcarrier has quit []
<Hanmac>
BrianJ & heftig: hash.key(value)
<heftig>
Hanmac: right, forgot about that
thismynick has quit [Quit: Leaving...]
Ry__ has joined #ruby
Ry_ has quit [Read error: Connection reset by peer]
prezioso has joined #ruby
becom33 has quit [Read error: Connection timed out]
skaczor has joined #ruby
bradhe has joined #ruby
becom33 has joined #ruby
psycho_one has quit [Remote host closed the connection]
<BrianJ>
ugh
<BrianJ>
nvm its an array
Daman has quit [Ping timeout: 248 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
yaymukund has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: Computer has gone to sleep.]
<jrajav>
Space Ghost is pretty cool
<jrajav>
But Space Ghost Coast to Coast is mathin' incredible
<jrajav>
Oh god that was probably one of my favorite AS shows
JeanMertz has joined #ruby
<banisterfiend>
jrajav: "mathin'" did you get that from adventure time?
<jrajav>
:D
<jrajav>
I like cartoons ok
EddieS has joined #ruby
<jrajav>
DONT JUDGE ME
<Hanmac>
yeah thats "Mathamatical" :D
EddieS has quit [Client Quit]
<jrajav>
Algebraic!
amacgregor_osx has joined #ruby
<banisterfiend>
jrajav: how do you rate adventure time?
<Hanmac>
its beyond scale :D
<jrajav>
On a scale from 1 to 10, I rate it a "holy glob my brain just exploded"
<Hanmac>
infos about season5: beginning with the first two episodes as a 30MIN-TWO-PARTER :D, than later another genderswap episodes ... and lady rainacorn gets the puddies
raul782 has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
grizlo42 has left #ruby [#ruby]
<banisterfiend>
Hanmac: "puddies"
Jasko has joined #ruby
skaczor has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Zai00 has left #ruby [#ruby]
cburyta has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
jipiboily has joined #ruby
jipiboily1 has joined #ruby
jipiboily1 has left #ruby [#ruby]
bigmac_ has joined #ruby
<jrajav>
Hanmac: Holy what.
darthdeu has quit [Ping timeout: 244 seconds]
jipiboily has quit [Ping timeout: 246 seconds]
<jrajav>
I.
<jrajav>
What.
<jrajav>
Yes.
<Hanmac>
"what" is an common reaction when you see what pendleton did :D
grizlo42 has joined #ruby
<jrajav>
It's more of a meta-what to me somehow missing him releasing a new series
<jrajav>
I need to start following my twitter more closely
grizlo42 has left #ruby [#ruby]
i8igmac has quit [Ping timeout: 255 seconds]
swex_ has joined #ruby
swex has quit [Ping timeout: 246 seconds]
wroathe has joined #ruby
<banisterfiend>
Hanmac: i dont get it, can u explain
raul782 has joined #ruby
<Hanmac>
its from the same creator as AdventureTime
cakehero has joined #ruby
yshh has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
OSInet has joined #ruby
k610 has quit [Ping timeout: 240 seconds]
Slivka has quit [Read error: Connection reset by peer]
SuperrMann has quit [Quit: Bye all :)]
alek_b has quit [Remote host closed the connection]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
adamholt has joined #ruby
Jackneill has quit [Quit: Jackneill]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
peregrine81 has quit [Ping timeout: 260 seconds]
visof has joined #ruby
wroathe has quit [Ping timeout: 268 seconds]
<BrianJ>
this is kind of a two part question… I want to evaluate the result of my ruby script in bash and evaluate as true or false… Not sure how to make my script return false if it doesn't find anything or true if it does .. http://pastie.org/5357630
<BrianJ>
anyone have any ideas?
Amirh has quit [Quit: Leaving.]
peregrine81 has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
reset has quit [Quit: Leaving...]
jeff_sebring has joined #ruby
nitti has joined #ruby
A_85 has joined #ruby
havenn has quit [Remote host closed the connection]
k610 has joined #ruby
kirun_ has joined #ruby
bradhe has quit [Remote host closed the connection]
kirun has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
nitti has quit [Ping timeout: 240 seconds]
k610 has quit [Ping timeout: 248 seconds]
ablankfield has quit [Ping timeout: 276 seconds]
<shevy>
damn... how do I access /proc/cpuinfo from within a .rb script?
<shevy>
oh wait
<shevy>
cat works
<shevy>
so this works too File.read "/proc/cpuinfo"
<shevy>
BrianJ: did you try with the exit value returned by the ruby script yet?
<shevy>
exit 5, exit 0 etc...
<BrianJ>
uh no
joeycarmello has joined #ruby
<shevy>
man, php code is so weird. .. $tpl->set_var('network', makebox($text['netusage'], html_network(), '100%'));
<shevy>
am trying to port this to ruby
<shevy>
BrianJ: well your ruby script must give back something to the shell or?
<BrianJ>
sorry was testing it
<BrianJ>
i added exit 0
<Hanmac>
shevy like this? tpl.network = makebox(text['netusage'], html_network, '100%')
<BrianJ>
if it finds it
<shevy>
hmm wonder how you can get the error status
raul782 has quit [Remote host closed the connection]
<BrianJ>
exit 1?
qwerxy has quit [Quit: offski]
<shevy>
Hanmac: yeah... this is already cleaner :D
Nisstyre-laptop has joined #ruby
<shevy>
BrianJ: dunno, I forgot how to use shell scripts...
<shevy>
but cant you check for the return value of shell scripts?
awestroke has quit [Remote host closed the connection]
Proshot has joined #ruby
Drewch has joined #ruby
niklasb_ is now known as niklasb
joeycarmello has quit [Ping timeout: 260 seconds]
xclite has quit [Ping timeout: 256 seconds]
wroathe has joined #ruby
<shevy>
hey what would you rather use ...
havenn has joined #ruby
<shevy>
@mode = :commandline or @mode = 'commandline' ? it can have only three different modes. that's where a symbol would be better or?
ablankfield has joined #ruby
Wiktor has joined #ruby
<Hanmac>
symbol is more "Mathematical" :D
idzuna has joined #ruby
alejandro_ has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
chussenot has quit [Quit: chussenot]
JustinCampbell has joined #ruby
jipiboily has joined #ruby
<becom33>
shevy, need a help bro
chussenot has joined #ruby
brianpWins has quit [Ping timeout: 248 seconds]
<Wiktor>
hm, i have a problem with my lack of knowledge. I want to put records from sqlite select to a table, but it only returns me the last record, even if there is plenty of records. Is it possible to put it in 2dim table ?
jipiboily has left #ruby [#ruby]
<shevy>
Hanmac: yeah... well, symbol can also never change... whereas @mode, if a string, could be modified i.e. via @mode << ' test'
<becom33>
Im looking for a method that I can run a executable file in unix using ruby . I used exec but the problem is the process need to be runing for a long time . what I want to do is the kill process in the middle if I want to . but I cant get a process id without finishing the exec
cakehero has quit [Quit: Computer has gone to sleep.]
prezioso has quit [Client Quit]
postmodern has joined #ruby
prezioso has joined #ruby
Proshot has quit [Quit: Leaving]
monkegjinni has quit [Remote host closed the connection]
prezioso has quit [Client Quit]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
prezioso has joined #ruby
cburyta has joined #ruby
bradhe has joined #ruby
brianpWins has joined #ruby
francisfish has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
cburyta has quit [Ping timeout: 252 seconds]
prezioso has quit [Quit: leaving]
rknLA has quit [Remote host closed the connection]
<elico>
need some help with cgi, reading request headers.
<becom33>
shevy, im not sure if the popen is the thing what I want , well it good if Im using it to run calc or firefox or some with GUI . but this application is console based
prezioso has joined #ruby
prezioso has quit [Client Quit]
carlyle has joined #ruby
<shevy>
all you need is to get the PID right?
<shevy>
which you will get
<shevy>
then you can kill it
<becom33>
shevy, yea but when I goto kill it there is no pid like that to kill :/
<shevy>
why not?
<shevy>
Process.kill
g-ram has quit [Quit: Computer has gone to sleep.]
dreinull has quit [Remote host closed the connection]
joeycarmello has joined #ruby
bradhe has joined #ruby
dakine has quit [Remote host closed the connection]
Wiktor has left #ruby ["Wychodzi"]
crackfu has quit [Remote host closed the connection]
JeanMertz has joined #ruby
prezioso has joined #ruby
prezioso has quit [Client Quit]
codeFiend has joined #ruby
<elico>
anyone have some experience with cgi scripts?
joeycarmello has quit [Ping timeout: 256 seconds]
tchebb has quit [Read error: Connection reset by peer]
tchebb has joined #ruby
dagnachewa has joined #ruby
prezioso has joined #ruby
u89 has quit [Remote host closed the connection]
sheerun has joined #ruby
Araxia has quit [Ping timeout: 240 seconds]
yaymukund has joined #ruby
blacktulip has quit [Read error: Connection reset by peer]
cakehero has joined #ruby
havenn has quit [Remote host closed the connection]
prezioso has quit [Client Quit]
tchebb1 has joined #ruby
prezioso has joined #ruby
havenn has joined #ruby
joeycarmello has joined #ruby
tchebb has quit [Ping timeout: 246 seconds]
tchebb1 is now known as tchebb
bradhe has quit [Ping timeout: 256 seconds]
trevortwining has quit [Quit: trevortwining]
<shevy>
elico: depends
mpereira has joined #ruby
<shevy>
you can use ruby .cgi scripts just fine
prezioso has quit [Client Quit]
prezioso has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
<elico>
shevy: thanks, I have used it but I want to do specific thing
prezioso has quit [Client Quit]
<elico>
I want to get full request from user with headers and to use this script to fetch another file based on these headers...
<becom33>
I have this array . I want use this in a method and everytime I call the method I want get a array value the one after I used before list = ['john','shevy','becom33','mona']
<shevy>
not sure how to fetch the headers elico, is it not in some ENV file?
<shevy>
.params or .env or something
<becom33>
for a example if Im using john at the moment , and I call the method where this array has is been listed , I want it to return shevy
<becom33>
I mention what I got as a result and What I want as a result in the paste
prezioso has quit [Quit: leaving]
prezioso has joined #ruby
stephenjudkins has joined #ruby
qwerxy has quit [Quit: offski]
peregrine81 has joined #ruby
<shevy>
elico: I use only linux
<elico>
but what distro?
<shevy>
becom33: I can't make sense of what you want there
<shevy>
becom33: can't you use pastie.org?
<shevy>
or just write here what does not work
<shevy>
elico: I think this is chakra linux
<shevy>
elico: the problem is, if I use something like debian, I have to deal with modified settings. i.e. ruby gem paths are in /var/lib suddenly
<elico>
you dont know?
<shevy>
elico: nope, no idea. it does not really matter because all distributions modify things in ways as to make it harder to not be dependent on them anymore
<becom33>
shevy, well you can see I have method called array_method() so what i want is every time I call that method I want the array to return the value one after it returned before
caleb_io has quit [Quit: caleb_io]
bradhe has joined #ruby
<becom33>
for a example . if it turned john for the first round of loop
<becom33>
then the second round of loop it should return shevy
<shevy>
becom33: then just solve it step by step right? in 1.9.x you can use .rotate and .rotate!
<shevy>
yes, this is what .rotate already does, right?
<shevy>
modify class Array
joeycarmello has joined #ruby
<shevy>
if RUBY_VERSION < '1.9'
<shevy>
then your script would be portable too
dagnachewa has joined #ruby
prezioso has quit [Quit: leaving]
Axsuul has joined #ruby
<shevy>
I dont even see in your code where you rotate the elements at all
joeycarmello has quit [Remote host closed the connection]
alanp has joined #ruby
alanp has quit [Read error: Connection reset by peer]
alanp has joined #ruby
u89 has joined #ruby
Michae___ has joined #ruby
nitti has joined #ruby
<volty>
if you ever want to read you source files on an ebook device go for a one that supports the epub format (and tell the others to do so ..., thx).
alanp_ has quit [Ping timeout: 268 seconds]
cakehero has quit [Ping timeout: 245 seconds]
nitti has quit [Ping timeout: 240 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
pmros has quit [Quit: Konversation terminated!]
Chryson has joined #ruby
techi has joined #ruby
techi is now known as Guest95843
<Guest95843>
is it just me? "RubyForge Could Not Connect to Database:"
Virunga has quit [Remote host closed the connection]
slainer68 has joined #ruby
staafl has quit [Ping timeout: 252 seconds]
adeponte has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
kold has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
_bry4n has quit [Remote host closed the connection]
sebastorama has joined #ruby
monkegjinni has quit [Remote host closed the connection]