hamakn has quit [Remote host closed the connection]
timgauthier has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
olekenneth has quit [Ping timeout: 260 seconds]
Advocation has joined #ruby
timonv_ has quit [Remote host closed the connection]
flgje has joined #ruby
<flgje>
hello, searching a way to start a ruby script as systemd script
threesixes has quit [Remote host closed the connection]
timonv_ has joined #ruby
sevenseacat has quit [Quit: Leaving.]
hamakn has joined #ruby
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
flgje: simply write a unit for it
CpuID has joined #ruby
CpuID has joined #ruby
<jhass>
ExecStart=/usr/bin/ruby /your/script.rb
<jhass>
see man systemd.service
lemur has joined #ruby
zarubin has joined #ruby
timonv_ has quit [Ping timeout: 252 seconds]
olekenneth has joined #ruby
emocakes has quit []
anarang has quit [Ping timeout: 276 seconds]
mbuf has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
<mbuf>
using ObjectSpace.memsize_of_all tells me that the memory size is increasing, how can I determine which object's size is causing this leak? Is there a way to return the size of all objects using object_space?
<flgje>
jhass: is it working as well for ruby/ sinatra ?
<jhass>
flgje: sure, just start an application server
Xeago has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
<flgje>
why is it not running?
mooru has joined #ruby
Xeago has quit [Remote host closed the connection]
arup_r has quit []
amystephen has joined #ruby
arup_r has joined #ruby
oo_ has joined #ruby
Lewix has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
<jhass>
well, what's the error message?
<jhass>
journalctl -u test
Macaveli has joined #ruby
anarang has joined #ruby
Xeago has joined #ruby
hiyosi has joined #ruby
fabrice31 has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
r0bby has joined #ruby
Scotteh has joined #ruby
robbyoconnor has quit [Ping timeout: 276 seconds]
sk87 has joined #ruby
axsuul has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiyosi has quit [Ping timeout: 260 seconds]
hamakn has quit [Remote host closed the connection]
spider-mario has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
spider-mario has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
oo_ has quit [Remote host closed the connection]
emocakes has joined #ruby
SilkFox_ has joined #ruby
agjacome has joined #ruby
emocakes has quit [Client Quit]
mengu has joined #ruby
carbon has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
fabrice31 has joined #ruby
lw has quit [Quit: s]
blueOxigen has joined #ruby
arup_r has quit [Remote host closed the connection]
Sawbones has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
bluOxigen has quit [Ping timeout: 268 seconds]
<mbuf>
is there a recommended way to enclose recvfrom for a UDP response in a begin rescue end blog? How can I set timeout for the same?
<maasha>
sun is shining, prokofiev on the stereo and I am hacking away - what a day :o)
olekenneth has quit [Ping timeout: 260 seconds]
MCDev has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
Sawbones has quit [Ping timeout: 246 seconds]
CpuID has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
Advocation has quit [Quit: Advocation]
SouL has quit [Ping timeout: 245 seconds]
DEA7TH has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0/20140825202822]]
kaspergrubbe has joined #ruby
sprihodko has joined #ruby
bricker_ has joined #ruby
cyrinux has quit [Ping timeout: 268 seconds]
timonv_ has joined #ruby
arup_r has joined #ruby
fabrice31 has quit [Remote host closed the connection]
dawkirst has joined #ruby
olekenneth has joined #ruby
carbon has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 276 seconds]
bricker has quit [Ping timeout: 276 seconds]
dumdedum has quit [Ping timeout: 268 seconds]
mijicd has joined #ruby
carbon has joined #ruby
mijicd has quit [Remote host closed the connection]
Adrao has joined #ruby
carbon has quit [Read error: Connection reset by peer]
ltd_ has quit [Ping timeout: 272 seconds]
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
Advocation has joined #ruby
mijicd has joined #ruby
JonnieCache has joined #ruby
Scotteh_ has joined #ruby
olekenneth has quit [Ping timeout: 255 seconds]
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
fabrice31 has joined #ruby
lemur has joined #ruby
techsethi has quit [Ping timeout: 245 seconds]
dopie has quit [Ping timeout: 245 seconds]
hamakn has quit [Remote host closed the connection]
Scotteh has quit [Ping timeout: 260 seconds]
bearish has quit [Ping timeout: 260 seconds]
echooo has quit [Ping timeout: 245 seconds]
mijicd has quit [Remote host closed the connection]
ltd has joined #ruby
olekenneth has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
mijicd has joined #ruby
mijicd has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
<maasha>
I am trying to figure a way to print an updating multiline message with \r and \n - for a single line it is as easy as print "\r#{msg}", but multiline? is it possible?
totimkopf has quit [Ping timeout: 250 seconds]
dawkirst has quit [Remote host closed the connection]
<ccooke>
maasha: assuming you're on a unix terminal, you can send console codes to the screen to get, set and change the position of the cursor
pu22l3r has joined #ruby
dumdedum has joined #ruby
totimkopf has joined #ruby
<ccooke>
so, for instance, you can work out how many lines your string takes and jump to the start of that line
<maasha>
ccooke: I would like this to work across Mac and Linux (in a bash type terminal) - and I am looking for somthing really simple unlike ncurses
tvw has joined #ruby
<ccooke>
maasha: "man console_codes" will tell you a ton about this stuff
<maasha>
ccooke: the message I am printing is in fact a table where I know the exact dimensions.
<ccooke>
maasha: if you print the string "\e[y;xH", where y and x are numbers, that will move the cursor to y,x on the screen
bluOxigen has joined #ruby
oo_ has joined #ruby
<maasha>
ccooke: nifty. 0,0 is top-left?
<ccooke>
and that will work in any terminal emulator - so if you're running bash, it'll work.
<ccooke>
the unix terminal is a thing of great beauty :-)
<atmosx>
awesome things
<atmosx>
hello
<workmad3>
just a shame it doesn't support much in the way of colours :)
pu22l3r has quit [Ping timeout: 268 seconds]
<ccooke>
workmad3: 256 isn't *too* bad :-)
<workmad3>
ccooke: by todays standards it is :P
<maasha>
ccooke: that is brillieant!
<maasha>
ccooke: it works like a charm! TY
rjhunter has quit [Remote host closed the connection]
<workmad3>
ccooke: and lets not forget that it's really 240 stable colours plus a user-defined palette of 16 ;)
<ccooke>
workmad3: so add support for more. All it would take is getting a couple of popular terminal emulators to support it and publishing the standard :-)
blueOxigen has quit [Ping timeout: 246 seconds]
<ccooke>
workmad3: the terminal has survived because it's extensible, after all
elstif has quit [Read error: Connection reset by peer]
ssvo_ has quit [Ping timeout: 276 seconds]
emocakes has quit [Client Quit]
cirn0 has joined #ruby
ssvo has joined #ruby
6A4AAKD47 is now known as anisha
Xeago has joined #ruby
chrishough has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
sea_local has joined #ruby
nucatus has joined #ruby
sailias has quit [Read error: Connection reset by peer]
aspires has joined #ruby
Xeago has quit [Remote host closed the connection]
W0rmDr1nk has joined #ruby
cirn0 has quit [Ping timeout: 272 seconds]
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pranny1 has quit [Quit: Leaving.]
Advocation has quit [Quit: Advocation]
apeiros has quit [Ping timeout: 245 seconds]
axsuul has joined #ruby
d0mme has quit [Remote host closed the connection]
shacklef_ has joined #ruby
shacklef_ has quit [Remote host closed the connection]
starkhalo has joined #ruby
shacklef_ has joined #ruby
shacklef_ has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
ssvo has quit [Ping timeout: 260 seconds]
endash has quit [Quit: endash]
Steve has quit [Remote host closed the connection]
bearish has quit [Ping timeout: 268 seconds]
wallerdev has quit [Quit: wallerdev]
axsuul has quit [Ping timeout: 246 seconds]
shackleford has quit [Ping timeout: 268 seconds]
hellangel7 has joined #ruby
TorpedoSkyline has joined #ruby
sailias has joined #ruby
shackleford has joined #ruby
bearish has joined #ruby
ssvo has joined #ruby
soxet has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
sevenseacat has quit [Quit: Leaving.]
bradleyprice has joined #ruby
zarul has quit [Ping timeout: 240 seconds]
agjacome has joined #ruby
xenomorph is now known as {xenomorph}
GriffinHeart has joined #ruby
blackmesa has joined #ruby
Advocation has joined #ruby
bMalum has quit [Quit: bMalum]
emmesswhy has joined #ruby
djdb has quit [Remote host closed the connection]
Advocation has quit [Client Quit]
JohnFord has joined #ruby
Guest16545 has quit [Remote host closed the connection]
{xenomorph} is now known as xenomorph
danijoo has quit [Read error: Connection reset by peer]
ssvo has quit [Ping timeout: 272 seconds]
GriffinHeart has quit [Ping timeout: 264 seconds]
danijoo has joined #ruby
banjara has joined #ruby
<cajone>
Guys I have a requirement to read/wrire application configuration, I dont have a set format and can design what I like, only premise is to use core MRI functionality ( no gems ). Does anyone have any experience so they could point me at documentaion, The app configuration is not expected to be extensive
ryanleesipes has joined #ruby
<cajone>
... but is expected to change between sessions
<pontiki>
there may be reasons why you don't want it easily editable tho
toastynerd has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
dukz has joined #ruby
<havenwood>
pontiki: good point, marshal for a config file ain't perty
jimmykar1ly has quit [Ping timeout: 240 seconds]
troulouliou_dev has quit [Remote host closed the connection]
LekeFly has joined #ruby
bluenemo has joined #ruby
patrick99e99 has joined #ruby
coderhs has joined #ruby
ghostmoth has joined #ruby
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
troyready has joined #ruby
sparrovv has quit [Ping timeout: 245 seconds]
ssvo has quit [Ping timeout: 245 seconds]
<cajone>
hmm only real consideration would be passwds.... but I will cross that bridge when I come to it
eivindml has joined #ruby
LangeOortjes has joined #ruby
mferrier_ has joined #ruby
skolman has joined #ruby
j_mcnall_ has joined #ruby
enriclluelles has quit [Remote host closed the connection]
hiyosi has joined #ruby
<havenwood>
cajone: env vars maybe
darkxploit has joined #ruby
<pontiki>
or use .netrc
skolman has quit [Remote host closed the connection]
banister has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
Sawbones has quit [Remote host closed the connection]
wjimenez5271 has quit [Remote host closed the connection]
<pontiki>
assuming the person running it would manage their own passwords...
Akagi201 has quit []
bradleyprice has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 276 seconds]
ssvo has joined #ruby
mferrier has quit [Ping timeout: 264 seconds]
vallieres_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradleyprice has joined #ruby
skolman_ has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
sea_local has quit []
apeiros has joined #ruby
timonv_ has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 276 seconds]
timonv_ has joined #ruby
simoz1111117 has joined #ruby
rockdon_ is now known as rockdon|away
nobitanobi has joined #ruby
ndrei has joined #ruby
Takle has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 246 seconds]
hamakn has joined #ruby
wallerdev has joined #ruby
yfeldblum has joined #ruby
SilkFox_ has joined #ruby
timonv_ has quit [Ping timeout: 255 seconds]
anshin has joined #ruby
charliesome has quit [Quit: zzz]
hamakn has quit [Ping timeout: 264 seconds]
pwh has quit []
ssvo has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
jrunning_ is now known as jrunning
SilkFox_ has quit [Ping timeout: 240 seconds]
patrick99e99 has joined #ruby
dawkirst has quit [Remote host closed the connection]
<sidusnare>
so, still getting used to ruby, I see people doing hashes like months = {"1" => "January"} but I cant find information on => from that, its not listed as an assignment operator
dawkirst has joined #ruby
ssvo has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
jottr has joined #ruby
CaptainJet has quit [Ping timeout: 260 seconds]
dANOKELOFF has quit []
<sidusnare>
anyone know what that is, where the docs are?
chipotle has quit [Quit: cya]
shredding has quit [Quit: shredding]
yfeldblum has joined #ruby
deric_skibotn has joined #ruby
renderful has joined #ruby
goshdarnyou has joined #ruby
ssvo has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
poulet_a has quit [Quit: Quitte]
<pontiki>
it's called "hash-rocket"
<havenwood>
sidusnare: It's often called a Hash rocket.
<havenwood>
sidusnare: ^ can do it like that if you want to avoid typing all those months :P
qba73 has quit []
<joelbrewer>
why isn't this returning false when it doesn't find a record? (it's returning nil instead) a = Merchant.find_by :domain => "echome-4.myshopify.com" || false
<joelbrewer>
shouldn't || evalulate the RHS if the LHS returns nil?
ssvo has joined #ruby
_maes_ has joined #ruby
synergyz has quit [Read error: Connection reset by peer]
<Hanmac>
joelbrewer: you forgot the ()
synergyz has joined #ruby
charliesome has joined #ruby
<havenwood>
joelbrewer: you're not or'ing what you think you're or'ing
<Phrogz>
joelbrewer: You are getting Merchant.find_by( domain: "foo" || false )
<Hanmac>
currently its parsed like a = Merchant.find_by :domain => ("echome-4.myshopify.com" || false)
<Hanmac>
but you want that a = Merchant.find_by( :domain => "echome-4.myshopify.com") || false
<joelbrewer>
ahh! thanks!
lamp_shade has joined #ruby
<joelbrewer>
I was so confused...
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 245 seconds]
ssvo has quit [Ping timeout: 245 seconds]
<Hanmac>
havenwood gets the award: "word of the day" with "or'ing" ;P
iamjarvo has joined #ruby
<sidusnare>
I am creating JSON data from several different JSON sources, right now I have a sieries of begin/rescue/end traps to handle missing source values, can I collapse this into a prettier code block with => ? how do they handle nil / missing keys ?
icebourg has joined #ruby
christospappas has joined #ruby
mikecmpbll has joined #ruby
einarj has quit [Remote host closed the connection]
<apeiros>
sidusnare: use gist.github.com to paste your current code
sidusnare has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
sidusnare has joined #ruby
bMalum has joined #ruby
baroquebobcat has joined #ruby
Channel6 has quit [Quit: Leaving]
<lamp_shade>
Good morning
<havenwood>
g'morning
<lamp_shade>
I dont get it.. whats so special about pry.. I've been using irb for like 3 years without having to need anything else
zarul has joined #ruby
<havenwood>
lamp_shade: binding_of_caller
<havenwood>
lamp_shade: and niceties
danijoo has quit [Read error: Connection reset by peer]
<Mon_Ouie>
Commands to introspect the state of your program, e.g. ls, cd, …
danijoo has joined #ruby
<apeiros>
stuff like binding.pry, ? foo.method, ls obj, $ method
ptrrr has joined #ruby
<havenwood>
indentation, syntax highlighting
andikr has quit [Remote host closed the connection]
<apeiros>
(? -> docs, $ -> source)
vallieres_ has joined #ruby
wjimenez5271 has joined #ruby
djbkd has quit [Remote host closed the connection]
maestrojed has joined #ruby
lmickh has joined #ruby
ssvo has joined #ruby
sectionme has quit [Ping timeout: 245 seconds]
GriffinHeart has joined #ruby
pwh has joined #ruby
sailias has quit [Quit: Leaving.]
icarus has joined #ruby
<GeekOnCoffee>
lamp_shade: cd Object; show-source methodname
Kricir has quit [Remote host closed the connection]
icarus has quit [Changing host]
icarus has joined #ruby
<GeekOnCoffee>
my recently learned pry trick
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
albedoa has quit [Ping timeout: 240 seconds]
failshell has quit []
wallerdev has quit [Quit: wallerdev]
dawkirst has quit [Remote host closed the connection]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has quit []
anisha has quit [Quit: Leaving]
patrick99e99 has quit [Ping timeout: 246 seconds]
aspires has joined #ruby
sailias has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`work has joined #ruby
GriffinHeart has quit [Ping timeout: 246 seconds]
ptrrr has quit [Quit: ptrrr]
Sawbones has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
banister has joined #ruby
wald0 has quit [Quit: Lost terminal]
BombStrike has quit [Ping timeout: 250 seconds]
bearish has joined #ruby
chrishough has joined #ruby
mikecmpbll has joined #ruby
axsuul has joined #ruby
BombStrike has joined #ruby
Kricir has joined #ruby
shackleford has quit [Remote host closed the connection]
Sawbones has quit [Ping timeout: 272 seconds]
ramfjord has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros>
sidusnare: I guess your question was not that important
ssvo has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jackneill has quit [Ping timeout: 268 seconds]
saarinen has joined #ruby
<sidusnare>
apeiros: hows that?
<apeiros>
you don't bother to paste your code
i_s has joined #ruby
DivineEntity has quit [Ping timeout: 268 seconds]
bradleyprice has joined #ruby
TheTopBloke has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sawbones has joined #ruby
ssvo has joined #ruby
DivineEntity has joined #ruby
gsd has joined #ruby
zoo-zed has joined #ruby
<lamp_shade>
sorry, I had to take a call
gaussblurinc1 has quit [Quit: Leaving.]
GeekOnCoffee has left #ruby [#ruby]
jayne_ is now known as jayne
<lamp_shade>
well then.. :)
<lamp_shade>
I should get it installed then
gaussblurinc1 has joined #ruby
j_mcnall_ is now known as j_mcnally
elaptics is now known as elaptics`away
nobitano_ has joined #ruby
nobitano_ has quit [Client Quit]
St_Marx has joined #ruby
St_Marx has quit [Remote host closed the connection]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac>
apeiros: hm not yet ;P
nobitanobi has quit [Ping timeout: 264 seconds]
jack_rabbit has joined #ruby
hiyosi has joined #ruby
<apeiros>
and yeah, the book book one is hilarious
mikeg has joined #ruby
ssvo has quit [Ping timeout: 245 seconds]
SilkFox has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
mark_locklear has quit [Ping timeout: 246 seconds]
<Hanmac>
apeiros: hm what is your opinion for the new New3DS ? hm imo it does look nice and i still havint any (3)DS console so i might buy it next year
<apeiros>
Hanmac: infinite battery power is amazing. but uploading new content to the device is rather cumbersome
baroquebobcat has quit [Ping timeout: 272 seconds]
<apeiros>
Hanmac: haven't had a portable game console for ages, so I don't really feel qualified :-/
wallerdev has joined #ruby
<Hanmac>
apeiros: but you can use the bookbook to fuel a fireplace ;P
<apeiros>
you can do that with many products (not that you should :D)
CaptainJet has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
<apeiros>
Hanmac: any links, though?
<apeiros>
I might be flying a bit more the next few months, so portable entertainment is interesting :)
* Hanmac
sings "its a little inferno, a little inferno just for me" ;P
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adamski2600 has quit [Ping timeout: 260 seconds]
mferrier_ has joined #ruby
W0rmDr1nk has quit [Ping timeout: 240 seconds]
mferrier_ has quit [Remote host closed the connection]
shackleford has joined #ruby
<jhass>
zorak8: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
<Hanmac>
wasamasa: did you have seen ExcelSaga too? or maybe something like GalaxyAngels? ;P
<wallerdev>
back
mferrier_ has joined #ruby
<Hanmac>
(repost) wallerdev: i want some device like the Glasses from the DennouCoil Anime ... thats would be the perfect Aurgmented Reality stuff ;P
<wallerdev>
ooh spanish
jottr has quit [Ping timeout: 260 seconds]
<zorak8>
ok jhass, thanks for making me notice that
mikeg has quit [Remote host closed the connection]
mferrier has quit [Ping timeout: 246 seconds]
InhalingPixels has joined #ruby
postmodern has joined #ruby
jnoob22 has quit [Ping timeout: 245 seconds]
<Hanmac>
wallerdev: children with glasses for AR, but somehow that AR and the real world does interfere with eachother ... (like some person did lose her "cyberbody" and then she was unconscious and for the others she did only show "NoData")
x1337807x has joined #ruby
shackleford has quit [Ping timeout: 264 seconds]
cirn0 has joined #ruby
ssvo has joined #ruby
soahccc has joined #ruby
<wallerdev>
hmm yeah interesting
<wallerdev>
ill chekc it out, i have a long list of anime and real shows to watch
<wallerdev>
watching nichijou now
testcore has joined #ruby
doodlehaus has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
ringarin has joined #ruby
yfeldblum has joined #ruby
x1337807x has quit [Client Quit]
seamon has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
ghr has quit [Ping timeout: 240 seconds]
orolo has quit [Quit: This computer has gone to sleep]
cirn0 has quit [Ping timeout: 272 seconds]
axsuul has quit [Ping timeout: 272 seconds]
jottr has joined #ruby
djbkd has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
goodenough has joined #ruby
<wasamasa>
Hanmac: nope
mikecmpbll has quit [Quit: i've nodded off.]
yetanotherdave has joined #ruby
<wasamasa>
Hanmac: I've watched relatively little and mostly the better known stuff
dcope has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dcope>
how can i get the value of a model without calling it's accessor method? i'm overriding it.
<jhass>
dcope: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
djbkd has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
<dcope>
jhass: thank you for today's lesson on IRC manners.
* dcope
wiggles his fingers
dcope has left #ruby [#ruby]
bmurt has quit []
razrunelord has joined #ruby
ptrrr has joined #ruby
toertore is now known as toretore
yfeldblu_ has quit [Ping timeout: 240 seconds]
dumdedum has quit [Ping timeout: 276 seconds]
apeiros_ has joined #ruby
GinoMan has quit [Ping timeout: 260 seconds]
<zorak8>
i have this if
<zorak8>
if entradas[n].nil? || salidas[n - 1].nil?
jnoob22 has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
apeiros_ is now known as apeiros
<wasamasa>
zorak8: please don't use other languages than english for variable names
HelperW_ has quit [Ping timeout: 260 seconds]
vallieres_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TheTopBloke>
LOL
r0bby has quit [Ping timeout: 276 seconds]
<TheTopBloke>
cavron(aye)
orolo has joined #ruby
r0bby has joined #ruby
HelperW__ has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
<wallerdev>
yeah everyone should speak english :p
mikecmpbll has joined #ruby
<zorak8>
but is having problem when n == 0
gnash has quit [Quit: gnash]
simoz1111117 has quit [Ping timeout: 255 seconds]
<toretore>
it's out of range
<wasamasa>
wallerdev: well no, it's just inconsistent with the rest of the programming language and becomes a problem if other people have to work on the code
chrishough has joined #ruby
chrishough has quit [Client Quit]
<wallerdev>
well dont use n = 0 lol
<zorak8>
because [-1] is the last element of the array
ringarin has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
<wasamasa>
wallerdev: especially fun if you browse some opensource library and find russian comments inside it as only documentation
danman has joined #ruby
centrx has joined #ruby
chrishough has joined #ruby
waltz has quit [Ping timeout: 245 seconds]
<wallerdev>
aka nginx
<wallerdev>
eh
<wallerdev>
lol
<wasamasa>
really?
shackleford has joined #ruby
<jhass>
zorak8: you won't get any idiomatic answer if you don't provide a lot more context
shackleford has quit [Remote host closed the connection]
<TheTopBloke>
indeed second vote for VAGUE
shackleford has joined #ruby
<wallerdev>
i dont know the internal state of nginx, i just remember initially almost all the docs were in russian
ssvo has joined #ruby
<wasamasa>
I hope they've fixed this eventually :P
banjara has quit [Quit: Leaving.]
<centrx>
weird I wonder why
<wallerdev>
russian programmers
<wallerdev>
probably
<wallerdev>
lol
jxf has joined #ruby
OffTheRails has joined #ruby
bmurt has joined #ruby
r0bby has quit [Ping timeout: 255 seconds]
kireevco has joined #ruby
troulouliou_dev has quit [Read error: Connection reset by peer]
mjuszczak has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Ping timeout: 276 seconds]
<toretore>
zorak8: you need to make sure to not run the second test when n == 0
mark_locklear has joined #ruby
iamjarvo has joined #ruby
<toretore>
or when n == ary.size
<toretore>
the other way
<soahccc>
I'm using the daemonize gem and it works quite good. Now I was about to implement multi-instances support so as that you can specify the config to be used. That does work, sort of. The monitor function goes crazy and the parameters are getting lost (so it starts all instances with no arguments)... Any idea what would be the easiest to work around this? I thought about making a daemon file per config, essentially as config... Any better ideas?
mjuszczak has joined #ruby
mferrier has joined #ruby
mferrier has quit [Remote host closed the connection]
waltz has joined #ruby
<zorak8>
I did something really ugly
mferrier has joined #ruby
theRoUS has joined #ruby
<zorak8>
if n == 0
Advocation has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
kenneth has joined #ruby
<zorak8>
return...
kenneth has quit [Max SendQ exceeded]
reuben1982 has joined #ruby
<zorak8>
but work
<wallerdev>
if it works it works
<toretore>
bueno
<wallerdev>
thats my programming motto
adamski2600 has joined #ruby
kenneth has joined #ruby
<wallerdev>
i woke up 4 hours before work today
<wallerdev>
i have a feeling im not gonna survive til the end of the day
ramfjord has joined #ruby
elstif has joined #ruby
mferrier_ has quit [Ping timeout: 246 seconds]
Lewix has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
Lewix has joined #ruby
ssvo has quit [Ping timeout: 260 seconds]
renderfu_ has quit [Remote host closed the connection]
dcoxall has joined #ruby
thumpba has quit [Remote host closed the connection]
waltz has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
TieSoul has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
<TieSoul>
How do I check if an array contains any elements that are higher (according to >) than the element of the same index of another array?
<TieSoul>
The arrays are the same length but that length is variable
starless has joined #ruby
qmfnp has joined #ruby
<TieSoul>
the arrays also both contain only integers.
jimmykarily has joined #ruby
<centrx>
TieSoul, One way: a.zip(b).any? { |x,y| x > y }
<TieSoul>
oh, thanks!
Takle has quit [Remote host closed the connection]
<wallerdev>
eh you didnt really specify what happens based on different lenghts
<wallerdev>
thats gonna end up doing like 5 > nil
mjuszczak has quit [Ping timeout: 240 seconds]
<jhass>
another one: a.each_with_index.any? {|a, i| a > b[i] }
Jet4Fire has joined #ruby
<centrx>
wallerdev, He said a.length == b.length
<wallerdev>
oh my bad
<centrx>
wallerdev, but variable in that the length could be anything
<wallerdev>
im already dying and its only been one hour of work
sambao21 has quit [Quit: Computer has gone to sleep.]
Jet4Fire has quit [Client Quit]
pwh has quit []
hiyosi has joined #ruby
doodlehaus has joined #ruby
Jet4Fire has joined #ruby
mattmcclure has joined #ruby
TheTopBloke has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danijoo has quit [Read error: Connection reset by peer]
TheTopBloke has joined #ruby
danijoo has joined #ruby
timonv_ has quit [Remote host closed the connection]
Takle has joined #ruby
tlarevo_ has joined #ruby
timonv_ has joined #ruby
Takle has quit [Remote host closed the connection]
j_mcnally has quit [Ping timeout: 276 seconds]
mjuszczak has joined #ruby
Neomex has joined #ruby
lamp_shade has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 240 seconds]
tlarevo has quit [Ping timeout: 255 seconds]
sparrovv has joined #ruby
d4nku has quit [Remote host closed the connection]
d4nku has joined #ruby
shredding has joined #ruby
d4nk has joined #ruby
d4nku has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
caveat- has quit [Ping timeout: 272 seconds]
Advocation has quit [Quit: Advocation]
kireevco has quit [Ping timeout: 268 seconds]
gsd has joined #ruby
kireevco has joined #ruby
SilkFox_ has joined #ruby
ta has joined #ruby
lkba has quit [Remote host closed the connection]
caveat- has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
jimmykarily has quit [Ping timeout: 240 seconds]
gsd has quit [Client Quit]
elstif has quit [Quit: Leaving.]
timonv_ has quit [Remote host closed the connection]
dukz has quit [Remote host closed the connection]
r0bby has joined #ruby
dukz has joined #ruby
gaussblurinc1 has quit [Ping timeout: 240 seconds]
luckyruby has joined #ruby
arup_r has quit [Quit: Leaving.]
HelperW__ has joined #ruby
havenwood has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
mclee_ has quit [Ping timeout: 240 seconds]
darkxploit has joined #ruby
nitin_ has joined #ruby
lamp_shade has joined #ruby
darkxploit has quit [Read error: Connection reset by peer]
m8 has joined #ruby
mclee_ has joined #ruby
Jon30 has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
<Jon30>
hello :) I have an array of objects. i want to sort them based on the content within a certain field.. so let's say field1 is a string, but if the string is a mix of numbers and text i want it to be at the bottom of the list. can anybody point me in the right direction?
bMalum has quit [Ping timeout: 245 seconds]
<toretore>
Enumerable#sort
HelperW__ has quit [Quit: Computer has gone to sleep.]
<wallerdev>
theres a sort that puts strings with 2 at the front
<Jon30>
aww thanks
<wallerdev>
lol
troyready has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
thumpba has joined #ruby
justjealouse has joined #ruby
<justjealouse>
hello my fellow ruby-ers im joining your ranks this week
<wallerdev>
you probably want to have two parameters like |x, y| and then compare them
<wallerdev>
ruby for a week
<wallerdev>
interesting
kriskrop1 has quit [Quit: leaving]
Takle has joined #ruby
pwh has joined #ruby
havenwood has joined #ruby
testcore has quit [Remote host closed the connection]
<justjealouse>
I just started reading up on it yesterday, I only have learned C/++/java before this
nitin_ has quit [Ping timeout: 252 seconds]
<yxhuvvd>
then you are up for a treat
<wallerdev>
ruby is basically java
ndrei has joined #ruby
<wallerdev>
lol
<wallerdev>
without all the boilerplate
aspires has quit []
<justjealouse>
from my 3 hours of reading so far, theres a lot of little rules you gotta remember with ruby, but whatever im learning now
<justjealouse>
my first goal is to write a web scraper
<wallerdev>
sounds reasonable
jrhe_ has joined #ruby
Takle has quit [Remote host closed the connection]
thumpba has quit [Ping timeout: 264 seconds]
<wallerdev>
theres lots of little rules you gotta remember in c++ too lol
<wallerdev>
and if you dont remember those you have big problems :p
<justjealouse>
maybe c++11
User458764 has quit [Ping timeout: 240 seconds]
b00stfr3ak has quit [Ping timeout: 255 seconds]
benlieb has joined #ruby
lamp_shade has quit [Ping timeout: 240 seconds]
b00stfr3ak has joined #ruby
ndrei has quit [Ping timeout: 268 seconds]
sambao21 has joined #ruby
ndrei has joined #ruby
skolman_ has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
Lauritz has joined #ruby
lemur has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
Lauritz has quit [Client Quit]
Stalkr_ has joined #ruby
Stalkr_ has joined #ruby
pskosinski has joined #ruby
GriffinHeart has joined #ruby
lynxbat has joined #ruby
<Stalkr_>
Is it possible to have a class X and do something like X("some string input")? Kind of like self.[], just self.() instead
albedoa has joined #ruby
<jhass>
Stalkr_: no, Ruby core cheats by defining a method with the same name in Kernel
<apeiros>
don't forget to make those methods module_function, or at least private
lkba has joined #ruby
<apeiros>
but IMO, just don't do it.
<Stalkr_>
How would I do it?
obscured has joined #ruby
goleldar has joined #ruby
<apeiros>
as jhass just said, you define them as a method in Kernel
justjealouse has quit [Quit: Leaving]
bearish has quit [Remote host closed the connection]
<goleldar>
anyone here use ci_reporter? I am getting the following error when trying to use it 'cannot load such file -- ci/reporter/rake/rspec_loader'
<Stalkr_>
So if that's not recommended, what would be a better alternative to say Data("2kb").to_bytes for example
lemur has quit [Ping timeout: 272 seconds]
<apeiros>
Data.new("2kb").to_bytes
<jhass>
^
<apeiros>
but with string input, I'd even use a different constructor
bayed has joined #ruby
<apeiros>
Data.parse("2kb").to_bytes
GriffinHeart has quit [Ping timeout: 255 seconds]
<apeiros>
you can make an arbitrary amount of convenience methods on top of that.
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
anekos_ has quit [Ping timeout: 276 seconds]
cirn0 has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
anekos_ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
tlarevo_ has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
paulfm has joined #ruby
popl_ has joined #ruby
popl_ has joined #ruby
banister has joined #ruby
<havenwood>
starless: if you want to just merge stdout and stderr streams, e.g.,: require 'open3'; Open3.popen2e('git upstream --dry-run') { |_, io| io.read }
banister has quit [Max SendQ exceeded]
Hamled|Erp has quit [Ping timeout: 245 seconds]
Hamled has joined #ruby
axsuul has joined #ruby
popl__ has joined #ruby
<havenwood>
s/io/stdout_and_stderr
kyb3r_ has joined #ruby
andrewjanssen has joined #ruby
rcs has quit [Ping timeout: 245 seconds]
popl_ has quit [Read error: Connection reset by peer]
<TieSoul>
the 'put' method basically does a space[[j,i]] = chr.ord.
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Ping timeout: 276 seconds]
testcore has joined #ruby
<TieSoul>
oh wait
<TieSoul>
the put method was doing some intensive stuff
<TieSoul>
nevermind
toastynerd has quit [Remote host closed the connection]
Pumukel has joined #ruby
Ankhers has quit [Remote host closed the connection]
britneywright has joined #ruby
j416 has quit [Ping timeout: 240 seconds]
sepp2k has quit [Quit: Konversation terminated!]
andrewjanssen has joined #ruby
<starless>
havenwood, apeiros, yxhuvvd: Thanks much for the insight and sorry I stepped away after asking. Experimenting now. I'll post a Gist if I find something's not happening intuitively
atmosx has joined #ruby
razrunelord has quit []
hellangel7 has quit [Remote host closed the connection]
andrewjanssen has quit [Client Quit]
arup_r has quit [Quit: Leaving.]
j416 has joined #ruby
banjara has joined #ruby
coldkey21 has joined #ruby
skolman__ has joined #ruby
andrewjanssen has joined #ruby
bluenemo has quit [Quit: Verlassend]
mferrier_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
goodenough has quit [Remote host closed the connection]
mkaesz has joined #ruby
skolman_ has quit [Ping timeout: 264 seconds]
Lewix has quit [Remote host closed the connection]
paulfm has quit []
workmad3 has joined #ruby
aspires has joined #ruby
cajone has left #ruby [#ruby]
joelbrewer has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
mferrier has quit [Ping timeout: 260 seconds]
RaCx has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
Morkel has joined #ruby
Stalkr^ has joined #ruby
benlieb has joined #ruby
nanoyak has joined #ruby
hiyosi has joined #ruby
Photism_ has joined #ruby
lw has joined #ruby
Takle has joined #ruby
sambao21 has joined #ruby
lw has quit [Max SendQ exceeded]
ghostmoth has joined #ruby
benzrf|offline is now known as benzrf
TaxmanBD has quit [Ping timeout: 272 seconds]
toastynerd has joined #ruby
TaxmanBD has joined #ruby
pranny has quit [Quit: Leaving.]
sprihodko has quit [Quit: Computer has gone to sleep.]
elstif has joined #ruby
ndrei has joined #ruby
lw has joined #ruby
Stalkr_ has quit [Ping timeout: 240 seconds]
lw has quit [Max SendQ exceeded]
Photism_ has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
Photism has quit [Ping timeout: 246 seconds]
elstif has quit [Client Quit]
lw has joined #ruby
tvw has joined #ruby
hiyosi has quit [Ping timeout: 268 seconds]
lw has quit [Max SendQ exceeded]
quansai has joined #ruby
timonv_ has joined #ruby
<quansai>
I just wanted to let you all know that I hate Ruby. It's one of the worst languages I've ever written any code in ever. It's Perl with some common sense -- but with a bunch of unintuitive conventions. Doesn't make sense? Exactly. The language makes very little sense. I'm going to shoot myself if I have to write one more line of this. That's all.
bearish has joined #ruby
aspires has quit []
Spami has joined #ruby
b00stfr3ak has quit [Read error: Connection reset by peer]
pwh has joined #ruby
SouL has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
aclearman037 has quit []
quansai has left #ruby [#ruby]
<shevy>
quansai this shows that you wrote virtually no ruby
<benzrf>
quansai lmao
<benzrf>
what a shitty troll
Devanon has quit [Quit: WeeChat 1.0]
<shevy>
he had no patience
timonv_ has quit [Remote host closed the connection]
jds has quit [Quit: Connection closed for inactivity]
aspires has joined #ruby
paulfm has joined #ruby
timonv_ has joined #ruby
dukedave_ has quit []
<shevy>
trolls in the old days truly were resilient
<shevy>
nowadays they just insta-quit
epitron has joined #ruby
dukedave_ has joined #ruby
<shevy>
right benzrf my favourite haskell troll? :>
<shevy>
monad warrior
SilkFox_ has joined #ruby
<shevy>
functional annihilator
<shevy>
calculus oligarch
testcore has quit [Ping timeout: 264 seconds]
dukedave_ is now known as dukedave
dukedave has quit [Client Quit]
dukedave has joined #ruby
thams has quit [Quit: thams]
charliesome has joined #ruby
ht__th has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
wookiehangover has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
Photism has quit [Quit: Leaving]
olivier_bK has joined #ruby
mferrier_ has joined #ruby
i_s has quit [Read error: Connection reset by peer]
endash has joined #ruby
endash has quit [Client Quit]
i_s has joined #ruby
flgje has joined #ruby
dblessing has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
soheil has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
mkaesz has quit [Remote host closed the connection]
dblessing has joined #ruby
deric_skibotn has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
mferrier has quit [Ping timeout: 264 seconds]
RaCx has joined #ruby
Kricir has joined #ruby
michaeldeol has joined #ruby
M-Technic has quit [Ping timeout: 264 seconds]
mferrier_ has quit [Ping timeout: 276 seconds]
axsuul has joined #ruby
M-Technic has joined #ruby
mocfive has joined #ruby
ldnunes has quit [Quit: Leaving]
Kricir has quit [Read error: Connection reset by peer]
SilkFox_ has joined #ruby
joelbrewer has joined #ruby
Kricir has joined #ruby
r0bby has quit [Excess Flood]
lw_ has joined #ruby
lw has quit [Read error: Connection reset by peer]
r0bby has joined #ruby
r0bby has quit [Changing host]
r0bby has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
tvw has quit []
r0bby has quit [Client Quit]
atmosx has quit [Quit: Lost in trance]
RichardLitt has quit [Ping timeout: 252 seconds]
dcoxall has quit []
emmesswhy has joined #ruby
djbkd has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 268 seconds]
IrishGringo has joined #ruby
Wolland has joined #ruby
djbkd has joined #ruby
cpruitt has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
seamon has quit [Quit: Zzzzzzz]
Wolland_ has joined #ruby
lw_ has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
zorak8 has quit [Remote host closed the connection]
sailias has joined #ruby
Wolland has quit [Ping timeout: 276 seconds]
shackleford has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
Channel6 has joined #ruby
pu22l3r has joined #ruby
djbkd has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
obscured has quit [Quit: leaving]
Kricir has joined #ruby
Charliebr73 has quit [Quit: Leaving]
grokdancer has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
Kricir has joined #ruby
danman has quit [Read error: Connection reset by peer]
danman has joined #ruby
livingstn has quit []
seamon has joined #ruby
danman has quit [Client Quit]
DarthGandalf has quit [Ping timeout: 272 seconds]
cirn0 has joined #ruby
dblessing_ has joined #ruby
Channel6 has quit [Quit: Leaving]
ringarin has quit [Ping timeout: 246 seconds]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
Kilo`byte has quit [Ping timeout: 240 seconds]
Morkel has quit [Quit: Morkel]
gaussblurinc1 has quit [Quit: Leaving.]
lw has joined #ruby
dblessing_ has quit [Remote host closed the connection]
<j_mcnally>
how do i install 2.1.2 with ruby-install?
claymore_ has quit [Quit: Leaving]
dblessing has quit [Read error: Connection reset by peer]
<j_mcnally>
i only get 2.1.1 as an option
dblessing has joined #ruby
shackleford has joined #ruby
tfittsy has quit []
sinkensabe has quit [Remote host closed the connection]
Kilo`byte has joined #ruby
DarthGandalf has joined #ruby
<havenwood>
j_mcnally: either grab a newer ruby-install, or: ruby-install ruby 2.1.2
Bumptiou_ has quit [Remote host closed the connection]
<havenwood>
j_mcnally: optionally passing it the md5
cina has joined #ruby
nucatus has quit [Remote host closed the connection]
<j_mcnally>
havenwood: ok that worked lol, i swear i tried it lol
cirn0 has quit [Ping timeout: 245 seconds]
St_Marx has joined #ruby
monsieurp has quit [Quit: Lost terminal]
crdprink2 has joined #ruby
idoru has quit [Quit: Working as programmed]
sambao21 has joined #ruby
<havenwood>
j_mcnally: grab the latest ruby-install for the latest md5s, but yeah with ruby-install you can grab latest by specifying manually even if it hasn't been added to the tool yet
<havenwood>
j_mcnally: :)
crdpink has quit [Ping timeout: 260 seconds]
idoru has joined #ruby
sambao21 has quit [Client Quit]
gizmore has joined #ruby
<gizmore>
i need math help...
<gizmore>
i have a class "CompassDirection", which shall return a new lat/lon based on compass degree and meters
<gizmore>
like Compass.new("NNE").transform(lat=10, lon=20, meters=100012) # => [9.84, 20.12]
<gizmore>
i need a push how todo the pythagoras based on n, s, e, w, nne, sse etc
idoru has quit [Quit: Working as programmed]
<j_mcnally>
havenwood: cool `brew upgrade ruby-install` did the trick
<j_mcnally>
havenwood: sorry for noob question
idoru has joined #ruby
britneywright has joined #ruby
codecop has quit [Remote host closed the connection]
djbkd has joined #ruby
idoru has quit [Remote host closed the connection]
monsieurp has joined #ruby
Stalkr_ has joined #ruby
Stalkr_ has joined #ruby
idoru has joined #ruby
grokdancer has quit [Quit: Leaving.]
_Kerber0s_ has quit [Remote host closed the connection]
Kerber0s has joined #ruby
renderful has quit [Remote host closed the connection]
cocotton_ has joined #ruby
timonv_ has quit [Ping timeout: 276 seconds]
GriffinHeart has joined #ruby
grokdancer has joined #ruby
holsee has joined #ruby
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has quit [Remote host closed the connection]
grokdancer has quit [Client Quit]
sdwrage has quit [Quit: This computer has gone to sleep]
Heartbroken has quit [Quit: pai pai...]
goodenough has joined #ruby
mpistone_ has joined #ruby
sdwrage has joined #ruby
mpistone has quit [Read error: Connection reset by peer]
cocotton has quit [Ping timeout: 260 seconds]
idoru has quit [Quit: Working as programmed]
idoru has joined #ruby
lw has quit [Quit: s]
cocotton_ has quit [Ping timeout: 255 seconds]
enriclluelles has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Ping timeout: 264 seconds]
dblessing has quit [Quit: dblessing]
CpuID has joined #ruby
fsapo has quit [Remote host closed the connection]
kireevco1 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
idoru has quit [Quit: Working as programmed]
Photism has joined #ruby
idoru has joined #ruby
i_s has quit [Ping timeout: 252 seconds]
sailias has quit [Quit: Leaving.]
flgje has quit [Ping timeout: 255 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
renderful has joined #ruby
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
Lewix has joined #ruby
lw has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
i_s has joined #ruby
lw has quit [Max SendQ exceeded]
idoru has quit [Quit: Working as programmed]
deric_skibotn has quit [Ping timeout: 268 seconds]
michaeldeol has joined #ruby
idoru has joined #ruby
RaCx has joined #ruby
lw has joined #ruby
ryanleesipes has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
deric_skibotn has joined #ruby
<wallerdev>
might have to be more specific
<wallerdev>
whatd you try?
<wallerdev>
and what error do you get
yfeldblu_ has quit [Remote host closed the connection]
Channel6 has joined #ruby
shock_one has joined #ruby
yfeldblu_ has joined #ruby
threesixes has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
<treehug88>
Hi All, I have a Sinatra app that runs under unicorn but doesn't appear to do any logging. I'd like it to log similarly to Apache or Nginx - a access log of URLS accessed (and such), and an error log of things that went to stderr. I can't figure out how to configure this in my Sinatra::Base subclass nor in config.ru. Tips or assistance, anyone?
Kricir has quit [Remote host closed the connection]
<waxjar>
tejas-manohar: sinatra has something set up for settings
Kricir has joined #ruby
pwh has quit []
* hoelzro
is surprised that the config.ru domain isn't taken
klaut has joined #ruby
crdpink has joined #ruby
Norrin has left #ruby [#ruby]
pwh has joined #ruby
crdprink2 has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
hiyosi has joined #ruby
havenwood has quit [Remote host closed the connection]
lw has quit [Read error: Connection reset by peer]
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
beef-wellington has quit [Ping timeout: 252 seconds]
Kricir has quit [Ping timeout: 255 seconds]
grokdancer has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco1 has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
maoko has joined #ruby
duncannz has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
Heartbroken has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
<shevy>
hehe
<terrellt>
hoelzro: Registered January 21 1998
<hoelzro>
terrellt: really? it didn't resolve on my machine
<terrellt>
No web service isn't the same thing as not being registered.
christospappas has quit [Ping timeout: 255 seconds]
saarinen has quit [Quit: saarinen]
CaptainJet has joined #ruby
flgje has joined #ruby
lemur has joined #ruby
<Obversity>
I'm about to start my first Rails project, something that *might*, if it's good enough, be used by a friend's business later down the track. What version of Rails would you suggest I develop with, keeping in mind that it might need to be hosted cheaply? Any tips?
<jhass>
Obversity: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
<aedorn>
shevy: yes
snath has quit [Ping timeout: 264 seconds]
timonv_ has quit [Ping timeout: 268 seconds]
GriffinHeart has joined #ruby
<shevy>
k then I guess I have managed to make me another error :(
Obversity is now known as help
CpuID has quit [Read error: Connection reset by peer]
<aedorn>
Obversity: 4.2
mikecmpbll has quit [Quit: i've nodded off.]
<shevy>
In file included from ./missing/crypt.c:39:0:
<shevy>
/usr/include/unistd.h:1125:13: note: previous declaration of 'encrypt' was here
<aedorn>
hmm
help is now known as Guest33199
<dorei>
shevy: u forgot to include something, or you included something that u shouldnt
Guest33199 is now known as Ei_
<shevy>
I didn't do anything! that is ruby
intnsity has quit [Ping timeout: 240 seconds]
<shevy>
openssl is now 0.9.8zb
<dorei>
well, it probably doesnt like your openssl version or your system is missing something
<aedorn>
dev-libs/openssl-0.9.8z_p2
<aedorn>
that seems to work.. as does 1.0.1i
intnsity has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
flgje has quit [Ping timeout: 260 seconds]
lemur has quit [Ping timeout: 272 seconds]
orolo has quit [Quit: This computer has gone to sleep]
CaptainJet has quit []
benlieb has quit [Ping timeout: 252 seconds]
benlieb_ has joined #ruby
<aedorn>
shevy: what distro?
<shevy>
Linux computer5 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
<shevy>
I think that is linuxmint here
CaptainJet has joined #ruby
GriffinHeart has quit [Ping timeout: 246 seconds]
cpruitt has quit [Quit: cpruitt]
j_mcnally has quit [Quit: さよなら]
Ei_ is now known as Obversity
Spami has quit [Quit: This computer has gone to sleep]
cpruitt has joined #ruby
dirtyob has quit [Read error: Connection reset by peer]
intnsity has quit [Ping timeout: 240 seconds]
<aedorn>
so I'm going to guess it's because it doesn't think libcrypt is available and it requires an additional lib flag to compile
axilla has quit [Read error: Connection reset by peer]
intnsity has joined #ruby
sparrovv has quit [Remote host closed the connection]
Lewix has joined #ruby
valiantfirkin has joined #ruby
b1nd has quit [Ping timeout: 246 seconds]
soasme has joined #ruby
CpuID has joined #ruby
b1nd has joined #ruby
sparrovv has joined #ruby
thumpba has quit [Remote host closed the connection]
aspires has quit []
<aedorn>
or the dev files aren't installed =p
<gizmore>
Why can´t i use def self.valid?!(input) to indicate this validator raises an exception?!
andrewjanssen has joined #ruby
<aedorn>
shevy: did you apt-get install libssl-dev
<centrx>
validate!
jbw has joined #ruby
<gizmore>
centrx: i want is_valid?!
<shevy>
apt-get install libssl-dev
<shevy>
Segmentation fault
thumpba has joined #ruby
<jhass>
gizmore: rails?
<aedorn>
rofl
<gizmore>
centrx: but yeah, good point!!! :) thank you!
mrsolo has joined #ruby
<gizmore>
jhass: ricer2 chatbot
xenomorph is now known as {xenomorph}
RaCx has quit [Quit: Computer has gone to sleep.]
<aedorn>
shevy: can you apt-get update even?
<jbw>
hi all, can someone tell me if there's a way to find out the code behind a method? e.g. mylist = %w(a b c d) .. is there a way i can determine what code is executed behind the scenes when I call .size on mylist?
reuben1982 has quit [Quit: reuben1982]
<shevy>
aedorn segfault
<gizmore>
jbw: i would use a debugger there (but maybe there is better way
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snath has joined #ruby
orolo has joined #ruby
<shevy>
apt-get update
<shevy>
Segmentation fault
<aedorn>
apt-get check ?
<shevy>
apt-get check
<shevy>
Segmentation fault
sparrovv has quit [Ping timeout: 245 seconds]
<aedorn>
fdisk, format, install a better distro
<aedorn>
=p
<jhass>
jbw: get pry and call binding.pry right before or after it. In pry use $ whatever.method
<jbw>
hrm.. i'll check in to pry thanks
valiantfirkin has quit [Read error: Connection reset by peer]
lmickh has quit [Remote host closed the connection]
skolman_ has joined #ruby
Inhaling_ has joined #ruby
ebonywobble has joined #ruby
ndrei has joined #ruby
matcouto has joined #ruby
<aedorn>
shevy: kind of sounds like a dependency was broken somewhere down the line, or this system you're working on is dying slowly. Not sure what else you can do on Ubuntu based systems to fix aptitude =\
<wallerdev>
just put the windows install disc and click repair
Bumptious has quit [Remote host closed the connection]
InhalingPixels has quit [Ping timeout: 276 seconds]
fold has joined #ruby
<shevy>
gah windows
_tpavel has quit [Ping timeout: 272 seconds]
hiyosi has joined #ruby
wjimenez_ has joined #ruby
<jbw>
ugh
<shevy>
:)
<jbw>
is there a ruby-on-rails channel on this network? i tried every combination i can think of and can't find it :/
<shevy>
when mruby is finished, I am going to compile a completely static failsafe ruby
ebonywobble has quit [Read error: Connection reset by peer]
<jhass>
jbw: #rubyonrails
charliesome has joined #ruby
benzrf has quit [Quit: bye]
apeiros has quit [Ping timeout: 268 seconds]
<wallerdev>
#ror
<wallerdev>
try harder :p
<jbw>
doh
cpruitt has quit [Quit: cpruitt]
<wallerdev>
or /list
<jbw>
i need to identify with services
<jbw>
i need some damn coffee :P
<jhass>
yeah
<wallerdev>
its ok no one even uses /list, thats why this channel exists
<jhass>
faster than /list: /msg alis help
<wallerdev>
people just /j #ruby and never find #ruby-lang
<wallerdev>
lol
<jbw>
/list is too damn slow anyway
<wallerdev>
its not too bad, and brings up a nice search bar in my client