<werdnativ>
The failure seems to be repeatable on travis-ci… it's just comparing Time.local instances which is something that's done all throughout the whole test suite so I think we know how to do that by now... I'm at a loss to explain why this one is failing.
guiocavalcanti has quit [Ping timeout: 256 seconds]
Kricir has quit [Remote host closed the connection]
<havenwood>
werdnativ: I'd be curious to see the result when comparing #to_i.
atyz has joined #ruby
larissa has quit [Quit: Leaving]
<werdnativ>
havenwood: 1369955816 == 1369955816; I could probably cheat the test by comparing the to_s or to_i, but that defeats the point, in case there's some underlying issue.
<havenwood>
werdnativ: Are they both the same class? Compare #class?
crazymykl has quit [Remote host closed the connection]
<havenwood>
werdnativ: One an ActiveRecord time or something?
<werdnativ>
Yes, both are Time, I event compared class.object_id
<havenwood>
werdnativ: ermagawd
Tricon has joined #ruby
pcarrier_ has quit [Ping timeout: 241 seconds]
<werdnativ>
must be some edge case due to environment… I tried with ENV['TZ']=UTC but no change.
brennanMKE has joined #ruby
marr has quit [Ping timeout: 246 seconds]
<havenwood>
werdnativ: Weird. Could skip test on Travis or start an issue ticket with Travis guys and see if they can figure it out.
pcarrier_ has joined #ruby
daniel_- has quit [Ping timeout: 240 seconds]
<werdnativ>
yeah, I might try that. I wouldn't think they'd be interested to look but it's an interesting one.
niklasb has quit [Ping timeout: 245 seconds]
zastaph has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby
mad_hatter_ has quit [Quit: Leaving.]
rippa has quit [Ping timeout: 240 seconds]
pinpin404 has quit [Remote host closed the connection]
kf8a has joined #ruby
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
bradhe has joined #ruby
tjbiddle_ has joined #ruby
DonRichie has quit [Ping timeout: 246 seconds]
Axsuul has joined #ruby
DonRichie has joined #ruby
brianherman has joined #ruby
randomguy_ has quit [Quit: leaving]
bradhe has quit [Ping timeout: 252 seconds]
kf8a has quit [Ping timeout: 248 seconds]
sheerun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjbiddle has quit [Ping timeout: 246 seconds]
tjbiddle_ is now known as tjbiddle
sepp2k has quit [Remote host closed the connection]
tjbiddle has quit [Client Quit]
kil0byte has joined #ruby
agjacome has quit [Quit: leaving]
senj has joined #ruby
nari has joined #ruby
banjara has quit [Quit: Leaving.]
blandflakes has quit [Ping timeout: 245 seconds]
teclator has quit [Ping timeout: 246 seconds]
senayar has quit [Quit: Quitte]
rx has joined #ruby
Dreamer3 has quit [Ping timeout: 248 seconds]
Z_Mass has joined #ruby
Nikki_L has joined #ruby
<Nikki_L>
Hi Guys, I'm playing around with Ruby, and I'm following this guide: http://guides.rubyonrails.org/getting_started.html. It showed me how to create a category, and nest items under it. How can I allow users to nest items under items automatically?
breadthf_ has quit [Remote host closed the connection]
breadthfirst has joined #ruby
<Spooner>
Nikki_L, #rubyonrails channel is more Rails-focussed than this general channel.
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
moos3 has joined #ruby
_seanc_ has quit [Quit: _seanc_]
djwonk has quit [Quit: djwonk]
smilingraccoon has joined #ruby
myu has quit [Read error: Connection reset by peer]
DonRichie has quit [Quit: Verlassend]
myu has joined #ruby
Dummies_freelanc has left #ruby [#ruby]
daniel_hinojosa has quit [Ping timeout: 252 seconds]
ClientAlive has joined #ruby
finges has joined #ruby
<ClientAlive>
has anyone dealt with installing rvm before? I don't think anyone on #arch knows how to help me and thier wiki says something I don't quite get the rvm wiki says something I don't understand. It says: "Note: Remember to change the line [ [ -s $HOME/.rvm/scripts/rvm ] ] && source $HOME/.rvm/scripts/rvm to the system-wide location changing $HOME to /usr/local/" <- but I don't see where it tells you where to put it. https://wiki.archlinux.org/
<ClientAlive>
every chanel I go to has progressively fewer and fewer users
<havenwood>
ClientAlive: Haha.
<ClientAlive>
lol
niklasb has joined #ruby
cj3kim has joined #ruby
royalty has joined #ruby
<ClientAlive>
it's one of those situations where ruby is a prereq for what i'm really trying to install, I go to install ruby via the preferred method, and get stuck in the mud with it.
<ClientAlive>
DOH!
rickruby has joined #ruby
<ClientAlive>
havenwood: perhaps if you were to look at the line in the wiki you would understand where I have not?
<ClientAlive>
are you willing to give it a shot?
eka has joined #ruby
kenneth has joined #ruby
<havenwood>
ClientAlive: Are you doing a system-wide install of RVM?
<havenwood>
ClientAlive: (The standard install is Single-User. The Multi-User install is a system-wide install.
<havenwood>
)
rickruby has quit [Remote host closed the connection]
<ClientAlive>
havenwood: yes
<havenwood>
ClientAlive: You are server admin, need multi-user support?
<ClientAlive>
I was trying to but perhaps that was a mistake since I am the only admin for the system
<ClientAlive>
I effed up
generalissimo has joined #ruby
eka has quit [Client Quit]
<ClientAlive>
now what do I do?
<havenwood>
ClientAlive: I'd definitely recommend Single-User install. Do a `rvm implode` to completely remove RVM and then run the install script again?
slainer68 has quit [Remote host closed the connection]
<ClientAlive>
havenwood: are you serious? there is an "rvm implode"?
<havenwood>
ClientAlive: Yup.
<ClientAlive>
lmao
<ClientAlive>
hilarious
Spooner has quit [Remote host closed the connection]
tundrax has joined #ruby
_maes_ has joined #ruby
<ClientAlive>
thx man - got er'
ClientAlive has left #ruby ["Konversation terminated!"]
<bnagy>
systemwide rvm is the worst of all worlds
undersc0re97 has quit [Quit: WeeChat 0.4.1]
hnsz has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
palantir has joined #ruby
Proshot has quit [Quit: Leaving]
pskosinski has quit [Ping timeout: 264 seconds]
tjbiddle has quit [Quit: tjbiddle]
krainboltgreene has quit [Quit: krainboltgreene]
krainboltgreene has joined #ruby
bradhe has joined #ruby
dhruvasagar has joined #ruby
niklasb has quit [Ping timeout: 246 seconds]
djwonk has joined #ruby
Myconix has quit [Quit: Server Error 482: The server has been shot by a 12-gauge, please contact an administrator]
atyz has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 248 seconds]
aeontech has joined #ruby
<becom33>
is there a way we can use a variable to defind a method ? for example lets say I have module and most of the module named with 'sys' like 'sys_name' 'sys_date'
<becom33>
so I was wondering if we can use the 'sys' into a variable
<becom33>
no I mean when ur definding the method . like when ur creating the method insted using doing "def sys_name" can we use a variable where sys is been used
guiocava_ has quit [Remote host closed the connection]
<ClientAlive>
I've never dealt with ruby before. If a document lists: ruby, jruby, rails and ruby gems - do I have to install all of them or just pick one of them?
<bnagy>
you can't use ruby ( MRI ) and jruby at the same time
<bnagy>
they're alternative ruby interpreters
<bnagy>
rails and ruby gems are stuff that's on top
<bnagy>
but you'll get gems with any ruby install, so you don't need to worry about it
<ClientAlive>
so all of those things are comaparable to java (in the sense that they are an interpreter)?
<bnagy>
no, just ruby and jruby
<ClientAlive>
ok
<bnagy>
rails is a web app framework and gems is our add-on software system
yumingzhe has joined #ruby
<havenwood>
ClientAlive: JRuby runs on the JVM like Java. Ruby runs on MRI, an interpreter written by the Ruby folks in Tokyo.
<ClientAlive>
so it sounds like I would choose one of (ruby or jruby) + rails and ruby gems added to whichever I choose
Dr_ has joined #ruby
<bnagy>
yeah, except you won't have to add gems, you'll just get it
<ClientAlive>
ah
<ClientAlive>
ahhh
<ClientAlive>
ok
breadthfirst has quit [Remote host closed the connection]
breadthfirst has joined #ruby
<ClientAlive>
so if installing redmine is my goal, what is the better choice for me? ruby or jruby?
<bnagy>
NFI I don't do web crap :)
Hanmac has joined #ruby
<ClientAlive>
lol
<ClientAlive>
ok
<bnagy>
either should work, ruby is probably safer
<bnagy>
jruby will be faster if it works
<ClientAlive>
right on man
<ClientAlive>
thx
myu has quit [Ping timeout: 248 seconds]
slainer68 has quit [Ping timeout: 246 seconds]
finges has joined #ruby
Kricir has joined #ruby
jrajav has joined #ruby
Dr_ has left #ruby [#ruby]
larissa has joined #ruby
bluehavana_ has quit [Quit: Connection closed for inactivity]
snearch has quit [Quit: Verlassend]
yumingzhe has quit [Read error: Connection reset by peer]
daniel_- has quit [Ping timeout: 252 seconds]
yumingzhe has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
havenwood has quit [Remote host closed the connection]
F1skr has quit [Quit: WeeChat 0.4.1]
Sm3lly has joined #ruby
phipes has quit [Quit: phipes]
royalty has quit [Quit: This computer has gone to sleep]
brian_000_ has joined #ruby
brian_000_ has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
johnkary has quit [Quit: @johnkary]
nfk has quit [Quit: yawn]
icco has quit [Ping timeout: 252 seconds]
butblack has joined #ruby
Kricir has joined #ruby
icco has joined #ruby
jimg has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
butblack has quit [Ping timeout: 252 seconds]
Eaven has joined #ruby
finges has quit [Ping timeout: 245 seconds]
braincra- has quit [Read error: Operation timed out]
Mattix has joined #ruby
rickruby has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
jurbat has joined #ruby
rickruby has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
bradhe has joined #ruby
icco has quit [Ping timeout: 256 seconds]
icco has joined #ruby
kry has joined #ruby
<aces1up23>
if i have a binary encoded string ex.. Its a jpg image but i also want to add regular text to the string.. I'm doing a raw http post request.. can i just use the normal string functions like gsub etc.. or is there an issue combining these two things?
falood has quit [Remote host closed the connection]
<bnagy>
http will be your problem, not string manipuation
vlad_starkov has quit [Remote host closed the connection]
pagios_ has joined #ruby
<pagios_>
hello, i am trying to put the console output and error written into a logfile using: ruby /var/www/myapp.rb &> /tmp/output.log & for some reason the file is always empty even though the script is executed
johnkary has quit [Quit: @johnkary]
LennyLinux has joined #ruby
threesome has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 245 seconds]
skattyadz has joined #ruby
kil0byte has joined #ruby
yashshah_ has joined #ruby
yashshah has quit [Quit: Konversation terminated!]
yashshah- has joined #ruby
zeeraw has joined #ruby
johnkary has joined #ruby
browndawg has quit [Ping timeout: 248 seconds]
yashshah_ has quit [Ping timeout: 256 seconds]
browndawg has joined #ruby
tvw has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
DanKnox_away is now known as DanKnox
dfdf has quit [Remote host closed the connection]
daniel_- has joined #ruby
fphilipe has quit [Remote host closed the connection]
jlast has joined #ruby
spider-mario has joined #ruby
fphilipe has joined #ruby
cha1tanya has quit [Ping timeout: 256 seconds]
workmad3 has quit [Read error: Operation timed out]
tylersmith has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
ioNull has quit [Quit: Computer has gone to sleep.]
nerdman has joined #ruby
<ericmathison>
pagios_: i'm not sure what the ampersand after /tmp/output.log is for but if i run a ruby script in a simmilar fashon as you did, i get errors messages in the log file
tvw has quit []
<ericmathison>
i put just put a syntax error in my ruby script...
<ericmathison>
*i just put
dfdf has joined #ruby
Loaft has quit [Read error: Operation timed out]
qun has joined #ruby
yacks has joined #ruby
<pagios_>
erichmenge: it works fine if executed from commandline, if i try to include in in crontab @reboot it doesnt output anything
<artofraw>
anybody knows if memory for variables in C is allocated in the order that they're defined?
<artofraw>
so if I have 2 declarations, the first one will have a lower memory address than the 2nd
<pagios_>
atmosx: try that if you are really bored ;P
arya has quit [Ping timeout: 248 seconds]
icole has joined #ruby
apeiros has joined #ruby
ariedler has quit [Remote host closed the connection]
stenno has joined #ruby
Axsuul has quit [Ping timeout: 264 seconds]
arya has joined #ruby
pinpin404 has joined #ruby
apeiros_ has quit [Ping timeout: 256 seconds]
alem0lars has joined #ruby
alem0lars has left #ruby [#ruby]
krainboltgreene has joined #ruby
icole has quit [Ping timeout: 252 seconds]
<stenno>
good day, at the moment we are deploying a sinatra server with rake simply with 'nohup rake &'. what would be the preferred way to automate the following task: "pull from the project git repository; kill and restart rake"?
robscomputer_ has joined #ruby
<stenno>
can i express 'restart rake' in a rake task? :)
bricker has quit [Read error: Connection reset by peer]
tundrax has joined #ruby
Takehiro has joined #ruby
robscomputer has quit [Ping timeout: 252 seconds]
marr has quit [Ping timeout: 252 seconds]
<apeiros>
stenno: make a pidfile, send a signal (either kill directly or trap one of the user signals)
<apeiros>
alternatively you can replace the process using Kernel#exec
<atmosx>
pagios_: implement the logger it's easy and won't polute your stdout. I'm studying analysis of drugs :-P (Chemistry)
<atmosx>
:-P
<atmosx>
how's life apeiros ? :-)
tylersmith has joined #ruby
<apeiros>
as always
stenno has quit [Quit: leaving]
<apeiros>
and yours?
bricker has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
bashdy has joined #ruby
tundrax has quit [Read error: Operation timed out]
stenno has joined #ruby
marius has joined #ruby
robscomputer has joined #ruby
cj3kim has quit [Remote host closed the connection]
<atmosx>
apeiros: hard week ahead, exam period.
<apeiros>
oy
<stenno>
ergh, freenode timed out on me
<apeiros>
easy week ahead, due to 4 day week-end :)
<stenno>
it seems that Sinatra::Application.run! will fail if there is already something running
icecandy has joined #ruby
<stenno>
right now my workflow of restarting the rake task is getting the pid, killing it, then starting new
<stenno>
i hoped there was a more elegant method to do the same
<stenno>
s/task/process/
artofraw has left #ruby [#ruby]
bradhe has joined #ruby
dfdf has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
codecop has joined #ruby
Neomex has joined #ruby
workmad3 has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
Neomex has quit [Client Quit]
arya has quit [Ping timeout: 248 seconds]
bradhe has quit [Ping timeout: 248 seconds]
Proshot has joined #ruby
jijix has joined #ruby
maxmanders has joined #ruby
alekst has joined #ruby
vlad_starkov has joined #ruby
arya has joined #ruby
ariedler has joined #ruby
gasbakid has joined #ruby
jijix has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 252 seconds]
tundrax has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
KevinSjoberg has joined #ruby
ariedler has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 245 seconds]
jamesaxl_ has joined #ruby
fphilipe has quit [Read error: Connection reset by peer]
jamesaxl has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
zmike has joined #ruby
stenno has quit [Quit: leaving]
fphilipe has joined #ruby
zmike has quit [Read error: Connection reset by peer]
<MrZYX>
yup my logic would be something like def read(n); @buffer = StringIO.new(super(@buffer_size) if @buffer.nil? || @buffer.eof?; @buffer.read(n); end (simplified, not guarding against the edge case, for example n > buffer left)
<catphish>
Spooner: odd, that seems like the opposite of what i'd expect
<catphish>
i'd expect super() to be an explicit "no parameters here"
<catphish>
and "super" to pass them through
<Spooner>
super() or super(...) give explicit parameters. super uses the same params as passed in.
<MrZYX>
I'd expect them to behave the same, as everywhere else in ruby
<Spooner>
It is a horrid special case ;)
workmad3 has quit [Ping timeout: 245 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
<Spooner>
lxsameer, You need to use self explicitly when you are using a setter, since it would normally be interpreted as setting a local variable instead.
<Spooner>
self.resource = (call #resource=) resource = (set a local var)
skattyadz has quit [Quit: skattyadz]
<lxsameer>
Spooner: what about getter ?
bashdy has quit [Quit: bashdy]
<Spooner>
In all other situations, however, Ruby can work out the 'self' implicitly. In getters, you are fine.
machuga|away is now known as machuga
<lxsameer>
Spooner: take a look at line 12
<Spooner>
What about line 12?
<lxsameer>
Spooner: the is no self. and i get an error, when i add the self problem solved, any idea ?
<Spooner>
You mean def self.create ?
<Spooner>
(incidentally, the self in line 8 is not needed).
<lxsameer>
Spooner: no "if self.resource.save"
<Spooner>
That is line 15 in the file you linked.
<lxsameer>
Spooner: :P sorry
jlast has quit [Ping timeout: 246 seconds]
<Spooner>
I can't see a reason for it not to work. What is the error if you don't use the explicit self there?
<atmosx>
do I need to tell mysql to 'set names utf8' when I'm using sequel and ruby2.0 using a raw SQL command?
<atmosx>
sounds a bit crazy to me
Xeago has quit [Remote host closed the connection]
stonevil has joined #ruby
blandflakes has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
stonevil_ has joined #ruby
Cultofmetatron has joined #ruby
emmanuelux has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
stonevil_ has quit [Remote host closed the connection]
stonevil has quit [Quit: stonevil]
stonevil has joined #ruby
whitemage has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
yashshah- has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 245 seconds]
_rgn has quit [Ping timeout: 240 seconds]
phasma has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
im0b has quit [Ping timeout: 252 seconds]
SeanTAllen has quit [Ping timeout: 276 seconds]
_rgn has joined #ruby
lyanchih has joined #ruby
yashshah has joined #ruby
strax has quit [Ping timeout: 260 seconds]
mtlatif__ has quit [Ping timeout: 246 seconds]
Spaceghost|cloud has quit [Ping timeout: 264 seconds]
guilleiguaran_ has quit [Ping timeout: 264 seconds]
stonevil has quit [Client Quit]
stonevil has joined #ruby
phasma has joined #ruby
gyre007 has joined #ruby
stonevil has quit [Client Quit]
stonevil has joined #ruby
iamjarvo has joined #ruby
stonevil has quit [Remote host closed the connection]
stonevil has joined #ruby
Opettaja has joined #ruby
bradhe has joined #ruby
leonidlm has quit [Ping timeout: 246 seconds]
tomzx_mac has joined #ruby
teclator has quit [Ping timeout: 276 seconds]
tylersmith has joined #ruby
hrr has quit [Quit: hrr]
Nahra has quit [Quit: leaving]
teclator has joined #ruby
Hanmac1 has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
Ontolog has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
Nahra has joined #ruby
Nahra has quit [Changing host]
Nahra has joined #ruby
Ontolog has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 256 seconds]
browndawg has joined #ruby
sayan has joined #ruby
statarb3 has joined #ruby
Bry8Star has quit [Remote host closed the connection]
Guest___ has joined #ruby
atno has quit [Ping timeout: 245 seconds]
browndawg has quit [Quit: Leaving.]
stonevil_ has joined #ruby
razvan5665 has quit [Remote host closed the connection]
stonevil has quit [Ping timeout: 264 seconds]
randym_ has joined #ruby
Bry8Star has joined #ruby
Neomex has quit [Quit: Neomex]
Takehiro has joined #ruby
<felipebalbi>
any tips on how to get twitter gem to work again ? my script started throwing Twitter::Error::ClientError (it used to work fine few weeks ago)
yacks has quit [Remote host closed the connection]
pietr0_ has joined #ruby
yo61_ has joined #ruby
sgharms_ has joined #ruby
kpwz_ has joined #ruby
denken_ has joined #ruby
flagg0204 has joined #ruby
Blue_Ice_ has joined #ruby
QKO has joined #ruby
Blue_Ice_ has quit [Changing host]
Blue_Ice_ has joined #ruby
patronus has joined #ruby
kloeri_ has joined #ruby
asuka_ has joined #ruby
Coolhand_ has joined #ruby
mercwith1mouth has joined #ruby
jetblack_ has joined #ruby
rickruby has joined #ruby
Guest___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monkegjinni has quit [Remote host closed the connection]
mahmoudimus has quit [Ping timeout: 256 seconds]
icecandy has joined #ruby
yashshah_ has joined #ruby
pcarrier_ has joined #ruby
falood has quit [Remote host closed the connection]
Bish_ has joined #ruby
thomasfedb_ has joined #ruby
deavidsedice has joined #ruby
natwelch has joined #ruby
strax has joined #ruby
pooriaazimi has joined #ruby
skattyadz_ has joined #ruby
Takehiro has quit [Remote host closed the connection]
robottinosino has joined #ruby
dhruvasagar has joined #ruby
monkegjinni has joined #ruby
dmiller has joined #ruby
retnuh has joined #ruby
IceDragon has joined #ruby
whitemage has quit [Ping timeout: 252 seconds]
ariedler has joined #ruby
browndawg has joined #ruby
ivanoats has joined #ruby
stonevil_ has quit [*.net *.split]
Nahra has quit [*.net *.split]
tomzx_mac has quit [*.net *.split]
yashshah has quit [*.net *.split]
lyanchih has quit [*.net *.split]
mercwithamouth has quit [*.net *.split]
atmosx has quit [*.net *.split]
skattyadz has quit [*.net *.split]
Davey has quit [*.net *.split]
ToApolytoXaos has quit [*.net *.split]
Caius has quit [*.net *.split]
alexspeller has quit [*.net *.split]
icco has quit [*.net *.split]
jetblack has quit [*.net *.split]
plotter has quit [*.net *.split]
thomasfedb has quit [*.net *.split]
gadgetoid has quit [*.net *.split]
mishke has quit [*.net *.split]
Coolhand has quit [*.net *.split]
prime has quit [*.net *.split]
elektronaut has quit [*.net *.split]
jtcoon has quit [*.net *.split]
yasu has quit [*.net *.split]
Bish has quit [*.net *.split]
ping-pong has quit [*.net *.split]
deavid has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
kloeri has quit [*.net *.split]
Blue_Ice has quit [*.net *.split]
QKO_ has quit [*.net *.split]
pietr0 has quit [*.net *.split]
patronus_ has quit [*.net *.split]
machuga has quit [*.net *.split]
Whoop has quit [*.net *.split]
ziyadb has quit [*.net *.split]
flagg0205 has quit [*.net *.split]
huismon has quit [*.net *.split]
sgharms has quit [*.net *.split]
denken has quit [*.net *.split]
yo61 has quit [*.net *.split]
asuka has quit [*.net *.split]
anekos_ has quit [*.net *.split]
malcolmva has quit [*.net *.split]
WanderingGlitch has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
kpwz has quit [*.net *.split]
skattyadz_ is now known as skattyadz
natwelch is now known as icco
nhhagen has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
ivanoats has quit [Remote host closed the connection]
daniel_- has joined #ruby
baroquebobcat has joined #ruby
icco has quit [Ping timeout: 256 seconds]
prime has joined #ruby
prime has joined #ruby
prime has quit [Changing host]
icco has joined #ruby
Takehiro has joined #ruby
baroquebobcat has quit [Client Quit]
elektronaut has joined #ruby
lurch_ has quit [Quit: lurch_]
dhruvasagar has quit [Read error: Connection reset by peer]
Learningg has joined #ruby
chandankumar is now known as chandankumar_
undersc0re97 has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
Learningg has quit [Killed (idoru (Spam is off topic on freenode.))]
zaargy_ is now known as zaargy
denken_ is now known as denken
lurch_ has joined #ruby
cha1tanya has quit [Quit: Leaving]
kloeri_ is now known as kloeri
mattbl has joined #ruby
stonevil has joined #ruby
Hanmac1 has joined #ruby
malcolmva has joined #ruby
jtcoon has joined #ruby
ping-pong has joined #ruby
Whoop has joined #ruby
Whoop has quit [Changing host]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
plotter has joined #ruby
plotter has quit [Changing host]
plotter has joined #ruby
crazedpsyc has joined #ruby
huismon has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
rickruby has quit [Remote host closed the connection]
avelldiroll has joined #ruby
viszu has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
stenno has quit [Quit: brb]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Cultofmetatron has joined #ruby
yasu has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
icco has quit [Read error: Operation timed out]
johnnyfuchs has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
ToApolytoXaos has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Davey has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
WanderingGlitch has joined #ruby
lyanchih has joined #ruby
alexspeller has joined #ruby
gadgetoid has joined #ruby
machuga has joined #ruby
Caius has joined #ruby
mishke has joined #ruby
anekos_ has joined #ruby
ziyadb has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
icco has joined #ruby
lyanchih has quit [Quit: lyanchih]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
<ihme-TTilus>
tomkad: your problem is that you exhaust your memory
lyanchih has joined #ruby
ravster has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Ortuna has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
ihme-TTilus is now known as TTilus
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Takehiro has quit [Remote host closed the connection]
<TTilus>
tomkad: write numbers to file as you go (if you need them all)
undersc0re97 has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
lyanchih has quit [Client Quit]
nariyal has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Whoop has joined #ruby
Whoop has quit [Excess Flood]
<TTilus>
tomkad: if you need only the final value, don't push to array, but just keep the two latest numbers
<TTilus>
tomkad: that might shed some light on the issue of exhausting your memory by "just calculating fibonacci for the first 4 million numbers" ;)
Ortuna has quit [Quit: Computer has gone to sleep.]
pcarrier_ has quit [Ping timeout: 245 seconds]
<TTilus>
tomkad: the numbers grow pretty quickly
arya has quit [Ping timeout: 248 seconds]
tylersmith has quit [Ping timeout: 246 seconds]
apalmblad has joined #ruby
daniel_- has quit [Ping timeout: 240 seconds]
stonevi__ has joined #ruby
pcarrier_ has joined #ruby
Ortuna has joined #ruby
Kricir has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 245 seconds]
arya has joined #ruby
Whoop has joined #ruby
Whoop has quit [Excess Flood]
Guest51022 has joined #ruby
Guest51022 has quit [Excess Flood]
hamakn has quit [Remote host closed the connection]
gasbakid has quit [Ping timeout: 246 seconds]
Whooop has joined #ruby
Ortuna has quit [Client Quit]
hamakn has joined #ruby
retnuh has quit [Quit: Computer has gone to sleep.]
dmiller has quit [Remote host closed the connection]
cj3kim has joined #ruby
yashshah_ has quit [Read error: Connection reset by peer]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
Inoperabled is now known as Inoperable
Inoperable is now known as Inoperabled
JZTech101 has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
phrame has left #ruby ["Leaving"]
yashshah has joined #ruby
leonidlm has joined #ruby
Inoperabled is now known as Inoperable
darthdeus has joined #ruby
<darthdeus>
anyone else experiencing bundler being really slow? i have a gemfile with 2 gems and it takes literally 5-10 minutes to just bundle install ... :\
<darthdeus>
i've tried reinstalling bundler and also 2.0.0-p195, but still slow
<darthdeus>
on 1.3.5
nariyal has quit [Ping timeout: 252 seconds]
undersc0re97 has quit [Quit: WeeChat 0.4.1]
aces1up23 has quit []
splittingred has joined #ruby
<apeiros>
darthdeus: try giving a version requirement
<apeiros>
the narrower, the better
<darthdeus>
apeiros: that's not the problem, it used to be fast about 2 weeks ago ... but since then everything is ridiculously slow
stonevi__ has quit [Remote host closed the connection]
JZTech101 has joined #ruby
atno has joined #ruby
pooriaazimi has quit [Quit: pooriaazimi]
jamesaxl has joined #ruby
LimitSupremum has joined #ruby
icole has joined #ruby
Dummies_freelanc has quit [Ping timeout: 256 seconds]
sailias has quit [Quit: Leaving.]
<havenwood>
darthdeus: You could ask on #bundler. Maybe check bundler issues. Haven't heard of slow bundler probs.
sayan has joined #ruby
sailias has joined #ruby
<havenwood>
darthdeus: Tried a `bundle --verbose`?
<workmad3>
darthdeus: I assume you have a Gemfile.lock? so it's definitely not bundler resolution issues?
abstrusenick has joined #ruby
<darthdeus>
workmad3: yeah, it's not happening on just one app, but everywhere
devoldmx has quit [Read error: Connection reset by peer]
<darthdeus>
havenwood: will try, thanks
devoldmx has joined #ruby
sayan has quit [Read error: Connection reset by peer]
<workmad3>
darthdeus: has anything networky changed? like a proxy that's starting going slow?
<workmad3>
s/starting/started
devoldmx has quit [Read error: Connection reset by peer]
<darthdeus>
workmad3: nope, i've even tried two different internet connections, it's been slow in all circumstances
bradhe has quit [Remote host closed the connection]
<workmad3>
darthdeus: I'd follow havenwood's advice of asking in #bundler then, armed with the output of a 'bundle install --verbose'
Ortuna has joined #ruby
<workmad3>
darthdeus: namely that output with a line highlighted so you can say 'it takes ages here ---->'
sayan has joined #ruby
maxmanders has joined #ruby
lurch_ has quit [Quit: lurch_]
Davey has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
sayan has joined #ruby
vlad_sta_ has joined #ruby
feedbackloop has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
splittingred has quit [Read error: Connection reset by peer]
splittingred has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
leonidlm has quit [Ping timeout: 276 seconds]
mroth has joined #ruby
sheerun has joined #ruby
guilleiguaran_ has joined #ruby
mikepack has joined #ruby
Spaceghost|cloud has joined #ruby
im0b has joined #ruby
SeanTAllen has joined #ruby
sheerun has quit [Read error: Connection reset by peer]
Inoperable is now known as Inoperabled
ryan_turner has joined #ruby
moos3 has joined #ruby
s3m73x has quit [Remote host closed the connection]
jgrevich has joined #ruby
<ryan_turner>
Hi, has anyone here used ruby-serialport? I'm successfully writing to the SerialPort but it's not successfully reading any of hte reponses.
Nahra has joined #ruby
Nahra has quit [Changing host]
Nahra has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
abstrusenick has quit [Quit: abstrusenick]
<ryan_turner>
Basically, I'm supposed to be able to write "FA;\r\n" and receive a response from it like "FA00014195000;"
<ryan_turner>
I know it's receiving the commands I send it, as some commands dont have answers but instead just take actions, and they are responding properly.
rickruby has joined #ruby
<ryan_turner>
Is what I'm trying to do more complicated than just writing the command and then trying to read immediately afterwards to see the answer?
<apeiros>
ryan_turner: I don't know ruby-serialport, but I'd try to keep reading non-blocking
havenwood has quit [Read error: Connection reset by peer]
<apeiros>
maybe you read before the response is available?
havenwood has joined #ruby
<ryan_turner>
It's hanging on read
<ryan_turner>
I end up killing the process because it never finishes
<apeiros>
how do you read?
<apeiros>
do you just io.read ?
<ryan_turner>
yes
<apeiros>
weeeeell
<apeiros>
io.read reads until eof
<ryan_turner>
(this is my first time in Ruby)
atmosx has joined #ruby
<apeiros>
you need to either read a specific amount of bytes (io.read(n)), or to a specific terminator (io.gets(";"))
<ryan_turner>
Ah, nice!
<ryan_turner>
; is a terminator.
tylersmith has joined #ruby
Whooop is now known as Whoop
Whoop has quit [Changing host]
Whoop has joined #ruby
<apeiros>
I'd assume that your IO is not line-buffered, otherwise gets(";") might hang too
<ryan_turner>
There are only a few odd commands that are line buffered
<ryan_turner>
Yay!
ArchBeOS has quit [Ping timeout: 252 seconds]
<ryan_turner>
The gets worked.
<ryan_turner>
Thank you so much!
Eiam has joined #ruby
rickruby has quit [Ping timeout: 256 seconds]
mtlatif__ has joined #ruby
fschuindt has joined #ruby
<ryan_turner>
Im writing an OS GTK app for remote control of a Kenwood HF radio transceiver
gasbakid has joined #ruby
lurch_ has joined #ruby
marr has joined #ruby
saarinen has quit [Quit: saarinen]
s3m73x has joined #ruby
olistik has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
b0oh has joined #ruby
bradhe has joined #ruby
rsimecek has joined #ruby
_blackbird has joined #ruby
maxmanders has joined #ruby
m8 has joined #ruby
_blackbird has quit [Client Quit]
_blackbird has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
w400z has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
_blackbird has left #ruby [#ruby]
maxmanders has quit [Client Quit]
robottinosino has quit [Ping timeout: 276 seconds]
mjburgess has joined #ruby
brianpWins has joined #ruby
brianpWins has left #ruby [#ruby]
ariedler has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
Nahra has quit [Quit: leaving]
machuga is now known as machuga|away
apalmblad has quit [Quit: apalmblad]
apalmblad has joined #ruby
w400z has quit []
jcrawfor- has joined #ruby
mattbl has joined #ruby
apeiros_ has joined #ruby
baba has joined #ruby
jcrawfor- is now known as jcrawford
jcrawford has quit [Changing host]
jcrawford has joined #ruby
jcrawford has joined #ruby
statarb3 is now known as Proshot
breadthfirst has quit [Remote host closed the connection]
breadthfirst has joined #ruby
AndChat| has joined #ruby
djwonk has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
gasbakid has quit [Read error: Operation timed out]
Nahra has joined #ruby
Nahra has joined #ruby
Nahra has quit [Changing host]
yashshah has quit [Quit: Konversation terminated!]
yashshah has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
Banistergalaxy has quit [Ping timeout: 256 seconds]
robottinosino has joined #ruby
Kricir has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
stonevil_ has joined #ruby
wallerdev has joined #ruby
DonVitoCorleone has quit [Quit: Ojsaaaaaaaaaaaaaaaaaaaaaaa]
monkegjinni has quit [Remote host closed the connection]
icecandy has quit [Remote host closed the connection]
mogsy has quit [Ping timeout: 245 seconds]
chipotle_ has quit [Quit: cya]
DonVitoCorleone has joined #ruby
olistik has quit [Remote host closed the connection]
wargasm has joined #ruby
poga has joined #ruby
gasbakid has joined #ruby
altamic has joined #ruby
altamic has left #ruby [#ruby]
yashshah has joined #ruby
skattyadz has quit [Quit: skattyadz]
endguy has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: Leaving.]
johnkary has joined #ruby
sayan_ has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
Takehiro has joined #ruby
sayan_ has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
<greengriminal>
going through codeacademy and am stumped with doing this part of the exercise - http://i.imgur.com/boT8L1x.png someone point me in the right direction
sayan has joined #ruby
Lemtzas_ is now known as Lemtzas
stonevil_ has quit [Ping timeout: 246 seconds]
<waxjar>
you're printing the String "$ " instead of the word (which you can get at trough x)
saarinen has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
brennanMKE has joined #ruby
<greengriminal>
waxjar: so i should be doing print x
<waxjar>
i think so.
erenjaeger has joined #ruby
<greengriminal>
thnx
fschuindt has quit [Quit: Computer has gone to sleep.]
icole has quit [Remote host closed the connection]
iamjarvo has joined #ruby
end_guy has joined #ruby
havenwood has quit [Remote host closed the connection]
tjbiddle has joined #ruby
pcarrier_ has quit [Ping timeout: 264 seconds]
motto has joined #ruby
icecandy has joined #ruby
pcarrier_ has joined #ruby
sayan has quit [Read error: Connection reset by peer]
m8 has quit [Ping timeout: 276 seconds]
Inoperabled is now known as Inoperable
daniel_- has joined #ruby
maycon_ has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
sayan has joined #ruby
breadthfirst has quit [Remote host closed the connection]
m8 has joined #ruby
breadthfirst has joined #ruby
greengriminal has quit [Quit: Leaving]
<atmosx>
anyone messed up with drb-ssl ?
Zolo has joined #ruby
jez has joined #ruby
djwonk has quit [Quit: djwonk]
fridim_ has quit [Read error: Operation timed out]
viyxrn has quit [Remote host closed the connection]
<atmosx>
jez: ah no idea, thought you messed up the paths but they are correct or seem t be
Alina-malina has quit [Ping timeout: 248 seconds]
<atmosx>
maybe using a Gemfile with your gems would help
m8 has joined #ruby
jonahR has joined #ruby
<jez>
atmosx: it's something to do with my PATh and GEM_HOME but can't get it
MJ94 has joined #ruby
<atmosx>
jez: yes… well when using system-wide ruby these sort of issues come up all the time
<atmosx>
that's why people use rbenv/rvm/etc
<MJ94>
hello :)
motto has quit [Ping timeout: 246 seconds]
<ryan_turner>
Hi, so Im trying to use Glade and gtkbuilder to make an interface. I put a hslider on the interface and it's displaying fine, but without adding any handlers, it wont let me drag the slider at all. Is it because I need to define a range? How do I do that?
<MJ94>
oh hey andrew12
jonahR has quit [Client Quit]
ArchBeOS has joined #ruby
jonahR has joined #ruby
LimitSupremum has quit [Quit: LimitSupremum]
boxmein has joined #ruby
braoru has joined #ruby
<ryan_turner>
whenever I click on the slider, adjust-bounds is called. But the actual slider cannot move, and I dont understand how to pass an object to my handler so as to get or set any information about the widget.
tomkad has quit [Ping timeout: 245 seconds]
_2easy has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
LanaDelRey has quit [Quit: Leaving]
chipotle_ has joined #ruby
<atmosx>
pitty that there's no gnutls gem for ruby.
icole has joined #ruby
<MJ94>
Is Ruby recommended as a first programming language?
temple3188 has joined #ruby
nbjahan has joined #ruby
<sam113101>
MJ94: yes
KillerFox has joined #ruby
<MJ94>
Ruby seems similar to Python. Maybe not in its syntax, but in its uses, is this true?
Xeago has joined #ruby
<ryan_turner>
MJ94, can you help with my question?
<sam113101>
they're both interpreted languages
<MJ94>
ryan_turner: probably not, i'm a new programmer.
<MJ94>
sorry
zigomir_ has joined #ruby
<MJ94>
sam113101: ah…why do they exist? what about them differ?
DanKnox is now known as DanKnox_away
<ryan_turner>
Ok
failshell has joined #ruby
<sam113101>
MJ94: what do you mean?
_baba_ has quit [Quit: WeeChat 0.4.0]
baba has joined #ruby
<MJ94>
sam113101: how are ruby and python different? are they often used for the same things?
banjara has quit [Quit: Leaving.]
timonv has quit [Remote host closed the connection]
<Spooner>
They are very similar (in complexity and performance). They just follow different idioms, so choose the one you like more. And choose Python if you like writing "self" about a billion times ;)
jez has quit [Quit: Page closed]
icole has quit [Ping timeout: 256 seconds]
Zolo has quit [Remote host closed the connection]
icole has joined #ruby
<MJ94>
Spooner: thanks
<MJ94>
:)
<MJ94>
ruby looks easier, to be honest
<andrew12>
it is easier MJ94
<andrew12>
it's easier for everything
ClientAlive has quit [Quit: Konversation terminated!]
<andrew12>
trust me
<MJ94>
andrew12: All the "smart" programmers I know are all: Start with ASM and C++++++++ if you REALLY want to learn programming.
<andrew12>
I code in binary using the emacs butterfly command
rsimecek has quit [Remote host closed the connection]
moos3 has joined #ruby
iamjarvo has quit [Client Quit]
timonv has joined #ruby
tylersmith has quit [Ping timeout: 276 seconds]
yoshie902a has joined #ruby
bradhe has joined #ruby
bashdy has joined #ruby
nerdy has joined #ruby
BSaboia has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.1]
saarinen has quit [Quit: saarinen]
mando has joined #ruby
mando has quit [Remote host closed the connection]
skroon has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 246 seconds]
<epitron>
Xeago: he's still printing things?
mattbl has joined #ruby
<epitron>
i thought he did one big batch, then left
bashdy has quit [Client Quit]
bashdy has joined #ruby
mattbl has quit [Client Quit]
sayan has quit [Ping timeout: 240 seconds]
lurch_ has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
<Xeago>
epitron: last spool update was several weeks ago
<Xeago>
there is a repository on github
vlad_sta_ has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
sayan has joined #ruby
nomenkun has joined #ruby
workmad3 has quit [Read error: Operation timed out]
mixel has joined #ruby
mjburgess has quit [Ping timeout: 246 seconds]
pcarrier_ has quit [Ping timeout: 256 seconds]
marius has quit [Quit: -]
<epitron>
Xeago: yeah, that was his "last farewell" print spool
<Xeago>
I didn't interpret it as such
<epitron>
he's not back, he, in his own words, was stepping into the tattered rags of his character for one last time before returning the persona to the community
pcarrier_ has joined #ruby
<epitron>
you don't have to interpret -- he spells it out in the document :)
eldariof has quit [Read error: Operation timed out]
<Xeago>
I read it differently then :)
<epitron>
misread it, is more like it!
Dummies_freelanc has joined #ruby
Dummies_freelanc has quit [Client Quit]
DanKnox_away is now known as DanKnox
callmeivan has joined #ruby
ipalaus has quit [Quit: Computer has gone to sleep.]
<callmeivan>
is there a ruby gem which can download a file but can use multiple connections and specify start and end of the file to be downloaded?
osvico has quit [Ping timeout: 245 seconds]
maodun has joined #ruby
<RiftyMcF3arless>
hey, everybody, lookin for a little guidance here... need to select a random record from a MySQL DB (i'm using Sequel). I'm aware of ways to do this, but with my datasets, they are insanely slow... does anybody have a good method for this, or know of any cool tips/tricks?
<callmeivan>
so for example at first it downloads a 100MB file and uses 10 connections, afterwards run a check to see if the file size has increased and if it has download the new data again over 10 connections
kjellski has joined #ruby
<r0bgleeson>
callmeivan: downloads from where?
<callmeivan>
http
<r0bgleeson>
callmeivan: is the server going to send the file in chunks?
<r0bgleeson>
callmeivan: how else can the client do this without an agreed protocol from the other end?
<maodun>
I'm popening a process that prompts for input. When I read anything from that process, even just 1 byte via p.read(1), the command line shows me the process' prompt and hangs in a read until I input some text. Why is this?
zubov has joined #ruby
<maodun>
Why am I able to see anything in the command line at all when I call p.read(1)?
<r0bgleeson>
maodun: because read() blocks until the FD is readable
pcarrier_ has quit [Quit: Computer has gone to sleep.]
sayan_ has joined #ruby
<callmeivan>
r0bgleeson: the client just opens multiple connections and i assume it can specify start and end (like other download accel. do it)
Takehiro has quit [Remote host closed the connection]
BrianJ has joined #ruby
<epitron>
callmeivan: ruby HTTP libraries kinda suck, for the most part.. i had trouble finding a way to easily read the first few bytes of a file over HTTP :)
<r0bgleeson>
callmeivan: can it? I don't know, I may not understand what you're suggesting, but to download in chunks you couldn't just re-open the same connection each time, it wouldn't work
<epitron>
(without downloading the whole thing to a buffer)
csaunders has joined #ruby
<maodun>
r0bgleeson, I understand that, but read(1) shouldn't block
workmad3 has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
<r0bgleeson>
maodun: why not? is there a byte to read?
<waxjar>
there's a read_nonblock
generalissimo has joined #ruby
<r0bgleeson>
there's also IO.select
<maodun>
r0bgleeson: well, there should be, but the bytes that should be available to read our being displayed in my terminal instead
<epitron>
maodun: popen is buffered... you need to use a pty if you want to read bytes as they come in
brianpWins has quit [Quit: brianpWins]
<epitron>
or you have to wait for the popen'd process to output > 4096 bytes of data
<r0bgleeson>
maodun: can you post some code?
<atmosx>
anyone familiar with DRb and SSL?
<epitron>
ssh tunnel? :)
<callmeivan>
r0bgleeson: since other download managers can do it (without special protocols) i would assume that it is possible
<callmeivan>
but i am afraid epitron is correct :(
sayan_ is now known as sayan
sayan has quit [Changing host]
sayan has joined #ruby
<apeiros_>
r0bgleeson, callmeivan: you can do by using range headers
kjellski has quit [Ping timeout: 246 seconds]
<callmeivan>
apeiros_: thanks
<apeiros_>
requires that the server supports it, though.
<r0bgleeson>
yeah, i knew it couldn't be done on the client alone
<apeiros_>
you can potentially make things easier by doing a head request first to get the filesize. that or just to something like 1MB ranges for each process.
<callmeivan>
well in that case it is my own server but i have luck with download managers on most sites
<apeiros_>
anyway, I don't see how that'd be faster than a single process
failshell has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<r0bgleeson>
apeiros_: if you got the filesize, how can you "seek" without downloading the same data?
brianpWins has joined #ruby
<maodun>
'checkpoint a' is outputted, and then the terminal displays 'Enter Password' as soon as I call stdout.read(1). Then it hangs on the read
<r0bgleeson>
maodun: sure, ill look in just a sec
<apeiros_>
r0bgleeson: as said, using the range headers
<apeiros_>
*header
<maodun>
'checkpoint b' is never outputted unless I enter something manually via the terminal
<r0bgleeson>
apeiros_: oh ok, i thought you were suggesting without the server for a second
<apeiros_>
no, getting the filesize just makes it easier to slice the request up
<callmeivan>
apeiros_: i get slow speeds over just 1 connection but can get 10 times * (slow speed)
<apeiros_>
without the filesize you're left to some standard slicing which is possibly less efficient.
atmosx has quit [Quit: And so the story goes…]
<r0bgleeson>
gotcha
<r0bgleeson>
thats cool to know
<apeiros_>
callmeivan: you have a weird server
nof13 has joined #ruby
<r0bgleeson>
maodun: looking now
<callmeivan>
digital ocean
<Xeago>
might also be his isp limiting connections
<callmeivan>
to europe
<workmad3>
apeiros_: is having per-connection bandwidth limits that odd? :)
<Xeago>
or any intermediate box
jbpros has joined #ruby
<Xeago>
workmad3: yes
<apeiros_>
workmad3: since it leads to this kind of stupidities, yes
<callmeivan>
no i don't think so, my provider is known not to throttle anything :)
<workmad3>
Xeago: yeah, I was being a bit facetios :P
<Xeago>
unless you have sites that pay per ad view
<workmad3>
*facetious
Eaven has quit [Read error: Connection reset by peer]
<apeiros_>
iff, then you should limit bandwith per remote ip
<r0bgleeson>
maodun: what is 'enter_demand' for?
<apeiros_>
and even then, that only makes sense in a small set of use cases. in most scenarios you want the connection closed asap.
<maodun>
r0bgleeson: sorry, that's unnecessary. that's actually what the process being called prompts for. I initially was calling stdout.read(enter_demand.length)
Eaven has joined #ruby
<RiftyMcF3arless>
essentially, what my problem is, is that i want to be able to run several instances of this application im writing. the app pulls the latest 'jobs' from the DB, and immediately changes a flag in the DB (so that row will no longer be selected). unfortunately, when you fire them up too closely, it selects duplicate records.
<RiftyMcF3arless>
how might i prevent this?
<apeiros_>
RiftyMcF3arless: you want to select and set the flag in a transaction
<r0bgleeson>
maodun: ah i see. makes sense. does the read eventually stop blocking and return a str?
<apeiros_>
though
<RiftyMcF3arless>
apeiros_: pretty sure im going for something like that...
<Xeago>
RiftyMcF3arless: if you are starting something new
<Xeago>
have a look at resque
<RiftyMcF3arless>
:(
<apeiros_>
sidekiq
Z_Mass has joined #ruby
<MrZYX>
^
<Xeago>
or delayed_job
<maodun>
r0bgleeson: no, but I know it's stuck on read because I see the traceback when I ctrl+c out
<RiftyMcF3arless>
unfortuneately, Xeago, i need to stick with my current code (which is good code, anyhow)
<RiftyMcF3arless>
DJ/Resque won't work well for this
<maodun>
r0bgleeson: well, yes, it does actually, if I input something into the terminal and press enter
<RiftyMcF3arless>
the process is not designed to be run in distinct separate jobs in that sense. it HAS to be one main program, a processor really
<RiftyMcF3arless>
this processor pulls 1 "unprocessed" job at a time
johnkary has quit [Quit: @johnkary]
<MrZYX>
sidekiq uses threads
<r0bgleeson>
maodun: are you sure it doesn't write to stderr?
<MrZYX>
so you could share state
momomomomo has joined #ruby
<RiftyMcF3arless>
MrZYX: that might be interesting to look into for personal interest, but this is for a client,and i am finally to the point that this is working well -- im just getting past these last hurdles.
<RiftyMcF3arless>
i will look into that for future reference, though
kjellski has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
<RiftyMcF3arless>
essentially it's that i have to use ONE instance of a Watir-drivenbrowser
<maodun>
r0bgleeson: I believe it doesn't - I've tried swapping out stdout with stderr in the code I gave you and I get the same effect
<RiftyMcF3arless>
so jobs dont work, because you'd have 500 firefoxes running rampant on your CPU/mem
mikepack has joined #ruby
icole has quit [Remote host closed the connection]
zeeraw has quit [Quit: Computer has gone to sleep.]
Ontolog has joined #ruby
<maodun>
r0bgleeson: actually, if I don't call read anywhere at all, I still get prompted, but after it outputs 'checkpoint b'
kjellski has quit [Client Quit]
emmanuelux has quit [Ping timeout: 264 seconds]
jlast has quit [Remote host closed the connection]
akells` has joined #ruby
Ontolog has left #ruby [#ruby]
<r0bgleeson>
maodun: you shouldn't see any output from the script though, did you try writing the password to stdin & then reading?
lxsameer has left #ruby ["Leaving"]
<maodun>
r0bgleeson: I did, and added a 3rd checkpoint to verify. it writes and then still hangs on the read
bashdy has quit [Quit: bashdy]
iamjarvo has joined #ruby
<maodun>
it writes, then outputs the prompt and hangs on the read, more specifically
<r0bgleeson>
maodun: i donno. can you share the script so I can play around with it?
mikepack has quit [Read error: Connection reset by peer]
<maodun>
but even with no writes and no reads, it will output the prompt and hang on the read
emmanuelux has joined #ruby
<r0bgleeson>
output the prompt where?
<r0bgleeson>
from the read?
mikepack has joined #ruby
<r0bgleeson>
you shouldnt see any output from popen3.
<maodun>
so, I'm running this ruby code from the command line: ruby myfile.rb
<r0bgleeson>
unless you read stdout/stderr to a string
machuga|away is now known as machuga
Zelest is now known as Zelest_
<maodun>
the prompt is getting outputted into the terminal after I run the ruby script
<maodun>
and the ruby script hangs on the prompt
Zelest_ is now known as Zelest
<maodun>
the prompt is being generated by the shell script I call via popen3 in my ruby script
<r0bgleeson>
yeah but popen3 should capture it
<maodun>
I can try to work down a barebones script to give you, one minute
<r0bgleeson>
you shouldnt see any output from the script
<maodun>
r0bgleeson: that was my belief as well
bigmac has quit [Remote host closed the connection]
dmiller has joined #ruby
Xeago has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
insel has quit []
stonevil has quit [Ping timeout: 264 seconds]
rburton- has joined #ruby
cantonic has quit [Ping timeout: 256 seconds]
stonevil has joined #ruby
tylersmith has joined #ruby
grzywacz has quit [Ping timeout: 246 seconds]
pinpin404 has quit [Quit: Screw you guys i'm going home ! KMP ! WeeChat 0.3.9.2]
pcarrier_ has joined #ruby
<maodun>
r0bgleeson: hmm, I found direct ruby bindings for the library I was trying to call from the command line. I'm going to rewrite my code to use the bindings instead of mucking around with popen. thank you for your help.
zigomir_ has quit [Quit: zigomir_]
Takehiro has joined #ruby
LimitSupremum has quit [Remote host closed the connection]
emmanuelux has quit [Max SendQ exceeded]
emmanuelux has joined #ruby
generalissimo has quit [Read error: Connection reset by peer]
tylersmith has quit [Ping timeout: 240 seconds]
generalissimo has joined #ruby
icecandy has quit [Remote host closed the connection]