Kricir_ has quit [Remote host closed the connection]
mekhami has quit [Quit: Leaving]
omosoj has quit [Ping timeout: 240 seconds]
VanillaGoat_ has quit [Ping timeout: 258 seconds]
Kricir has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
cicloid is now known as aCicloid
attamusc has quit [Quit: Connection closed for inactivity]
omosoj has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
thoolihan has quit [Ping timeout: 258 seconds]
lw has quit [Quit: s]
hellangel7 has joined #ruby
pu22l3r has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
kobain has quit [Read error: Connection timed out]
kobain has joined #ruby
EasyCo has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
vyorkin has quit [Quit: WeeChat 1.0.1]
thoolihan has joined #ruby
<ramfjord>
totimkopf: what are you hoping recipe_for_cake will be?
<ramfjord>
ditto for recipe_for_chicken
<ramfjord>
name error because they aren't defined anywhere
reinaldob has quit [Remote host closed the connection]
<totimkopf>
ramfjord: ah, true, I guess the code wasn't supposed to work
<totimkopf>
I thought that it would magically do something with the @recipes array...
<totimkopf>
the book does hint that it should do something other than error
ixti has quit [Ping timeout: 240 seconds]
softaco_s has quit [Remote host closed the connection]
goodenough has joined #ruby
aspires has quit []
<ramfjord>
totimkopf: could it have defined those earlier? They seem to need to respond to :main_ingredient, so it would make sense if the book defined a Recipe class earlier
kaspergrubbe has quit [Remote host closed the connection]
ghr has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
pu22l3r has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
jasooon has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
IceDragon has quit [Ping timeout: 260 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
_whitelogger__ has joined #ruby
goodenough has quit [Remote host closed the connection]
zz_karupa is now known as karupa
goodenough has joined #ruby
weemsledeux has joined #ruby
IceDragon has joined #ruby
weemsledeux has joined #ruby
Nigel_ is now known as G
zorak8 has joined #ruby
mikepack has quit [Remote host closed the connection]
<shevy>
code code code
<shevy>
we need less code
sailias has joined #ruby
ph8 has quit [Ping timeout: 244 seconds]
jasooon has quit [Ping timeout: 272 seconds]
goodenough has quit [Ping timeout: 244 seconds]
thagomizer has quit [Quit: Leaving.]
goodenough has joined #ruby
<ramfjord>
shevy: that's what high level languages are for, right?
<shevy>
ramfjord well, one still writes quite a lot of code in them
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enebo has quit [Quit: enebo]
Kricir has joined #ruby
Spami has joined #ruby
<shevy>
*specify
<shevy>
I'd like to specifcy code differently
maletor has joined #ruby
_whitelogger__ has joined #ruby
pu22l3r has joined #ruby
charliesome has joined #ruby
x77686d has quit [Quit: x77686d]
reinaldob has joined #ruby
<shevy>
do you guys do rather this:
<shevy>
hey
<shevy>
foo = array[0]
<shevy>
or
<shevy>
foo = array.first
<shevy>
?
oo_ has joined #ruby
goodenough has joined #ruby
AmBienCeD has quit [Read error: Connection reset by peer]
goodenough has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
ph8 has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
_whitelogger__ has joined #ruby
reinaldob has quit [Ping timeout: 260 seconds]
<havenwood>
shevy: i prefer a method without arguments, except for example for uniformity like [0] when it's next to [1] and [2]
Aova has joined #ruby
goodenough has quit [Ping timeout: 260 seconds]
softaco_s has joined #ruby
sevenseacat has joined #ruby
mesamoo has joined #ruby
Kricir has quit [Remote host closed the connection]
KC9YDN has quit [Ping timeout: 255 seconds]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
fuhgeddaboudit has joined #ruby
_whitelogger__ has joined #ruby
sailias has quit [Quit: Leaving.]
justinmburrous has joined #ruby
doodlehaus has quit [Remote host closed the connection]
gsd has joined #ruby
lw has joined #ruby
hamakn has joined #ruby
rubie has joined #ruby
coderdad has joined #ruby
lw has joined #ruby
klaut_ has quit [Remote host closed the connection]
lw has joined #ruby
<rubie>
hi all: im having a hard time wrapping my head around calling functions in different methods, not sure why this goes into an infinite loop would someone mind taking a look? https://gist.github.com/gabrie30/4aff1e53ee867dbf2143
Wolland has joined #ruby
ferr has joined #ruby
_whitelogger__ has quit [Ping timeout: 260 seconds]
jhass is now known as jhass|off
elektronaut has quit [Ping timeout: 260 seconds]
_whitelogger__ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
bklane has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
bklane has joined #ruby
bklane has joined #ruby
pu22l3r has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
mrsolo has joined #ruby
tyll has joined #ruby
king313 has quit [Quit: .]
tyll has quit [Ping timeout: 258 seconds]
Wolland has quit [Ping timeout: 255 seconds]
elektronaut has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
spyderman4g63 has quit [Read error: Connection reset by peer]
_whitelogger__ has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<shevy>
havenwood so you would use .first in the example above?
elektronaut has joined #ruby
<havenwood>
shevy: yeah, i would
GriffinHeart has joined #ruby
spyderman4g63 has quit [Ping timeout: 240 seconds]
omosoj has quit [Ping timeout: 240 seconds]
jasooon has joined #ruby
melik has quit [Quit: (null)]
<shevy>
ok
spyderman4g63 has joined #ruby
weemsledeux has joined #ruby
weemsledeux has joined #ruby
jhass|off is now known as jhass
reinaldob has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
qmfnp has joined #ruby
mrsolo has joined #ruby
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
omosoj has joined #ruby
spyderman4g63 has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
zorak8 has quit [Ping timeout: 250 seconds]
zorak8 has joined #ruby
skolman has quit [Remote host closed the connection]
omosoj has quit [Client Quit]
aCicloid is now known as cicloid
skolman_ has joined #ruby
kiely is now known as kawaiibot
tylersmith has joined #ruby
kawaiibot is now known as kiely
NoNMaDDeN has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 240 seconds]
_whitelogger__ has quit [Ping timeout: 260 seconds]
_whitelogger__ has joined #ruby
coderdad has quit [Remote host closed the connection]
<afhammad>
rubie: you are doing "if true" instead of "if prime?(i)"
boombadaroomba has joined #ruby
<afhammad>
rubie: "if true" will always be true, i will never increment, hence infinite loop
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rubie>
i thought this would check if_prime(i) to be true
mrsolo has left #ruby ["Leaving"]
hellangel7 has quit [Remote host closed the connection]
<rubie>
ahhh
<rubie>
but wouldn't go on to the next step
<afhammad>
no, you can either do "if prime?(i)" or "if prime?(i) == true"
tkuchiki has joined #ruby
<rubie>
oh gotcha so it never goes to i +=1
skolman_ has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 240 seconds]
aspires has quit []
skolman_ has joined #ruby
<rubie>
perfect thank you!
<afhammad>
rubie: :)
fuhgeddaboudit has joined #ruby
boombadaroomba has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
tvw has quit [Ping timeout: 260 seconds]
yetanotherdave has quit [Ping timeout: 240 seconds]
mikeg has joined #ruby
Jessica123 has joined #ruby
cleopatra has quit [Ping timeout: 272 seconds]
<shevy>
lol
<shevy>
rubie, now that was a slipup you must remember for the rest of your life:
<shevy>
if true
tokik has joined #ruby
<shevy>
"Hey, I thought it would check for the size of the universe, and return 42!"
SpaceKookie has quit [Ping timeout: 260 seconds]
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
<rubie>
lol, yes that is something i won't ever forget
<shevy>
\o/
ghr has quit [Ping timeout: 250 seconds]
SpaceKookie has joined #ruby
<rubie>
newbs....
coderdad has joined #ruby
badhatter has quit [Read error: Connection reset by peer]
cicloid is now known as aCicloid
wallerdev has quit [Quit: wallerdev]
zorak8 has quit [Ping timeout: 265 seconds]
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
tlarevo has joined #ruby
afhammad has quit []
sailias has joined #ruby
sailias has quit [Client Quit]
maletor has joined #ruby
bentanweihao has joined #ruby
havenwood has quit [Remote host closed the connection]
monkeypatch has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
bricker`work has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
mikepack has joined #ruby
zeroNones has joined #ruby
livingstn has quit [Ping timeout: 256 seconds]
_whitelogger___ has joined #ruby
aquatty has quit [Remote host closed the connection]
levisbakalinsky is now known as levisbakalinsky|
jack_rabbit has quit [Ping timeout: 260 seconds]
emmesswhy has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
levisbakalinsky| has quit [Ping timeout: 250 seconds]
_whitelogger___ has joined #ruby
SpaceKookie has joined #ruby
robbyoconnor has joined #ruby
zorak8 has quit [Ping timeout: 260 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
hamakn has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
patrick99e99 has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
CodeBunny has quit [Ping timeout: 250 seconds]
AlexRussia has quit [Remote host closed the connection]
softaco_s has quit [Remote host closed the connection]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
crazydiamond has quit [Ping timeout: 272 seconds]
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
goshdarnyou has joined #ruby
brahmadpk has joined #ruby
bentanweihao has joined #ruby
jimbach has quit [Remote host closed the connection]
bentanweihao has quit [Read error: Connection reset by peer]
mistermocha has quit [Remote host closed the connection]
jimbach has joined #ruby
Kricir has quit [Remote host closed the connection]
_whitelogger___ has joined #ruby
zorak8 has joined #ruby
tyll_ has joined #ruby
dx7 has joined #ruby
Takle has joined #ruby
coderdad has quit [Remote host closed the connection]
bmurt has joined #ruby
Jessica123 has quit [Ping timeout: 246 seconds]
tyll has quit [Ping timeout: 244 seconds]
jimbach has quit [Ping timeout: 260 seconds]
hamakn has joined #ruby
cndiv has quit [Ping timeout: 246 seconds]
jasooon has quit [Ping timeout: 272 seconds]
a_ has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
bigmac_ has joined #ruby
djbkd has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 272 seconds]
mistermocha has quit [Remote host closed the connection]
bmurt has quit []
ajk1 has joined #ruby
fabrice31 has joined #ruby
Asher has quit [Quit: Leaving.]
jimbach has joined #ruby
NoNMaDDeN has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ad_boot has quit [Quit: ad_boot]
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
mistermocha has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
Scotteh_ has quit [Ping timeout: 244 seconds]
gja has joined #ruby
tejas has joined #ruby
oinkon has quit [Ping timeout: 244 seconds]
gja has quit [Changing host]
gja has joined #ruby
tejas has joined #ruby
tejas has quit [Changing host]
NoNMaDDeN has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
ghr has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mbuf>
pontiki, I am able to roll log files, but, I would like to take a dump of the log files, every day
<pontiki>
what does that mean?
iinzg has quit [Ping timeout: 258 seconds]
<mbuf>
pontiki, I have @logger = Logger.new(file, 10, 1024 * 1024)
<pontiki>
ok?
<pontiki>
are you talking about emulating linux's logrotate thing?
<mbuf>
pontiki, so, I get about 10 logs, but, that keeps rotating right? like a circular buffer
duncannz has joined #ruby
<mbuf>
pontiki, I want to take a snapshot of the 10 log files every day, zip them and store them to a different network folder (say)
<rpag>
"Number of old log files to keep, or frequency of rotation (daily, weekly or monthly)."
sinkensabe has joined #ruby
backsorry has quit [Remote host closed the connection]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<pontiki>
i don't know how one does that sort of thing on windows, sorry
tfitts has joined #ruby
<mbuf>
rpag, keeping the old files will occupy disk space, I just want to take a copy of the log files, and copy them to a different folder, say a network drive
<mbuf>
rpag, log rotation will override the log files, right?
rshetty has joined #ruby
<pontiki>
if you use the numeric shift_age, yes
echooo1 has joined #ruby
<sigurding>
good morning, is there any way to avoid the installation of ruby-dev when using JSON in ruby?
timonv_ has quit [Remote host closed the connection]
<pontiki>
if you set it to 10, there will only ever be at most 11 log files (1 current, 10 old)
<rpag>
json lib ships with ruby btw so you shouldnt need ruby-dev unless youre installing the gem and compiling C srcs
AlexRussia has quit [Ping timeout: 240 seconds]
gja has joined #ruby
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<sigurding>
rpag: ok from which version on?
<rpag>
1.9+ as far as i know
jimmyy has quit [Ping timeout: 240 seconds]
mrcloud has quit [Quit: Page closed]
startupality has quit [Quit: startupality]
tejas has quit [Client Quit]
gja has quit [Client Quit]
workmad3 has joined #ruby
gkra has quit [Ping timeout: 244 seconds]
Pupeno_ has quit [Quit: Leaving...]
choke has quit [Ping timeout: 260 seconds]
iiinzg has joined #ruby
hamakn has quit [Remote host closed the connection]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
ujjain has quit [Changing host]
ujjain has joined #ruby
rossgeesman has joined #ruby
jimmyy has joined #ruby
<sigurding>
rpag: hm I am using require “json” but it forces me to install make/ruby-dev on ubuntu, when doing bundle install
bayed has joined #ruby
_whitelogger___ has joined #ruby
<workmad3>
sigurding: it sounds like you've got one of them in your Gemfile for this project
Cork has quit [Ping timeout: 248 seconds]
iinzg has quit [Ping timeout: 260 seconds]
xiq_ has quit [Read error: Connection reset by peer]
xiq__ has joined #ruby
<pontiki>
workmad3: o/
<workmad3>
pontiki: </sarcasm>? ;)
gja has joined #ruby
tejas has joined #ruby
cibs has quit [Ping timeout: 276 seconds]
<pontiki>
well, no, not in that case :/
<rpag>
sigurding, yes it sounds like what workmad3 says, you've got "json" gem in your Gemfile
minecoins_ has joined #ruby
rbrs has quit [Ping timeout: 255 seconds]
Wolland has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<tmoore>
sigurding: why don't you want to install ruby-dev?
rshetty has quit [Read error: Connection reset by peer]
top4o has joined #ruby
<sigurding>
tmoore: I like it, when my gems have a minimum footprint
Cork has joined #ruby
startupality has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
rossgeesman has quit [Ping timeout: 255 seconds]
kwd has quit [Read error: Connection reset by peer]
rshetty_ has quit [Remote host closed the connection]
echooo has joined #ruby
kwd has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
fella7s has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
timonv_ has joined #ruby
KC9YDN has quit [Ping timeout: 255 seconds]
patrick99e99 has joined #ruby
exile-bot-2 has joined #ruby
echooo1 has quit [Ping timeout: 244 seconds]
_whitelogger___ has joined #ruby
User458764 has quit [Ping timeout: 255 seconds]
echooo1 has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
bentanweihao has quit [Remote host closed the connection]
decoponio has quit [Read error: Connection reset by peer]
minecoins has quit [*.net *.split]
eshy has quit [*.net *.split]
minecoins_ is now known as minecoins
sigurding has quit [Quit: sigurding]
alem0lars has quit [Ping timeout: 272 seconds]
echooo has quit [Ping timeout: 260 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
jimbach has joined #ruby
decoponio has joined #ruby
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
exile-bot-2 has quit [Ping timeout: 240 seconds]
bulters has joined #ruby
arup_r has quit [Remote host closed the connection]
<bulters>
hi! Question: I want to define a module (empty) based on a string (say "MyNamespace")
eshy has joined #ruby
agjacome has joined #ruby
drPoggs has quit [Ping timeout: 260 seconds]
jimbach has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
<bulters>
and later on execute some code in that module based on the same string... any ideas how to pull this off without resorting to eval(all_the_things)?
drPoggs has joined #ruby
bMalum has joined #ruby
startupality has quit [Quit: startupality]
Takle has joined #ruby
devan94_ has joined #ruby
startupality has joined #ruby
cibs has joined #ruby
_whitelogger___ has joined #ruby
duncannz has quit [Remote host closed the connection]
<rpag>
const_set(str, Module.new {}) im not sure about the last part
choke has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
<rpag>
maybe module_eval
ltd has joined #ruby
GeorgesLeYeti has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
GeorgesLeYeti has quit [Read error: Connection reset by peer]
GeorgesLeYeti has joined #ruby
hamakn has joined #ruby
a_ has joined #ruby
<a_>
array.find(:predicate?) # returns the first element where element.predicate? is true -- how can I best return the first element where predicate?(element) is true, instead ?
mengu has joined #ruby
mengu has joined #ruby
<rpag>
use a block
oinkon has joined #ruby
<a_>
rpag: wasn't sure if there was a shorter way of doing it
<aep>
dependency.rb:298:in `to_specs': Could not find 'bundler' (>= 0) among 14 total gem(s) (Gem::LoadError)
<aep>
any idea why i get this when starting sinatra from systemd instead of shell?
<rpag>
there's not
_whitelogger___ has joined #ruby
<aep>
ruby is from the system, bundler as a gem
Takle_ has quit [Remote host closed the connection]
<aep>
so i added ~/.gem/ruby/2.1.0/bin/ to the path
<tmoore>
a_: sorry I think that should be array.find(&method(:predicate?))
Guest32120 has quit [Ping timeout: 260 seconds]
leslie has joined #ruby
<tmoore>
aep ~ is probably a different directory for you than the user systemd is running as (presumably root)
bMalum has quit [Ping timeout: 245 seconds]
<lolmaus>
Is there syntactic sugar to reduce "foo = defined? bar ? bar ? baz" to something like "foo = bar || baz", that would not fail if "bar" is not defined?
<aep>
tmoore: both root
<aep>
oh wait, systemd might screw up HOME
<aep>
that's probably it
<workmad3>
lolmaus: don't write code that condititionally defines local variables? :/
<a_>
tmoore: awesome - how does that work?
doodlehaus has joined #ruby
<tmoore>
method(:predicate?) searches for a method named :predicate? in the current scope
timonv_ has quit [Ping timeout: 244 seconds]
<tmoore>
you can also call it on an object some_object.method(:foo) looks for a method called :foo on some_object
<tmoore>
it returns a proc that calls the method on whatever arguments you pass it
<tmoore>
then &proc converts the proc to a block
<aep>
yep that was it, thanks tmoore ~
<tmoore>
no worries... glad it's working :-)
<workmad3>
tmoore: it returns a Method object rather than a Proc btw
<bulters>
rpag: thanks, will try it out
justinmburrous has joined #ruby
<tmoore>
ah right yes thanks workmad3
bMalum has joined #ruby
<rpag>
what does '~' on its own mean?
<workmad3>
rpag: binary not iirc,
<workmad3>
tmoore: or, if you wanted to unify the terms, procs and methods are both callables ;)
<tmoore>
and &object actually calls object.to_proc and converts that to a block I think
Muon has joined #ruby
<rpag>
i mean on IRC :)
<lolmaus>
workmad3: i was gonna use it in Rails for instance variables defined from controller. And Rails would not crash on an undefined variable somehow. E.g. `puts @undefined_var || "foo"` woult print "foo" in Rails.
<rpag>
instance variable look up doesnt raise a NameError just returns nil
<rpag>
aep, what does '~' mean as a smiley?
<workmad3>
lolmaus: that's ruby not throwing exceptions on undefined instance variables
<workmad3>
lolmaus: which has always been the case
<lolmaus>
workmad3: rpag: oooh, thank you.
<workmad3>
lolmaus: that's not rails
charliesome has joined #ruby
<workmad3>
rpag: no idea on IRC ;)
charliesome has quit [Quit: zzz]
rdark has joined #ruby
Takle has joined #ruby
gkra has joined #ruby
<aep>
rpag: i mistyped !
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<rpag>
oh okay, i seen someone else do it and i presumed it was a thing
<workmad3>
aep: y u no use a mac? :(
<aep>
probably they mistyped :P
blackmes1 has quit [Ping timeout: 245 seconds]
<workmad3>
aep: it's great how the specific typos people make can reveal stuff about their kb layout and their hardware ;)
<workmad3>
aep: the top-left key of the main block on all the macs I've seen has been the crazy § character rather than a ~
<rpag>
§
<aep>
workmad3: because i work on embedded devices. with ruby. its awesome
<workmad3>
aep: :D
<aep>
actually i have a mac next to me and the layout is the same
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<rpag>
± and § here
Muon has left #ruby ["Dimension Door."]
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
GeorgesLeYeti has joined #ruby
GeorgesLeYeti has quit [Ping timeout: 260 seconds]
<tobiasvl>
wow, caret on 6. I guess the NO keyboard is pretty weird then, we have & there.
jottr has joined #ruby
<workmad3>
tobiasvl: it's ^ on 6 and & on 7 for british
iiinzg has quit [Ping timeout: 272 seconds]
<workmad3>
also, I have 3 different ways of producing §... §, alt+§, and alt+6...
fabrice31 has quit [Ping timeout: 260 seconds]
timonv_ has joined #ruby
doev has quit [Quit: Verlassend]
kaspergrubbe_ has quit [Ping timeout: 240 seconds]
St_Marx has quit [Ping timeout: 264 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
tejas has quit [Quit: This computer has gone to sleep]
ctp has joined #ruby
kantakt has joined #ruby
alem0lars has joined #ruby
CaptainHeavy has joined #ruby
zarubin has joined #ruby
Xeago_ has joined #ruby
fabrice31 has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tokik has quit [Ping timeout: 255 seconds]
horrror has joined #ruby
horrror is now known as hrrz
workmad3 is now known as wm3|away
<hrrz>
hey, i'm trying to make a postgres query using ruby, i'm doing an "where in" query but i fail to pass an array
<hrrz>
here's my loc: @conn.exec("select * from tags where lower(title) in ($1)", keys)
<hrrz>
as keys = ["title1", "title2"] etc..
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
tejas has joined #ruby
Xeago has quit [Ping timeout: 258 seconds]
kwd_ has joined #ruby
<hrrz>
PG.connect object
nrsk has quit [Ping timeout: 256 seconds]
<toretore>
hrrz: what is @conn ?
nrsk has joined #ruby
<toretore>
from where?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jacobat has quit [Ping timeout: 240 seconds]
kwd has quit [Read error: Connection reset by peer]
alem0lars has quit [Quit: AFK..]
_whitelogger___ has joined #ruby
sk87 has joined #ruby
jhass|off is now known as jhass
fella5s has joined #ruby
lampd1 has joined #ruby
Aova has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
renderful has joined #ruby
roolo has joined #ruby
Aova has joined #ruby
zeroNones has joined #ruby
<hrrz>
toretore: pg gem
<Aova>
morning :)
NoNMaDDeN has quit [Remote host closed the connection]
zarubin has quit [Quit: Leaving.]
zarubin has joined #ruby
reinaldob has joined #ruby
psy has quit [Quit: Leaving]
_whitelogger___ has joined #ruby
lampd1 has quit [Ping timeout: 265 seconds]
<toretore>
hrrz: well, first of all, it looks like it expects an array of params as its second argument
<toretore>
so your array should be the first element of this array
roolo has quit [Ping timeout: 260 seconds]
jimbach has joined #ruby
<hrrz>
so how can i pass all the elements of the array?
renderful has quit [Ping timeout: 260 seconds]
zarubin has quit [Client Quit]
zarubin has joined #ruby
wm3|away is now known as workmad3
wethu has quit [Quit: This computer has gone to sleep]
shredding has quit [Quit: shredding]
Soda has quit [Remote host closed the connection]
Aova has quit [Quit: See ya]
jottr has quit [Ping timeout: 255 seconds]
jhass is now known as jhass|off
Aova has joined #ruby
St_Marx has joined #ruby
jimbach has quit [Ping timeout: 265 seconds]
nrsk has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
anaeem___ has joined #ruby
anaeem___ has quit [Remote host closed the connection]
zarubin has quit [Quit: Leaving.]
anaeem1_ has joined #ruby
<maasha>
What is the fastest way to parse a CSV table so that data types are automagically converted? ie. not everything as strings, but integers as Fixnum and floats as Float etc.?
<maasha>
It turns out to be non-trivial
anaeem1 has quit [Read error: Connection reset by peer]
<maasha>
scanf is no-go -> too slow. Same with Integer and Float.
doodlehaus has quit [Remote host closed the connection]
ad_boot has quit [Quit: ad_boot]
alem0lars has joined #ruby
<workmad3>
maasha: I believe you can pass an array of converters to CSV.new
<workmad3>
maasha: I believe what happens is that CSV attempts to use each converter in turn and the first non-error is determined as the converted result... but I'm not confident on that so you should probably check it out ;)
Takle has quit [Remote host closed the connection]
iinzg has joined #ruby
mbuf has left #ruby ["Leaving"]
<workmad3>
maasha: however, if it's a case of the conversions are too slow... not sure what to suggest there... you're dealing with string-parsing operations after all
<maasha>
workmad3: I suppose what I am after is an updated version of scanf!
tejas has quit [Quit: This computer has gone to sleep]
gja has quit [Quit: This computer has gone to sleep]
<maasha>
like the C version of sscanf
<tobiasvl>
yeah, I was interpreting the problem as it being too slow to check for type in every field, which is not surprising, so converters should help with that (it'll know what converter to apply to each field)
<hrrz>
toretore: how can i pass the entire array? u know?
gja has joined #ruby
charliesome has joined #ruby
tejas has joined #ruby
gja has joined #ruby
tejas has joined #ruby
gja has quit [Changing host]
autonomousdev has joined #ruby
<maasha>
hrrz: you need a ruby book
wethu has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
<hrrz>
maasha: how about giving a tip rather than a useless comment?
<maasha>
useless comment? - I'd bet you that many people in here would say this is the best piece of advice you will get today.
<workmad3>
maasha: looks like your tips aren't desired anymore :P
nrsk has joined #ruby
<maasha>
hrrz: I can suggest you a book, if you like.
Takle has joined #ruby
<tobiasvl>
!book
<tobiasvl>
BOOK IT
<hrrz>
maasha: you probably feel very good with yourself
<workmad3>
hrrz: seeing as it's the pg gem you're dealing with btw, it may behoove you to look up the docs for that gem
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
lw has joined #ruby
<workmad3>
hrrz: if you're looking for specifics, I'd suggest you look through the gem docs for how to pass arrays to prepared statements
jacobat has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
<workmad3>
hrrz: which is another way of saying 'read some stuff about it' like maasha's suggestion, but saying 'read about the thing you're using' rather than 'read about ruby' ;)
<a_>
tmoore: a.find(&method(:predicate?)) <- why does #call get invoked, as Method expects?
<hrrz>
workmad3: it is a bit more useful
<tmoore>
a_: so the & prefix converts it to a block, passed to find
<workmad3>
tmoore: & also calls .to_proc btw
<tmoore>
yep as I mentioned above :-)
psy has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
<workmad3>
tmoore: so I'm gonna guess that Method#to_proc produces a proc equivalent to proc{|*args| method(:whatever).call(*args)} ;)
zeroNones has joined #ruby
wethu has quit [Client Quit]
fella6s has joined #ruby
<tmoore>
then inside find, when it yields to the block, it calls the proc
<workmad3>
tmoore: which, if true, makes it clearer how it works :)
<hrrz>
and it has less pretentious %
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
Wolland has quit [Remote host closed the connection]
<tmoore>
sounds about right
tvw has quit []
fella5s has quit [Ping timeout: 260 seconds]
hamakn has quit [Remote host closed the connection]
ad_boot has joined #ruby
startupality has quit [Quit: startupality]
<workmad3>
hrrz: btw, getting sarky and insulting back to regulars who give fairly normal advice to a question that, taken on its own, is a fairly trivial ruby question is likely to make people rather snappy and grumpy ;)
<eval-in__>
txdv => /tmp/execpad-0ffdb13e3de7/source-0ffdb13e3de7:2: warning: in a**b, b may be too big ... (https://eval.in/206606)
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<hrrz>
workmad3: we can argue on the 'normal advice' he suggested. But this isn't a fairly trivial ruby question, i'm sorry. It is a a PG gem question that by it docs seems that it has no normal way of receiving array as input, and i asked maybe there's a ruby way to manipulate the input so it fits the docs
<workmad3>
hrrz: yes... but that context was over 30 minutes ago in the scrollback
<hrrz>
so ?
<workmad3>
hrrz: so in isolation, your question was trivial
<workmad3>
hrrz: and that's the question that maasha answered with 'maybe you should read up on ruby a bit'
<workmad3>
hrrz: i.e. your repeat of the question didn't mention that it was pg... and that context was quite distant temporally
jxf has quit [Ping timeout: 244 seconds]
<hrrz>
my secondary question was a follow up question and i was directing it to the person who helped me at the begining
gja has quit [Quit: This computer has gone to sleep]
startupality has joined #ruby
fella7s has joined #ruby
tejas has quit [Quit: This computer has gone to sleep]
<hrrz>
the 'maybe you should read up on ruby a bit' answer was unrelated, sarky, snappy and grumpy without even understanding the context
_whitelogger___ has joined #ruby
<workmad3>
hrrz: right... but it did come after an almost identical, undirected, context-free repeat of the same question about 10 minutes previously
tkuchiki has joined #ruby
justinmburrous has joined #ruby
fella5s has joined #ruby
<DefV>
aww
<DefV>
I missed all the drama?
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3>
hrrz: and hell, I'm not trying to get into a big argument here... just pointing out that getting pretty insulting back isn't exactly going to ingratiate you with people :P
<rpag>
DefV, no, you can scroll back!
<tobiasvl>
hey guys, what did I miss
<DefV>
I live in the moment!
<rpag>
haha
otakbeku has joined #ruby
<txdv>
I thought everyone programming ruby is a nice person
jespada has joined #ruby
<rpag>
tobiasvl, something about postgres & ruby
<hrrz>
me too
roolo has joined #ruby
<txdv>
but then I remembered that humans are assholes
<workmad3>
txdv: nah, just the ones that the @hats haven't kicked out of here ;)
<workmad3>
txdv: or the ones like me who hide a towering, arrogant ego behind a thin veneer of civility ;)
<txdv>
everyone is an selfish asshole
<workmad3>
txdv: s/an/a/
fella7s has quit [Ping timeout: 240 seconds]
<txdv>
Good luck having a hang out with 881 people :D
<rpag>
workmad3, hahahaha
<txdv>
yeah, an asshole, a selfish asshole
<workmad3>
rpag: that would require people to put on clothes...
<txdv>
If i type it out loud while thinking, I get it sometimes wrong.
<rpag>
when is irc gonna move to google hangouts & webcam
<rpag>
i think thats part of the problem
rbrs has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
justinmburrous has quit [Ping timeout: 244 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
bMalum has quit [Quit: bMalum]
<workmad3>
rpag: you could always go and set up a public 'ruby drop-in' hangout ;)
<workmad3>
rpag: people join, ask a ruby question, insult you a bit and then leave ;)
fandi has quit [Remote host closed the connection]
<workmad3>
rpag: I expect to see it set up after lunch ;)
blueOxigen has quit [Read error: Connection reset by peer]
NoNMaDDeN has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
<bulters>
i love the insulting part
bluOxigen has joined #ruby
<bulters>
would be nice to be on the receiving end of said insults
<bulters>
as some kind of psychological hardening scheme... maybe have people pay to be an insultee or something
<rpag>
if you want to be insulted like a pro, join #c
<rpag>
#ruby is usually way more mellow :)
fella5s has joined #ruby
<bulters>
rpag: my c flamebaits are a bit rusty
hrrz has left #ruby [#ruby]
<bulters>
all I remember from uni is that using void*'s is considered a best-practice to do everything
txdv has quit [Ping timeout: 244 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
Takle has quit [Remote host closed the connection]
nfk has joined #ruby
doodlehaus has joined #ruby
Xeago has joined #ruby
Dwarf has quit [Ping timeout: 260 seconds]
ferr has quit [Ping timeout: 240 seconds]
fella6s has joined #ruby
banister has joined #ruby
GeorgesLeYeti has quit [Ping timeout: 246 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
fella5s has quit [Ping timeout: 250 seconds]
devan94_ has quit [Remote host closed the connection]
starkhalo has joined #ruby
Xeago_ has quit [Ping timeout: 272 seconds]
Aaaal has quit [Quit: Aaaal]
nonks has quit [Ping timeout: 240 seconds]
<workmad3>
bulters: go to #c and suggest that it's best practice to roll your own memory management by grabbing a huge void* array on program startup and then simply dealing with that internally ;)
Akagi201 has joined #ruby
Akagi201 has quit [Remote host closed the connection]
<rpag>
or just say 'hello'
<rpag>
that usually does it
<workmad3>
heh
jimbach has joined #ruby
<workmad3>
I've not been to #c
<rpag>
ah im overreacting of course
<bulters>
wouldn't it be way nicer to suggest that you require help devising a partitioning scheme for said block of memory into chunks large enough to hold one result set from a not-to-be-named large scientific experiment which involves throwing really small things against each other
Dwarf has joined #ruby
Aaaal has joined #ruby
Akagi201_ has joined #ruby
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<bulters>
(disclaimer: i worked for an institution that contributes to one of said experiments)
GeorgesLeYeti has joined #ruby
tlarevo has joined #ruby
tlarevo_ has quit [Ping timeout: 260 seconds]
<bulters>
damn.. #c actually has "Be civil" in the topic...
<bulters>
Guess #ruby consists of savages
qmfnp has joined #ruby
jimbach has quit [Ping timeout: 272 seconds]
GeorgesLeYeti has quit [Client Quit]
KC9YDN has quit [Read error: Connection reset by peer]
{xenomorph} has quit [Ping timeout: 260 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
havenwood has joined #ruby
<workmad3>
bulters: #rubyonrails has MINASWAN in the /topic
<workmad3>
bulters: but not here, for some reason :(
<workmad3>
or #ruby-lang
kantakt has quit []
{xenomorph} has joined #ruby
patrick99e99 has joined #ruby
fsapo has joined #ruby
<workmad3>
bulters: of course, you can be civil while also being a pretentious, arrogant jackass ;)
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
VanillaGoat_ has joined #ruby
sepp2k has joined #ruby
Deejay has joined #ruby
ldnunes has joined #ruby
Deejay is now known as Guest79882
patrick99e99 has quit [Ping timeout: 260 seconds]
gja has joined #ruby
tejas has joined #ruby
Aaaal has quit [Ping timeout: 240 seconds]
VanillaGoat__ has quit [Ping timeout: 265 seconds]
gauke_ has joined #ruby
luckyruby has quit [Remote host closed the connection]
gauke has quit [Ping timeout: 245 seconds]
gauke_ is now known as gauke
jhass is now known as jhass|off
spyderman4g63 has joined #ruby
wethu has joined #ruby
<bulters>
workmad3: isn't that a requirement to 'contribute' on #rubyonrails ???
<workmad3>
bulters: by 'contribute' do you mean 'answer questions from ignorant peons'?
bluenemo has joined #ruby
<bulters>
workmad3: yes
<workmad3>
bulters: well, I'm there right now doing just that ;)
bluenemo has joined #ruby
dblessing has joined #ruby
Guest79882 has quit [Quit: Computer has gone to sleep.]
<bulters>
also lurking on #haskell, but I'm afraid to contribute since I don't have a Phd....
<bulters>
let me help you out with that ;-)
qmfnp has joined #ruby
_whitelogger___ has joined #ruby
Deejay_ has joined #ruby
jacobat has quit [Ping timeout: 272 seconds]
gja has quit [Quit: This computer has gone to sleep]
Takle has joined #ruby
tejas has quit [Quit: This computer has gone to sleep]
CaptainHeavy has quit [Ping timeout: 255 seconds]
jhass|off is now known as jhass
aclearman037 has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
doodlehaus has joined #ruby
jacobat has joined #ruby
SpaceKookie has joined #ruby
larissa has quit [Quit: Leaving]
krz has quit [Quit: WeeChat 1.0.1]
fantazo has joined #ruby
doodlehaus has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
aef has joined #ruby
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
max96at|off is now known as max96at
tejas has joined #ruby
rshetty has quit [Remote host closed the connection]
User458764 has quit [Ping timeout: 255 seconds]
paulfm has joined #ruby
larissa has joined #ruby
<mostlybadfly>
Hey I'm an ignorant peon:p
gja has joined #ruby
shredding has joined #ruby
<bulters>
same here
<bulters>
I use Rails for work...
<workmad3>
mostlybadfly: ok, stand right there while I'm rude and condescending to you ;)
spastorino has joined #ruby
<bulters>
but get paid to do research on other stuff ;-)
<mostlybadfly>
I'm trying to get to a place where I can
<mostlybadfly>
Lol workmad3
<bulters>
mostlybadfly: join a small company, and code your ass up the chain, give yourself a nice title and job description which involves research and trying stuff out to gain a competitive advantage...
jimmyy has quit [Ping timeout: 260 seconds]
jimmyy has joined #ruby
<mostlybadfly>
Yeah I need to get outta here
grzywacz has joined #ruby
Squarepy has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mostlybadfly>
bulters: been trying to find a job that'll let me do just that
<zwischenzug>
hello, i'm trying to do byte manipulation in ruby and it's starting to drive me crazy....wondering if someone could help me out
<mostlybadfly>
Seems like here all they ever go with are bootcamp grads or the many people with prior experience
justinmburrous has joined #ruby
<bulters>
zwischenzug: what are you trying to accomplish?
<zwischenzug>
i'm trying to implement the following: A = MSB(64, B) ^ t where t = (n*j)+i. a is a bitstring, and t is an int
northfurr has quit [Quit: northfurr]
startupality has joined #ruby
<zwischenzug>
and i'm trying to xor them together
<banister>
zwischenzug nerd
phutchins has joined #ruby
<zwischenzug>
so far i have (caution: this is really ugly): a = b.slice(0..6) + [(b[7].ord ^ t).to_s(16)].pack("h*")
kwd_ has quit [Read error: Connection reset by peer]
{xenomorph} has quit [Ping timeout: 260 seconds]
<zwischenzug>
sorry.....it's actually: a = b.slice(0..6) + [(b[7].ord ^ t).to_s(16)].pack("H*")
endzyme has joined #ruby
<zwischenzug>
but this doesn't work, because at the end, if the hex string is single digit, and it gets packed into H*, the endian-ness gets flipped
<endzyme>
are there any good materials online around best practices for installing ruby based applications on an OS. Example, looking to package a grape-api app so it can be installed and startable as a service. Currently using fpm but having concerns on how required gems get installed and included.
justinmburrous has quit [Ping timeout: 260 seconds]
<workmad3>
endzyme: you could look up omnibus
techsethi has quit [Quit: techsethi]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<workmad3>
endzyme: pretty much, yeah
benzrf|offline is now known as benzrf
<zwischenzug>
i need something that returns ["09"] and ["a9"] respectively (or an entirely different approach since this seems like a huge hack)
<endzyme>
workmad3: have you used it before? Im curious if it's hard to maintain
jasooon has joined #ruby
<workmad3>
endzyme: I've not created my own omnibus packages... I've installed the chef packages, which are omnibus and it makes installation pretty damn easy :)
<workmad3>
endzyme: afaik, the creation of the packages is geared around being scriptable pretty easily though, so it shouldn't be problematic to maintain
<endzyme>
workmad3: cool - thanks! I'll poke around -
Xeago_ has joined #ruby
ferr has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
a_ has quit [Ping timeout: 272 seconds]
tejas has quit [Quit: This computer has gone to sleep]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
kwd has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
rshetty has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
SpaceKookie has joined #ruby
livingstn has joined #ruby
Xeago has quit [Ping timeout: 255 seconds]
Aaaal has joined #ruby
{xenomorph} has joined #ruby
sk87 has joined #ruby
northfurr has joined #ruby
txdv has joined #ruby
jasooon has quit [Ping timeout: 255 seconds]
jimmyhoughjr has joined #ruby
<machty>
sanity check: does Ruby internally trap all (non-terminating) signals, and _then_ check if the running ruby code has registered trap handlers?
jhass|off is now known as jhass
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<machty>
i'm asking because i just realized that even if you don't trap a signal, a SignalException will be raised
<machty>
i was previously expecting the process to terminate if you didn't trap it for, say, SIGINT
<machty>
but Ruby gives you one last chance to catch it as a raised exception
<machty>
sorry, talking out loud here, it's my ah ha moment of the day
jimbach has joined #ruby
bal has quit [Quit: bal]
SpaceKookie has quit [Ping timeout: 260 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
autonomousdev has joined #ruby
einarj_ has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
techsethi has joined #ruby
bal has joined #ruby
einarj has quit [Read error: Connection reset by peer]
<workmad3>
shevy: pretty sure 'aliens' are already included... I believe there's a section of unicode marked for klingon ;)
<shevy>
who referred to that no-content article above
<csmrfx>
lol
<csmrfx>
its like a hot-rod mechanic wrote an article on which guitars are best for classical music
djstorm has joined #ruby
dx7 has joined #ruby
softaco_s has quit [Remote host closed the connection]
<shevy>
well there are crappy guitars
jhass|off is now known as jhass
<shevy>
I know because I bought one of them :(
{xenomorph} has quit [Ping timeout: 260 seconds]
<workmad3>
csmrfx: and then based his opinions on what a particular rock-star decided to use ;)
<shevy>
also, playing piano is much simpler than playing the guitar, I found that out as well
bulters has joined #ruby
* csmrfx
buys a new bass guitar every 3 months
dh64 has joined #ruby
<shevy>
what happens to your old bass guitar?
gregf has joined #ruby
<csmrfx>
if its good it sits on the stand
{xenomorph} has joined #ruby
_whitelogger____ has joined #ruby
anaeem1 has joined #ruby
treehug88 has joined #ruby
roger_rabbit has joined #ruby
Dwarf has quit [Ping timeout: 260 seconds]
elektronaut has joined #ruby
maasha has quit [Ping timeout: 246 seconds]
it0a has joined #ruby
<shevy>
there could be zombies in pubs
<shevy>
I learned that from shaun of the dead
<shevy>
plus, my british accent
<workmad3>
shevy: I dread to think what your british accent is likey :P
<workmad3>
*like
lampd1 has quit [Ping timeout: 250 seconds]
Xeago has quit [Read error: Connection reset by peer]
tvw has joined #ruby
Xeago has joined #ruby
Guest51224 has quit [Quit: Have you ever tried to eat a clock? It's very time consuming.]
mahtennek has quit []
anaeem1 has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
reinaldob has quit []
aCicloid is now known as cicloid
devdazed has joined #ruby
<shevy>
likey blimey slimey
_whitelogger____ has joined #ruby
xaxisx has quit [Quit: xaxisx]
naftilos76 has joined #ruby
msmith_ has joined #ruby
klmlfl has joined #ruby
kwd has quit [Quit: Sleeping now. ZZZzzz…]
bal has quit [Quit: bal]
<naftilos76>
hiyosi, i am using daemons gem to make my ruby script a daemon but i cannot find a way to get the pid number of the process although i can see the pid number in tasks manager in ubuntu. The pid file is nowhere to find. The dir of the script does not contain anything and the /var/run/ does not either. Can anybody help?
gja has quit [Quit: This computer has gone to sleep]
tejas has quit [Quit: This computer has gone to sleep]
charliesome has quit [Quit: zzz]
<naftilos76>
That was to everyone in the channel
heftig has quit [Quit: heftig]
heftig has joined #ruby
DrShoggoth has joined #ruby
softaco_s has joined #ruby
Takle has joined #ruby
drawingthesun has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
<gizmore>
naftilos76: maybe Thread.current.inspect has it?
<suy>
naftilos76: I mean, Process.pid contains... the pid of the process, no?
_whitelogger____ has joined #ruby
_whitelogger____ has joined #ruby
<naftilos76>
suy: Thanks man, simple as that Process.pid did the job
<naftilos76>
i want that so that i can terminate at any time
renderful has quit [Remote host closed the connection]
parduse has quit []
oinkon has joined #ruby
AFKGeek has quit [Quit: Leaving]
wottam has joined #ruby
IceDragon has joined #ruby
parduse has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
banister has joined #ruby
shredding has quit [Quit: shredding]
renderful has joined #ruby
jottr has joined #ruby
<olivier_bK>
can i sign in on website with nokogiri it's possible ?
bigkevmcd has quit [Ping timeout: 240 seconds]
xaxisx has joined #ruby
_whitelogger____ has joined #ruby
jobewan has joined #ruby
mikepack has joined #ruby
mistermocha has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naftilos76 has quit [Quit: Αποχώρησε]
_whitelogger____ has joined #ruby
parduse has quit []
paulfm has quit []
chrishough has joined #ruby
maroloccio has joined #ruby
tkuchiki has quit [Remote host closed the connection]
parduse has joined #ruby
_whitelogger____ has quit [Excess Flood]
_whitelogger____ has joined #ruby
tkuchiki has joined #ruby
rshetty has joined #ruby
sinkensabe has joined #ruby
tier_ has joined #ruby
msmith_ has quit [Read error: Connection reset by peer]
jacobat_ has joined #ruby
CaptainHeavy has quit [Remote host closed the connection]
msmith_ has joined #ruby
jasooon has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
bthesorceror has quit [Quit: Reconnecting]
bthesorceror has joined #ruby
tkuchiki_ has joined #ruby
HelperW has quit [Quit: (null)]
tkuchiki_ has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki_ has joined #ruby
egray_ has quit [Quit: This computer has gone to sleep]
tkuchiki has quit [Ping timeout: 244 seconds]
olivier_bK has quit [Ping timeout: 244 seconds]
jacobat has quit [Ping timeout: 258 seconds]
tier has quit [Ping timeout: 245 seconds]
doev has joined #ruby
larissa has quit [Quit: Leaving]
_whitelogger has joined #ruby
Takle has joined #ruby
parduse has joined #ruby
drawingthesun has quit [Quit: Leaving]
gsd has joined #ruby
startupality has joined #ruby
xaxisx has quit [Client Quit]
i_s has joined #ruby
kantakt has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
tier_ has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 244 seconds]
blackmes1 has joined #ruby
Xeago has quit [Remote host closed the connection]
Xiti has joined #ruby
carraroj has joined #ruby
sevvie has joined #ruby
benzrf is now known as benzrf|offline
thagomizer has joined #ruby
_whitelogger has joined #ruby
nobitanobi has joined #ruby
ta_ has quit [Remote host closed the connection]
jeer has joined #ruby
a_ has quit [Ping timeout: 246 seconds]
<jeer>
Does anyone know if there is an alternative to SSLv3 for rest_client?
jlast has quit [Remote host closed the connection]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jeer>
3rd party product we paid for decided to dump SSLv3 with zero notice/notification and now we have a warehouse of employees with nothing to do because of this.
<jeer>
Sidenote, Bigcommerce is cancerous.
qba73 has quit []
AlexRussia has quit [Ping timeout: 272 seconds]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
multi_io has joined #ruby
multi_io_ has quit [Read error: Connection reset by peer]
shazaum has joined #ruby
rossgeesman has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
bigkevmcd has joined #ruby
rossgeesman has quit [Client Quit]
qmfnp has joined #ruby
Wolland has joined #ruby
Wolland has quit [Client Quit]
rossgeesman has joined #ruby
stoneforge has joined #ruby
hellangel7 has joined #ruby
crunk_bear has joined #ruby
reinaldob has joined #ruby
klmlfl has quit [Remote host closed the connection]
<axilla>
jeer: tls
klmlfl has joined #ruby
alex88 has quit [Quit: Leaving...]
<jeer>
but does rest_client support tls?
<axilla>
all of the rest clients our app integrates with switched to tls, and turned off sslv3
<axilla>
oh not sure about rest_client?
<axilla>
sorry
Kricir has joined #ruby
stoneforge has quit [Remote host closed the connection]
<jeer>
Yeah, I don't think the dependency chain we have has a solution for this unfortunately.
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codeurge has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
{xenomorph} has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
banister has joined #ruby
ghostmoth has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
banister has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
spyderman4g63 has quit [Remote host closed the connection]
speakingcode is now known as brandon-walsh
<workmad3>
jeer: it looks like you can pass an :ssl_version to the rest-client constructor
spyderman4g63 has joined #ruby
livathinos has quit [Remote host closed the connection]
<workmad3>
jeer: valid values are held in OpenSSL::SSL::SSLContext::METHODS
<workmad3>
jeer: I'd suggest using :TLSv1_2 if possible
{xenomorph} has joined #ruby
Scotteh has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SpaceKookie has joined #ruby
timonv_ has quit [Remote host closed the connection]
cndiv has joined #ruby
a_ has joined #ruby
skolman_ has joined #ruby
cndiv is now known as Guest56905
Guest56905 is now known as cndiv_wfh
kantakt has quit []
skolman_ has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 260 seconds]
skolman has joined #ruby
skolman has quit [Remote host closed the connection]
skolman_ has joined #ruby
Hobogrammer has joined #ruby
<jeer>
Looking for exact syntax now. Thanks for the lead, work.
benzrf|offline is now known as benzrf
DrShoggoth has quit [Quit: Leaving]
maroloccio has quit [Quit: WeeChat 0.4.3]
cndiv_ has joined #ruby
cndiv_wfh has quit [Quit: WeeChat 0.4.3]
samuel02 has joined #ruby
Xeago_ has joined #ruby
benzrf is now known as benzrf|offline
HelperW has joined #ruby
brandon-walsh is now known as speakingcode
kamilc__ has quit [Quit: Leaving...]
troyready has joined #ruby
tylersmith has joined #ruby
SCHAAP137 has joined #ruby
benzrf|offline is now known as benzrf
jacobat has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 260 seconds]
RichardLitt has joined #ruby
freerobby has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
jimmyhoughjr has joined #ruby
cndiv_ is now known as cndiv
rocknrollmarc has joined #ruby
lw has joined #ruby
sinkensabe has quit [Remote host closed the connection]
x1337807x has joined #ruby
beef-wellington has joined #ruby
zeroNones has joined #ruby
ad_boot has quit [Quit: ad_boot]
dawkirst has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
itspots has joined #ruby
justinmburrous has joined #ruby
icebourg has joined #ruby
Gunni has quit [Ping timeout: 250 seconds]
patrick99e99 has joined #ruby
terlar has quit [Ping timeout: 272 seconds]
explodes has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
lsmola has quit [Ping timeout: 250 seconds]
stunder has joined #ruby
elektronaut has joined #ruby
<explodes>
I doubt this is the best channel for it, but I don't know where to start. I'm on OSX 10.9, I used homebrew to install openssl. Recently, I upgraded to 1.0.1j, and now using the CLI to connect to Heroku breaks talking about SSL errors.
jasooon has joined #ruby
Takle has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
justinmburrous has quit [Ping timeout: 246 seconds]
weemsledeux has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x77686d has joined #ruby
jlast has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
abstrakt has joined #ruby
banister has joined #ruby
oinkon has quit [Ping timeout: 260 seconds]
renderful has joined #ruby
ndrei has joined #ruby
Gunni has joined #ruby
jasooon has quit [Ping timeout: 258 seconds]
xaxisx has joined #ruby
freerobby has quit [Quit: Leaving.]
rbrs has joined #ruby
benzrf is now known as benzrf|offline
pskosinski has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Haiiro|Away is now known as Haiiro
centrx has joined #ruby
Kricir has quit [Remote host closed the connection]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
devdazed has quit [Quit: Computer has gone to sleep.]
<mistermocha>
question about class vars ... my understanding is that @somevar should be accessible throughout the class, but what about on the instance? (ex https://gist.github.com/mistermocha/5dc34f962bc55ce48109 ... see comments)
phrozen77 has joined #ruby
phrozen77 has quit [Changing host]
elaptics is now known as elaptics`away
Ankhers has joined #ruby
aCicloid is now known as cicloid
lampd1_ has quit [Ping timeout: 244 seconds]
<Hanmac>
mistermocha: hm it does works for me
ptrrr has joined #ruby
<Hanmac>
hm sorry
boombadaroomba has joined #ruby
<mistermocha>
Hanmac: ??? yeah that's weird ... I would expect that to work, but I get errors on those puts statements.
fabrice31 has joined #ruby
<mistermocha>
Hanmac: I read up on attr_accessors, but the docs I found said that I needed to do @@two_at_symbols ... and I just wanted to understand more
Xeago_ has joined #ruby
<Hanmac>
mistermocha: you need attr_reader or attr_accessor
<mistermocha>
thanks!
<Hanmac>
NO ... attr_* functions has NOTHING todo with @@vars
klmlfl has quit [Remote host closed the connection]
* mistermocha
nods
<Hanmac>
let me guess you come somehow from Rails right?
<mistermocha>
no, I've been exclusively a python dev for the last several years, and exclusively perl for several years prior
justin_pdx has joined #ruby
<mistermocha>
I'm just picking up ruby
francisfish has quit [Remote host closed the connection]
twohlix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mistermocha>
speaking of python... inheriting from object brings about the full datamodel, which has tons of fun built-in hooks for overriding basic methods on functions. Is there similar practice in ruby?
kaspergrubbe has joined #ruby
<j2p2>
yeah
Xeago has quit [Ping timeout: 260 seconds]
<j2p2>
ruby's kind of a lawless land as far as objects go, you can redefine anything anywhere
fabrice31 has quit [Ping timeout: 255 seconds]
<gregf_>
o_O
<mistermocha>
I get that, it's a matter of finding out what built-ins are there with new objects that I can override
<mistermocha>
e.g., is there an analogous iterable feature that can be overridden in ruby?
spyderman4g63 has joined #ruby
<mistermocha>
and if so, how do I?
lw has quit [Quit: s]
tjsousa has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
wallerdev has joined #ruby
mrfoto has joined #ruby
t_mmyv has joined #ruby
doev has quit [Ping timeout: 258 seconds]
hadifarnoud has joined #ruby
havenwood has quit [Remote host closed the connection]
<hadifarnoud>
how can I install a gem globally? I use rbenv
yfeldblum has joined #ruby
mikecmpbll has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
you'll get a shitload of handy methods like #map
<benzrf>
mistermocha: altho
<benzrf>
if you define each like that and then mix in Enumerable
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
lukeholder has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
tejas has quit [Quit: This computer has gone to sleep]
WormDrink has quit [Ping timeout: 260 seconds]
lukeholder has quit [Client Quit]
Haiiro|Away is now known as Haiiro
mityaz has quit [Quit: Leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 244 seconds]
twohlix has joined #ruby
ad_boot has quit [Quit: ad_boot]
jhass is now known as jhass|off
jhass|off is now known as jhass
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kenndel has joined #ruby
sailias has quit [Read error: Connection reset by peer]
sailias has joined #ruby
HelperW has quit [Quit: (null)]
segfalt has joined #ruby
nanoyak has joined #ruby
kenndel_ has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
nerium has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
nerium has quit [Client Quit]
nonks has joined #ruby
elektronaut has joined #ruby
Aaaal has quit [Quit: Aaaal]
jottr has quit [Read error: Connection reset by peer]
alem0lars has quit [Quit: AFK..]
lbwski has joined #ruby
phutchins has joined #ruby
jottr has joined #ruby
DivineEn1ity has quit [Quit: leaving]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
xaxisx has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
iamjarvo has joined #ruby
djbkd has joined #ruby
echooo has joined #ruby
rbrs has quit [Remote host closed the connection]
<havenwood>
hadifarnoud: rbenv is hardcoded to a local user install as far as i know, though you can jump though a series of hoops to get a multi-user install location i wouldn't suggest it
<hadifarnoud>
havenwood: is there anything I should add to my PATH?
ghr has quit [Read error: Connection reset by peer]
jhass is now known as jhass|off
Guest36937 has quit [Remote host closed the connection]
jdj_dk has quit [Remote host closed the connection]
tier_ has quit [Remote host closed the connection]
jdj_dk has joined #ruby
devdazed has joined #ruby
xaxisx has quit [Quit: xaxisx]
a_ has joined #ruby
zeroNones has quit [Ping timeout: 260 seconds]
tier has joined #ruby
goodenough has quit [Remote host closed the connection]
x45t has joined #ruby
tier has quit [Remote host closed the connection]
doev has quit [Ping timeout: 258 seconds]
x77686d has quit [Quit: x77686d]
AlexRussia has joined #ruby
maestrojed has joined #ruby
renier has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
bayed has quit [Quit: Connection closed for inactivity]
Takle has joined #ruby
a_ has quit [Ping timeout: 265 seconds]
ismell has left #ruby [#ruby]
renderful has joined #ruby
<renier>
hey, maybe someone here can throw me a hint. I use puma for a webserver. Does anyone know how to configure the ssl protocols? This is to guard against the poodle openssl vulnerability. You have to disable SSLv3. has anyone done this with any of the usual ruby web servers? (thin, puma, unicorn, etc.)
tier has joined #ruby
TeresaP has joined #ruby
yetanotherdave has joined #ruby
<wallerdev>
then just handle it there
zeroNones has joined #ruby
<wallerdev>
i usually put something like nginx in front
schaerli has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<renier>
wallerdev, right. I'm going to have to, unless there is a way to handle it in ruby's server config
alem0lars has joined #ruby
rkalfane has joined #ruby
<TeresaP>
Is there a way to use String.ends_with? with wildcards?
jhass is now known as jhass|off
<renier>
TeresaP, use a regexp
anaeem1_ has joined #ruby
<TeresaP>
guh
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
anaeem1_ has quit [Read error: Connection reset by peer]
xaxisx has joined #ruby
anaeem1_ has joined #ruby
<renier>
TeresaP, s = "this is the end" ; s =~ /end$/
rossgeesman has quit [Remote host closed the connection]
{xenomorph} has quit [Ping timeout: 260 seconds]
lolmaus has quit [Quit: Konversation terminated!]
moloch is now known as zly
tier has quit [Remote host closed the connection]
zly has quit [Changing host]
zly has joined #ruby
Hightower666 has quit [Ping timeout: 246 seconds]
rossgees_ has joined #ruby
wottam has quit [Ping timeout: 240 seconds]
{xenomorph} has joined #ruby
zeroNones has quit [Client Quit]
matt___ has joined #ruby
tier has joined #ruby
zeroNones has joined #ruby
benzrf|offline is now known as benzrf
jxf has quit [Remote host closed the connection]
jhass|off is now known as jhass
aspires has quit [Ping timeout: 260 seconds]
jao1337 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
jao1337 has joined #ruby
aspires has joined #ruby
justin_pdx has quit [Ping timeout: 272 seconds]
Bira has joined #ruby
wottam has joined #ruby
bulters has joined #ruby
jordsmi has joined #ruby
SCHAAP137 has joined #ruby
jao1337 has quit [Remote host closed the connection]
patrick99e99 has quit [Quit: Lost terminal]
Takle has quit [Remote host closed the connection]
SirFunk has quit [Ping timeout: 240 seconds]
matt___ has left #ruby [#ruby]
sindork has quit [Ping timeout: 245 seconds]
Gnubie__ has quit [Quit: No Ping reply in 180 seconds.]
a_ has joined #ruby
Xiti has joined #ruby
jao1337 has joined #ruby
mrfoto has quit []
luckyrub_ has quit [Ping timeout: 255 seconds]
SCHAAP137 has joined #ruby
sindork has joined #ruby
SCHAAP137 has quit [Excess Flood]
jao1337 has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
Gnubie_ has joined #ruby
SCHAAP137 has joined #ruby
heftig has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Excess Flood]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
freerobby has joined #ruby
sptq has quit [Ping timeout: 272 seconds]
SirFunk has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
gja has joined #ruby
gja has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
heftig has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
Takle has joined #ruby
SCHAAP137 has joined #ruby
RaCx_ has joined #ruby
SCHAAP137 has quit [Excess Flood]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
gccostabr has quit [Quit: See you later!]
RaCx has quit [Ping timeout: 265 seconds]
RaCx_ is now known as RaCx
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
wottam has quit [Ping timeout: 255 seconds]
kaspergrubbe has joined #ruby
siwica1 has joined #ruby
sptq has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
justin_pdx has joined #ruby
tejas has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
Haiiro is now known as Haiiro|Away
Photism has joined #ruby
RaCx has joined #ruby
ad_boot has joined #ruby
nobitanobi has joined #ruby
RaCx has quit [Client Quit]
nanoyak has joined #ruby
justinmburrous has joined #ruby
a_ has quit [Ping timeout: 260 seconds]
paulfm has joined #ruby
RaCx has joined #ruby
aclearma_ has joined #ruby
elektronaut has joined #ruby
xaxisx has quit [Quit: xaxisx]
gja has quit [Quit: This computer has gone to sleep]
tejas has quit [Client Quit]
elektronaut has quit [Ping timeout: 260 seconds]
siwica has quit [Ping timeout: 255 seconds]
arup_r has quit [Quit: Leaving.]
lmickh has quit [Remote host closed the connection]
rossgees_ has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
crdpink2 has quit [Quit: q term]
rossgeesman has joined #ruby
roolo has quit [Ping timeout: 240 seconds]
zeroNones has joined #ruby
p8952 has joined #ruby
sindork has joined #ruby
jao1337 has joined #ruby
jao1337 has quit [Excess Flood]
p8952 has quit [Client Quit]
dumdedum has quit [Ping timeout: 272 seconds]
JohnBat26 has joined #ruby
fabrice31 has joined #ruby
agjacome has quit [Quit: leaving]
ylluminarious has joined #ruby
levisbakalinsky| has quit [Ping timeout: 258 seconds]
Blizzy has joined #ruby
p8952 has joined #ruby
p8952 has left #ruby [#ruby]
aspires has quit []
jjasonclark has joined #ruby
gccostabr has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
skolman_ has quit [Remote host closed the connection]
levisbakalinsky has joined #ruby
skolman_ has joined #ruby
zeroNone_ has joined #ruby
ursooperduper has joined #ruby
shevy has joined #ruby
zeroNones has quit [Ping timeout: 260 seconds]
RaCx has joined #ruby
olivier_bK has joined #ruby
lampd1_ has joined #ruby
OffTheRails has joined #ruby
wottam has joined #ruby
lw has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crdpink has joined #ruby
lw has joined #ruby
RaCx_ has joined #ruby
zeroNone_ has quit [Client Quit]
rainfyre has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
zeroNones has joined #ruby
skolman_ has quit [Ping timeout: 246 seconds]
lw has quit [Read error: Connection reset by peer]
p8952 has joined #ruby
ghr has joined #ruby
RaCx has quit [Ping timeout: 255 seconds]
lampd1_ has quit [Ping timeout: 246 seconds]
tier has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 260 seconds]
skolman has joined #ruby
SpaceKookie has joined #ruby
TestTestTest has joined #ruby
lw has joined #ruby
cmoneylulz has joined #ruby
RaCx_ has quit [Ping timeout: 255 seconds]
lw has joined #ruby
heftig has joined #ruby
jhass is now known as jhass|off
wottam has quit [Ping timeout: 260 seconds]
renderfu_ has joined #ruby
hmsimha has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 245 seconds]
tier has joined #ruby
AlSquire has joined #ruby
maletor has joined #ruby
TestTestTest has quit [Quit: Page closed]
olivier_bK has quit [Ping timeout: 260 seconds]
bklane has joined #ruby
startupality has joined #ruby
tier has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 272 seconds]
Kricir has quit [Remote host closed the connection]
cmoneylulz has quit [Quit: WeeChat 0.4.2]
Kricir has joined #ruby
zeroNones has joined #ruby
Ankhers has quit [Remote host closed the connection]
lw has joined #ruby
startupality has quit [Client Quit]
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
RaCx has joined #ruby
lw has quit [Client Quit]
anaeem1 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
jhass|off is now known as jhass
Sawbones has left #ruby [#ruby]
nanoyak has quit [Quit: Computer has gone to sleep.]
klmlfl_ has joined #ruby
pskosinski_ has joined #ruby
rossgeesman has quit [Remote host closed the connection]
Kricir_ has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
entrenador has joined #ruby
pskosinski has quit [Ping timeout: 240 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
klmlfl has quit [Ping timeout: 240 seconds]
geekbri has quit []
banister has quit [Read error: Connection reset by peer]
hadifarnoud has quit [Ping timeout: 258 seconds]
banister has joined #ruby
chrishough has joined #ruby
aspires has joined #ruby
aclearma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Haiiro is now known as Haiiro|Away
aclearman037 has joined #ruby
xaxisx has joined #ruby
kamilc__ has joined #ruby
havenwood has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
sevvie has quit [Ping timeout: 244 seconds]
Pumukel has joined #ruby
havenwood has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
ivmx has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
lw has joined #ruby
sanguisdex has quit [Ping timeout: 260 seconds]
<gizmore>
i got a funny idea... turn two balance queries (one user +=, one user -=) into a single write query statement without creating additional data
danijoo has joined #ruby
cndiv has joined #ruby
banister_ has joined #ruby
jhass is now known as jhass|off
banister has quit [Read error: Connection reset by peer]
<gizmore>
oh nvm... i feel a bit dumb now
gauke has joined #ruby
M3M0CooL has joined #ruby
blackmes1 has joined #ruby
<csmrfx>
because this is neither rails nor db channel?
francisfish has joined #ruby
jespada has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
mikeg has joined #ruby
RaCx has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agjacome has joined #ruby
AlexRussia has joined #ruby
jimmyhoughjr has joined #ruby
Bira has joined #ruby
tvw has quit []
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier has joined #ruby
ivmx has left #ruby [#ruby]
renderfu_ has quit [Remote host closed the connection]
gravy_ has left #ruby [#ruby]
lbwski has quit [Ping timeout: 255 seconds]
renderful has joined #ruby
gravy_ has joined #ruby
rbrs has joined #ruby
awestroke has quit [Remote host closed the connection]
taptapdan has joined #ruby
jerius_ has joined #ruby
jhass|off is now known as jhass
lfox has joined #ruby
sanguisdex has joined #ruby
sanguisdex has left #ruby [#ruby]
benwoody has quit [Quit: benwoody]
Lewix has joined #ruby
lfox has quit [Client Quit]
twohlix has joined #ruby
jerius has quit [Ping timeout: 255 seconds]
cicloid is now known as aCicloid
levisbakalinsky has quit [Ping timeout: 258 seconds]
<kombi>
..that being the complete error message, I just can't make head or tail of it...
RaCx has joined #ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
banister_ is now known as banisterfiend
paulfm has quit [Client Quit]
beiter has joined #ruby
beiter has quit [Client Quit]
anaeem1 has quit [Remote host closed the connection]
<kombi>
csmrfx: a much higher version of rack is clearly among them..
Soda has joined #ruby
GPH|work has quit [Ping timeout: 260 seconds]
<csmrfx>
well
<csmrfx>
clearly it is not a version of rack that your bundler understands
<csmrfx>
or, what is generating that error
Darryl has quit [Quit: Connection closed for inactivity]
<csmrfx>
perhaps I need to consult a psychic here as well?
Akagi201 has joined #ruby
techsethi has quit [Quit: techsethi]
paulfm has joined #ruby
<csmrfx>
kombi are you sure you want help? perhaps you just want to tease us with this guessing game of your problem
<csmrfx>
(or perhaps this is an excercise for psychics)
<kombi>
cwmrfx: absolutely not, and I whish I could consult with a psychic for these kind of problems myself..
<csmrfx>
anyway, I think I'll rather go read on music-theory than guess at your probs
<csmrfx>
good luck!
monsieurp has quit [Quit: Lost terminal]
postmodern has joined #ruby
bklane has joined #ruby
BadQuanta has joined #ruby
monsieurp has joined #ruby
monsieurp has quit [Changing host]
monsieurp has joined #ruby
<kombi>
csmrfx: c7 #11 b13
M3M0CooL has quit []
francisfish has quit [Remote host closed the connection]
Akagi201_ has quit [Ping timeout: 250 seconds]
kobain has joined #ruby
<banisterfiend>
apeiros ping
<kombi>
csmrfx: what kind of information can I provide so it is possible to untangle for a ruby-knower? (which I am not)
a_ has joined #ruby
<kombi>
csmrfx: btw I recommend "The Rest Is Noise" by Alex Ross
vieq has quit [Ping timeout: 244 seconds]
lw has quit [Quit: s]
RaCx has quit [Quit: Computer has gone to sleep.]
jerius_ has quit []
levisbakalinsky has quit [Ping timeout: 258 seconds]
jerius has joined #ruby
nanoyak has joined #ruby
sinkensabe has joined #ruby
wottam has joined #ruby
mistermocha has joined #ruby
AlexRussia has quit [Remote host closed the connection]
levisbakalinsky has joined #ruby
ghr has joined #ruby
icarus has joined #ruby
AlexRussia has joined #ruby
segfalt has quit [Quit: Connection closed for inactivity]
skolman has quit [Remote host closed the connection]
rh1n0 has joined #ruby
skolman has joined #ruby
m8 has joined #ruby
{xenomorph} has quit [Ping timeout: 260 seconds]
bklane has quit [Remote host closed the connection]
nobitanobi has quit []
wottam has quit [Ping timeout: 250 seconds]
{xenomorph} has joined #ruby
bklane has joined #ruby
chrishou_ has joined #ruby
chrishou_ has quit [Client Quit]
nonks has joined #ruby
chrishou_ has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
djbkd has quit [Remote host closed the connection]
rh1n0 has quit [Client Quit]
ghr has quit [Ping timeout: 272 seconds]
tier_ has joined #ruby
chrishough has quit [Ping timeout: 255 seconds]
dawkirst has quit [Remote host closed the connection]
RaCx has joined #ruby
skolman has quit [Ping timeout: 255 seconds]
lw has joined #ruby
xaxisx has quit [Quit: xaxisx]
tier has quit [Ping timeout: 240 seconds]
russt has joined #ruby
skolman_ has joined #ruby
gregf has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bklane has quit [Remote host closed the connection]
zorak8 has joined #ruby
tejas has quit [Ping timeout: 240 seconds]
<csmrfx>
kombi: well, to enable others to help you
Xeago has quit [Remote host closed the connection]
bklane has joined #ruby
claymore has quit [Quit: Leaving]
chrishou_ has quit [Ping timeout: 240 seconds]
a_ has quit [Ping timeout: 260 seconds]
thsig has joined #ruby
RaCx has quit [Ping timeout: 260 seconds]
TejasDinkar has joined #ruby
tejas has joined #ruby
<shevy>
kombi this means you can not have the given gem installed
<csmrfx>
^ this should happen *every* time someone asks help with code, IMO
chrishough has joined #ruby
<csmrfx>
you would at the least need to describe what you are trying to do, which version of ruby, what OS, which libraries involved, pastie errors, source code, at the least the snippet that causes the error
gja has quit [Ping timeout: 265 seconds]
<kombi>
csmrfx: fair point! Just found out that one can install a specific version of a gem
<shevy>
the problem lies in when authors specify specific version like rack (~> 1.1.0)
<shevy>
in my opinion this is almost always abused
rossgeesman has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
<shevy>
they specify a restriction on usage of their gem
<csmrfx>
how do you mean "abused"?
<csmrfx>
"misused"?
shazaum has quit [Quit: Leaving]
bklane has quit [Ping timeout: 246 seconds]
thsig_ has quit [Ping timeout: 246 seconds]
<kombi>
csmrfx: but it seems I've gotten past that, now fighting with errors from Redmine (a project managment tool based on R'n'R)
xaxisx has joined #ruby
rossgeesman has quit [Ping timeout: 245 seconds]
a_ has joined #ruby
lw has quit [Quit: s]
Bira has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
x77686d has joined #ruby
bluenemo has quit [Quit: Verlassend]
x77686d has quit [Client Quit]
leizzer has joined #ruby
gsd has joined #ruby
mistermocha has quit [Remote host closed the connection]
<csmrfx>
kombi: great
Haiiro|Away is now known as Haiiro
tier_ has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
RaCx has joined #ruby
TejasDinkar has quit [Quit: This computer has gone to sleep]
tejas has quit [Quit: This computer has gone to sleep]
eka has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RaCx has quit [Quit: Computer has gone to sleep.]
allcentu1 has quit [Read error: Connection reset by peer]
sinequanon has joined #ruby
ghr has joined #ruby
allcentu1 has joined #ruby
jeer has quit [Ping timeout: 255 seconds]
RichardLitt has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
TeresaP has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 258 seconds]
mistermocha has joined #ruby
duncan1 is now known as dfedde
skolman_ has quit [Remote host closed the connection]
qmfnp has joined #ruby
lw has joined #ruby
skolman_ has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hackeron has quit [Ping timeout: 245 seconds]
hackeron has joined #ruby
jasooon has joined #ruby
tier has joined #ruby
Dwarf has joined #ruby
Deejay_ has joined #ruby
skolman_ has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
xymbol has quit [Quit: Be back later ...]
fabrice31 has joined #ruby
<sterns>
Hello, Server A is going to dump a list of 10,000 URLs (HTML pages) that need to be fetched into a mysql database. An array of worker servers will be configured to work that queue. Is ruby+Nokogiri one of the better solutions for the worker servers to perform this task? And secondly, is there a go-to solution for monitoring a work queue like this?
djbkd has joined #ruby
User458764 has joined #ruby
spyderman4g63 has joined #ruby
skolman_ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<ramfjord>
which, for instance, doesn't follow redirects automatically
<epitron>
it does need a lot of cleanup though, and they should really change their HTTP backend
levisbakalinsky has quit [Ping timeout: 244 seconds]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<epitron>
(i recommend the 'http' gem :)
<epitron>
the documentation needs work too
jasooon has quit [Ping timeout: 255 seconds]
<ramfjord>
"This Gem has the worst name in the history of SEO"
<ramfjord>
haha, no kidding
<ramfjord>
I've never heard of http, might check it out myself
spyderman4g63 has quit [Ping timeout: 258 seconds]
ta has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
bulters has quit [Ping timeout: 265 seconds]
User458764 has quit [Ping timeout: 240 seconds]
ta has quit [Read error: Connection reset by peer]
<epitron>
it's much nicer than Net::HTTP
lw has quit [Quit: s]
<epitron>
one really nice thing is that it streams the HTTP response
skullz has joined #ruby
<epitron>
(it has a streaming HTTP protocol parser)
<pipework>
Faraday is my favorite.
<epitron>
faraday doesn't do streaming though
<pipework>
I don't know if it streams the response though, haven't looked.
<epitron>
it's surprisingly rare for them to implement that, in ruby, for some reason
Es0teric_ has quit [Quit: Computer has gone to sleep.]
<epitron>
despite how easy it is to do with ruby blocks :)
<epitron>
http.get().each_chunk {|data| ... }
mistermocha has quit [Remote host closed the connection]
<epitron>
oh yeah, this is what bugged me about mechanize's redirects: "agent.redirect_ok = false"
Notte has joined #ruby
Gadgetoi- has joined #ruby
Gadgetoid_ has quit [Ping timeout: 244 seconds]
<epitron>
what an annoying option to remember
<skullz>
Hey guys, how can I get the element that has the lowest price from those who have the biggest quantity?
<csmrfx>
you mean, the value
<skullz>
This is the hash, @total = {6=>{:price=>#<BigDecimal:5a2c178,'0.5458E2',18(27)>, :quantity=>2, :products_by_meta=>{218=>1004}}, 5=>{:price=>#<BigDecimal:59dfcb0,'0.438E2',18(27)>, :quantity=>2, :products_by_meta=>{218=>1971}}}
<epitron>
agent.redirects = true; agent.follow_redirects = false; so much simpler
klmlfl_ has quit [Remote host closed the connection]
phrozen77 has quit [Ping timeout: 260 seconds]
<csmrfx>
skullz: are you familiar with "ri"?
zeroNones has joined #ruby
zeroNones has quit [Max SendQ exceeded]
<epitron>
skullz: i think you need a distance metric, since you have two dimensions now
<skullz>
csmrfx: nope
klmlfl has joined #ruby
<ramfjord>
or just sort by price -> total
{xenomorph} has quit [Ping timeout: 260 seconds]
<epitron>
a simple distance metric is to come up with some common units
<epitron>
then do euclidean distance
<csmrfx>
ok you want to install "ri", open your terminal, and type "ri Enumerable", "ri Enumerable#sort_by" -- and perhaps "ri Hash" too
<csmrfx>
hehe, great to see #ruby still has bright and helpful people!
<epitron>
i think you want a distance metric, though
<ramfjord>
good point
<epitron>
throw a negative sign in there!
<ramfjord>
mmm
pskosinski_ is now known as pskosinski
ptrrr has quit [Quit: ptrrr]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phrozen77 has joined #ruby
<skullz>
epitron: is that number theory?
<epitron>
no, it's just geometry
<skullz>
mmm
<epitron>
imagine a plane
<epitron>
price on one axis, quantity on the other
literary has joined #ruby
<literary>
Never mind.
<epitron>
you want to find everything in one corner of the graph
jjasonclark has joined #ruby
<literary>
Figured it out.
literary has quit [Client Quit]
<epitron>
right? :)
<sterns>
ramfjord: resque looks perfect! I'm not using mysql yet, so redis will be fine. Do you have experience with any of the providers listed here : http://en.wikipedia.org/wiki/Redis
alvaro_o has joined #ruby
ta has quit [Read error: Connection reset by peer]
<skullz>
yeah
n_blownapart has joined #ruby
<epitron>
so, you could graph it
<skullz>
Are you talking about simplex on 2d?
<epitron>
OR, you could come up with a formula that finds the distance between points
qmfnp has joined #ruby
luckyruby has joined #ruby
<epitron>
aka. a distance metric
ta has joined #ruby
<epitron>
then you can sort by distance from that ideal point
<ramfjord>
sterns: I've used redistogo
<ramfjord>
it's fin
<epitron>
(the ideal point being the corner you want)
<ramfjord>
e
jjasonclark has quit [Client Quit]
<csmrfx>
the reason why I simply referred to ri -docs -- the metric I can only guess at
tier has quit [Remote host closed the connection]
qmfnp has quit [Client Quit]
<ramfjord>
epitron: why does hierarchical sort not work?
tier has joined #ruby
<epitron>
ramfjord: because it's not weighing both values at the same time
<csmrfx>
which is better? 1000 of the $1 items or 400 of the $3 items?
rh1n0 has joined #ruby
<sterns>
epitron: ramfjord: Do you feel that the other solutions you mentioned are superior to nokogiri for the HTML fetching? All I'm doing with the files at the moment is writing them to disk and possibly into a RDB of some kind later.
<ramfjord>
but he needs to prefer weighing quantity to weighing price
<ramfjord>
I don't think it will help you donwload files
mleone has joined #ruby
<epitron>
ramfjord: so he wants to buy a lot of something, and he doesn't care what it costs?
<ramfjord>
sterns: nokogiri is a html parsing library?
<epitron>
sterns: mechanize is is better than nokogiri, because it includes nokogiri :)
<csmrfx>
sterns: I once made a scraper for a huge bunch of websites with nokogiri
<csmrfx>
it worked fine
fsapo has quit [Remote host closed the connection]
<epitron>
mechanize is nokogiri PLUS
nanoyak has quit [Quit: Lates.]
tier_ has joined #ruby
ohwhoa has joined #ruby
<ramfjord>
"how can I get the element that has the lowest price from those who have the biggest quantity?
<csmrfx>
hm, maybe I used open-uri
<sterns>
ramfjord: epitron: sorry, I meant to refer to typhoeus / hydra
jimmyy has joined #ruby
benwoody has quit [Quit: benwoody]
<sterns>
which is what I'm using now
jimmyy has quit [Max SendQ exceeded]
<epitron>
hydra is good if you wanna go nuts with downloads
<sterns>
too many gem names!
<skullz>
Indeed I should be using something more clever... but it's ok for a MVP
jimmyy has joined #ruby
jimmyy has joined #ruby
<epitron>
skullz: i still think you want to at least want a function that weights quantity and price
<csmrfx>
actually, your problem is simply to define a clean metric
<skullz>
the problem is, I need the most products I can get
<epitron>
-want to
<ohwhoa>
How to install unpacked ruby gem into system rubygems (without bundler and path option), also I need to put it in list when I type gem list. One solution is to install gem and then replace, but this is so shitty.
livcd has joined #ruby
<csmrfx>
epitron: did you use bundler?
jdj_dk has quit [Remote host closed the connection]
jdj_dk has joined #ruby
wottam has joined #ruby
<sterns>
epitron: Yes, I appreciate the concurrent request etc offered by typhoes / hydra. I'm not married to using ruby for this purpose. Do you think that hydra is one of the best solutions available for this purpose, regardless of language/stack?
jdj_dk has quit [Remote host closed the connection]
<epitron>
skullz: instead of giving the user a sorted list, you could graph all the values
ta_ has joined #ruby
<epitron>
skullz: then let them pick from a region in the chart... d3 is good for that
<livcd>
Hey guys. What is the best way to interact with a website's elements ? Like logging,clicking on buttons etc
paulfm has quit []
tier has quit [Ping timeout: 245 seconds]
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<csmrfx>
livcd: you mean, "scrape" a site?
<skullz>
epitron: I'm plotting this data on a table (request from client...)
<ramfjord>
skullz: If you just want an easy solution for the moment, try the code epitron or I pasted
aclearman037 has quit []
jhass is now known as jhass|off
<livcd>
csmrfx: yeah basically
ta has quit [Read error: Connection reset by peer]
startupality has joined #ruby
<epitron>
sterns: i dunno... i haven't used it. downloading a lot of stuff quickly is not usually the bottleneck :) you can always throw threads at the problem in ruby
<csmrfx>
livcd: how about you read on nokogiri?
<epitron>
skullz: tell the client you found a better solution :)
<epitron>
skullz: or do both! :D
<csmrfx>
livcd: unless you need a headless browser?
<csmrfx>
for testing purposes theres many things
paulfm has joined #ruby
<skullz>
both seems better (;
<epitron>
skullz: d3 takes a couple minutes to make work if you already have a data table
codecop has quit [Remote host closed the connection]
tier has joined #ruby
<csmrfx>
livcd: for testing sites selenium is common, theres headless browsers like capybara
<skullz>
then it's just to pick up the right chart
sevvie has joined #ruby
wottam has quit [Ping timeout: 250 seconds]
tier_ has quit [Ping timeout: 246 seconds]
Deejay_ has quit [Quit: Computer has gone to sleep.]
boombadaroomba has quit [Remote host closed the connection]
<livcd>
csmrfx: i don't think so...i need to interact with a web application which gets a stream of "items" and then i want to click on a button and fill certain forms
RaCx has joined #ruby
<sterns>
epitron: I don't know if I'll be able to do it, but I'm hoping to be able to scale up downloading 10000 pages in about 15 seconds. I can currently do about 3000 in 15 seconds now with a single non-optimized server.
<abstrakt>
csmrfx, I think the potential issue is he doesn't want the stuff that looks like erb to be interpreted
<abstrakt>
he may want the raw text version of the file
<abstrakt>
in which case, whatasunnyday you'll need to serve those basically as static assets
AlSquire has quit [Quit: This computer has gone to sleep]
nonks has joined #ruby
Stalkr_ has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
<abstrakt>
whatasunnyday, or you could try using the EJS gem to precompile them and serve that instead, either way the files will probably/basically go somewhere in your public/static assets folder
<whatasunnyday>
Sorry, let me clarify. erb :index returns a page and I just want the page as a string. Precompiling is pretty much what I want to do so I'll check out EJS.
justinmburrous has quit [Ping timeout: 250 seconds]
jheg has joined #ruby
mistermocha has joined #ruby
<csmrfx>
weird, I thought erb :index would return the page as a string 8D
AlSquire has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
ta_ has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
<abstrakt>
csmrfx, erb templates and ejs templates use the same basic <% %> syntax
SpaceKookie has joined #ruby
ta has quit [Read error: Connection reset by peer]
<abstrakt>
csmrfx, meaning erb will strip out the <% %>
tfitts has quit [Read error: Connection reset by peer]
kaspergrubbe_ has joined #ruby
tfitts has joined #ruby
<abstrakt>
whatasunnyday, incidentally i think there's a sinatra plugin for this
<whatasunnyday>
abstrakt, o rly
<csmrfx>
ok for some reason I didn't see the javascript mention
<abstrakt>
csmrfx, if he wants to deliver the <% etc so that javascript can use that for templating instead, he'll need to use some other method of delivery
mistermocha has quit [Remote host closed the connection]
VanillaGoat_ has quit [Ping timeout: 246 seconds]
riceandbeans has joined #ruby
<abstrakt>
whatasunnyday, hmm, no maybe not... I think you'll just need to use a background/watch task to run the compile task when your EJS files change
<abstrakt>
whatasunnyday, rails has automagic integration with EJS
<whatasunnyday>
okay cool, i can manage that
kaspergr_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
<mallu>
csmrfx we are using chef template for managing a config file. When a particular service restart it update this config file which cause chef to update the file again during chef-client run. I was hoping that somehow I can have chef template ignore the lines the service update on the config file
<mallu>
csmrfx
<abstrakt>
mallu, ask #chef ?
<abstrakt>
or is it #opscode
Pumukel has quit [Quit: ChatZilla 0.9.91 [Firefox 32.0.3/20140924083558]]
<mallu>
I was hoping that there is a way in ruby to ignore lines in erb
doodlehaus has quit [Remote host closed the connection]
<csmrfx>
well
skolman_ has joined #ruby
kenneth has joined #ruby
<csmrfx>
since you cannot comment them, how about using separate files
<shevy>
hmm we have .uniq
<shevy>
but do we have the opposite of it? as in, one that returns only those entries that are duplicates?
wottam has joined #ruby
bklane has joined #ruby
bklane has quit [Remote host closed the connection]
<shevy>
let me check that
<shevy>
that does not work :(
<shevy>
no
<shevy>
oh
bklane has joined #ruby
<csmrfx>
well isn't that just array minus the uniques
max96at is now known as max96at|off
bklane has quit [Read error: Connection reset by peer]
Notte has quit [Remote host closed the connection]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
jordsmi has quit [Quit: Connection closed for inactivity]
cicloid is now known as aCicloid
mistermocha has quit [Remote host closed the connection]
fumk has joined #ruby
bklane has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
Gadgetoid has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
fumk has joined #ruby
SpaceKookie has joined #ruby
AlexRussia has quit [Ping timeout: 246 seconds]
djstorm has quit [Ping timeout: 272 seconds]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
aCicloid is now known as cicloid
northfurr has quit [Quit: northfurr]
fumk has joined #ruby
abstrakt has quit [Quit: Leaving]
thumpba has quit []
bulters has quit [Ping timeout: 240 seconds]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
Soda has quit [Remote host closed the connection]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
fumk has joined #ruby
lampd1 has joined #ruby
fumk has quit [Max SendQ exceeded]
elektronaut has quit [Ping timeout: 260 seconds]
lw has joined #ruby
northfurr has joined #ruby
fumk has joined #ruby
maletor has quit [Read error: Connection reset by peer]
elektronaut has joined #ruby
dte has joined #ruby
chrishough has quit [Ping timeout: 260 seconds]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
davasaur_ has quit [Remote host closed the connection]
Atttwww has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
Azure has joined #ruby
dte is now known as mxrguspxrt
ramfjord has joined #ruby
wottam has joined #ruby
fumk has joined #ruby
devdazed has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
lampd1 has quit [Ping timeout: 272 seconds]
weemsledeux has joined #ruby
renderful has quit [Remote host closed the connection]
jeer has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
renderful has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
wottam has quit [Ping timeout: 255 seconds]
vieq has joined #ruby
Snerf_ has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
nonks has quit [Ping timeout: 260 seconds]
renderful has quit [Remote host closed the connection]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
dhardison has joined #ruby
sevvie has joined #ruby
mistermocha has joined #ruby
magikfx has joined #ruby
chrishough has joined #ruby
fumk has joined #ruby
mistermocha has quit [Remote host closed the connection]
coderdad has joined #ruby
fumk has joined #ruby
<mallu>
how can I escape : ?
<mallu>
I want to be able to do Time.now.strftime('%a' '%b' '%d' '%H':'%M':'%S' '%Z' '%Y') in a template but it doesn't like : between hour, minute and second
<zenspider>
it doesn't like it because it isn't valid ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
mattmcclure has joined #ruby
northfurr has quit [Quit: northfurr]
<mallu>
ok.. so how can I do it?
<zenspider>
mallu: why do you have many single quoted strings there?
<csmrfx>
mallu do you have ri installed?
<mallu>
zenspider it was complaining without it
<csmrfx>
$ ri Time.strftime is helpful
stunder has quit [Quit: Screw you guys I'm going home]
sailias has joined #ruby
coderdad has quit [Remote host closed the connection]
coderdad has quit [Remote host closed the connection]
<csmrfx>
>> Time.strftime("This is now %T")
<csmrfx>
>> Time.now.strftime("This is now %T")
<csmrfx>
lol typical of me
bthesorceror has quit [Ping timeout: 258 seconds]
<zenspider>
mallu: "it" == ruby. you need to learn the language to use it.
davasaurous has joined #ruby
<volty>
wasn't there and advanced regex gem ?
sepp2k has quit [Read error: Connection reset by peer]
<zenspider>
as you can see what volty put above, that's prolly not what you want
<volty>
an
<zenspider>
which means you need to write your string correctly... basic ruby syntax
<zenspider>
volty: prolly many. what do you need?
goodenough has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
<csmrfx>
my irb returns => "This is now 02:08:10"
jimbach has joined #ruby
sepp2k has joined #ruby
<volty>
zenspider: https://eval.in/206920, done but I wonder if there is some stuff with which I can write (almost) one-liners. etc etc
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider>
volty: key = cont[/^Keys=(.*)$/, 1]
<benzrf>
^K
<volty>
that one I forgot
<volty>
yap
<zenspider>
y = keys.split(...).map { |k| [k, url] }
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<zenspider>
also: for the love of god... no tabs. use 2 spaces per indent
<ghostmoth>
haha
<volty>
cat & paste prob.; thx
<dhardison>
i'm totally new to ruby and i need to write some test cases for this function: http://pastebin.com/3HKhVRGT what's the quickest way for me to get started?
statis has left #ruby [#ruby]
Haiiro|Away is now known as Haiiro
<csmrfx>
dhardison: read a ruby book?
levisbakalinsky has quit [Ping timeout: 272 seconds]
jimbach has quit [Ping timeout: 265 seconds]
Raboo has quit [Ping timeout: 258 seconds]
<dhardison>
csmrfx: that's a good idea but i need to get it done in a few hours
<zenspider>
dhardison: assuming you can ferret out what inject and reject mean, you should be able to write test cases on paper immediately
<volty>
zenspider: thx, but you cannot apply merge to an enumerator. Anyway the idea is right
<dhardison>
i think i got that part down - i read up on that, but the test case stuff i'm reading about loading up what sounds to me a lot of libraries to do it
<zenspider>
that's horribly written code, btw
<dhardison>
lol
<zenspider>
if that is homework, I'd question where it is coming from
<volty>
eh?
russt has quit [Quit: russt]
<zenspider>
volty: wasn't sure what y was in this ... oh, now I see it. :P
<zenspider>
you can do << tho ?
<volty>
i am expert for rudeful teachers :)
jottr has quit [Ping timeout: 265 seconds]
<volty>
yes, same as yield
<zenspider>
dhardison: loading up what exactly?
Takle has joined #ruby
<dhardison>
i downloaded rubymine and there's just a lot of folders and what not
<dhardison>
and i'm questioning how much of that i actually need.
<zenspider>
none of it
<zenspider>
obviously. most of us don't use rubymine
<zenspider>
if you have ruby installed, that's all you need
<zenspider>
any text editor will work. terminal to run.
jhass is now known as jhass|off
SpaceKookie has quit [Ping timeout: 260 seconds]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
<dhardison>
csmrfx: thanks for the video - im watching it now btw
<csmrfx>
I would install irb and ri
<csmrfx>
code examples past 8 minutes
jheg has quit [Quit: jheg]
cicloid is now known as aCicloid
sailias has quit [Quit: Leaving.]
heftig has quit [Ping timeout: 260 seconds]
<csmrfx>
(irb so you can test whatever, and ri to show docs)
<volty>
irb, ri, a nice quickref, and, above all, a nice book
Takle_ has joined #ruby
heftig has joined #ruby
tkuchiki has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
SpaceKookie has joined #ruby
_whitelogger has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
weemsledeux has joined #ruby
sbar_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
pu22l3r has quit [Remote host closed the connection]
_whitelogger has joined #ruby
tkuchiki has quit [Remote host closed the connection]
pu22l3r has joined #ruby
tkuchiki has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.0.1]
sepp2k has joined #ruby
echevemaster has joined #ruby
sailias has joined #ruby
davasaurous has quit [Remote host closed the connection]
wald0 has joined #ruby
<volty>
so, is there something advanced that can slurp into arrays ^Keys=(.*)$ and ^Query=(.*)$? (I am just curious what is out there, in the world of the gems).
phrozen77 has quit [Ping timeout: 260 seconds]
hmsimha has joined #ruby
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
jhass|off is now known as jhass
<csmrfx>
whats "slurp"
garbanotas has quit [Ping timeout: 272 seconds]
<zenspider>
volty: I've given you everything you need to do that in one line
phrozen77 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
<zenspider>
text[/regexp/, 1].split(/,/)
larissa has joined #ruby
c107 has quit [Remote host closed the connection]
fella7s has joined #ruby
<volty>
zenspider: I said at the beginning that I do not have problems -- that I am just curious
ghr has quit [Ping timeout: 240 seconds]
<volty>
I already modified my code (and thanked you)
sailias has quit [Client Quit]
emmesswhy has joined #ruby
KC9YDN has joined #ruby
boombadaroomba has left #ruby [#ruby]
goodenough has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 272 seconds]
icebourg has quit []
<csmrfx>
ri slurp
<csmrfx>
Nothing known about .slurp
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
sailias has joined #ruby
jasooon has joined #ruby
<volty>
i do not talk to strict context ppl, sorry csmrfx :)
nonks has quit [Ping timeout: 250 seconds]
thisguy133 has left #ruby [#ruby]
thisguy133 has joined #ruby
levisbakalinsky has joined #ruby
fella6s has quit [Ping timeout: 245 seconds]
<zenspider>
volty: so I'd add a method parse_keys(text, regexp) to wrap it up and make it obvious what it is for
<volty>
no no, i found it how, working on it (for fun, since tired and lazy)
<thisguy123>
is there a rails channel?
<volty>
cont.scan /^(Keys|Query)=(.*)$/
_whitelogger has joined #ruby
x77686d has joined #ruby
<apeiros_>
thisguy123: no. #rubyonrails is the rails channel. aka #ror and #rails
jasooon has quit [Ping timeout: 260 seconds]
nonks has joined #ruby
<apeiros_>
pong banisterfiend. sorry, was (and still am) cleaning my home office room :-S
graft has quit [Ping timeout: 255 seconds]
sedai has joined #ruby
davasaurous has joined #ruby
<thisguy123>
i get sent to ##namespace when i try to join #rubyonrails
<thisguy123>
sry, kind of an IRC noob
apeiros_ is now known as apeiros
sevvie has quit [Ping timeout: 250 seconds]
Takle_ has quit [Read error: Connection reset by peer]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
pu22l3r_ has joined #ruby
<zenspider>
volty: that's not going to give you what you want...
<apeiros>
thisguy123: you need to have your nick registered to join #ror
<apeiros>
thisguy123: /msg nickserv help register
<thisguy123>
thnx
thisguy123 has left #ruby [#ruby]
thisguy123 has joined #ruby
thisguy123 has left #ruby [#ruby]
thisguy123 has joined #ruby
hellangel7 has joined #ruby
<thisguy123>
still can't get in to #ror, I'm registered
x77686d has quit [Ping timeout: 272 seconds]
<volty>
zenspider: i'm fine, cont.scan(/^(Keys|Query)=(.*)$/).to_h, and will see after how to handle multiple keys
davasaurous has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 255 seconds]
<csmrfx>
maybe try with ##
pu22l3r has quit [Ping timeout: 246 seconds]
ad_boot has quit [Quit: ad_boot]
davedev24_ has quit [Read error: Connection reset by peer]
<volty>
(i'm going to collect them)
davedev24_ has joined #ruby
<apeiros>
thisguy123: registered and authenticated?
elektronaut has quit [Ping timeout: 260 seconds]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
mikeg has quit [Remote host closed the connection]
<thisguy123>
yep, it says I'm logged in
<apeiros>
hm, then you should be able to join
thisguy123 has left #ruby ["ruby"]
elektronaut has joined #ruby
thisguy123 has joined #ruby
thisguy123 is now known as thisguy1234
devdazed has quit [Quit: Bye]
bentanweihao has joined #ruby
startupality has quit [Quit: startupality]
_fumk has joined #ruby
_fumk has quit [Max SendQ exceeded]
kaspergr_ is now known as kaspergrubbe
davasaurous has joined #ruby
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
djbkd has quit [Remote host closed the connection]
jnylen has quit [Quit: WeeChat 1.0]
thisguy1234 has left #ruby [#ruby]
Bira has joined #ruby
fumk has quit [Ping timeout: 255 seconds]
sevvie has joined #ruby
jerematic_ has quit [Ping timeout: 272 seconds]
benwoody has joined #ruby
dx7_ has joined #ruby
thisguy123 has joined #ruby
bentanweihao has quit [Remote host closed the connection]
<volty>
i can't remember if there, and how if there: e.reduce(...) i receive { |accum, obj|, obj is a pair (an array), i want { |accum, k, v| but do not remember the syntax (if there at all)
<thisguy123>
It looks like im joining #ror then getting kicked back to a NickServ window? does that help at all?
fumk has joined #ruby
benwoody has quit [Client Quit]
dx7_ has quit [Remote host closed the connection]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
<ramfjord>
volty: I'm pretty sure there's no such method, but its only a little line to do
skolman_ has joined #ruby
djbkd has joined #ruby
skolman_ has quit [Remote host closed the connection]
lampd1 has joined #ruby
bklane has quit [Remote host closed the connection]
{xenomorph} has quit [Ping timeout: 260 seconds]
jhass is now known as jhass|off
_whitelogger has joined #ruby
fumk has quit [Max SendQ exceeded]
AlexRussia has joined #ruby
fumk has joined #ruby
<zenspider>
volty: { |acc, (k, v)| ... }
<volty>
ramfjord: thx, I remember there was talking about the syntax on how to do it directly in the params list, but maybe it was dropped, or my memory spoiled