<bradland>
running multiple apps with a single user is a security concern in most cases anyway
jeregrin_ has joined #ruby
ghostlines has joined #ruby
Gues_____ has quit [Client Quit]
klmlfl has joined #ruby
<terrellt>
Fair. I'm totally violating that. Mostly because keeping the web of users->applications becomes troublesome without a nicely configured puppet environment.
Rollabunna has joined #ruby
jeregrin_ is now known as jeregrine_
<terrellt>
So I'll yield, if you're starting from scratch and can build it up right I see your point. =)
nanoyak has quit [Remote host closed the connection]
gsd has joined #ruby
ghostlines has quit [Client Quit]
nanoyak has joined #ruby
shime_ has joined #ruby
revw has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
<bradland>
at the end of the day, i'm a pragmatist. if rbenv works for you on servers, i say go for it :)
IrishGringo has quit [Ping timeout: 245 seconds]
Eiam has joined #ruby
JDiPierro has quit [Remote host closed the connection]
sivoais_ has quit [Quit: leaving]
Megtastique has quit []
revw has quit [Read error: Connection reset by peer]
mroth is now known as mroth_
Megtastique has joined #ruby
sivoais has joined #ruby
Megtastique has quit [Client Quit]
greggawatt has joined #ruby
nanoyak has quit [Remote host closed the connection]
echevemaster has joined #ruby
rbennacer has joined #ruby
<greggawatt>
hey, what the best way to get an array of datetimes that goes from a range of Datetime.current.midnight to Datetime.current.midnight+1.week
nanoyak has joined #ruby
meschi has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
nanoyak has quit [Read error: Connection reset by peer]
<bradland>
what interval? days, hours, minutes, seconds?
nanoyak has joined #ruby
jenrzzz has joined #ruby
<bradland>
greggawatt: i'll give you a hint at how i'd do it.
<bradland>
times can be represented as intergers using the timestamp format
<greggawatt>
hours
<bradland>
so, if you Datetime.current.midnight can be represented as an integer, and so can that date +1 week, how would you go about building that interval with integers?
<greggawatt>
iterate by the integer of one hour?
<bradland>
yep
rbennacer has quit [Remote host closed the connection]
<bradland>
since the integer is seconds, one hour is 60 * 60
<bradland>
is this in rails?
thumpba_ has quit [Ping timeout: 265 seconds]
<greggawatt>
yeah
<bradland>
yeah, those methods .midnight look like extensions
<bradland>
i'm used to working directly with Time
startupality has joined #ruby
<greggawatt>
ah, i just tried it and it worked lol
<bradland>
you should probably hang out for someone else's input, because i don't use rials much
<bradland>
*rails
<bradland>
there might be a shortcut
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<greggawatt>
thanks anyway!
<bradland>
you bet
amclain has joined #ruby
jeremati_ has joined #ruby
havenwood has joined #ruby
red_horned_rihno has quit [Ping timeout: 264 seconds]
TheNet has quit [Remote host closed the connection]
jerematic has quit [Ping timeout: 240 seconds]
red_horned_rihno has joined #ruby
TheNet has joined #ruby
arescorpio has joined #ruby
<greggawatt>
one more question bradland
<bradland>
sure
<greggawatt>
is there a way to make a range iterate over something other than one?
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
revw has joined #ruby
ishikawa has quit [Ping timeout: 250 seconds]
_pudding_ has joined #ruby
zwer has quit [Ping timeout: 250 seconds]
ishikawa has joined #ruby
<_pudding_>
i'm trying to grab a data-attribute from a form after posting it to a route handler in sinatra. is there standard ruby for grabbing an attribute that's not a param from an html element?
baweaver has quit [Ping timeout: 255 seconds]
AdamMeghji is now known as AdamMeghji_
leafybasil has quit [Ping timeout: 264 seconds]
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
revw has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
danman has joined #ruby
mikepack has joined #ruby
iMe has joined #ruby
qhartman has joined #ruby
jenrzzz has joined #ruby
baweaver has quit [Remote host closed the connection]
zwer_v is now known as zwer
oo_ has joined #ruby
reinaldob has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 264 seconds]
kenneth has joined #ruby
dorei has joined #ruby
sinkensabe has joined #ruby
_pudding_ has quit [Ping timeout: 246 seconds]
staticshock_ has joined #ruby
scripore has joined #ruby
tyfighter has joined #ruby
sevenseacat has joined #ruby
Guest18670 has quit [Ping timeout: 245 seconds]
virtualize has joined #ruby
tyfighter has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
PhilK is now known as PhilK_
zenspider_ is now known as zenspider
jnylen1 has joined #ruby
jnylen1 is now known as jnylen
sinkensabe has quit [Ping timeout: 256 seconds]
jnylen has quit [Changing host]
jnylen has joined #ruby
danman has quit [Read error: Connection reset by peer]
C1V0 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
TheNet has quit [Remote host closed the connection]
pietr0_ has quit [Quit: pietr0_]
lw has quit [Quit: s]
TheNet has joined #ruby
dcarmich has joined #ruby
deryl has joined #ruby
mrmargolis has joined #ruby
Spami has joined #ruby
t0rc has quit [Quit: WeeChat 1.0.1]
Hijiri has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
deryl is now known as ddd
kies has joined #ruby
Channel6 has joined #ruby
djbkd has quit [Quit: My people need me...]
baweaver has joined #ruby
tier has joined #ruby
x1337807x has joined #ruby
skinny_much has joined #ruby
Guest90951 has quit [Quit: derpity derp]
sinequanon has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
it0a has joined #ruby
yokel has joined #ruby
PanzerModern has quit [Remote host closed the connection]
jherbst has joined #ruby
tier has quit [Ping timeout: 265 seconds]
pdoherty has joined #ruby
greggawatt has quit [Quit: Leaving.]
bronson has joined #ruby
Eminence_ has quit [Remote host closed the connection]
ss_ has joined #ruby
tier has joined #ruby
Guest18670 has joined #ruby
tkuchiki has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
crazed has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
ishikawa has quit [Remote host closed the connection]
ishikawa has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
shime_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
larissa has quit [Ping timeout: 244 seconds]
scripore has quit [Quit: Leaving]
iMe has quit [Ping timeout: 245 seconds]
TheNet has quit [Remote host closed the connection]
timanema has joined #ruby
TheNet has joined #ruby
ivanskie has joined #ruby
iMe has joined #ruby
CrazyM4n has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
Tricon has joined #ruby
aoeu has joined #ruby
<aoeu>
Hello, I'm back.
robustus|Off has joined #ruby
robustus|Off is now known as robustus
echevemaster has quit [Ping timeout: 264 seconds]
dorei has quit []
Guest18670 has quit [Quit: Konversation terminated!]
Guest18670 has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
larissa has joined #ruby
beneggett has joined #ruby
jeregrine_ has quit []
Hobogrammer has joined #ruby
zacstewart has quit [Ping timeout: 272 seconds]
dc has joined #ruby
Guest18670 has quit [Ping timeout: 265 seconds]
lampd1 has joined #ruby
oo_ has quit [Remote host closed the connection]
commmmodo has joined #ruby
crdpink2 has quit [Quit: q term]
mroach has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
fgo_ has quit [Ping timeout: 252 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
Salve has joined #ruby
mikepack has quit [Remote host closed the connection]
havenwood has quit []
echevemaster has joined #ruby
<bradland>
wb aoeu
IrishGringo has joined #ruby
ss_ has quit [Ping timeout: 265 seconds]
n008f4g_ has quit [Ping timeout: 244 seconds]
hephaestus_rg has joined #ruby
jerikl has joined #ruby
visof has quit [Ping timeout: 244 seconds]
Tricon has quit [Ping timeout: 264 seconds]
Sawbones has joined #ruby
Juanchito_ has quit [Quit: Connection closed for inactivity]
sinkensabe has joined #ruby
mbff has joined #ruby
<mbff>
Anyone know of a way to html text like it would be viewed in a browser?
maletor has joined #ruby
<mbff>
like remove all the <tags></tags> and such?
<aoeu>
mbff: What?
<aoeu>
mbff: Question makes no sense.
<mbff>
Like get only text back from a html page that you would see if you viewed the page
<aoeu>
bradland: Did you install Visual Studio? I forgot to give you my referal link.
<sevenseacat>
rails has strip_tags
<sevenseacat>
dunno about plain ruby
<mbff>
example: <p>Test <span></span> </p> ==> TEST
<aoeu>
mbff: You want to lose all formatting?
<mbff>
yah
<mbff>
just text
mjuszczak has quit []
nateberkopec has joined #ruby
<aoeu>
mbff: regex replace on <>
<aoeu>
mbff: but the answer was posted above
yokel has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Ping timeout: 252 seconds]
tier has quit [Remote host closed the connection]
yokel has joined #ruby
echevemaster has quit [Ping timeout: 256 seconds]
TheNet has quit [Remote host closed the connection]
sinequanon has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
dkphenom has joined #ruby
ChristianDC has joined #ruby
<ChristianDC>
Does anyone know why sprintf '%05d', rand(0..99999) would sometimes print only 4 numbers
yfeldblum has joined #ruby
<ChristianDC>
oh wait i think this has to do with activerecord not saving the first0
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sawbones has quit []
<sevenseacat>
integer fields wont save leading 0s, correct
bricker has quit [Quit: leaving]
startupality has quit [Quit: startupality]
<ChristianDC>
it's a varchar field though
bronson has joined #ruby
spicerack2 has joined #ruby
<bradland>
shouldn't care about leading zeros then
<ChristianDC>
yeah weird
Tricon has joined #ruby
<sevenseacat>
if you're looking at the database, thats got nothing to do with that simple sprintf statement
zacstewart has joined #ruby
xenophene has joined #ruby
<bradland>
hold the phone. how does activerecord factor in to it?
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
djbkd has joined #ruby
sinkensabe has joined #ruby
CrazyM4n has quit [Quit: sleep]
djbkd has quit [Ping timeout: 276 seconds]
sinkensabe has quit [Ping timeout: 245 seconds]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
_5kg has quit [Ping timeout: 276 seconds]
arup_r has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
CpuID has joined #ruby
CpuID has joined #ruby
bashusr has joined #ruby
bronson has joined #ruby
larissa has quit [Quit: Leaving]
djbkd has joined #ruby
jerematic has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
hephaestus_rg has quit [Ping timeout: 245 seconds]
jobewan has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
djbkd has quit [Ping timeout: 245 seconds]
Sawbones has quit [Remote host closed the connection]
troubadour has quit [Quit: troubadour]
staticshock_ has quit [Quit: WeeChat 1.0.1]
jerematic has quit [Ping timeout: 240 seconds]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
Guest18670 has quit [Quit: Konversation terminated!]
Guest18670 has joined #ruby
ejnahc has joined #ruby
ponga has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
gg123 has joined #ruby
ponga has joined #ruby
bashusr has joined #ruby
MuffinPimp has joined #ruby
gg123 has left #ruby [#ruby]
Channel6 has quit [Quit: Leaving]
pu22l3r has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
gg123 has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
gg123 has left #ruby [#ruby]
Soilent has joined #ruby
ponga has quit [Ping timeout: 244 seconds]
Adran has quit [Read error: Connection reset by peer]
^wald0 has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
oleo has quit [Quit: Verlassend]
longfeet has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
<Soilent>
hi, I am working on a gem that uses small XML database file. I want to improve performance by parsing the XML file and dumping it (Marshal.dump) during gem installation. Any advise how can I do this?
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
<centrx>
Soilent, Use Nokogiri for XML parsing
yokel has joined #ruby
<centrx>
Soilent, Then you could dump it to the database or a file
<centrx>
Soilent, but really it sounds like a bad idea, why not just use a real database?
<lampd1>
must be time for bed
<lampd1>
just read XML as XLS
hamakn has quit [Remote host closed the connection]
Guest34951 has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
hamakn has joined #ruby
<Guest34951>
hello
hamakn has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 245 seconds]
<Guest34951>
hi
hamakn has joined #ruby
<Soilent>
centrx, the xml file is rather small and I don't want additional dependencies. I am not sure how can I generate dump file during gem installation
benlieb has joined #ruby
benlieb has quit [Client Quit]
bashusr has quit [Read error: Connection reset by peer]
<Guest34951>
wht sort of files
<Guest34951>
hello bashur
<Guest34951>
hello ruby
hamakn has quit [Remote host closed the connection]
ivanskie has joined #ruby
bashusr has joined #ruby
<Guest34951>
ruby
<Guest34951>
u r online
<Guest34951>
?
taiansu has quit [Remote host closed the connection]
<centrx>
Yes
<Guest34951>
yes
<Guest34951>
how r u
<sevenseacat>
o.O
<centrx>
How are you?
yfeldblum has quit [Remote host closed the connection]
Xeago has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
ponga has quit [Remote host closed the connection]
<Guest34951>
hello
<Guest34951>
where u from
<centrx>
We are asleep
<pontiki>
we are awake
ponga has joined #ruby
<pontiki>
the mice are stirring
Alina-malina has joined #ruby
<Guest34951>
who is pontiki
bashusr has quit [Read error: Connection reset by peer]
<pontiki>
== 'mouse' in Greek: ποντίκι
x1337807x has joined #ruby
apeiros has quit [Remote host closed the connection]
bashusr has joined #ruby
apeiros has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Soilent has quit [Quit: leaving]
codezomb has joined #ruby
MuffinPimp has quit [Remote host closed the connection]
<dopie>
[path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/mindblown/.rvm/bin]/bin/bash: ruby: command not found
<mozzarella>
install ruby
<mozzarella>
¯\_(ツ)_/¯
El3k0n has joined #ruby
<dopie>
it is installed
<mozzarella>
what does "which ruby" say?
<Nilium>
If it's installed, then set your PATH to the one in that command and type 'ruby'
<riceandbeans>
where the hell did they define Money?
<havenwood>
rspec be
<sevenseacat>
mozzarella: (15:34:52) sevenseacat: the regex has a couple of capture blocks in it (i think thats the right word) so i wantthem individually
<mozzarella>
sevenseacat: scan also does that, though
<havenwood>
riceandbeans: There're some fantastic plugins for Minitest though. I think RSpec is probably worth learning but you don't have to start with it.
<riceandbeans>
for anyone who wants to give me a hand with a simple attempt at starting
<mozzarella>
sevenseacat: refresh the page
<porfa>
so i’ve succefuly made a script that scraps me data from a website, and puts it in a nive tableview using sinatra and all.. but now i want to add another website to that script.. i alredy have all the selectors i need… and stuff…!! but when i put thoose selectors inside the <td> in the the same column i want.. it breaks :(
<sevenseacat>
riceandbeans: have you tried getting an rspec tutorial?
DanielRb has joined #ruby
<porfa>
damn, the problem is.. i can’t even articulate my problem right now, so this is going to be hard haha
_5kg has quit [Ping timeout: 276 seconds]
El3k0n has quit [Remote host closed the connection]
<porfa>
is it possible for me to have data from diferent websites inside the same column / table view ? im maing a script that gets me product names and prices from two diferent sites.. and i want the price to be in the price column, even though one price is from a website, and the the other price is from another website..
<apeiros>
porfa: huh? you can design your tables in whatever way you see fit
neersighted has joined #ruby
<porfa>
im really sorry if i sound obvious, but i am a really really REALLY newbie to the world of programing and such
<certainty>
really * 3
ohaibbq has quit [Quit: Leaving...]
<porfa>
yeah, that’s how newbie i am! :p
<certainty>
:)
<porfa>
<td> <%= ofrbp.at_css('.nomeOferta').text %> </td> how can i put a selector from another website in here?
<apeiros>
porfa: uh, separate your logic from your view
<apeiros>
prepare the data, normalize it, then pass it to your view.
<porfa>
i dont even know what that means :(
wallerdev has quit [Quit: wallerdev]
bashusr has joined #ruby
<apeiros>
you know what a view is?
<porfa>
yes
<porfa>
can i show you my view ?
<apeiros>
ok. that's the place where logic should NOT be.
<pontiki>
is this a rails application?
<apeiros>
you can, but I'm at work and may soon have to go afk.
Spami has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
<porfa>
im using ruby and sinatra..
<porfa>
i dont know what rails is :/
<pontiki>
no worries
<pontiki>
just trying to get a feel for what you're working with
taiansu has quit [Remote host closed the connection]
* apeiros
turns shevy into a simple problem
El3k0n has joined #ruby
dseitz_ has joined #ruby
<shevy>
:(
<apeiros>
I'd win a nobel price if I'd manage to actually do that
<shevy>
why can't I be the solution instead!
psy_ has quit [Quit: Leaving]
<pontiki>
which category?
<pontiki>
physics?
<apeiros>
fiction
<pontiki>
i suppose if we're talking solutions, it would be chemistry
<apeiros>
I don't think shevy can be reduced to that :)
<pontiki>
if you're not part of the solution, you're part of the particulate!
<shevy>
leave my particles alone!!!
<pontiki>
</chriscrocker>
dseitz has quit [Ping timeout: 245 seconds]
lampd1 has quit []
<constantlurking>
guys i need some help. i wrote a method which finds all of the factors of a given number and pushes them to an array called new_array. i wrote another method which checks to see if a number is prime. i want to pass each number from new_array into my prime checking method . can't seem to figure out how to do it, I'm going crazy over here --> https://gist.github.com/anonymous/3a065ce6ebef2c232d44
<buschhardt>
Hallo, I create a gdbm-Database with db=GDBM.open('test.db',GDBM::WRITER||GDBM::NOLOCK) in a terminal, in a second terminal I try to read the Database with db=GDBM.open('test.db',GDBM::READER) - but everytime I got: Errno::EAGAIN: Resource temporarily unavailable - test.db The Database has mode 777 and I run ruby 2.1.5p273 on debian
El3k0n has quit [Remote host closed the connection]
<apeiros>
constantlurking: oh dear. indent your code. I'm not reading that.
iMe has quit [Ping timeout: 252 seconds]
<gizmore>
constantlurking: new_array.each do |n|; primetest(n); end
djbkd has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
iMe has joined #ruby
wpp has joined #ruby
<shevy>
constantlurking store on gisthub with .rb end, then you get colourized results for free
<shevy>
e. g. rather than gistfile1.txt, store as gistfile1.rb
<constantlurking>
gizmore: thats the first thing i tried on eval.in/ruby and it timed out
<porfa>
should i be persuing sinatra or go to ruby on rails?...
<gizmore>
constantlurking: probably because your code is inefficient :P
<shevy>
porfa ruby on rails is huge; #rubyonrails
<constantlurking>
gizmore: yea i don't doubt that, i guess i'm going to have to download ruby and run it on my own machine... that sucks =/
<gizmore>
how can things suck that you want to do?
<pontiki>
porfa: rails will not make your need any easier; it will make it much more complicated
bashusr has quit [Read error: Connection reset by peer]
<constantlurking>
i thought i could get away with using a web interpreter, I'm coming from javascript and just learning ruby so i haven't done this before
<porfa>
so as a begginer, i should stick to plain ruby...
djbkd has quit [Ping timeout: 244 seconds]
<buschhardt>
porfa: take sinatra - :-) and you can also use activerecord
n008f4g_ has joined #ruby
<porfa>
atm i just want to grab data from two diferent websites, and put it on a table… lol.
<porfa>
and i beleive ruby + sinatra i just fine..
<shevy>
do you have the data already
<buschhardt>
porfa: htmlclient is a good gem for
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<shevy>
because when you have it, putting it into a table is trivial
<porfa>
yes, i alredy have my css selectors and stuff
<porfa>
i just dont know how to put it on a table (i can put ONE site (its data) on a table, but i can’t put data from two sites)
<buschhardt>
porfa: i switch also to the ERUBIS template - its very fast
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
jerematic has joined #ruby
bronak has joined #ruby
lxsameer has quit [Quit: Leaving]
CpuID has quit [Quit: This computer has gone to sleep]
tesuji_ has joined #ruby
<pontiki>
i don't think porfa's issue is getting the data. it seems to be the issue is being able to display data from two lists of information on the same table
arup_r has joined #ruby
<pontiki>
it's not really an issue of which templating system to use, one could have the same issue in writing plain ascii text
<porfa>
yepp
_5kg has quit [Read error: Connection reset by peer]
_5kg has joined #ruby
jerematic has quit [Ping timeout: 252 seconds]
<pontiki>
what seems essential is to be able to match the items between the listings
msgodf has joined #ruby
<pontiki>
which means scraping the information from one site into a data structure, then scraping the data from the other site, finding the match for the item in the data structure, and inserting the second price.
<porfa>
yeah.. i want price_site_1 and price_site_2 to go into the same column, diferent rows though
<pontiki>
you need to stop thinking about how it's going to look
<buschhardt>
porfa: do you have a refrence between that datas or they are independently (dont know if that word exist)
<pontiki>
you first need to get the data into a useable state
<porfa>
i dont care how it looks…!
nclbr has joined #ruby
<pontiki>
then stop talking about how it looks
<porfa>
when did i talked about how it looks? :o
<pontiki>
< porfa> yeah.. i want price_site_1 and price_site_2 to go into the same column, diferent rows though
bashusr has quit [Read error: Connection reset by peer]
<porfa>
if i made that impression, im sorry.. never was my intention
nclbr has left #ruby [#ruby]
<buschhardt>
porfa: so what are the reference of this two data-rows to the column? e.g. articel number, ean ?
lemur has quit [Remote host closed the connection]
<porfa>
just the price
shime has joined #ruby
<pontiki>
so you don't care if the two prices are for different items?
<riceandbeans>
to the person who was helping me in stypi, thank you
guardian has joined #ruby
antgel has joined #ruby
n008f4g_ has quit [Ping timeout: 265 seconds]
<buschhardt>
porfa: that make no sense for me - simple do an array with row1 and row2 and run through it
<porfa>
i have site A, that has: Price, product name and image. and i have site B, that has price, product name and image also.
djbkd has joined #ruby
<porfa>
i want to make a list with 4 columns. Sitename | prodname | price | image
<porfa>
that’s just it
bashusr has joined #ruby
codecop has joined #ruby
Xeago has quit [Remote host closed the connection]
<porfa>
the products can be repeated from both sites. i dont want to merge the prices inside the same row.
bashusr has quit [Read error: Connection reset by peer]
bronak has quit [Ping timeout: 245 seconds]
<buschhardt>
porfa: put that infos in a array with a hash [{:price=>12.34,:img=>'usa.jpg'},{:price=>12.34,:img=>'germany.jpg'}] and rund through it
havenwood has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 272 seconds]
bashusr has quit [Read error: Connection reset by peer]
thejoecarroll has joined #ruby
taiansu has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has joined #ruby
djbkd has joined #ruby
timonv has quit [Client Quit]
oo_ has joined #ruby
<porfa>
well i justd rm -rf /
<porfa>
yolo
tokik has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
<certainty>
porfa: well it doesn't do too much does it? / is a mount point
<certainty>
(depends on the rm command of course)
<certainty>
also recent rm needs --no-preserve-root
<porfa>
no no, i did it on porpuse
<certainty>
ah ok
<porfa>
im gonna start everything all over again, installing ubuntu and shit
<porfa>
and all this crap
<porfa>
as a zen exercise
<certainty>
hah
<porfa>
all the work form the past two weeks, puff.
<porfa>
from*
<certainty>
it sure is in the spirit of zen i think. life is torture and all that
<certainty>
ubuntu is good at giving you agonizing pain
<porfa>
hahhaha
<constantlurking>
still can't figure this out, if anyone can help i'd appreciate. trying to complete problem #3 on projecteuler.net--> i wrote a method which finds all of the factors of a given number and pushes them to an array called new_array. i wrote another method which checks to see if a number is prime. i want to pass each number from new_array into my prime checking method . can't seem to figure out how to do it --> https://gist.github.
bashusr has joined #ruby
ta_ has joined #ruby
pwnz0r has quit [Remote host closed the connection]
<buschhardt>
certainty: lol
timonv has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 256 seconds]
oo__ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
djbkd has joined #ruby
<buschhardt>
porfa: maybe install debian or freebsd :-)
qba73 has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
<pontiki>
that'll make all the problems go away, and everything will be easy
<buschhardt>
constantlurking: put a puts in your while-loop and u see where u are hanging :-)
joonty has joined #ruby
* pontiki
gives up
djbkd has joined #ruby
<constantlurking>
buschhardt: what do you mean? put a puts where
bayed has joined #ruby
<buschhardt>
constantlurking: primechecker(1) comes never back - puts "im in a loop"
<buschhardt>
constantlurking: Problem is 1
pu22l3r has joined #ruby
<pontiki>
i started projecteuler in an attempt to try to learn python
<pontiki>
lost interest after problem 2
<shevy>
haha
<buschhardt>
constantlurking: if 1==2 , if 1==0, else - you see 1 is never come out of the loop
rodfersou has joined #ruby
<constantlurking>
oooooooh i see
workmad3 has joined #ruby
<constantlurking>
so what would the correct code look like
bashusr has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 246 seconds]
<buschhardt>
constantlurking: 1 is a primenumber -> leave primechecker if x==1
<workmad3>
buschhardt: 1 isn't a prime number
<certainty>
by definition
<buschhardt>
workmad3: primenumber are dividing through 1 and by itself
<buschhardt>
workmad3: 1/1 = 1 :=)
<certainty>
actually every number greater than 1
<certainty>
that's the definition
dc has quit [Remote host closed the connection]
<workmad3>
buschhardt: allowing 1 to be prime destroys a huge number of prime number proofs ;)
<workmad3>
buschhardt: so it's excluded
djbkd has quit [Ping timeout: 246 seconds]
<buschhardt>
workmad3: ok im wrong
gizmore has joined #ruby
djbkd has joined #ruby
<buschhardt>
workmad3: prim means set together - thats my fault
<certainty>
yeah that's one valid way to remember it
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<buschhardt>
sorry its friday - and I want go home from waork :-)
<tagrudev>
any idea how can I retrieve the current release id in capistrano 3
<certainty>
no need to be sorry. workmad3 is a know-it-al
<certainty>
erm know-it-all
<workmad3>
buschhardt: it's ok :) the one I always remember (although I have trouble expressing it succintly at times) is the unique prime factorization theorem :)
timonv has joined #ruby
<certainty>
:p
ta_ has joined #ruby
<workmad3>
buschhardt: if you allow 1 to be prime, that theorem is completely demolished, because you can always add more factors of 1 into any factorization
<buschhardt>
workmad3: sorry wrong universe - on the other there is a different mathematic :-)
<constantlurking>
all i had to do was start n at 1 in the first method so that it didn't output 1 in the array
bashusr has joined #ruby
<constantlurking>
buschhardt: thanks :)
<constantlurking>
how did you find the bug?
<constantlurking>
i would've been staring at that code all day lol
<buschhardt>
constantlurking: test the array by hand
C1V0 has quit []
<workmad3>
constantlurking: 1 is a factor though...
bashusr has quit [Read error: Connection reset by peer]
<constantlurking>
workmad3: i know, but the challenge is to find the largest prime factor of a given number, and i'm assuming it won't be 1 lol https://projecteuler.net/problem=3
<workmad3>
constantlurking: fair enough :) you can massively improve your prime check btw ;)
ta_ has quit [Ping timeout: 265 seconds]
decoponio has joined #ruby
<certainty>
yeah use Prime.prime?
djbkd has quit [Ping timeout: 264 seconds]
<constantlurking>
workmad3: yea I'm sure theres a more efficient way, i started learning ruby last week so I'm still in the crude phase
<buschhardt>
constantlurking: I know it sounds stupid, but what if you take a primenumber-table - its faster :-)
<workmad3>
even without doing that... you could make a big improvement just by checking if n >= x/2
bashusr has quit [Read error: Connection reset by peer]
<certainty>
also if you can live with some uncertainty you can use fermat or the miller-rabin-test
bronak has joined #ruby
qba73 has quit []
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
shime has quit [Ping timeout: 264 seconds]
bashusr has joined #ruby
spider-mario has joined #ruby
<workmad3>
constantlurking: we're not really talking about more complicated ruby here btw... we're talking about spotting 'fun' aspects of numbers and incorporating them into a proceduce to determine if a number is prime
<workmad3>
constantlurking: you could also remove pretty much your entire prime number check btw and rewrite it in terms of code you've already written ;)
<shellox_>
buschhardt: should be correct. i've just downloaded the sample from shopify
<shellox_>
i dind't create it by myself
<buschhardt>
shellox_: :headers=>true its a symbol
<shellox_>
buschhardt: ok, but still doesn't work :p
<buschhardt>
shellox_: what do you want to make - copy data from one csv to another?
troubadour has joined #ruby
<shellox_>
i will modify the original csv later. for now i just want to read and write it
Guest41220 is now known as gregf_
<shellox_>
i just want to write the same thing i read again for now
<shellox_>
including headers
ponga has quit [Ping timeout: 245 seconds]
bashusr has joined #ruby
<buschhardt>
shellox_: cp csv1.csv csv2.csv
<shellox_>
...
<shellox_>
i try to figure out the ruby syntax for this two things, how would bash help there
<workmad3>
constantlurking: btw, you may want to consider looking up a better way to discover factors...
bashusr has quit [Read error: Connection reset by peer]
<shellox_>
i will modify the content later i've read, but i try to figure out how to write first
withnale_ has joined #ruby
kaspertidemann has quit []
djbkd has joined #ruby
kaspertidemann has joined #ruby
<workmad3>
constantlurking: you can do a simple calculation of '600851475143.fdiv(number_of_ops_per_second).fdiv(3600).fdiv(24)' to get an idea of how long your current algorithm will run for, seeing as it tests each number
<buschhardt>
shellox_: CSV.foreach("path/to/file.csv") do |row| # use row here...
marr has joined #ruby
kaspertidemann has quit [Client Quit]
<workmad3>
constantlurking: which will tell you that, with a rough estimate of even 1 million operations a second, just finding the factors will take you about a week... ;)
<buschhardt>
shellox_: for reading every row
zacstewart has joined #ruby
oo_ has quit [Quit: Leaving...]
<buschhardt>
shellox_: the header its only a row - but if you :header=>true - in this moment CSV cut them out of the row-list
bashusr has joined #ruby
taiansu has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
dseitz has quit [Quit: nap time!]
djbkd has joined #ruby
Spami has joined #ruby
<shellox_>
buschhardt: so if i remove headers from it writes the headers CSV.read(mycsv, :headers => true)
linduxed has joined #ruby
<shellox_>
how can i read the file with headers and write with headers as well?
<constantlurking>
workmad3: so what's a more efficient method of doing this
oo_ has joined #ruby
dangerousdave has joined #ruby
<constantlurking>
workmad3: this was the final code, which indeed was too inefficient https://eval.in/243165
thsig has joined #ruby
<buschhardt>
shellox_: CSV.read(mycsv) header is false by default
<workmad3>
constantlurking: ok, so start making some insights into the problem
<shellox_>
buschhardt: yes, so that's why i want to have headers when reading the file, but i also want to write them
<shellox_>
how do i do that?
<shellox_>
in the end i do sth. like that. read existing file, add some rows, write again
<Sar_D>
hi, how can I convert a ascii string to wide char (16 bits) ? thank you
grn has quit [Client Quit]
<niram>
there's no solution there
<buschhardt>
niram: workaround see below
posixpascal has joined #ruby
startupality has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
<workmad3>
I wonder why rvm tries to get a non-existant release of rubygems...
jerematic has joined #ruby
<certainty>
because it can
<niram>
because the ruby devs are not paid and they can't be bothered to fix their shit so it doesn't break automated provisioning script for everyone...
thsig has quit [Remote host closed the connection]
<niram>
that's why :)
ldnunes has joined #ruby
<arup_r>
I have a string "'value 1'" how can I delete those characters `'` ?
<niram>
i think declarative is the way to go for config management
ARCADIVS has quit [Quit: ARCADIVS]
<niram>
but there are some really annoying things about puppet
visof has joined #ruby
nrcpts has quit [Quit: (null)]
<certainty>
like resources already being declared? i mean how is that declarative. If i say i want a directory being present, i don't care if another resource wanted the same. I'm fine with that. just execute that action idempotently and leave me alone
<certainty>
but maybe i did not drink enough koolaid
djbkd has joined #ruby
neektza has joined #ruby
<niram>
certainty: the fucked up thing is that if you want to test if a resource is declared already the order of the actual code suddently matters
Sawbones has quit [Ping timeout: 276 seconds]
bashusr has joined #ruby
tobago has quit [Read error: Connection timed out]
<certainty>
or you have to test in each and every resource. then order doesn't matter. surely one resource will be first
<certainty>
sometimes i resort to defined checks
<certainty>
but it's ugly
tobago has joined #ruby
<certainty>
also i'm not a puppet guru at all. I sometimes have to deal with it
thsig_ has quit [Remote host closed the connection]
<workmad3>
certainty: sounds like a reasonable assumption... at least until you're doing distributed configuration on galactic scales ;)
<buschhardt>
I try to access simultan on a gdbm database - but I got error: terminal 1 -> db = GDBM.open('test.db',GDBM::WRITER) terminal2 -> db = GDBM.open('test.db',GDBM::READER) - but the access is denied (mode 777 for the file)
<buschhardt>
someone can try this at your computer?
<buschhardt>
I got everytime errno::eagain: resource temporarily unavailable
<certainty>
workmad3: which one?
djbkd has quit [Ping timeout: 272 seconds]
<certainty>
shevy: yeah, i wish i could cut the strings
<niram>
btw, the workaround for the missing rubygems worked, thanks!
<workmad3>
certainty: that there's only one 'first' resource
<certainty>
workmad3: ah yeah. indeed
<certainty>
buschhardt: works here
<buschhardt>
certainty: witch version do you have
thsig has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<certainty>
this was 2.0.0-p353
<buschhardt>
certainty: which - sorry its not my mothertounge
djbkd has joined #ruby
reinaldob has joined #ruby
<certainty>
buschhardt: just to be sure. you just did what the example shows?
<certainty>
buschhardt: sorry i didn't see your first line
<shevy>
are there speed comparisons between 2.1 and 2.2 ?
<certainty>
i get the same error
<buschhardt>
certainty: i only start 2 terminals (in screen) and try to open the database (its empty)
<certainty>
doesn't gdbm lock the file?
msgodf has quit [Remote host closed the connection]
bashusr has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<certainty>
shevy: yeah sure i'll give you one. 2.1 is somewhat fast. 2.2 is fast too. Probably faster but sometimes slower
<buschhardt>
certainty: I dont know ? there is an option GDBM:NOLOCK but the same result
<certainty>
iirc it does lock.
tkuchiki has joined #ruby
<certainty>
also you may want WRCREAT
<shevy>
certainty lol
<buschhardt>
certainty: in the documentation: A database can be accessed either by any number of readers or by exactly one writer at the same time.
SixiS has quit [Read error: No route to host]
pdoherty has joined #ruby
mroach has quit [Ping timeout: 272 seconds]
majeure_ is now known as majeure
SixiS has joined #ruby
<buschhardt>
certainty: but database exist on the filesystem
Spami has quit [Ping timeout: 272 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
<certainty>
buschhardt: i see. i'd expect the documentation to be correct. which doesn't seem to be the case, at least not from within irb
tkuchiki has quit [Ping timeout: 256 seconds]
rurban has joined #ruby
<buschhardt>
certainty: the options its a little bit confusing me GDBM::WRITER||GDBM::NOLOCK ... GDBM::READER||GDBM::NOLOCK ??
<certainty>
i'd expect GDBM::WRITER|GDBM::NOLOCK etc.
pdoherty has quit [Ping timeout: 244 seconds]
rurban has left #ruby [#ruby]
bronson has joined #ruby
niram has left #ruby [#ruby]
<buschhardt>
certainty: same error result - with all combinations
<buschhardt>
certainty: also try this as root - same error
zorak8 has joined #ruby
<certainty>
buschhardt: it seems to work outside irb
sigurding has quit [Quit: sigurding]
ta_ has joined #ruby
taiansu has joined #ruby
<certainty>
i just did GDBM.new('something') in one file and slept for some time. Then opened a 2 readers from another file GDBM.new('something',GDBM::READER)
<certainty>
no errors
Heskie has quit [Read error: Connection reset by peer]
dotix has quit [Ping timeout: 265 seconds]
bashusr has quit [Read error: Connection reset by peer]
zorak8 has quit [Read error: Connection reset by peer]
Heskie has joined #ruby
astrobunny has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 276 seconds]
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
schickung has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
msgodf has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
thsig has quit [Remote host closed the connection]
mroach has joined #ruby
thsig has joined #ruby
bronak has joined #ruby
taiansu has quit [Ping timeout: 244 seconds]
bashusr has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
mloveless has joined #ruby
<buschhardt>
certainty: i have no luck - i do writer and reader in separate files and run - but same error
<certainty>
buschhardt: hmm let me check something
linduxed has quit [Ping timeout: 252 seconds]
<certainty>
buschhardt: woops sorry. I had an absolute path in one file and a relative one in the other (resulting in different files being accessed)
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
yjmsf20 has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
mloveless has quit [Ping timeout: 264 seconds]
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
grn has joined #ruby
n1lo has joined #ruby
bal has joined #ruby
oo_ has quit [Remote host closed the connection]
kp666 has quit [Quit: Leaving]
jack_rabbit has quit [Ping timeout: 245 seconds]
djbkd has quit [Ping timeout: 252 seconds]
keen__________34 has joined #ruby
zorak8 has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
keen__________33 has quit [Ping timeout: 265 seconds]
mroach_ has joined #ruby
iMe has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
startupality has quit [Quit: startupality]
djbkd has joined #ruby
fandi_ has quit [Quit: Leaving]
fandi has joined #ruby
mroach has quit [Ping timeout: 272 seconds]
mroach_ is now known as mroach
iMe has joined #ruby
spider-mario has quit [Remote host closed the connection]
kamilc__ has quit [Quit: Leaving...]
iamninja has quit [Remote host closed the connection]
<workmad3>
namely that re-assigning 'block' doesn't change the implicit block parameter
bashusr has joined #ruby
BTRE has joined #ruby
blackmesa has joined #ruby
<grn>
We probably should treat blocks as a special case. IDK whether we can get a better understanding of what's going on w/o studying MRI.
<arup_r>
grn: +1
ta_ has quit [Ping timeout: 264 seconds]
<arup_r>
that's why I wanted to know
<arup_r>
why block variable is being treated as special one
<grn>
arup_r: nice find, btw!
<workmad3>
because it is somewhat special :)
<arup_r>
:)
yfeldblum has joined #ruby
<workmad3>
in the MRI implementation, when you do 'foo(&some_proc)' then it'll strip off the 'procness' to pass it in as the block param... but it'll keep the association with the original proc object, so that if the method does 'def foo(&block)' then it can re-build a proc object around the block argument with the same object_id and other details...
sigurding has joined #ruby
<workmad3>
so if you look at the proc outside the method and inside the method, it looks like the same proc, and semantically, it looks like blocks are passed around as procs
sandelius has joined #ruby
<workmad3>
so the question is - what should happen to the implicit block when you re-assign the variable it got rebuilt into? (I don't know that one... it seems fairly complicated)
<workmad3>
after all, what happens if you re-assign it to something that would error when you called to_proc on it?
<workmad3>
should it error straight away? only when you call super? should it ignore it?... lots of edge-cases :/
ta_ has joined #ruby
zwer has joined #ruby
LekeFly has joined #ruby
icbm has joined #ruby
Xeago has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
shazaum has joined #ruby
startupality has joined #ruby
ajaiswal has quit [Quit: Leaving]
djbkd has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
Tricon has quit [Ping timeout: 240 seconds]
fgo_ has quit [Quit: WeeChat 1.0]
bashusr has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
bonhoeffer has joined #ruby
<bonhoeffer>
is there a way to see the path that require uses in a given instance?
zacstewart has joined #ruby
<certainty>
pp $LOAD_PATH
bronson has joined #ruby
<bonhoeffer>
thanks!
<certainty>
there is also a short magic global which i tend to forget
yfeldblum has quit [Remote host closed the connection]
<arup_r>
$:
<arup_r>
certainty: ^^
<certainty>
ah yeah that was it
<certainty>
thanks arup_r
<arup_r>
certainty: suddenly came to my mind
Darryl___ has joined #ruby
bashusr has joined #ruby
arup_r_ has joined #ruby
oo_ has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
bashusr has quit [Read error: Connection reset by peer]
atomi has quit [Remote host closed the connection]
dotix has joined #ruby
dotix has joined #ruby
DaniG2k has joined #ruby
krz has quit [Ping timeout: 264 seconds]
zacstewart has quit [Ping timeout: 265 seconds]
shazaum has joined #ruby
shazaum has quit [Changing host]
arup_r has quit [Ping timeout: 245 seconds]
djbkd has quit [Ping timeout: 252 seconds]
buschhardt has quit [Quit: leaving]
krz has joined #ruby
<gregf_>
arup_r_: why would you want to change parameters in the call to the parent class method?
zorak8 has quit [Ping timeout: 256 seconds]
joonty has quit [Quit: joonty]
<arup_r_>
gregf_: Didn't get you..
Mon_Ouie has quit [Ping timeout: 245 seconds]
shime has quit [Ping timeout: 244 seconds]
josephcs has quit [Quit: (null)]
oo_ has quit [Remote host closed the connection]
josephcs has joined #ruby
<gregf_>
arup_r_: as in do you have a valid use_case for changing the method arguments before calling the parent class method(using super)?
oo_ has joined #ruby
<gregf_>
this works: class Foo; def foo; yield; end;end; class Bar < Foo; def foo; super {"b"}; end;end;p Bar.new.foo()
<arup_r_>
gregf_: Ok.. I found actually something weired with block variable, which is not the case when it is a keyword argument, normal argument etc..
bashusr has joined #ruby
<gregf_>
and so does this: class Foo; def foo(&bl); bl.call(); end;end;class Bar < Foo; def foo(&bl); super; end;end;p Bar.new.foo { "b" }
<gregf_>
arup_r_: i'm just trying to figure out when i would want to change the method args before calling the parent class method? cuz i've never had to :/
oo_ has quit [Remote host closed the connection]
djbkd has joined #ruby
Heskie has quit []
oo_ has joined #ruby
bluOxigen has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<gregf_>
arup_r_: ok. i try and stay away from complicating things :/. programming is hard as it is. theres many ways you can break OO if you;d want to ;)
<arup_r_>
true true
Sar_D has quit [Quit: leaving]
<arup_r_>
gregf_: I want to follow you in GutHub :)
booly-yam has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
Heskie has joined #ruby
WillAmes has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
ndrei has quit [Ping timeout: 252 seconds]
thsig_ has joined #ruby
Heskie has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
thsig has quit [Read error: Connection reset by peer]
Heskie has joined #ruby
yokel has quit [Ping timeout: 276 seconds]
<grn>
gregf_: one use case is dealing with someone's else code (so called legacy code ;-)). It's good to know such wired special cases.
MasterRoot24 has joined #ruby
bonhoeffer has joined #ruby
Sawbones has joined #ruby
yokel has joined #ruby
josephcs has quit [Ping timeout: 255 seconds]
MasterRoot24 has quit [Client Quit]
djbkd has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
blizzy has joined #ruby
Sawbones has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
nateberkopec has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
larissa has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Morkel has joined #ruby
bronak has joined #ruby
troubadour has joined #ruby
anaeem1_ has joined #ruby
troubadour has quit [Client Quit]
<jokke>
hello
bashusr has joined #ruby
<certainty>
_o/
gheegh has joined #ruby
* certainty
is a semaphore today
<jokke>
if i build a specific ruby from source, does it already contain all security patches?
timonv has joined #ruby
<workmad3>
jokke: it contains any security fixes that were applied up to the version you built
<jokke>
yes ok
davout has joined #ruby
<davout>
hi
<certainty>
ho
anaeem1_ has quit [Ping timeout: 264 seconds]
bronak has quit [Ping timeout: 244 seconds]
<davout>
does anyone know of an easy way to format numbers? (commas, thousands separator mainly)
<davout>
no actionpack
<jokke>
i'm asking because i'm thinking of running an unoffical repo for ruby binaries of different versions for my distro.
<davout>
guess i can just pull that particular method from AP heh
kamilc__ has joined #ruby
<jokke>
the latest update broke so many of my ruby projects and webservices including gitlab on my server...
<jokke>
and i'm trying to avoid that in the fututre
<jokke>
*future
<workmad3>
jokke: well, then it'll be up to you to decide your policy on applying security patches, including any porting efforts required, same as something like the debian or ubuntu package maintainers would do
zzz_Ridley has joined #ruby
shime has joined #ruby
<jokke>
yeah
zzz_Ridley is now known as Ridley5
amil has joined #ruby
Ridley5 has quit [Changing host]
Ridley5 has joined #ruby
<workmad3>
jokke: and even then, you're not likely to avoid breakages in the future ;)
<jokke>
mmh
<jokke>
it's a nuisance
<jokke>
still havent got gitlab up and running
<workmad3>
jokke: sometimes a security patch changes behaviour that you were relying on unintentionally
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3>
jokke: sometimes you can't backport a patch
<jokke>
yeah
<workmad3>
jokke: and this is why you should have a staging environment where you test out that sort of change first ;)
<jokke>
but running rvm on a server isn't great either
djbkd has quit [Ping timeout: 255 seconds]
n1lo has quit [Ping timeout: 252 seconds]
<workmad3>
jokke: I integrated ruby-install into my chef cookbooks, so I could use that to compile specific rubies and expose all the environment data through a resource wrapper
last_staff has joined #ruby
djbkd has joined #ruby
<workmad3>
jokke: then I could just use that information to set up the environment for processes, etc :)
zorak8 has joined #ruby
aclearman037 has joined #ruby
<jokke>
sound's good
kamilc__ has quit [Ping timeout: 246 seconds]
joonty has quit [Quit: joonty]
ser0ton1n has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
meschi has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
posixpascal has joined #ruby
claptor has quit [Quit: this channel is bakas]
<jokke>
and for some reason (maybe ruby update again) rubocop doesn't work with syntastic in vim anymore. I loved it.. :(
djbkd has quit [Ping timeout: 252 seconds]
g-nom3 has joined #ruby
g-nom3 has quit [Max SendQ exceeded]
g-nom3 has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
djbkd has joined #ruby
bashusr has joined #ruby
parduse has quit [Read error: Connection reset by peer]
taiansu has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
pdoherty has joined #ruby
metadave has joined #ruby
n1lo has joined #ruby
jherbst has joined #ruby
taiansu has quit [Ping timeout: 276 seconds]
DadoCe has joined #ruby
dangerousdave has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
brb3 has joined #ruby
djbkd has joined #ruby
yokel has quit [Ping timeout: 245 seconds]
pdoherty has quit [Ping timeout: 245 seconds]
jherbst has quit [Client Quit]
yokel has joined #ruby
hgl has quit [Ping timeout: 252 seconds]
jerematic has joined #ruby
oo_ has quit [Remote host closed the connection]
zacstewart has joined #ruby
sinkensabe has quit [Remote host closed the connection]
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Heskie has quit [Read error: Connection reset by peer]
arup_r_ has quit [Remote host closed the connection]
<mwlang>
I need to write a Ruby script to run on Windows that will connect to FTP server, download some zipped files and unzip them. Are Ruby’s zlib and such available under Windows w/o a lot of pain to install?
_1_Adrian73 has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3>
mwlang: I think so... pretty sure ruby's zlib library is fundamental to being able to install gems, so if the installation is able to do that, it can use zlib ;)
<workmad3>
mwlang: dunno about it's ftp library though...
<workmad3>
*its
_1_Adrian73 has quit [Read error: Connection reset by peer]
<mwlang>
ah well. I guess I’m about to find out! I just realized I have a Windows VM lying around I can actually test with, so I’ll give it a whirl.
startupality has quit [Quit: startupality]
<workmad3>
:)
leslie has quit [Quit: Have you ever tried to eat a clock? It's very time consuming.]
tkuchiki has joined #ruby
<mwlang>
hmmm…the rails installer looks a little better maintained than the rubyinstaller, which is still recommending 1.9.3 over 2.x versions
janmuffino has joined #ruby
anaeem1_ has joined #ruby
posixpascal has joined #ruby
n1lo_ has quit [Quit: Leaving]
timanema has joined #ruby
spyderman4g63 has joined #ruby
tvw has joined #ruby
leslie has joined #ruby
grn has quit []
startupality has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
joonty has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Gue______ has joined #ruby
<mwlang>
ah, nevermind, railsinstaller is including the same stuff from rubyinstaller, just packaging a bunch of useful stuff together.
sinkensabe has joined #ruby
rebcabin has joined #ruby
zorak8 has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 276 seconds]
n008f4g_ has joined #ruby
veduardo_ has joined #ruby
fandi has quit [Ping timeout: 244 seconds]
tvw has quit []
sbx has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
TheKruex has joined #ruby
elfuego has joined #ruby
startupality has quit [Quit: startupality]
oleo has joined #ruby
djbkd has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
bronak has joined #ruby
Akuma has joined #ruby
posixpanda has joined #ruby
chinmay_dd has joined #ruby
posixpascal has quit [Read error: Connection reset by peer]
dblessing has joined #ruby
fandi has joined #ruby
evanjs has joined #ruby
tier has joined #ruby
bashusr has joined #ruby
dangerousdave has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
DaniG2k has quit [Ping timeout: 246 seconds]
blackoperat has joined #ruby
posixpanda has quit [Read error: Connection reset by peer]
posixpascal has joined #ruby
thsig_ has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
davidhq has joined #ruby
JDiPierro has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
last_staff has quit [Quit: last_staff]
pandaant has joined #ruby
joonty has quit [Quit: joonty]
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elfuego has quit [Remote host closed the connection]
bashusr has joined #ruby
bronak has quit [Ping timeout: 246 seconds]
brocktimus has joined #ruby
DaniG2k has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Remote host closed the connection]
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
dangerousdave has joined #ruby
jefus__ is now known as jefus
djbkd has quit [Ping timeout: 264 seconds]
IrishGringo has quit [Ping timeout: 245 seconds]
bashusr has quit [Read error: Connection reset by peer]
metadave has quit [Ping timeout: 272 seconds]
sigurding has quit [Quit: sigurding]
doodlehaus has joined #ruby
djbkd has joined #ruby
TheKruex has quit []
taiansu has joined #ruby
mrmargolis has joined #ruby
Gue______ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bashusr has joined #ruby
ta_ has quit [Read error: No route to host]
jefus_ has joined #ruby
MarkPaulFletcher has joined #ruby
thsig has joined #ruby
oo_ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
ejnahc has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
ejnahc has joined #ruby
jerius has joined #ruby
dotix has quit [Ping timeout: 265 seconds]
jefus has quit [Ping timeout: 244 seconds]
Channel6 has joined #ruby
it0a has joined #ruby
charliesome has quit [Quit: zzz]
dotix has joined #ruby
ta_ has joined #ruby
allcentury has joined #ruby
josephndenton has joined #ruby
ascarter has joined #ruby
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
Sawbones has joined #ruby
jefus_ is now known as jefus
metadave has joined #ruby
bashusr has joined #ruby
adriancb has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
Sawbones has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
krz has joined #ruby
sandelius has joined #ruby
_maes_ has joined #ruby
wpp has quit [Quit: ZZZzzz…]
<shevy>
module Foo; def self.bar; end; end
<shevy>
Foo.bar is called a class method?
booly-yam has quit [Ping timeout: 264 seconds]
AFKGeek has quit [Quit: Fades into the shadows]
jmcharnes has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Techguy305 has joined #ruby
ss_ has joined #ruby
Techguy305 has quit [Read error: Connection reset by peer]
yokel has quit [Ping timeout: 256 seconds]
G________ has joined #ruby
<evanjs>
So if you were going to recommend a place for an experienced programmer to start learning ruby where would you tell him to go? please keep the flaming to a minimum :)
<matti>
evanjs: You don't need materials for beginners, right - concept of integer and string is the same.
<matti>
evanjs: Trust me, you don't need the beginners bullshit.
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
hehe
athan has quit [Read error: Connection reset by peer]
<shevy>
I tried to learn rails from a book
<matti>
evanjs: It's a waste of time if you know any other language.
<shevy>
it was so boring that I gave up :(
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<matti>
shevy: You have a proven record of not getting along with books ;p
rippa has joined #ruby
<matti>
shevy: I remember how you uni study was going ;p
<matti>
;D
bashusr has joined #ruby
shay- has left #ruby [#ruby]
<dman777_alter>
Is CSV generate( options = Hash.new ) { |csv| ... } meant to be treated as a iterator with do? What if I need a CSV object but not in a iterator/generator/enumerator?
blackmesa has joined #ruby
havenwood has joined #ruby
IrishGringo has joined #ruby
sevenseacat has quit [Remote host closed the connection]
cocotton has joined #ruby
<workmad3>
dman777_alter: no, in that situation 'csv' is an object used to create CSV, not read it
<workmad3>
dman777_alter: e.g. 'csv << [some, row, of, data]' adds a record to the CSV output
bashusr has quit [Read error: Connection reset by peer]
DadoCe has joined #ruby
failshell has joined #ruby
livingstn has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
cocotton has quit [Remote host closed the connection]
drkush has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
bluOxigen has joined #ruby
yokel has joined #ruby
ss_ has quit [Ping timeout: 255 seconds]
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby
G________ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DadoCe has quit [Ping timeout: 256 seconds]
jerematic has quit [Ping timeout: 252 seconds]
rebcabin has quit [Quit: Leaving.]
bashusr has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
DaniG2k has quit [Quit: leaving]
<bradland>
dman777_alter: CSV isn't really a "type" in Ruby. The CSV class provides utility for reading and writing from CSV files, but internally, CSV doesn't really exist as a datastructure.
devdazed has joined #ruby
AlexRussia has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 276 seconds]
lw has quit [Quit: s]
<eam>
bradland: I mean, sure it is. That's what a class is
jerematic has joined #ruby
bronak has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
dangerousdave has joined #ruby
pushpak has quit [Quit: Leaving...]
zacstewart has joined #ruby
djbkd has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
<dman777_alter>
Hmm...what if I want a object to pipe in csv << [some, row, of, data] but not in a loop fashion? I just need the csv object created once
Xiti is now known as Xiti`
bashusr has joined #ruby
pushpak has joined #ruby
Xiti` is now known as Xiti
enebo has joined #ruby
<bradland>
dman777_alter: do you need the data written immediately, or can you buffer it internally, then flush it?
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bradland>
buffering would be more performant
<bradland>
"pipe" has a very specific meaning in programming as well, what you'er describing is "appending" csv data
duggiefresh has joined #ruby
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dman777_alter>
bradland: hmm...well, I have a database query Device.where(:_id.in => device_ids).each do |doc|; csv << [some, row, of, data]; end.... for this I rather just have one loop...the database each...rather than a outer CSV.generate do |csv|....since the CSV isn't needing to really iterate in createing the csv object
<bradland>
you can then csv << [foo, bar] to that file
<bradland>
but you'll need to be sure to csv.close when you're done
<bradland>
that's why the block form is preferred
<shevy>
matti books are ok if they are good
tagrudev has quit [Remote host closed the connection]
<bradland>
use CSV.open, but use the block form instead of generate
<eam>
shevy: sounds elitist
<dman777_alter>
bradland: when you say block do you mean filesystem block or CPU block while I/O?
<bradland>
ruby block
<bradland>
so, consider two pieces of code
<dman777_alter>
oh...code block?
<dman777_alter>
ok
bashusr has quit [Read error: Connection reset by peer]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland>
have a look at those two examples
<bradland>
in the first, i think you've mistaken that the do; end block is an interator
<workmad3>
*iterator ^^
jerematic has quit [Ping timeout: 264 seconds]
Zai00 has quit [Quit: Zai00]
<bradland>
because that's a common pattern in ruby (for iterators to accept blocks)
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bradland>
wtf?
<bradland>
interator
<bradland>
what are my fingers up to!?
mikepack has joined #ruby
<bradland>
they're conspiring against me!
dangerousdave has joined #ruby
<bradland>
anyway, the block form is preferred because it is idiomatic ruby
<shevy>
eam life is too short to waste with awful books
<bradland>
the second form is not wrong, but other rubyists will assume that you breath through your mouth if you use that form without good reason
<shock_one>
I want to write and update a multiline string to STDOUT. Meaning that after I printed the second line, I should be able to change the first. I know it's possible because the output of "git pull" works this way. Now, for one line strings I can just \r and print from the beginning. For whole-screen output there is curses and stuff. But how would I print just a couple of lines without occupying all the screen?
<eam>
shevy: you'll never know until you read it
<shevy>
for programming, I actually think it is nice to integrate the knowledge of books into some kind of wiki or knowledge base
bashusr has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
bronak has quit [Ping timeout: 245 seconds]
<dman777_alter>
bradland: you are correct...I am mistaking the first one that the 'do; end block' is an iterator. So it isn't a iterator?
bluOxigen has quit [Ping timeout: 252 seconds]
<eam>
shock_one: unless you're willing to go the curses route and learn about terminal interaction you're limited to one line
tkuchiki has joined #ruby
<bradland>
shock_one: not sure if this actually works, but i think you can send "\x08" to a term and it will delete characters
n008f4g_ has quit [Ping timeout: 265 seconds]
<eam>
shock_one: if you want to assume the terminal is ANSI you can use ansi sequences
bluOxigen has joined #ruby
fryguy9 has joined #ruby
digifiv5e_ has joined #ruby
<bradland>
dman777_alter: right, it is not an iterator
<shock_one>
Well, it should be more like a list of steps with the current step in progress highlighted in green, and maybe a progressbar for other steps.
<eam>
bradland: just \r ought to do it
Macaveli has quit [Ping timeout: 256 seconds]
bashusr has quit [Read error: Connection reset by peer]
<eam>
cmd.exe on windows used to have a bug that'd crash the kernel if you printed out more \b's than were characters on the line
<eam>
kinda crazy that this character/text processing happens in the heart of the kernel
ta_ has joined #ruby
Sawbones has joined #ruby
lw has quit [Quit: s]
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
booly-yam has joined #ruby
<shock_one>
So, I guess neither \x08 nor curses will help me.
<bradland>
shevy: where you already a programmer when you read his work?
<bradland>
something strange happens to your brain when you program
<shevy>
I am not really a programmer
<shevy>
but I came to ruby from php
blackoperat has joined #ruby
<bradland>
you become entrenched in the abstract
jobewan has quit [Ping timeout: 272 seconds]
<waxjar>
the cartoons started to annoy me a little bit halfway trough _why's guide :p
<shevy>
_why felt as if he was riding on some psychedelic substances
<shevy>
haha
tobago has quit [Remote host closed the connection]
<shevy>
the cats were cute
<bradland>
when people try to communicate using concrete examples rather than simply explaining the concept, we get annoyed
banister has joined #ruby
<shevy>
but I never understood how people could learn ruby from that
<bradland>
because the abstraction is what we're after, and we're versed in the language of abstraction
<shevy>
I love code
<shevy>
talk to me in ruby code
<shevy>
it's poetry!
<bradland>
once you grok it, it's hard to go back
<bradland>
it's like when someone says "there is no word for this in your language"
<bradland>
programmers say that (in effect) all the time
djbkd has joined #ruby
taiansu has quit [Remote host closed the connection]
<bradland>
only it's relative to vocabulary, not language
<shevy>
ok
<waxjar>
it's unfortunate that most languages have different words for essentially the same concept
<shevy>
bradland is on the drugs too
<bradland>
i am the noob whisperer
<shevy>
waxjar yeah! like the monad of ruby
<DefV_>
bradland: people talking in abstractions while they don't know what they're talking about is even worse
mikepack has quit [Remote host closed the connection]
taiansu has joined #ruby
<DefV_>
"My company has a problem, but I've converted all the domain-specific mumbo-jumbo into IT-speak for you"
<bradland>
DefV_: troof. dunning kruger and all that.
drakhu has quit [Ping timeout: 245 seconds]
j416 has quit [Ping timeout: 245 seconds]
<DefV_>
"Please tell me your actual problem instead of your 'actor' and 'action' concept"
<DefV>
I work best with real life examples
drakhu has joined #ruby
j416 has joined #ruby
<arup_r>
can we shorten this code ? array.delete_if { |elem| elem.nil? || elem.empty? }
<waxjar>
array.compact.reject(&:empty?)
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DefV>
waxjar: that is less performant for larger arrays
<arup_r>
+1
<DefV>
arup_r: if you're on rails use Object#blank?
bashusr has quit [Read error: Connection reset by peer]
<arup_r>
No.. I am in ruby..
<mwlang>
if one instance of Time is local time zone while another instance of Time is another timezone, does inequality operators work correctly, or do I need to ensure both times are in UTC before doing “this_time >= that_time”
<mwlang>
i.e. this_time.utc >= that_time.utc
bashusr has joined #ruby
sinkensabe has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 245 seconds]
Akuma has quit [Ping timeout: 252 seconds]
JDiPierro has quit [Remote host closed the connection]
<havenwood>
wmoxam: The Ruby Programming Language is a good book.
larissa has joined #ruby
<havenwood>
With sparrows on the cover.
<wmoxam>
cool
<wmoxam>
ty
dfinninger has joined #ruby
yokel has quit [Ping timeout: 245 seconds]
<mobiGeek>
I have a resque process started by init.d with: su $USER -c "rake RAILS_ENV=production BACKGROUND=yes QUEUES=a PIDFILE=/tmp/pid resque:work &>>$LOG_FILE" But after starting, $LOG_FILE is empty and I see that /proc/{PID}/fd/1 is set to /dev/null. How can I get STDOUT and STDERR for rake to go to LOG_FILE? Or is something within rake/resque closing them?
shock_one has quit [Remote host closed the connection]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
mroth_ is now known as mroth
GaryOak_ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 272 seconds]
bashusr has joined #ruby
anaeem1 has quit [Ping timeout: 255 seconds]
giuseppesolinas_ has joined #ruby
giuseppesolinas has joined #ruby
Guest18670 has joined #ruby
dumdedum has quit [Quit: foo]
^wald0 has joined #ruby
Tricon has joined #ruby
gsd has quit [Ping timeout: 265 seconds]
krz has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby
einarj has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
ponga has quit [Quit: Leaving...]
CustosL1men has quit [Ping timeout: 272 seconds]
ta_ has joined #ruby
dblessing has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
geekbri has joined #ruby
ascarter has joined #ruby
bonhoeffer has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
taiansu has quit [Remote host closed the connection]
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
psy_ has quit [Remote host closed the connection]
pglombardo has joined #ruby
krz has joined #ruby
mloveless has joined #ruby
anaeem1_ has quit [Ping timeout: 264 seconds]
dblessing has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
rbrs has quit [Quit: rbrs]
booly-yam has joined #ruby
brb3 has joined #ruby
Hobogrammer has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 272 seconds]
mjuszczak has quit []
Alina-malina has quit [Ping timeout: 272 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
Alina-malina has joined #ruby
anaeem1 has joined #ruby
gsd has joined #ruby
psy_ has joined #ruby
taiansu has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
iamninja has quit [Quit: ZZZzzz…]
seal has joined #ruby
diegoviola has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
yokel has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
bashusr has joined #ruby
cocotton has joined #ruby
Heskie has quit []
jeregrin_ has joined #ruby
spyderman4g63 has joined #ruby
Guest18670 has quit [Ping timeout: 245 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
JDiPierro has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 276 seconds]
neoxoen has joined #ruby
^wald0 has quit [Quit: ^wald0]
spyderman4g63 has quit [Ping timeout: 244 seconds]
bashusr has quit [Read error: Connection reset by peer]
cocotton has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has joined #ruby
sambao21 has joined #ruby
sinkensabe has joined #ruby
Hijiri has quit [Ping timeout: 276 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DadoCe has joined #ruby
jonathan_alban has joined #ruby
Guest18670 has joined #ruby
withnale_ has quit [Ping timeout: 264 seconds]
Guest18670 has quit [Client Quit]
bashusr has joined #ruby
Guest18670 has joined #ruby
Guest18670 is now known as jordanm
jordanm has quit [Changing host]
jordanm has joined #ruby
LevelUpr has joined #ruby
mjulian has joined #ruby
yokel has quit [Ping timeout: 265 seconds]
psy_ has quit [Remote host closed the connection]
snath has joined #ruby
aef has joined #ruby
michaeldeol has joined #ruby
ascarter has quit [Remote host closed the connection]
yokel has joined #ruby
DadoCe has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
wallerdev has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
reinaldob has quit [Remote host closed the connection]
ascarter has joined #ruby
happyface has joined #ruby
yjmsf20 has quit [Ping timeout: 245 seconds]
jeregrin_ has quit []
seal has quit [Quit: Ex-Chat]
LevelUpr has quit [Remote host closed the connection]
ss_ has joined #ruby
diegoviola has joined #ruby
psy_ has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
blackmesa has joined #ruby
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
B1n4r10 has joined #ruby
jeregrin_ has joined #ruby
bricker has joined #ruby
n008f4g_ has joined #ruby
bashusr has joined #ruby
<eam>
mobiGeek: reopening stdin/out/err to /dev/null is standard behavior for a process which daemonizes
booly-yam has quit [Ping timeout: 252 seconds]
<eam>
mobiGeek: you can simply re-open them again to the files you wish
<apeiros>
mb, rbkit seems to leak
<apeiros>
or something else leaked and I didn't know
<eam>
mobiGeek: STDOUT.reopen()
<mobiGeek>
eam: I'm the Ops guy for this app, not the coder.
<eam>
mobiGeek: ok but you'll have to add some code
mwlang has quit [Quit: mwlang]
blizzy has joined #ruby
<eam>
if you want to live dangerously: sudo gdb -p $resque_pid
<mobiGeek>
eam: what's the standard practice for having resque (or is it rake?) output its unhandled exceptions when run as a daemon ?
msgodf has quit [Ping timeout: 246 seconds]
rbennacer has quit [Remote host closed the connection]
pietr0 has joined #ruby
rbennacer has joined #ruby
joonty has quit [Quit: joonty]
<eam>
and then p rb_eval_string("STDOUT.reopen(File.open '/tmp/foo.log', 'a')")
<eam>
mobiGeek: no clue
jonathan_alban has joined #ruby
<mobiGeek>
eam: interesting idea.
duggiefresh has quit [Remote host closed the connection]
lw has joined #ruby
St1gma has joined #ruby
pdoherty has quit [Remote host closed the connection]
lesnik_ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
booly-yam has joined #ruby
kotk has joined #ruby
maletor has joined #ruby
Sawbones has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
dukedave_ has joined #ruby
lesnik_ has quit [Client Quit]
ss_ is now known as s2013
dblessing has joined #ruby
dukedave_ is now known as dukedave
dukedave has quit [Client Quit]
dukedave has joined #ruby
ta_ has joined #ruby
djbkd has quit [Remote host closed the connection]
bashusr has joined #ruby
Sawbones has quit [Ping timeout: 245 seconds]
shime has quit [Ping timeout: 265 seconds]
deric_skibotn has joined #ruby
jcdesimp has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
whoisjake has joined #ruby
davidhq has joined #ruby
chthon has quit [Ping timeout: 264 seconds]
bonhoeffer has joined #ruby
mikepack has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwh has joined #ruby
IrishGringo has quit [Read error: Connection reset by peer]
_maes_ has joined #ruby
mjuszczak has joined #ruby
pwh_ has joined #ruby
dangerousdave has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 276 seconds]
kenneth has joined #ruby
andikr has quit [Remote host closed the connection]
mjuszczak has quit [Client Quit]
IrishGringo has joined #ruby
sambao21 has joined #ruby
LekeFly has joined #ruby
pwh has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 264 seconds]
pwh_ has quit [Client Quit]
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 252 seconds]
meschi has joined #ruby
bashusr has joined #ruby
sinkensabe has quit [Remote host closed the connection]
ndrei has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
un5t0ppab13 has quit [Remote host closed the connection]
pdoherty has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lemur has joined #ruby
metadave has joined #ruby
wallerdev has quit [Quit: wallerdev]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
Heskie has joined #ruby
dfinninger has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 245 seconds]
bronson has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
IrishGringo has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
duggiefresh has joined #ruby
thsig has quit [Remote host closed the connection]
shime has joined #ruby
thsig has joined #ruby
rbennacer has quit [Remote host closed the connection]
nanoyak has joined #ruby
LevelUpr has joined #ruby
PanzerModern has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
nanoyak has quit [Client Quit]
djbkd has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
jenrzzz has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
cpt_yossarian has quit [Quit: And then he took off.]
avril14th has quit [Remote host closed the connection]
nanoyak has joined #ruby
sinkensabe has quit [Remote host closed the connection]
mjuszczak has quit []
mrmargolis has quit [Remote host closed the connection]
IrishGringo has quit [Read error: Connection reset by peer]
St1gma has quit [Remote host closed the connection]
drkush has quit [Ping timeout: 245 seconds]
tus has quit [Ping timeout: 252 seconds]
IrishGringo has joined #ruby
St1gma has joined #ruby
Hijiri has joined #ruby
linduxed has joined #ruby
jheg has quit [Quit: jheg]
<linduxed>
just out of curiosity, what delimiters do people here prefer for the %-literals?
<linduxed>
so %w[] or %w()
<apeiros>
linduxed: {} for string-like, and [] for array-like
<linduxed>
hmmm, ok
<bricker>
agree
mwlang has joined #ruby
<apeiros>
so %w[], %i[] and %q{}, %{}
<eam>
is there a way to prevent Timeout from raising in my main thread?
drkush has joined #ruby
bashusr has joined #ruby
<eam>
let's say I want to make a critical section
<linduxed>
that's kind of how i'm doing it
<linduxed>
kthx
sivoais has quit [Ping timeout: 265 seconds]
^wald0 has joined #ruby
lw has quit [Quit: s]
jaygen has joined #ruby
<mwlang>
what’s a good browser-related channel to throw questions at?
lw has joined #ruby
<eam>
what mechanism does Timeout use?
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
<mwlang>
I’ve got Chrome and Firefox showing Ask Jeeves everywhere, but no plugins were recently installed nor is anything listed in the configurations for this.
<eam>
like, I see it does a #raise against the thread it started from
<eam>
but how does #raise get invoked in the parent thread?
djbkd has quit [Ping timeout: 244 seconds]
bashusr has quit [Read error: Connection reset by peer]
pandaant has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
yokel has quit [Ping timeout: 244 seconds]
jeregrin_ has quit []
ta_ has quit [Ping timeout: 276 seconds]
sigurding has joined #ruby
jerius has quit []
yokel has joined #ruby
bashusr has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
ursooperduper has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
jeregrin_ has joined #ruby
gregf has joined #ruby
terlar has quit [Ping timeout: 264 seconds]
doodlehaus has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
Salve_ has quit []
leafybasil has quit [Remote host closed the connection]
IrishGringo has joined #ruby
klmlfl has joined #ruby
sigurding has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
<dman777_alter>
does ruby have built in help for thier methods like python does? like help(method_name)
<eam>
can I not access rb_thread_t from a C extension? It looks like I can't
<apeiros>
dman777_alter: help
<apeiros>
dman777_alter: but that's irb (interactive ruby). in plain ruby, that wouldn't make sense.
<apeiros>
I'd recommend getting pry, though, together with pry-doc. then you can do e.g. `? Array`, `? ['some', 'array'].join`
jamgood96 has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
blackoperat has quit [Ping timeout: 245 seconds]
<dman777_alter>
apeiros: yes...I am in rails shell. How would I find the help of method map that I have from a query called devices_ids_from_elastic.map? I can't tell if .map() is from elastic search plugin or mongoId.
<apeiros>
though I think irb's help nowadays works like pry's ?
JDiPierro has joined #ruby
<dman777_alter>
apeiros: hmm..it gives me Enumerable
<apeiros>
i.e. you can try: `help devices_ids_from_elastic.map`
<apeiros>
dman777_alter: so it's Enumerable#map
DrShoggoth has joined #ruby
mwlang has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<mwlang>
I’m trying to get Ruby working on a Windows server.
<mwlang>
I used the rubyinstaller to install Ruby and also installed the appropriate DevKit
<dman777_alter>
apeiros: cool..thanks!
<mwlang>
but when I go to install bundler, I get this: gem install bundler => ERROR: Could not find a valid gem 'bundler' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_specs.4.8.gz)
hmsimha has joined #ruby
<Fire-Dragon-DoL>
are there any helper class that delegate any missing method to a specified object? I don't want to specify every method name if possible
<mwlang>
I can download the latest_specs.4.8.gz file with browser, so its not an internet connection, and I have allowed Ruby through on the local firewall.
Wizard-Z1 has quit [Read error: Connection reset by peer]
jheg has quit [Client Quit]
bashusr has quit [Read error: Connection reset by peer]
fryguy9 has quit [Quit: Leaving.]
failshel_ has joined #ruby
rbennacer has joined #ruby
yjmsf20 has joined #ruby
yjmsf20 has quit [Client Quit]
rbennacer has quit [Remote host closed the connection]
jenrzzz has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
x1337807x has joined #ruby
psyprus has quit [Changing host]
psyprus has joined #ruby
sargas has joined #ruby
mikepack has quit [Remote host closed the connection]
<mwlang>
I normally use back-ticks `` to shell out to some commandline program from Ruby. Is it possible to shell out AND display output being generated by that command while it is running rather than all at once when the command completes?
jheg has joined #ruby
Trynemjoel has joined #ruby
<apeiros>
mwlang: no. use system, spawn, popen or similar for that
failshell has quit [Ping timeout: 240 seconds]
failshel_ has quit [Read error: Connection reset by peer]
LouisRoR has quit [Ping timeout: 264 seconds]
uptownhr has joined #ruby
<uptownhr>
anybody use padrino or sinatra here?
jheg has quit [Client Quit]
^wald0 has quit [Quit: ^wald0]
failshell has joined #ruby
<uptownhr>
whats the difference between app.register and app.helper?
IrishGringo has quit [Quit: ChatZilla 0.9.91.1 [Firefox 34.0.5/20141126041045]]
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
gsd has joined #ruby
booly-yam has joined #ruby
mayday_jay has joined #ruby
Sawbones has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
rbennacer has joined #ruby
siloxid has joined #ruby
PhilK_ is now known as PhilK
bashusr has joined #ruby
mayday_jay is now known as lektrik
<mwlang>
apeiros: thanks. popen seems to be doing the trick.
drkush has quit [Ping timeout: 276 seconds]
HardlyNeutral has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Moter8 has joined #ruby
drkush has joined #ruby
yokel has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
blackoperat has quit [Ping timeout: 245 seconds]
chrishough has quit [Read error: Connection reset by peer]
sundjango has joined #ruby
Sawbones has quit [Ping timeout: 252 seconds]
^wald0 has joined #ruby
chrishough has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
sambao21 has quit [Quit: Computer has gone to sleep.]
<nickjj>
bradland, yeah, i planned to loop+require em
<nickjj>
and i did use chruby as a guide for the initial list
Azure has quit [Ping timeout: 245 seconds]
<nickjj>
but some of those libs are probably able to be removed from the system once you compile ruby? i don't know which ones
<bradland>
if you use those deps from chruby, i'd be amazed if you found anything else
<nickjj>
so i planned to write the require test and removing them 1 by 1
kalz has joined #ruby
<nickjj>
*start removing
Trynemjoel2 has joined #ruby
<bradland>
the build stuff, i bet you could
sambao21 has joined #ruby
<bradland>
when you deploy a ruby app using docker, are the gem's pre-built?
<bradland>
or vendored with the app some how?
sambao21 has quit [Client Quit]
shime has joined #ruby
<bradland>
gems with native extensions would seem to be an issue to me
<nickjj>
it's all baked into an image
bashusr has quit [Read error: Connection reset by peer]
<nickjj>
but your app would use a ruby base image (docker works based on layers)
<bradland>
say, for example, your app requires the mysql2 gem.
<nickjj>
so it's beneficial to have the smallest possible footprint on your base ruby image
<bradland>
typical ruby deployment would be for bundler to compile the gems as part of deployment.
<nickjj>
right, then you would install libmysql-dev or whatever it is in your app's container
<bradland>
the compile is, just like anything else, architecture and system dependent
<bradland>
i see
<bradland>
but at another layer
<nickjj>
your app's container would "use" the base ruby one
<bradland>
not the base
lw has quit [Quit: s]
arup_r has joined #ruby
lw has joined #ruby
zarubin has joined #ruby
<nickjj>
i don't think chruby will install libmysqlclient-dev by default for you right
<nickjj>
if you wanted to support that later you would apt/whatever install it and then gem install mysql
<bradland>
right
sambao21 has joined #ruby
_waltertv has quit [Quit: Leaving...]
<bradland>
chruby is pretty tight. it only installs what's needed.
<nickjj>
yeah in this case ruby was compiled before you made a decision to install mysql
Trynemjoel has quit [Ping timeout: 272 seconds]
<nickjj>
so it's fine in the end -- the docker layers will work the same way, it would be up to your app's container to install the mysqlclient package
<waxjar>
what are the best practices for handling signals in a library?
<waxjar>
rescueing SignalException and re-raising it?
ash_m has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
wallerdev has joined #ruby
oleo__ is now known as oleo
<ash_m>
is a lambda literal such as "succ = ->(x){ x+1 }" in ruby the same as a named function expression in JS? "var succ = function(x){ x+1; }" ?
rpag has quit [Quit: Leaving]
TheNet has quit [Remote host closed the connection]
cpruitt has joined #ruby
<waxjar>
ash_m: pretty much, only ruby's lambda will complain if you don't give it a correct amount of arguments
<ash_m>
waxjar: THANKS!
<waxjar>
a proc (proc { |x| x + 1}) doesn't
<ash_m>
waxjar: I wasn't expecting to get such a slim answer
<ash_m>
waxjar: that was very helpful :)
<ash_m>
waxjar: I'm going to take a stab at this without really knowing ruby....
taiansu has quit [Ping timeout: 272 seconds]
metadave_ has joined #ruby
nanoyak has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<ash_m>
waxjar: f = ->(x,y){"F#{x+y+y+x}w"} ... (I may not be using the appropiate words here but) I assume that the double quotes is quoting a string and #{} is a substitution? like PHP "hello $world" ?
pragmatism has joined #ruby
davedev2_ has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
<waxjar>
correct
ndrei has quit [Ping timeout: 276 seconds]
<waxjar>
string interpolation is the right term
metadave has quit [Ping timeout: 264 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ash_m>
mkay, so this MoneyDestop billboard says "FOLLOw" (since the function call at the top says, "f(O,L)"
<ash_m>
waxjar: STRING INTERPOLATION! thank you
mikepack_ has joined #ruby
uptownhr has joined #ruby
<waxjar>
L would be a constant there, not a character literal. so depends on what the constant references :)
<ash_m>
waxjar: hmm?
<ash_m>
waxjar: is that defined by the position in the lambda syntax?
<waxjar>
actually, that wouldn't run at all, lambda's can't be called like that
rbennacer has quit [Remote host closed the connection]
mwlang has quit [Quit: mwlang]
deric_skibotn has joined #ruby
^wald0 has joined #ruby
<ash_m>
waxjar: I see... perhaps the person who conceived the billboard was not proficient
<apeiros>
(Symbol is much more lightweight than Method)
decoponio has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<patric100e99>
hmm.. yeah this isn't really working out.. What I am trying to do is use subject in RSpec so that I can do: subject { described_class.foo }.. and then in my tests I can do expect(subject('bar value')).to eq 'something'
decoponio has joined #ruby
<patric100e99>
if I use method, I am going to have to do subject.call('bar value')
bonhoeffer has quit [Quit: bonhoeffer]
<patric100e99>
which kind of defeats the whole purpose of what I was going for
<patric100e99>
i may as well just call the actual method name then
JDiPierro has quit [Remote host closed the connection]
<shevy>
hehehe
brb3 has quit [Quit: <.<]
ta_ has joined #ruby
<patric100e99>
hehehe!
bonhoeffer has joined #ruby
werelivinginthef has joined #ruby
<jheg>
o/
mikepack_ has quit [Remote host closed the connection]
<jheg>
How can I display the number of days, hours and minutes from Time.now - a datetime stored in a database?
postmodern has joined #ruby
<jheg>
So basically I thoght something like Time.now - todo.deadline would work but nope
<terrellt>
Or just write it locally and do the math.
ixti has quit [Ping timeout: 264 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
<terrellt>
If you subtract two times from each other I believe you get the seconds between them.
cuppscakes has quit [Max SendQ exceeded]
<otertore>
Time#- will give you an integer
Zai00 has joined #ruby
cuppscakes has joined #ruby
<jheg>
cheers guys
Dopagod has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 265 seconds]
cuppscakes has quit [Max SendQ exceeded]
cuppscakes has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
cuppscakes has joined #ruby
yfeldblum has joined #ruby
Musashi007 has quit [Quit: Musashi007]
cuppscakes has quit [Max SendQ exceeded]
mikepack has joined #ruby
Trynemjoel has quit [Ping timeout: 272 seconds]
Musashi007 has joined #ruby
Musashi007 has quit [Client Quit]
<ash_m>
waxjar: I give up, none of these values as variables for O and L make any sensible word or combination of words to me (granted, it would appear as though this should still be f.call(O,L)
cuppscakes has joined #ruby
longfeet has joined #ruby
Trynemjoel has joined #ruby
zchee has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
<waxjar>
ash_m: the tree in combination with "Follow" forms a sentence
cuppscakes has joined #ruby
TheNet has joined #ruby
<otertore>
>> n=123456; "Due in #{n=n.divmod(86400);n[0]} days, #{n=n[1].divmod(3600);n[0]} hours, #{n=n[1].divmod(60);n[0]} minutes and #{n[1]} seconds"
<eval-in_>
otertore => "Due in 1 days, 10 hours, 17 minutes and 36 seconds" (https://eval.in/243403)
<ash_m>
waxjar: "follow &D &M @M DT3 DTR3" ?
<waxjar>
almost
cuppscakes has quit [Max SendQ exceeded]
<ash_m>
waxjar: perhaps I do not know twitter well enough to understand this sentence (provided I got it right)
timonv_ has joined #ruby
cuppscakes has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
cuppscakes has joined #ruby
<ash_m>
"follow @MD DT3 DTR3" < some anagram of this?
spyderma_ has quit []
cuppscakes has quit [Max SendQ exceeded]
lessless has joined #ruby
revoohc has quit [Quit: revoohc]
<ash_m>
follow @MD TR33D?
cuppscakes has joined #ruby
<lessless>
hello folks! what books new are books are there to read except Clean Ruby?
<shevy>
wtf
djbkd has joined #ruby
thumpba has quit [Remote host closed the connection]
<terrellt>
^
<ash_m>
waxjar: ^ (in case shevy was perplexed)
cuppscakes has quit [Max SendQ exceeded]
<waxjar>
almost ash_m, you'll get it
skj3gg has joined #ruby
cuppscakes has joined #ruby
<ash_m>
waxjar: will I?! o.O;
whoisjake has quit []
<lessless>
what new books are there to read?
CrazyM4n has joined #ruby
scripore has joined #ruby
mac__ has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
<ash_m>
waxjar: is "follow @MD ..." correct?
Xeago has joined #ruby
cuppscakes has joined #ruby
bronson has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
cuppscakes has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
blackmesa has joined #ruby
cuppscakes has joined #ruby
cuppscakes has quit [Max SendQ exceeded]
nanoyak has quit [Quit: Computer has gone to sleep.]
uptownhr has quit [Quit: uptownhr]
marens has quit [Remote host closed the connection]
cuppscakes has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beef-wellington has quit [Read error: Connection reset by peer]
neoxquick has quit [Read error: Connection reset by peer]
harushimo has joined #ruby
<harushimo>
I have a quick question
DadoCe has quit [Client Quit]
tier has joined #ruby
<harushimo>
I know rvm has a separate room
beef-wellington has joined #ruby
Xeago_ has joined #ruby
<harushimo>
my question requires me to activate my ruby 2.2 in ubuntu. I used rvm to download it
<harushimo>
I want envoke the package
conniemj has joined #ruby
sivoais has joined #ruby
taiansu has joined #ruby
jheg has quit [Quit: jheg]
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
<jhass>
harushimo: 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.
gizless is now known as gizmore
Xeago has quit [Ping timeout: 265 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beef-wellington has quit [Ping timeout: 272 seconds]
DadoCe has joined #ruby
taiansu has quit [Ping timeout: 240 seconds]
kstuart has quit [Remote host closed the connection]
baweaver has quit [Read error: Connection reset by peer]
Hijiri has joined #ruby
timonv_ has quit [Remote host closed the connection]
kstuart has joined #ruby
baweaver has joined #ruby
conniemj has quit [Read error: Connection reset by peer]
conniemj_ has joined #ruby
livingstn has quit []
MarkPaulFletcher has quit []
mrmargolis has quit [Remote host closed the connection]
timonv_ has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 245 seconds]
<B1n4r10>
harushimo please talks about Ruby not of RVM
juanpablo______ has quit [Quit: (null)]
<harushimo>
I was in rvm
JoshGlzBrk has joined #ruby
<harushimo>
i got it working
iamninja has joined #ruby
<harushimo>
sorry, ubuntu has habit not keeping updated ruby packages. I was installing it from source
s2013 has quit [Ping timeout: 272 seconds]
x1337807x has joined #ruby
conniemj_ has quit [Read error: Connection reset by peer]
conniemj_ has joined #ruby
conniemj_ has quit [Client Quit]
<B1n4r10>
harushimo the best practice if you use Ruby in Ubuntu servers for production enviroment. Is that you compile it on your own without using handler versions
dfinninger has quit [Remote host closed the connection]
<B1n4r10>
harushimo or managers
<harushimo>
what do you mean by handler versions?
sinkensabe has joined #ruby
<B1n4r10>
harushimo Rbenv, RVM, etc...
<harushimo>
why not?
conniemj_ has joined #ruby
<harushimo>
if you are talking about complete source, I never done it
DrShoggoth has quit [Quit: Leaving]
cuppscakes has quit [Quit: Disconnected]
<B1n4r10>
harushimo if you will not use different applications with different versions of ruby is recommended not to have a manager versions
<B1n4r10>
harushimo compile ruby on a server is very easy
<harushimo>
B1n4r10: interesting never heard of it
uptownhr has joined #ruby
mikepack has quit [Remote host closed the connection]
<harushimo>
i'm trying that now on my vm
<harushimo>
thank you
patronus has joined #ruby
LikeGecko has joined #ruby
Ankhers has joined #ruby
LikeGecko is now known as cats
pdoherty has quit [Remote host closed the connection]
cats is now known as Snowstormer
<harushimo>
is there a difference between the manager version code and ruby source code? I thought they would be same
Sawbones_ has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
<B1n4r10>
harushimo It's the same as long as you install a stable version. Anyway you are giving the atmosphere of ruby an extra layer of abstractions and roads
icebourg has quit []
conniemj_ has quit [Quit: (null)]
commmmodo has joined #ruby
freerobby has joined #ruby
<harushimo>
B1n4r10: interesting. thanks for the education
supergiel has joined #ruby
bronson has joined #ruby
<harushimo>
B1n4r10: I was install the stable version
lw has quit [Quit: s]
freerobby has quit [Client Quit]
pietr0 has quit [Quit: pietr0]
thsig has quit [Ping timeout: 272 seconds]
zchee has joined #ruby
<B1n4r10>
harushimo your welcome. thanks for reading
eytanfb has joined #ruby
tier has quit [Remote host closed the connection]
dotix has quit [Quit: Leaving]
sklik has quit [Remote host closed the connection]
<harushimo>
B1n4r10: the education is important. Unless the practices are commuciated how you know. I have to thank you
conniemj has joined #ruby
<harushimo>
B1n4r10: I mean how would you know
<supergiel>
Hi everyone, I'm a prgramming student who is knowlegable in several languages, NOT Ruby. I plan to teach ruby programming to a friend in a couple of hours does anyone have some recources for getting strted
<harushimo>
look up learn ruby the hard way
<harushimo>
great book
josephndenton has quit [Ping timeout: 245 seconds]
<supergiel>
Check, great
bronson has quit [Ping timeout: 246 seconds]
<rpag>
supergiel, you don't know ruby but you're going to teach someone ruby?
<GaryOak_>
just learn python and then change it a little bit
<supergiel>
This person has no knowledge of programming
lw has joined #ruby
<harushimo>
supergiel: that book will be a good start
treehug88 has quit []
<supergiel>
What about ruby setup and installation for linux and windows
zarubin has quit [Remote host closed the connection]
tier has joined #ruby
<supergiel>
Is it similar to python in that you install an interpreter, and test your code in that for windows
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
<GaryOak_>
supergiel: yes
<harushimo>
supergiel: python and ruby are very similar. I picked up both of those languages
<supergiel>
Awesome
conniemj has quit [Client Quit]
longfeet has quit [Read error: Connection reset by peer]
<supergiel>
I'm good with pythong so I'm pretty confident about it