fuhgeddaboudit has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Read error: Connection reset by peer]
<b3itz>
zenspider: whats ri?
oo_ has joined #ruby
razieliyo has quit [Quit: Saliendo]
<havenwood>
i8igmac: There are plenty of thread pool implementations to point you to if you're interested. Two related Ruby gems I'd suggest looking at that go way beyond thread pools are concurrent-ruby and celluloid.
<godd2>
well that script in and of itself is not valid Ruby
<b3itz>
>.<
enebo has quit [Quit: enebo]
jleishman has joined #ruby
<godd2>
because you started with 'else' on line 1
jxf has joined #ruby
sevenseacat has joined #ruby
<zenspider>
b3itz: ah. so install the ri package for the data. then you can actually use it
<b3itz>
i have an unless
Hobogrammer has quit [Read error: Connection reset by peer]
<havenwood>
b3itz: please paste code examples to https://gist.github.com/ like the chan topic says so we can comment on them, etc
<havenwood>
b3itz: name the file ending in .rb
<zenspider>
eh. gist vs pastbin doesn't matter if he's pasting invalid ruby
<havenwood>
b3itz: indent with two-spaces
<havenwood>
b3itz: you can set your editor to two-space soft tabs for ease
boombadaroomba has quit [Remote host closed the connection]
freerobby has joined #ruby
<godd2>
b3itz get rid of '.with_index' and remove ', idx'
<havenwood>
^ that!
mary5030 has joined #ruby
<havenwood>
and really you can process your lines just once, just map to what you want them as
<b3itz>
thanks
<havenwood>
b3itz: if you want to know if it starts with, use #start_with? not #include?, but i think have it already parsed so you're not doing that at all
<havenwood>
b3itz: downcased or upcased things compare nicely
<havenwood>
b3itz: sometimes you want an Array not a Hash
it0a has joined #ruby
rushed has joined #ruby
<godd2>
havenwood haven't you learned anything from Rich Hickey?? Arrays just complect things!!
<havenwood>
b3itz: it worries me you thought you wanted a Hash. i think look more into Rubies basic datastructures and when you'd want to use one.
<b3itz>
I'm using this nums = line.scan(/\d+/).map(&:to_i) and it works, but how exactly does it go about storing in nums with a string liek s 20 40
<havenwood>
godd2: :P
musl has quit [Quit: WeeChat 1.0.1]
<b3itz>
it looks like it writes nums as 20 the overwrites it as 40
kireevco has joined #ruby
apeiros has joined #ruby
<havenwood>
b3itz: because a Hash makes zero sense here
tus has quit []
mary5030 has quit [Ping timeout: 244 seconds]
<havenwood>
b3itz: why in the world are you using a Hash?
musl has joined #ruby
<b3itz>
havenwood: i though i needed a hash because of how i read the assignent.. i was wrong
<b3itz>
we will use it to keep track of the shapes we've processed
corehook has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 244 seconds]
Akuma has quit [Quit: So long sukkas!]
<b3itz>
"10 20".line.scan(/\d+/).map(&:to_i)
russt has quit [Quit: russt]
corehook has joined #ruby
corehook has quit [Read error: Connection reset by peer]
<havenwood>
b3itz: spend more time learning the basic data structures and the homework will become easier!
aspiers has joined #ruby
rshetty has joined #ruby
<rushed>
eam: right, so I guess I'm looking for a beginning of time / end of time, or Date.min / Date.max or something (or whatever is conventionally used in place of those)
<eam>
well that's hard because those values change depending on platform internals
<godd2>
b3itz one way to study the classes in ruby is to make flash cards for all of the most common methods
sinequanon has quit [Remote host closed the connection]
goodenough has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
mathias2 has quit [Ping timeout: 245 seconds]
M-Technic has quit [Quit: leaving]
wjimenez5271 has quit [Ping timeout: 255 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
wallerdev has joined #ruby
rushed has joined #ruby
mary5030 has joined #ruby
M-Technic has joined #ruby
elemenopy has joined #ruby
<elemenopy>
hey guys good evening , just wondering how you would think is best to get a count of items matching two parameters from 'sequel' in one line? like the sql query like 'select count(*) from xyztable where column1='a' and column2='b'
Dude007 has joined #ruby
Dude007 has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 245 seconds]
<elemenopy>
nvm its like XYZ.count
thomas has quit [Quit: Reconnecting]
amclain has joined #ruby
thomas has joined #ruby
<Cat_1>
Something like that
marcdel has joined #ruby
melik has quit [Quit: (null)]
adriancb has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
melik has joined #ruby
melik has quit [Client Quit]
adriancb has joined #ruby
<elemenopy>
connix is spamming me porn sites
<elemenopy>
not sure who to tell
charliesome has quit [Quit: zzz]
<Cat_1>
Some spam bots got banned for that earlier.
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has quit [Read error: Connection reset by peer]
takle has joined #ruby
<mozzarella>
is it good porn or shitty porn?
marcdel_ has joined #ruby
alex_the_designe has quit [Ping timeout: 255 seconds]
JoshGlzBrk has joined #ruby
marcdel has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
mary5030 has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
<Cat_1>
I ain't clicking on it
<Cat_1>
Probably bad porn filled with malware
mary5030 has joined #ruby
takle has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
Guest81656 has joined #ruby
dc_ has joined #ruby
djbkd has quit [Quit: My people need me...]
volty has quit [Quit: Konversation terminated!]
boombadaroomba has quit [Ping timeout: 256 seconds]
renderful has quit [Remote host closed the connection]
<mozzarella>
guys, is it possible to take every Xth item in an array?
<mozzarella>
is there an enumerable method that does that?
<Cat_1>
Yes
<Cat_1>
use either select or reject with a mod block
<mozzarella>
I'm all ears bro
rshetty has quit [Remote host closed the connection]
mark06 has joined #ruby
<Cat_1>
array.select { |a| a % 5 == 0 }
<Cat_1>
every item divisible by 5
<mozzarella>
it's not an array of numbers
jonr22 has quit [Remote host closed the connection]
<mozzarella>
but I guess I could use each_slice and use the last item in every slice
yetanotherdave has quit [Ping timeout: 258 seconds]
_maes_ has quit [Client Quit]
_maes_ has joined #ruby
fgo_ has joined #ruby
tyll has quit [Ping timeout: 245 seconds]
connix has quit [Ping timeout: 250 seconds]
_maes_ has quit [Client Quit]
_maes_ has joined #ruby
meinside has joined #ruby
_maes_ has quit [Client Quit]
tlarevo has joined #ruby
<elemenopy>
if i have a console based .rb file that i run manually currently. what would you suggest i do to make it run indefinitely (its already in infinite loop in code) upon startup?
<Cat_1>
what environment?
<elemenopy>
CentOS
<elemenopy>
just rc.local?
b3itz has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
<elemenopy>
nvm found some docs ty
i8igmac has quit [Ping timeout: 244 seconds]
Spami has quit [Quit: This computer has gone to sleep]
lkba has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
<godd2>
I wouldn't mind there being Enumerable#take_nth(n)
tlarevo has joined #ruby
Techguy305|2 has quit [Ping timeout: 264 seconds]
lampd1 has joined #ruby
<Cat_1>
Do you have something like Upstart in centOS?
i8igmac has joined #ruby
<elemenopy>
im not sure but i think i will make it a service or daemonize it
<elemenopy>
so i can do like 'service dataminer start'
<elemenopy>
yea i think it will be something like that. im running into a problem now with too many database connections. trying to find a way to make less 'connect' calls
<elemenopy>
it's more logistics and code review though for that type of problem
totic_ has joined #ruby
totic_ has left #ruby [#ruby]
totic has joined #ruby
<greenride>
On Yosemite, does anyone have problems with the command `gem install libv8 -v '3.16.14.3'`? I get an error message stating Unable to find a compiler officially supported by v8.
kireevco has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
wallerdev has quit [Quit: wallerdev]
Mars` has joined #ruby
<zenspider>
greenride: do you have a complier setup post-upgrade?
<Cat_1>
xcode-select --install ?
<zenspider>
cc --version
patrick99e99 has joined #ruby
<zenspider>
compiler even. damn.
<Cat_1>
I had to upgrade a whole bunch of things to get Yosemite to work
<zenspider>
I just had to install the command-line tools. worked great
<greenride>
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
<zenspider>
that's good. same as me.
<greenride>
That was the output of cc -version
<zenspider>
let's see what v8 wants
<greenride>
v8 wants
<greenride>
It is recommended to use GCC v4.4 or higher
magic__ has joined #ruby
<zenspider>
greenride: homebrew doesn't specify a particular compiler, so it should just work
<zenspider>
no patches either
<zenspider>
does seem to require something called gyp tho, so maybe it is a dependency thing?
<zenspider>
I dunno. you might want to just try `brew install v8` to test that out
cantonic has quit [Quit: cantonic]
<zenspider>
they are doing version 3.25.30 specificially tho
magic_ has quit [Ping timeout: 244 seconds]
patrick99e99 has quit [Ping timeout: 244 seconds]
<greenride>
zenspider: I installed v8 with brew, and that doesn't help.
<greenride>
zenspider: Does gem install libv8 -v '3.16.14.3' work for you?
<Cat_1>
I need an idea for a project...
<zenspider>
greenride: "that doesn't help" doesn't help
<sevenseacat>
lol
<zenspider>
if you successfully installed it via brew it DOES help. it tells you that you _can_
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
epitron has joined #ruby
i_s has joined #ruby
tagrudev has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
i_s has quit [Ping timeout: 256 seconds]
last_staff has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
byprdct has quit []
thoolihan has quit [Ping timeout: 258 seconds]
procat has joined #ruby
Channel6 has quit [Quit: Leaving]
timonv^ has joined #ruby
lampd1 has quit []
timonv_ has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
procat has quit [Ping timeout: 245 seconds]
boombadaroomba has joined #ruby
apeiros_ has quit [Remote host closed the connection]
<last_staff>
good morning everyone
apeiros has joined #ruby
thoolihan has joined #ruby
mistermocha has joined #ruby
dc_ has joined #ruby
skolman_ has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
<gr33n7007h>
led PARTAAAYYYYY! t = File.open('/dev/console'); loop { t.ioctl(0x4B32, rand(0..6)) }
kamil has joined #ruby
boombadaroomba has quit [Ping timeout: 250 seconds]
apeiros has quit [Ping timeout: 244 seconds]
dc_ has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
gaganjyot has quit [Read error: Connection reset by peer]
timonv^ has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
Macaveli has joined #ruby
oo_ has joined #ruby
Ulrike_Rayne has quit [Ping timeout: 244 seconds]
JohnBat26 has joined #ruby
thoolihan has quit [Ping timeout: 244 seconds]
wjimenez_ has quit [Remote host closed the connection]
bal has joined #ruby
thoolihan has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
russt has quit [Quit: russt]
lolmaus has joined #ruby
ndrei has joined #ruby
matrixise has quit [Ping timeout: 255 seconds]
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kartouch_ is now known as kartouch
aganov has joined #ruby
kamil has quit [Quit: Leaving...]
andikr has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
mistermocha has quit [Remote host closed the connection]
maestrojed has joined #ruby
sinequanon has joined #ruby
sinequan_ has joined #ruby
corehook has joined #ruby
sinequan_ has quit [Remote host closed the connection]
sinequan_ has joined #ruby
AliRezaTaleghani has quit [Ping timeout: 264 seconds]
sinequan_ is now known as sinequanon_
sinequanon_ has quit [Client Quit]
josephndenton has joined #ruby
charliesome has quit [Quit: zzz]
sinequanon has quit [Ping timeout: 265 seconds]
abuzze_ has joined #ruby
josephndenton has quit [Ping timeout: 258 seconds]
abuzze has quit [Ping timeout: 250 seconds]
fgo_ has joined #ruby
rshetty has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
AliRezaTaleghani has joined #ruby
fgo_ has quit [Ping timeout: 240 seconds]
mkaesz has joined #ruby
davedev24_ has quit []
corehook has quit [Remote host closed the connection]
Mars` has joined #ruby
corehook has joined #ruby
corehook has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 245 seconds]
adac has joined #ruby
seanp2k has quit [Quit: seanp2k]
<adac>
Why gets open-uri: "blob = open(ic.source_url).read" another encoding (utf8) then mechanize "blob = @agent.get(ic.source_url).content"? And how to set utf8 coding also on mechanize?
bigkevmcd has joined #ruby
jheg has joined #ruby
kireevco has quit [Quit: Leaving.]
beilabs has quit [Quit: Be back later ...]
fabrice31 has joined #ruby
olivier_bK has joined #ruby
terlar has joined #ruby
yfeldblum has quit [Remote host closed the connection]
timonv_ has joined #ruby
doritostains has quit [Quit: doritostains]
gmas has quit [Ping timeout: 265 seconds]
lidaaa has quit [Ping timeout: 244 seconds]
ringarin has joined #ruby
adriancb has joined #ruby
desp has joined #ruby
jheg has quit [Quit: jheg]
ringarin has quit [Client Quit]
michaeldeol has joined #ruby
jusmyth has quit [Quit: Leaving.]
adriancb has quit [Ping timeout: 256 seconds]
desp has quit [Quit: This computer has gone to sleep]
Joufflu has quit [Read error: Connection reset by peer]
ringarin has joined #ruby
nagaraj has joined #ruby
cleopatra has joined #ruby
TomyWork has joined #ruby
tlarevo has quit [Ping timeout: 240 seconds]
RitterJack has joined #ruby
tlarevo has joined #ruby
kamil has joined #ruby
banister has joined #ruby
rshetty has joined #ruby
corehook has joined #ruby
psy_ has joined #ruby
Xeago has joined #ruby
duncannz has joined #ruby
zorak8 has joined #ruby
fandi has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
Dude007 has joined #ruby
einarj has joined #ruby
abuzze_ has quit [Remote host closed the connection]
abuzze has joined #ruby
wigirc has joined #ruby
wigirc has quit [Max SendQ exceeded]
apeiros has joined #ruby
tvw has joined #ruby
nvdpl_ has joined #ruby
philwantsfish has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
wigirc has joined #ruby
Juanchito has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
andrewlio has joined #ruby
mathias2 has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 264 seconds]
timonv_ has quit [Remote host closed the connection]
i_s has joined #ruby
nagaraj has quit [Quit: nagaraj]
fgo_ has joined #ruby
<gr33n7007h>
(pry):5: [BUG] Segmentation fault at 0x00000000000101 2.1.4 very buggy
i_s has quit [Ping timeout: 272 seconds]
rushed has quit [Quit: rushed]
ghr has joined #ruby
tlarevo has quit [Remote host closed the connection]
fandi has joined #ruby
vt102 has quit [Ping timeout: 265 seconds]
fgo_ has quit [Ping timeout: 264 seconds]
TP4MyBunghole has joined #ruby
<Hanmac>
gr33n7007h: depends ... what have you done in your code?
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
fgo_ has joined #ruby
otherj has quit [Quit: .]
nonks has quit [Ping timeout: 250 seconds]
fgo_ has quit [Ping timeout: 258 seconds]
reinaldob has joined #ruby
arup_r has joined #ruby
emmesswhy has joined #ruby
matrixise has joined #ruby
rippa has joined #ruby
ta__ has quit [Read error: Connection reset by peer]
timonv_ has quit [Remote host closed the connection]
ta has joined #ruby
arup_r_ has joined #ruby
workmad3 has joined #ruby
<arup_r_>
Any body using Amazon's DynamoDB locally ? I am looking for a way to store the credentials there... But not getting the way to do that
troulouliou_dev has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
ikaros has joined #ruby
ta_ has joined #ruby
arup_r has quit [Ping timeout: 256 seconds]
pipework has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
blackmesa has joined #ruby
ta has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
pipework has joined #ruby
pipework has quit [Changing host]
pipework has joined #ruby
rodfersou has joined #ruby
shock_one has joined #ruby
AndChat| has quit [Ping timeout: 244 seconds]
banister has joined #ruby
marr has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
n3phos has joined #ruby
takle has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 250 seconds]
coderhs has quit [Ping timeout: 272 seconds]
Dude007 has joined #ruby
otherj has joined #ruby
kamil has quit [Disconnected by services]
gaussblurinc1 has quit [Read error: Connection reset by peer]
gaussblurinc11 has joined #ruby
oo_ has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
oo_ has joined #ruby
takle has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
wjimenez5271 has joined #ruby
ta has joined #ruby
ta has quit [Read error: Connection reset by peer]
beilabs_ has joined #ruby
charliesome has joined #ruby
gccostabr has joined #ruby
ta has joined #ruby
fandi has quit [Remote host closed the connection]
wjimenez5271 has quit [Ping timeout: 244 seconds]
kaspergrubbe has quit [Quit: leaving]
kaspergrubbe has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
kaspergrubbe is now known as Guest25509
Guest25509 has quit [Client Quit]
timonv_ has joined #ruby
Spami has joined #ruby
ta_ has joined #ruby
kaspergr1bbe has joined #ruby
ptrrr has quit [Quit: ptrrr]
kaspergr1bbe has quit [Client Quit]
elaptics is now known as elaptics`away
kaspergr1bbe has joined #ruby
ta has quit [Ping timeout: 250 seconds]
i_s has joined #ruby
takle has quit [Read error: Connection reset by peer]
takle has joined #ruby
elaptics`away is now known as elaptics
sarkis has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
TPBallbag has quit [Remote host closed the connection]
Hightower_ has quit [Quit: There's nothing dirtier then a giant ball of oil]
i_s has quit [Ping timeout: 264 seconds]
sarkis has quit [Ping timeout: 265 seconds]
Hightower_ has joined #ruby
mikepack has joined #ruby
bascht has quit [Quit: WeeChat 0.4.2]
Spami has quit [Quit: This computer has gone to sleep]
adac has quit [Remote host closed the connection]
bascht has joined #ruby
n008f4g_ has joined #ruby
kedare has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
takle has quit [Ping timeout: 272 seconds]
bascht has quit [Client Quit]
bascht has joined #ruby
nonks has joined #ruby
tokik has joined #ruby
Jet4Fire has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
fgo_ has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
czaks has quit [Quit: SERVER CHANGE]
rdark has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
ldnunes has joined #ruby
fgo_ has quit [Ping timeout: 245 seconds]
TPBallbag has joined #ruby
ta has joined #ruby
ta_ has quit [Ping timeout: 272 seconds]
ptrrr has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
rkalfane has joined #ruby
rkalfane has quit [Client Quit]
siwica has quit [Ping timeout: 265 seconds]
drawingthesun has joined #ruby
dc_ has joined #ruby
charliesome has quit [Quit: zzz]
<Jet4Fire>
Hello guys!
<soahccc>
I have a ruby application here (opengl) and it's kindof not very performant. Without dissecting the code and putting benchmarks all over the place: Is there a quick way to see which part of the application is creating the load?
<soahccc>
Thanks, I think I worked with ruby-prof once. I have this thought in my head that all these tools were 1.8 only but this apparently is not the case :)
dc_ has quit [Ping timeout: 244 seconds]
takle has joined #ruby
alex88 has quit [Remote host closed the connection]
kaspergr1bbe has quit [Quit: leaving]
kaspergr1bbe has joined #ruby
kaspergr1bbe has quit [Client Quit]
kaspergr1bbe has joined #ruby
shock_one has quit [Quit: Be back later ...]
anaeem1 has quit [Remote host closed the connection]
agjacome has joined #ruby
shock_one has joined #ruby
alex88 has joined #ruby
anaeem1 has joined #ruby
Guest81656 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jet4Fire has quit [Quit: leaving]
alex88 has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
kaspergr1bbe has quit [Quit: leaving]
kaspergrubbe has joined #ruby
ikaros has quit [Quit: Ex-Chat]
kaspergrubbe is now known as Guest98929
workmad3 has joined #ruby
Guest98929 has quit [Client Quit]
kaspergr1bbe has joined #ruby
aspiers has joined #ruby
kaspergr1bbe has quit [Client Quit]
kaspergr1bbe has joined #ruby
fsapo has joined #ruby
Pip has left #ruby ["Leaving"]
coderhs has joined #ruby
jusmyth has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
jusmyth has left #ruby [#ruby]
arup_r_ has quit [Remote host closed the connection]
otherj has quit [Quit: .]
NoNMaDDeN has joined #ruby
otherj has joined #ruby
bluenemo has joined #ruby
takle has quit [Ping timeout: 272 seconds]
takle_ has joined #ruby
krz has quit [Ping timeout: 256 seconds]
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
fabrice31 has joined #ruby
takle_ has quit [Read error: Connection reset by peer]
alex88 has quit [Remote host closed the connection]
alex88 has joined #ruby
moritzs has joined #ruby
takle has joined #ruby
sevenseacat has joined #ruby
tvw has joined #ruby
patrick99e99 has joined #ruby
xrr has joined #ruby
takle has quit [Read error: No route to host]
moritzs has quit [Ping timeout: 250 seconds]
davedev24_ has joined #ruby
arup_r has joined #ruby
damic has quit []
patrick99e99 has quit [Ping timeout: 245 seconds]
thsig has joined #ruby
<klap>
Does Enumerable#inject fold left, or right?
rdark has quit [Quit: leaving]
rdark has joined #ruby
rdark has quit [Client Quit]
rdark has joined #ruby
_5kg has joined #ruby
fgo_ has joined #ruby
<gaussblurinc11>
what's could go wrong? bundler search gems in @global gemset (where it was installed), but I use 'rvm gemset use MyGemset && bundle exec ruby task.rb'
<arup_r>
If I use AWS.config(use_ssl: false, dynamo_db: { api_verison: '2012-08-10', endpoint: 'localhost', port: '8000' }, credential_provider: provider) .. then getting error as
<arup_r>
AWS::DynamoDB::Errors::InvalidAction: DynamoDB Local does not support v1 API.
<arup_r>
Which one then it supports ?
<arup_r>
Noobdog: ^^
krz has joined #ruby
takle has joined #ruby
<workmad3>
arup_r: if you installed the gem before they added that class then your Gemfile will be locked to an older version
<workmad3>
arup_r: you'll need to do a 'bundle update aws-sdk' to get the latest version installed and locked in your Gemfile
<arup_r>
I did bundle install.. and previous issue gone
<arup_r>
Ok
<arup_r>
But install resolved the issue
<Noobdog>
arup_r have you tried the other api_version
<arup_r>
Which one it is?
<Noobdog>
i think its '2011-12-05' from memory
<arup_r>
I have 25 tabs opened for this set up.. I am lost now.. :-(
<Noobdog>
2012 is the lastest one
<arup_r>
ok
Timgauthier has joined #ruby
<arup_r>
Let me try it... Noobdog
Timgauthier has quit [Max SendQ exceeded]
xrr has quit []
arup_r_ has joined #ruby
shazaum has joined #ruby
<arup_r_>
workmad3: Thanks for your suggestion.. I didn't know that
alex88 has quit [Remote host closed the connection]
sarkis has quit [Ping timeout: 265 seconds]
alex88 has joined #ruby
KC9YDN-2 has quit [Client Quit]
VanillaGoat_ has joined #ruby
KC9YDN has quit [Ping timeout: 258 seconds]
hamakn has joined #ruby
takle has quit [Remote host closed the connection]
fgo has joined #ruby
VanillaGoat__ has quit [Ping timeout: 255 seconds]
gccostabr has quit [Quit: See you later!]
nonks has joined #ruby
vsipuli has joined #ruby
rshetty has joined #ruby
fgo_ has quit [Ping timeout: 245 seconds]
kasperti_ has joined #ruby
fgo_ has joined #ruby
<vsipuli>
Out of curiosity, how does one define methods that take their arguments enclosed in brackets, like Dir["*"]?
<vsipuli>
Using "def foo *args; p args; end" works, but it does not seem to be equivalent to Dir["*"], because foo(["*"]) works, but Dir(["*"]) gives an error.
<shevy>
vsipuli the name of the method should be [] or :[] respectively
<shevy>
I think Dir[] is equivalent to Dir.[]
<shevy>
hmm not quite
<vsipuli>
shevy: So the Ruby parser has some special case handling for that construct, invoking the method named "[]" in that case?
<shevy>
can't answer that right now, I have to understand why Dir.[] is not wanted first
<shevy>
probably I forgot something
tyll_ is now known as tyll
mikepack has quit [Ping timeout: 240 seconds]
alex88 has quit [Remote host closed the connection]
dawkirst has joined #ruby
matchaw_ has joined #ruby
matchaw has quit [Ping timeout: 244 seconds]
doodlehaus has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
takle_ has joined #ruby
wpp has joined #ruby
<klap>
Why does JRuby have a differemt LOAD_PATH? It also contains .
panini has joined #ruby
rudisimo has joined #ruby
vimer has joined #ruby
<rpag>
klap, 1.9 stopped including '.' on the $LOAD_PATH
<rpag>
maybe you're running in 1.8 mode?
vimer has quit [Client Quit]
PierreRambaud has joined #ruby
psy_ has joined #ruby
<workmad3>
vsipuli: Dir["whatever"] is syntax sugar for Dir.[]("whatever")
tvw has quit [Ping timeout: 250 seconds]
<workmad3>
vsipuli: that is, call the method '[]' with the argument "whatever"
<vsipuli>
workmad3: Thanks. Are there any other similar cases of syntax sugar?
rudisimo has quit [Remote host closed the connection]
<vsipuli>
(Or are they listed in some documentation?)
<workmad3>
vsipuli: there probably is a list somewhere, but the other main cases are all similar in that they're operator overloads
<workmad3>
vsipuli: e.g. 'class Foo; def bar=(new_value); end; end' gives you the ability to do 'Foo.new.bar = "new" '
<workmad3>
vsipuli: and defining a method +, -, *, /, etc. let you overload operators for your own objects
kasperti_ has quit []
takle_ has quit [Ping timeout: 250 seconds]
<workmad3>
vsipuli: so yes, that does mean that '1 + 2' can be thought of as syntax sugar for '1.+(2)' in ruby ;)
takle_ has joined #ruby
<workmad3>
mmm, lunchtime
workmad3 is now known as wm3|away
<vsipuli>
Is there any consensus on this kind of operator overloading being a desirable feature or not? It makes the syntax more terse (you don't need to write full method invocations each time), but on the other hand I sometimes find these operator overloads surprising, not realizing the language default has been overridden.
godd2 has joined #ruby
<tobiasvl>
in ruby it's used quite a lot
i0n has quit [Quit: snooze]
St1gma has quit [Read error: Connection reset by peer]
alem0lar1 has joined #ruby
nateberkopec has joined #ruby
decoponyo has joined #ruby
St1gma has joined #ruby
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
anaeem1 has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
decoponio has quit [Ping timeout: 265 seconds]
lkba has joined #ruby
spyderman4g63 has joined #ruby
unCork has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
Cork has quit [Ping timeout: 265 seconds]
unCork is now known as Cork
hmsimha has quit [Ping timeout: 255 seconds]
krz has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
last_staff has quit [Quit: last_staff]
<shevy>
is it better to do this:
<shevy>
string.delete!('#')
<shevy>
or this
<shevy>
string.delete!('#') if string.include? '#'
<jhass>
the former
charliesome has joined #ruby
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
Paradox has quit [Ping timeout: 272 seconds]
timgauthier_away has quit [Max SendQ exceeded]
dc_ has joined #ruby
aclearman037 has joined #ruby
banister has joined #ruby
Timgauthier has joined #ruby
sarkis has joined #ruby
sarkis has quit [Changing host]
sarkis has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
Timgauthier has quit [Max SendQ exceeded]
<shevy>
hmm
<shevy>
I guess it will only modify in the first case if that character token can be found right?
sk87 has joined #ruby
<tobiasvl>
yes
<tobiasvl>
of course
<tobiasvl>
it won't delete anything else, that would be weird ;)
sarkis has quit [Ping timeout: 244 seconds]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
Timgauthier has joined #ruby
rshetty has quit [Remote host closed the connection]
User458764 has joined #ruby
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
<shevy>
yeah
<shevy>
I wondered if the second variant would be faster
graydot has joined #ruby
Timgauthier has quit [Client Quit]
beef-wellington has joined #ruby
jimbach has joined #ruby
jimbach has quit [Remote host closed the connection]
duplex has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
duplex has joined #ruby
mrfoto_ has joined #ruby
<gaussblurinc1>
guys, I have gem minitest with version 4.7.5, but my app required minitest 5.1.2 or later, how to fix this problem IF minitest installed in global gemset and i want to update this gemset to later version of minitest?
nonks has quit [Ping timeout: 250 seconds]
mrfoto has quit [Ping timeout: 255 seconds]
alex88 has joined #ruby
pen has quit []
<rpag>
gaussblurinc1, use bundler, keep a Gemfile, and use gem 'minitest', '~> 5.1' in the Gemfile
<rpag>
run bundle
ptrrr has quit [Quit: ptrrr]
razieliyo has joined #ruby
cantonic has joined #ruby
<godd2>
shevy it depends. it depends on how long the string is and how likely it is to contain the substr you care about.
Xeago has joined #ruby
Tuxero has joined #ruby
<godd2>
if it's likely to contain the #, then you might as well not check, since checking would only, on average, add computation
pen has joined #ruby
<godd2>
but the amount of computation difference is pretty tiny
<godd2>
so unless you're doing this for big data (and then I would ask why youre using ruby), id say yeah, just go without the include
Morkel has quit [Ping timeout: 265 seconds]
Xeago_ has quit [Ping timeout: 250 seconds]
takle_ has quit [Remote host closed the connection]
<Hanmac>
gaussblurinc1: even without bundler or rvm or something like that you can install multiple version of one gem
benzrf|offline is now known as benzrf
paulfm has joined #ruby
kobain has joined #ruby
psy_ has quit [Ping timeout: 264 seconds]
ptrrr has joined #ruby
mrfoto_ is now known as mrfoto
vsipuli has quit []
jenrzzz_ has quit [Ping timeout: 245 seconds]
pen has quit []
pen has joined #ruby
jenrzzz has joined #ruby
AliRezaTaleghani has quit [Quit: Leaving.]
pen has quit [Client Quit]
wm3|away has quit [Ping timeout: 255 seconds]
pen has joined #ruby
abuzze_ has quit [Remote host closed the connection]
Tuxero has quit [Quit: Tuxero]
abuzze has joined #ruby
dorei has joined #ruby
dblessing has joined #ruby
dblessing has quit [Client Quit]
abuzze_ has joined #ruby
takle has joined #ruby
<shevy>
godd2 I am using ruby because it rocks!!!
cleopatra has quit [Ping timeout: 264 seconds]
Dude007 has quit [Remote host closed the connection]
mathias2 has quit [Ping timeout: 264 seconds]
<godd2>
haha I think you know I agree with you
Dude007 has joined #ruby
oo_ has joined #ruby
pen has quit []
abuzze has quit [Ping timeout: 255 seconds]
tlarevo_ has quit [Remote host closed the connection]
rudisimo has joined #ruby
pen has joined #ruby
melik has joined #ruby
zacts has quit [Ping timeout: 245 seconds]
<shevy>
I don't really have big data godd2
<shevy>
I am not the next twitter
<shevy>
once I wanted a huge collection of video stuff
<shevy>
then I realized... why do I keep trash videos
<shevy>
so I started to discard like 80%
jenrzzz has quit [Ping timeout: 256 seconds]
<shevy>
after 10 years I am like at less than 200 videos
<shevy>
the jungle book is one that will remain though!
<shevy>
the monkey song is one of the coolest songs ever
fsapo has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
jpierre03 has quit [Quit: -]
jeremy04 has joined #ruby
iwishiwerearobot has quit [Quit: Be back later ...]
neredsenvy has joined #ruby
sprihodko has joined #ruby
iwishiwerearobot has joined #ruby
cpruitt has joined #ruby
<neredsenvy>
https://gist.github.com/anonymous/e623ba7cb5084024e79d Why is my error attribute never set. The GET request raises 404 Exception the rescue should set the error attribute when i try to access the error message I get nothing using user.error
davedev24_ has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<neredsenvy>
Even with just rescue instead of rescue => e
<shevy>
neredsenvy what is an attribute
<neredsenvy>
string
ramfjord has joined #ruby
<cpruitt>
Maybe a dumb question: I’m very familiar with the *result* of class << self. I do not, however fully understand what the << is, is called, or what it is specifically doing. Anyone feel like giving a quick explaination?
<shevy>
this code is not any good neredsenvy
<shevy>
@error is an instance variable
<shevy>
typically they get initialized inside def initialize
<shevy>
or in another method
<shevy>
in your example, you put it right onto the class level
sailias has joined #ruby
<neredsenvy>
register method is called after object is initialized and it sets the variable on the instance of that object should be able to retrieve it no ?
mikepack has joined #ruby
<shevy>
I do not see where register method is called
<shevy>
can you show me the line where it is called?
<neredsenvy>
shevy: I create a user object user = User.new fill out the fields call validation method to see if it's valid than I call user.register this is all in my controller
<neredsenvy>
separate calss
last_staff has joined #ruby
oleo has joined #ruby
mathias2 has joined #ruby
<shevy>
what are "fields call validation method"
<shevy>
by the way, register() seems to always return false
<neredsenvy>
but because the api is wrong when calling register method it should raise 404Exception when that happens I need to set the error message and return false
pen has quit []
doodlehaus has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
<shevy>
this sounds very railsy
beef-wellington has joined #ruby
AlSquirrel has joined #ruby
<neredsenvy>
shevy: I know for now. When I call the register method it has to return false so I know to get the error message
<gaussblurinc1>
ok, how to run script with bundle exec with :production gems group?
pen has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
bMalum has joined #ruby
lxsameer has quit [Quit: Leaving]
mikecmpb_ has joined #ruby
<gaussblurinc1>
story: some of the gems needed minitest 5.4.2 and they all located in :development/:test group. I don't want to install them on production machine, but I need `bundle exec ruby` command to start some tasks
shredding has joined #ruby
takle has quit [Remote host closed the connection]
larissa has joined #ruby
mikecmpbll has quit [Ping timeout: 256 seconds]
shortCircuit__ has quit [Remote host closed the connection]
gaganjyot has quit [Ping timeout: 255 seconds]
ferr has joined #ruby
takle has joined #ruby
TPBallbag has quit [Remote host closed the connection]
prosper_ has joined #ruby
danjordan has left #ruby [#ruby]
phutchins has joined #ruby
psy_ has joined #ruby
max96at|off is now known as max96at
mrfoto has quit []
oo_ has quit [Remote host closed the connection]
davedev24_ has joined #ruby
devdazed has joined #ruby
devdazed has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
sprihodko has quit [Quit: (null)]
devdazed has joined #ruby
rshetty has joined #ruby
dangerousdave has joined #ruby
prosper_ has quit [Ping timeout: 258 seconds]
adriancb has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
crack_user has joined #ruby
pen has quit []
<crack_user>
hello guys
zB0hs has joined #ruby
<crack_user>
recently I saw a gem to disable and enable system parts
nonks has joined #ruby
<crack_user>
but a could remember the name
<crack_user>
anyone knows?
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
earfin has joined #ruby
pen has joined #ruby
prosper_ has joined #ruby
Channel6 has joined #ruby
rodfersou has quit [Quit: leaving]
dANO has joined #ruby
rodfersou has joined #ruby
iamjarvo has joined #ruby
agjacome has quit [Quit: leaving]
wm3|away is now known as workmad3
nonks has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
sarkis has joined #ruby
last_staff has quit [Quit: last_staff]
<pontiki>
a little too vague, crack_user
<pontiki>
what sort of system?
<crack_user>
so the fucionally of gem is you can scope parts of your application an them enable and disable them
TPBallbag has joined #ruby
zorak8 has joined #ruby
<crack_user>
I saw this recently in HN or reddit
zacstewart has joined #ruby
benzrf|offline is now known as benzrf
TPBallbag has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
mary5030 has joined #ruby
Kricir has joined #ruby
sarkis has quit [Ping timeout: 240 seconds]
xwq17 has quit [Quit: leaving]
lkba has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Akuma has joined #ruby
Akuma has quit [Client Quit]
ptrrr has joined #ruby
sprihodko has joined #ruby
russt has joined #ruby
Akuma has joined #ruby
charliesome has quit [Quit: zzz]
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
cantonic has quit [Client Quit]
rodfersou has quit [Quit: leaving]
rodfersou has joined #ruby
jlast has joined #ruby
havenwood has joined #ruby
swilr has quit [Ping timeout: 272 seconds]
swilr has joined #ruby
mikeg has quit [Ping timeout: 265 seconds]
tagrudev has quit [Remote host closed the connection]
<shevy>
my brain is slow - today I must not molest it. I learned that print is actually $stdout ... actually, I have used $stdin.gets before too... weird that I never thought that the other methods also exist on these ... uhmm objects? is $stdout an object?
sambao21 has quit [Quit: Computer has gone to sleep.]
Xeago_ has joined #ruby
nvdpl_ has quit [Quit: ZZZzzz…]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nvdpl has joined #ruby
nvdpl has quit [Max SendQ exceeded]
Hobogrammer has quit [Ping timeout: 244 seconds]
sambao21 has joined #ruby
CustosL1men has joined #ruby
i_s has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 265 seconds]
i_s has joined #ruby
AFKGeek has joined #ruby
Timgauthier has joined #ruby
fabrice31 has quit [Remote host closed the connection]
godd2 has quit [Remote host closed the connection]
agjacome has joined #ruby
duggiefresh has joined #ruby
Cache_Money has joined #ruby
i_s has quit [Ping timeout: 244 seconds]
wjimenez5271 has joined #ruby
benzrf is now known as benzrf|offline
dkb20k has quit [Remote host closed the connection]
dANO_ has joined #ruby
tobago has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 258 seconds]
jfran has joined #ruby
AlexRussia has joined #ruby
bahar_ is now known as bahar
mikepack has joined #ruby
dANO has quit [Ping timeout: 244 seconds]
User458764 has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
atomical has quit [Ping timeout: 258 seconds]
timgauthier_away is now known as Timgauthier
<shevy>
who was the guy with the IRC mud
<shevy>
all I remember is that his nick started with a g
mikecmp__ is now known as mikecmpbll
russt has quit [Ping timeout: 244 seconds]
atomical has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
jusmyth has joined #ruby
dANO has joined #ruby
User458764 has joined #ruby
Xeago_ has quit [Ping timeout: 250 seconds]
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
terlar has quit [Ping timeout: 255 seconds]
jusmyth has quit [Ping timeout: 255 seconds]
i0n has joined #ruby
psy_ has quit [Remote host closed the connection]
GeorgesLeYeti has joined #ruby
dANO_ has quit [Ping timeout: 272 seconds]
aganov has quit [Quit: Leaving]
mskaesz has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
lkba has joined #ruby
zacts has joined #ruby
abuzze_ has quit [Remote host closed the connection]
abuzze has joined #ruby
mkaesz has quit [Ping timeout: 250 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
takle has quit [Remote host closed the connection]
tier has quit [Ping timeout: 255 seconds]
Hijiri has quit [Ping timeout: 244 seconds]
sargas has joined #ruby
tokik has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
i0n_ has joined #ruby
sprihodko has quit [Quit: (null)]
takle has joined #ruby
i0n has quit [Ping timeout: 264 seconds]
i0n_ is now known as i0n
wldcordeiro_ has joined #ruby
sarkis has joined #ruby
rippa has joined #ruby
tier has joined #ruby
postmodern has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
sarkis has quit [Client Quit]
jimmyhoughjr has joined #ruby
gsd has joined #ruby
ferno has joined #ruby
<ferno>
Hi! Is there any data structure in ruby that implements some sort of dynamic array, that allows one to pop off the first element while adding elements at the end, without needing to constantly "move" items up?
maestrojed has joined #ruby
<ferno>
I need a queue of sorts, but within a single thread.
<workmad3>
ferno: Array
CustosL1men has quit [Ping timeout: 244 seconds]
<shevy>
hehehe
<ferno>
Really? Isn't deleted the 0th element expensive?
<ferno>
deleting*
wjimenez5271 has quit [Remote host closed the connection]
<ferno>
workmad3: Any idea on performance when constantly deleting element 0 + adding elements?
anaeem1 has joined #ruby
<workmad3>
ferno: no... but I doubt it's significant compared to the overhead of just using ruby ;)
deepy has quit [Ping timeout: 245 seconds]
j416 has quit [Ping timeout: 245 seconds]
sargas has quit [Quit: This computer has gone to sleep]
<ferno>
I think I'll go with a hash with some snazzy key logic, may be faster.
deepy has joined #ruby
<ferno>
workmad3: Thanks :D
aspires has joined #ruby
<workmad3>
ferno: benchmark :P
deepy is now known as Guest40560
Guest40560 has quit [Changing host]
Guest40560 has joined #ruby
TomyWork has quit [Ping timeout: 250 seconds]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest40560 is now known as deepy
ferno has quit [Quit: Page closed]
j416 has joined #ruby
ikaros has quit [Quit: Ex-Chat]
gaussblurinc1 has quit [Quit: Leaving.]
DjDeaf has joined #ruby
sambao21 has joined #ruby
<DjDeaf>
Hi Guys, Any idea on how to use Ruby's OptParser for getting 2 params under the same option?
<DjDeaf>
For example: script -t param1 param2
sambao21 has quit [Client Quit]
zacts has quit [Quit: leaving]
<DjDeaf>
without , or anytthing but spaces
<workmad3>
DjDeaf: I think OptParser only supports , separated multi-value params
<DjDeaf>
:(
<DjDeaf>
I was hoping someone was smarter than me and was able to pass this\
<workmad3>
DjDeaf: OptParser is pretty inflexible
lolmaus has joined #ruby
rshetty_ has quit [Remote host closed the connection]
d4nku has joined #ruby
nkumari has joined #ruby
nkumari has quit [Remote host closed the connection]
nkumari has joined #ruby
almostwhitehat has joined #ruby
sambao21 has joined #ruby
m3_del has joined #ruby
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
rukid0 has joined #ruby
almostwhitehat has left #ruby [#ruby]
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
rukid0 is now known as shortCircuit__
JimmyNeutron has quit [Remote host closed the connection]
jenrzzz has joined #ruby
nkumari has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
ferr has quit [Quit: Lost terminal]
paulfm has quit []
tojani has joined #ruby
Dude007 has quit [Remote host closed the connection]
codextremist has joined #ruby
Morkel has quit [Quit: Morkel]
fantazo has joined #ruby
pengin has joined #ruby
shazaum_ has joined #ruby
takle has quit [Remote host closed the connection]
janmuffino has quit [Ping timeout: 246 seconds]
ptrrr has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ndrei has joined #ruby
codextremist has quit [Quit: Leaving]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
shazaum has quit [Ping timeout: 245 seconds]
geggam has joined #ruby
benzrf|offline is now known as benzrf
nvdpl has joined #ruby
droidburgundy has joined #ruby
nvdpl has quit [Max SendQ exceeded]
nvdpl has joined #ruby
spyderman4g63 has quit [Ping timeout: 250 seconds]
melik has joined #ruby
<shevy>
how do you web-guys manage css themes?
jenrzzz has quit [Ping timeout: 264 seconds]
<eindoofus>
is there a way to have ruby ignore quotes on a line like: "CSV.foreach(filename) do |row|"?
duggiefresh has quit [Remote host closed the connection]
<workmad3>
shevy: I adopt a ford policy - "You can have any theme you want, as long as it's the one I chose"
devdazed has quit [Read error: Connection reset by peer]
<workmad3>
eindoofus: sorry... I don't quite understand what you're asking
<shevy>
workmad3 understanding all of the CSS on a website in use seems pretty ... daunting
crdpink has joined #ruby
mityaz has quit [Quit: See ya!]
<workmad3>
shevy: yeah, it can be
devdazed has joined #ruby
<shevy>
and then we add some more javascript
<shevy>
like... really a LOT of it
alex88 has quit []
<shevy>
and databases!
<shevy>
and images!!!
<eindoofus>
workmad3, i noticed some records with a single quote in the csv are throwing an exception
<workmad3>
shevy: on one site I did, I made a theme selector that allowed the user to select any of the bootswatch themes :)
<shevy>
hmm
ferr has joined #ruby
jenrzzz has joined #ruby
<workmad3>
eindoofus: sounds like invalid CSV
mistermocha has joined #ruby
elcheckito has quit [Quit: WeeChat 1.0.1]
<workmad3>
shevy: I also modified geo-bootstrap to work on that site :)
<workmad3>
shevy: you'd like geo-bootstrap... it's very 90's web ;)
thsig has quit [Remote host closed the connection]
arup_r has joined #ruby
melik has quit [Ping timeout: 255 seconds]
<eindoofus>
workmad3, it opens fine in another csv reader application i have, and that application just shows the individual quote character rather than bombing
sargas has joined #ruby
mistermocha has quit [Remote host closed the connection]
<workmad3>
eindoofus: so the line is something like f1,f2,"Text with a " quote in it",f3 ?
<shevy>
hehe
<shevy>
the 1990s were my days to shine
<workmad3>
shevy: as it was intended for internal testers, I also added an 'expert mode' to that site... it added a CSS class to every element that used CSS animations to spin things ;)
duggiefresh has quit [Ping timeout: 244 seconds]
<eindoofus>
workmad3, i believe it's something like f1,f2,text with " quote,f3
mistermocha has joined #ruby
stunder has joined #ruby
almostwhitehat has joined #ruby
<gr33n7007h>
havenwood, Slop vs Trollop?
<workmad3>
eindoofus: ah, if the field isn't quoted itself, you should be able to sort it by doing 'CSV.foreach(filename, quote_char: "'") do |csv|'
dkb20k has joined #ruby
mleung has joined #ruby
timonv_ has quit [Remote host closed the connection]
<workmad3>
eindoofus: the issue is that the quote character defaults to ", and it's not valid to have the quote character appear inside a field unless it's quoted
corehook has joined #ruby
<eindoofus>
workmad3, cool, i'll give that a try. thanks
pengin has quit []
<havenwood>
gr33n7007h: i like Trollop too, quite similar, but not maintained
allcentury has quit [Ping timeout: 240 seconds]
nonks has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
sargas has quit [Client Quit]
<gr33n7007h>
yeah, me too, I'll have to check Slop out :)
max96at is now known as max96at|off
<workmad3>
eindoofus: the file is still somewhat bad as a CSV file btw... the CSV RFC (RFC4180) which is the closest CSV has to a standard says that a field that contains a " needs to be quoted and the " escaped (by doubling it up)
<workmad3>
eindoofus: just annoyingly, a lot of CSV generators and CSV readers don't give a crap about 'correct' CSV... and so the propagation of crappy CSV that needs to be kludged around continues
<eindoofus>
workmad3, ugh, that would explain how this is still in production
max96at|off is now known as max96at
<workmad3>
eindoofus: did altering the quote character work btw?
<shevy>
havenwood hehe
<shevy>
why did they name it ru
<workmad3>
shevy: as in config.ru ?
patrick99e99 has joined #ruby
<shevy>
ah I hate that even more
<shevy>
I just mean the invocation "ru"
<shevy>
but it looks cleaner than awk
<shevy>
ru 'map(:center, 80)' myfile
<havenwood>
shevy: it was previously called "Rushed" and "Ru" saves 4 letters
<L8D>
I'm not talking about the enterprise stereotype
Xeago has joined #ruby
<havenwood>
L8D: Lots of large companies use Ruby these days. Millions of lines of code.
<L8D>
yeah
Xeago has quit [Remote host closed the connection]
<L8D>
what makes ruby so well suited to that?
<L8D>
or at least what makes ruby *seem* so well suited to that?
<havenwood>
L8D: it's expressive, you can do things quickly, and it makes programmers happy
crack_user has joined #ruby
otherj has joined #ruby
<L8D>
okay. good point. thanks.
tvw has quit []
<L8D>
would anyone here agree that ruby isn't well-suited to things that need to get done quickly but instead correctly?
otherj has quit [Client Quit]
iwishiwerearobot has quit [Remote host closed the connection]
<workmad3>
L8D: depends on how you're defining 'correctly'
roolo has quit [Quit: AAAAaaaaAAAAAAA]
wjimenez5271 has joined #ruby
<L8D>
like codebases that end up getting maintained slowly over time rather than developed in sprints
DTSCode has quit [Read error: Connection reset by peer]
<workmad3>
L8D: is it good for formal proofs? I'd probably agree that it isn't... but then neither is any language in large-scale use, afaik
greenride has joined #ruby
yetanotherdave has joined #ruby
<havenwood>
L8D: If immutability and concurrency are your priority then it's not the best place to look. You can use stuff like Hamster and Adamantium for some immutability or Celluloid or Agent for concurrency or other options.
<L8D>
workmad3: what about erlang and haskell?
tlarevo has joined #ruby
panini has joined #ruby
greenride has left #ruby [#ruby]
<L8D>
"large-scale use" nvm
<havenwood>
L8D: Rubyists tend to like Elixir on the Erlang front.
<L8D>
not "used in large-scale"
<havenwood>
L8D: Created by a Rubyist and all.
<workmad3>
L8D: ok, maybe haskell... afaik, erlang is much more about robustness than formal proofs of correctness ;)
<havenwood>
L8D: Clojure is nice and on the same platform as JRuby.
DTSCode has joined #ruby
<workmad3>
L8D: so it has fault tolerances built in for when things go wrong, rather than attempting to prove that they can't ;)
<havenwood>
L8D: Or there's always Rust and Nim. :P
<L8D>
could I not say that someone who has worked with Haskell a lot can be just as productive as a ruby programmer when it comes to sprinting out code?
<L8D>
"creating blogs in 5 minutes"
<workmad3>
L8D: possibly
paulfm has joined #ruby
<L8D>
but then ruby would have the advantage that you could learn it far more quickly than you could Haskell
crack_user has quit [Ping timeout: 250 seconds]
<L8D>
ok I see
Suchit has joined #ruby
<workmad3>
L8D: tbh, it's not an area where you're going to get a lot of objective, empirical evidence, IMO, because trying to pin down productivity and effectiveness to a language is kinda the wrong way to do it (again, IMO)
<workmad3>
L8D: i.e. a good coder is going to be good in pretty much any language, a bad coder will figure out how to screw up in pretty much any language
<L8D>
I guess my mindset on software has changed since I last used ruby
mistermocha has quit [Ping timeout: 255 seconds]
graydot has quit [Quit: graydot]
lxsameer has joined #ruby
<L8D>
I don't mean this to imply anything about ruby or offend someone but
JimmyNeutron has joined #ruby
<L8D>
I think I see ruby as bad because I focus on using abstractions that let me write correct and performant code
<workmad3>
L8D: I'm waiting for the but ;)
jenrzzz has quit [Ping timeout: 255 seconds]
<workmad3>
L8D: ah, there we go :)
<tercenya>
L8D: more 'enterpris-ish' choices like java have higher learning curves, harder to pick up mid-project, which often leads to higher overhead in "just getting things done". the fragmentation of Spring MVC, JSF, Grails, Struts is an example. Rubists eschew that, and often have stronger shared culture. As noted above, ruby is also widely regarded as more plesant to program in.
Xiti has quit [Quit: Xiti]
<L8D>
instead of being something that lends to being incredibly easy to use and start using
apeiros_ has joined #ruby
<workmad3>
L8D: I tend to see 'correct' as a moving target, so I focus on a language that optimises for me being able to change things quickly when the customer changes their mind
<panini>
what about golang
jenrzzz has joined #ruby
pietr0 has joined #ruby
Suchit has quit [Client Quit]
<havenwood>
i prefer this decade
<L8D>
panini: under what regard?
shortCircuit__ has joined #ruby
<L8D>
are you asking if I see it as bad/counter-intuitive or good?
procat has quit [Ping timeout: 250 seconds]
<panini>
fast, low level, fast to develop, easy to package, good at concurrency.
<workmad3>
L8D: I'm also rather against talking about 'correctness' in software, because I always associate it with formal methods and software proofs, which I've yet to see work outside of a fairly small subset of problem classes
Rapier- has joined #ruby
_maes_ has joined #ruby
mistermocha has joined #ruby
<workmad3>
L8D: end of the day, you use what you think is good for the task at hand though :)
<havenwood>
L8D: We somehow manage to keep creating neat, working things.
<L8D>
sorry I'm using the wrong term there
thagomizer has joined #ruby
<L8D>
by "correct" I mean code that only focuses on the problem at hand
francisfish has quit [Remote host closed the connection]
<L8D>
so "very high level"
<L8D>
so when I writing parsers, I don't want to think about managing encodings or file IO or whatever
<workmad3>
L8D: you mean cohesive ;)
<workmad3>
L8D: and working at a single level of abstraction at a time
DrCode has quit [Remote host closed the connection]
<L8D>
or if I'm writing web servers, I don't want to deal with any low-level HTTP practices
<workmad3>
L8D: which I see as aspects of design rather than the language itself... and I personally feel that ruby is quite a good language for that, due to its expressiveness :)
<havenwood>
L8D: So you've mentioned immutability. Sure. But being easy for beginners isn't a downside. It doesn't then cap what you can do.
<workmad3>
L8D: I'll take your point on performance though ;)
DrCode has joined #ruby
DrCode has quit [Remote host closed the connection]
francisfish has joined #ruby
<eindoofus>
is there the equivalent of something like python's if __name__ == "__main__":
<eindoofus>
in ruby?
<panini>
golang support utf8 by default, that means you don't have to worry about encoding.
<havenwood>
panini: ruby supports utf8 by default
DjDeaf has quit [Remote host closed the connection]
<havenwood>
modern ruby
apeiros has joined #ruby
<L8D>
I think most "modern" languages attempt to support utf-8 by default
tojani has left #ruby [#ruby]
mistermocha has quit [Ping timeout: 256 seconds]
iamjarvo has joined #ruby
<panini>
and it also okay at parsing, there was a video of rob pike where he talked about how to create parser with go.
<havenwood>
sad that so much of a language's success seems to be determined by the companies that back them
dc_ has quit [Remote host closed the connection]
<L8D>
oh btw if you can't tell I'm a Haskell user
<havenwood>
Smalltalk had no IBM, Apple or Microsoft.
<workmad3>
L8D: I was figuring as much ;)
<havenwood>
L8D: It was transparent. :P
<havenwood>
L8D: There's a few of you here.
gaganjyot has quit [Ping timeout: 244 seconds]
DrCode has joined #ruby
<havenwood>
There're*
<L8D>
but I personally prefer imperative Haskell to declarative ruby
francisfish has quit [Ping timeout: 264 seconds]
<eindoofus>
*shivers*
<panini>
teach me Haskell then !!!
<workmad3>
L8D: there's plenty of room in the world for Haskell and Ruby to live side by side :)
goshdarnyou has quit [Quit: Connection closed for inactivity]
wallerdev has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gaganjyot has joined #ruby
<workmad3>
L8D: one of the key aspects of ruby's philosophy to me is the perl viewpoint of 'There isn't one correct way'
<workmad3>
L8D: which I think applies as much to languages and tools as it does to constructs within the code itself ;)
<L8D>
yeah I'm just here to remember why I used ruby before and to see if I'm just bikeshedding
<rpag>
havenwood, true, but nowadays most implementations of smalltalk are private/pay-to-use
<shevy>
L8D to be honest, the scripting languages are quite similar to one another - perl, php, python, ruby, lua
<L8D>
agreed
<rpag>
havenwood, "most" might be pushing it :)
<shevy>
haskell is like a totally different beast
<havenwood>
rpag: I'd like to watch a skilled Smalltalker work with modern tooling.
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<L8D>
shevy: I'm just most familiar with Ruby (or I guess JavaScript) than the others
<havenwood>
rpag: wonder if there's a screencast i could find along those lines
<shevy>
oh I forgot javascript
<rpag>
havenwood, none that i know off hand
wallerdev has quit [Client Quit]
skolman has joined #ruby
allcentury has joined #ruby
<benzrf>
utf-8 considered unharmful
<L8D>
shevy: I feel like who works with Ruby professionally should be using Haskell instead ;-)
<workmad3>
shevy: I disagree btw ;) I see many more differences between e.g. ruby and PHP than I do similarities
apeiros has quit []
<rpag>
havenwood, last time i checked out smalltalk i didnt find anything that won me over though, maybe gemstone is a good smalltalk VM?
<shevy>
the thinking just is not the same in haskell
wallerdev has joined #ruby
<shevy>
I need to be able to write code while sleeping
<havenwood>
rpag: Didn't you hear? Ruby is the Smalltalk that won!
<rpag>
heh
<L8D>
shevy: yes, it's a different mindset, but I think you could easily solve the same problems with haskell
User458764 has quit [Ping timeout: 255 seconds]
<shevy>
I tried
<rpag>
as close as it comes :P
dANO has quit []
<workmad3>
L8D: personally, I've tried a few times to get into a functional mindset, and it's never felt as natural to me as an OO one
fabrice31 has joined #ruby
<workmad3>
L8D: I accept that other people feel differently
<havenwood>
L8D: How is Haskell's library packaging these days? Pretty good now?
<shevy>
L8D OOP flows like biological cells in a multicellular organism
elaptics is now known as elaptics`away
i_s has joined #ruby
<L8D>
workmad3: do you think it's something that you could get used to if you had the time and patience?
* rpag
is holding out for a functional language that compiles to JS
<L8D>
rpag: haste
<havenwood>
rpag: Clojure
benzrf is now known as benzrf|offline
duggiefresh has joined #ruby
<shevy>
oh god
<shevy>
another thing that targets javascript
<rpag>
straight away, there's two! :)
<shevy>
benzrf|offline don't go offline WE ARE TALKING ABOUT HASKELL
sambao21 has joined #ruby
<L8D>
havenwood: yeah the only hurdle is that most assets need to be compiled and linked
tyll has quit [Ping timeout: 255 seconds]
<workmad3>
L8D: maybe... but I'm more likely to see it as something that would fit certain problems... they're just not ones I tend to encounter ;)
apeiros_ has quit []
<rpag>
havenwood, i tried closjurescript a long time ago and it wasn't quite there. have you used it at all lately?
<L8D>
havenwood: so cabal has to manage a bunch of stuff for systems which ios unfortunate
<rpag>
clojurescript*
troulouliou_dev has quit [Quit: Leaving]
<havenwood>
rpag: no, not really
<workmad3>
L8D: similarly, I don't see OO as the best way to solve all problems... some are just inherently imperative, some are inherently OO, some are inherently functional
dkphenom has joined #ruby
<rpag>
havenwood, there was some funkiness about using jquery with it, but i cant remember why
<rpag>
anyway, worth checking out again
<L8D>
workmad3: I think you don't realise that you can use Haskell to do imperative programming
weemsledeux has joined #ruby
apeiros has joined #ruby
<workmad3>
L8D: I realise it... but I also would doubt that it's the best tool for the job at that point :P
sambao21 has quit [Client Quit]
<L8D>
the learning curve is still the same though :(
<apeiros>
aaaaah, the beauty of a 5k screen :D
<workmad3>
L8D: you can do functional programming in ruby... but I wouldn't say it's great at it :P
<rpag>
apeiros, show off
<shevy>
very expensive
tyll has joined #ruby
<havenwood>
apeiros: mmm
<eindoofus>
L8D, I beg to differ. The learning curve is not the same.
<apeiros>
and knowing my irc password again…
<rpag>
workmad3, its weird in ruby imo
benzrf|offline is now known as benzrf
<L8D>
eindoofus: between functional haskell and imperative haskell?
<workmad3>
rpag: agreed ;)
<havenwood>
5k screens, a new DJI drone coming out today... I need some cash!
<eindoofus>
L8D, oh, nm. thought you meant functional vs oop
<L8D>
ah
<apeiros>
I'm quite happy that it is very bright. I was afraid it'd be as dark as the MBP screen
zacstewart has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 250 seconds]
<benzrf>
haskell is thee best
<benzrf>
haskell is thee best
<benzrf>
oops
<workmad3>
L8D: I do intend to play around with erlang or elixir at some point btw :) my current understanding of the way erlang works strikes quite a nice balance between functional and immutable code within actors and an OO message-passing system between actors
jenrzzz has quit [Ping timeout: 256 seconds]
benzrf is now known as benzrf|offline
<workmad3>
L8D: maybe that'll be my gateway into haskell... maybe not ;)
<workmad3>
L8D: I'd hope that even if I went that way, I wouldn't end up making blanket statements about other languages though :P
<workmad3>
(also, I have to go... hf ;) )
<L8D>
workmad3: I'd say imperative Haskell is different than intuitive imperative models because it's soo much higher level
<workmad3>
L8D: imperative ruby is much higher level too :P
toretore has quit [Ping timeout: 244 seconds]
<rpag>
workmad3, clojure seems more interesting than those two
lxsameer has quit [Quit: Leaving]
<L8D>
workmad3: but in ruby you still write out loops and update variables
<L8D>
workmad3: what do you mean by "blanket statements" ?
<workmad3>
L8D: I mean like your one from earlier along the lines of 'I think that all professional rubyists would do a better job if they learned haskell'
<rpag>
is ruby becoming dated like perl?
agjacome has quit [Quit: leaving]
jimbach has quit [Remote host closed the connection]
<L8D>
rpag: not really
<rpag>
its not the new kid on the block anymore
<L8D>
no
<L8D>
well.... yes
<L8D>
node is the new kid
<shevy>
yeah
<shevy>
rpag but who will replace ruby
<shevy>
no please
<rpag>
nah
<shevy>
javascript...
<rpag>
go is the new kid
krz has quit [Quit: WeeChat 1.0.1]
<L8D>
rpag: nah
<shevy>
go is not a scripting language family representative!
<workmad3>
L8D: and as for loops and updating variables... sometimes that's the easier way to go... and for a short imperative script, I don't see that as a problem :P
<havenwood>
L8D: you didn't get the memo? Node is dying now. >.>
<L8D>
go has pretty far to go before it becomes the "new kid"
<workmad3>
anyway, must go, hf all ;)
<rpag>
havenwood, it is?
<eindoofus>
just came from Scala and was debating learning into Play. personally i love all the breadcrumbs RoR has to offer and hate the idea of obsessing over perfect code, which is how I ended up here. i would rather create something than ponder the perfect language.
<L8D>
maybe another year
melik has joined #ruby
<shevy>
eindoofus but RoR is rails!
<eindoofus>
i know that. lol
<L8D>
eindoofus: you really need to join the erlang community
<havenwood>
rpag: well, the HN stories went from Yay Node to Why I'm Leaving Node
<eindoofus>
(R)oR
<rpag>
havenwood, it fell fast
<havenwood>
rpag: some prominent folk left
<L8D>
havenwood: that's just HN though
<eindoofus>
L8D, why erlang?
<L8D>
eindoofus: bikeshedding
<L8D>
they, just like the Haskell community, take it incredibly seriously
<eindoofus>
L8D, oh. lol
panzi has joined #ruby
<L8D>
which is why barely anyone used Haskell or Erlang
<rpag>
shevy, i dont know, for one i see functional languages becoming more prominent
* L8D
cries in the corner
<panzi>
how do I access local variables in buybugs when I call irb from it
apeiros_ has joined #ruby
<panzi>
in the old debugger it just worked
<havenwood>
rpag: I think Ruby has a good future.
lxsameer has joined #ruby
baweaver has joined #ruby
<eindoofus>
rpag, in time, but i still feel like there is a lot that can be done before functional programming becomes truly needed across the board
ghr has quit [Ping timeout: 245 seconds]
<rpag>
havenwood, i agree, it's made its dent
<rpag>
its*
<panzi>
no one any idea?
melik has quit [Ping timeout: 265 seconds]
tlarevo has quit [Remote host closed the connection]
<havenwood>
panzi: i don't understand the question
<rpag>
byebug*
workmad3 has quit [Ping timeout: 255 seconds]
cpruitt has quit [Quit: cpruitt]
<havenwood>
yeah, i figure something to do with Pry and Byebug
robbyoconnor has joined #ruby
<havenwood>
but what?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rpag>
sounds like a scope issue with binding
<panzi>
I try do debug something and have started buybug. now I need to do something more complex for wich I started irb in buybugs but now I can't access any local variables from where debugger was called, wich makes this all useless
IrishGringo has joined #ruby
gsd has joined #ruby
<panzi>
in ruby 1.9 debugger I could just access any locals from within the irb that was started from within the debugger
<havenwood>
panzi: by `irb` do you mean `pry` and by `buybugs` you mean `byebug`?
<panzi>
what good is an irb when I can't access anything?
baweaver has quit [Remote host closed the connection]
<shevy>
lol
duplex has quit [Quit: Leaving]
<shevy>
buybugs
<shevy>
hahahaha
<panzi>
by buybugs I mean buybug, yes. by irb I mean the buybug command irb
<shevy>
panzi I wanna buy some bugs
<panzi>
whatever, english
<panzi>
strange ambiguous words
PierreRambaud has quit [Remote host closed the connection]
<panzi>
I can never keep them apart
<havenwood>
like 'goodbye bug!' not like 'buy bugs, buy them all!'
<panzi>
I know, still. the words sound exactly the same (to me) so I cant remember which is written which way
<havenwood>
panzi: i'm confused how you're using byebug with irb
desp has quit [Quit: This computer has gone to sleep]
russt has joined #ruby
<panzi>
what is this? a irb replacement? I don't need that, I'm running an irb. I need to access locals from that rib session I'm currently having open here
neredsenvy has quit [Quit: Page closed]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rpag>
much better irb imo
<panzi>
I don't care, that is not what I asked for
apeiros has quit [Ping timeout: 264 seconds]
graydot has joined #ruby
samuel02 has joined #ruby
hiyosi has quit [Ping timeout: 244 seconds]
St1gma has quit [Read error: Connection reset by peer]
jhwhite has joined #ruby
bMalum_ has joined #ruby
vimer has joined #ruby
bMalum has quit [Ping timeout: 256 seconds]
bMalum_ is now known as bMalum
sepp2k_ has joined #ruby
jhwhite has left #ruby [#ruby]
<mostlybadfly>
If you're trying to debug you can place a pry call in the code
jenrzzz has joined #ruby
<mostlybadfly>
Not sure if that is what he was trying to suggest to help
sepp2k_ has quit [Client Quit]
sinequanon has joined #ruby
sinequanon has quit [Remote host closed the connection]
wchun has joined #ruby
Astrologos_ has joined #ruby
wchun has quit [Read error: Connection reset by peer]
dkb20k has joined #ruby
GeorgesLeYeti has quit [Quit: Leaving]
cpruitt has joined #ruby
L8D has left #ruby [#ruby]
djbkd has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
m3_del has quit [Remote host closed the connection]
kirun has joined #ruby
dorei has quit [Ping timeout: 244 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DjDeaf has joined #ruby
russt has quit [Ping timeout: 264 seconds]
banister has joined #ruby
desp has joined #ruby
tier has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
dkb20k has quit [Ping timeout: 250 seconds]
panini has quit [Remote host closed the connection]
iamjarvo has joined #ruby
icebourg has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
gr33n7007h has quit [Remote host closed the connection]
tier has joined #ruby
iamjarvo has joined #ruby
fresham has quit [Quit: leaving]
gr33n7007h has joined #ruby
sambao21 has joined #ruby
nkumari has joined #ruby
michaeldeol has joined #ruby
gigetoo has quit [Ping timeout: 256 seconds]
desp has quit [Quit: This computer has gone to sleep]
vimer has quit [Quit: leaving]
procat has joined #ruby
jerius has quit [Ping timeout: 272 seconds]
zorak8 has joined #ruby
fantazo has quit [Quit: Verlassend]
procat has quit [Ping timeout: 255 seconds]
spyderman4g63 has quit [Read error: No route to host]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
atmosx has joined #ruby
spyderman4g63 has joined #ruby
benzrf|offline is now known as benzrf
<havenwood>
i like the new Github syntax highlighting colors but the new language bar colors are confusing me
julieeharshaw has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
arup_r has quit [Quit: Leaving.]
<shevy>
wat
rodfersou has quit [Quit: leaving]
weemsledeux has quit [Remote host closed the connection]
julieeharshaw has joined #ruby
<v0n>
is there a ruby trick to format a string given a hash of placeholders? i.e. "%city (%condition %temperature°)".format_with({ condition: "Clear", temperature: 6, city: "Montreal", foo: "bar")
<atmosx>
you need to define nearly anything there is on crontab
vifino has quit [Remote host closed the connection]
<dorei>
i think rvm provides special binaries to be used in crontab
<atmosx>
dorei: it does, they don't work.
<dorei>
lol
vifino has joined #ruby
<atmosx>
not special binaries, it provides a shell which sets some local variables before the script being executed, should work in theory doesn't in practice can't tell why.
atomical has joined #ruby
<jhass>
chruby-exec works well :P
<atmosx>
no idea, I'm an rvm fan :-P
jenrzzz has quit [Ping timeout: 244 seconds]
codecop has joined #ruby
shortCircuit__ has quit [Ping timeout: 245 seconds]
rbrs has joined #ruby
<atmosx>
bbl
atmosx has quit [Quit: Lost in trance]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
tier has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
jalcine has quit [Quit: Quit]
ghr has joined #ruby
reinaldob has joined #ruby
francisfish has joined #ruby
malkomalko has joined #ruby
abuzze has joined #ruby
icebourg has joined #ruby
malkomalko has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 250 seconds]
AlexRussia has joined #ruby
dangerousdave has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
icebour__ has joined #ruby
djbkd has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
icebourg_ has quit [Ping timeout: 258 seconds]
abuzze_ has quit [Ping timeout: 265 seconds]
_lexjm has quit [Quit: afk]
michaeldeol has joined #ruby
icebourg has quit [Ping timeout: 256 seconds]
nvdpl has quit [Quit: ZZZzzz…]
lidaaa has joined #ruby
alem0lar1 has quit [Remote host closed the connection]
max96at is now known as max96at|off
Timgauthier is now known as timgauthier_away
jleishman has quit [Quit: Be back later ...]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Timgauthier has joined #ruby
icebour__ has quit [Ping timeout: 264 seconds]
graydot has quit [Quit: graydot]
hmsimha has joined #ruby
nvdpl has joined #ruby
jt__ has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
graydot has joined #ruby
Ulrike_Rayne has joined #ruby
Guest58729 has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
icebourg has joined #ruby
Ulrike_Rayne has quit [Excess Flood]
graydot has quit [Client Quit]
Ulrike_Rayne has joined #ruby
<jt__>
how do I get a listing of what library comes with ruby?like standard modules in Python?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
jimmyhoughjr has joined #ruby
jleishman has joined #ruby
Ulrike_Rayne has quit [Excess Flood]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benzrf|offline is now known as benzrf
baweaver has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 272 seconds]
TPBallbag has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
Ulrike_Rayne has joined #ruby
pa3ce has joined #ruby
icebourg_ has joined #ruby
emmesswhy has joined #ruby
icebourg has quit [Ping timeout: 256 seconds]
reinaldob has quit [Remote host closed the connection]
<pmarreck>
Offbeat question: Why don't the ridiculously different "password requirements" out there just all make sure you pick a password with a high Shannon entropy and/or high Kolmogorov complexity? (both beyond some threshold)
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Xiti has joined #ruby
<eam>
pmarreck: some requirements are driven by regulatory policy, others by downstream dependencies on extremely old systems
sdwrage has joined #ruby
<eam>
ultimately, the policy is something you need to be able to explain to an idiot, so simple rules tend to win out
omosoj has quit [Ping timeout: 245 seconds]
<havenwood>
pmarreck: it's easier to explain at least one letter, number, symbol and length requirements than H(X)=-sum_(x)P(x)log_2[P(x)] or K=lim_(T->0)lim_(epsilon->0^+)lim_(N->infty)1/(NT)sum_(n=0)^(N-1)(K_(n+1)-K_n).
michaeldeol has quit [Ping timeout: 256 seconds]
<pmarreck>
eam: Here's the simple rule: "Keep typing until the graph goes from 'bad' and red to 'good' and green. Tips: Use combinations of random dictionary words, we can suggest them here<link>. Use numbers and non-alphanumeric characters. Use spaces."
pasv has joined #ruby
<pmarreck>
havenwood: You can compute the above on the fly
<havenwood>
pmarreck: and people are typically eager to get folk to sign up so wanting to make it simple wins out over security
<havenwood>
pmarreck: no :O
pasv is now known as Guest69055
<eam>
pmarreck: fact is people are going to want to pick bad passwords or they'll switch to the competition
<pmarreck>
havenwood: I just described how it would be simple. And why not?
St_Marx has quit [Remote host closed the connection]
almostworking has joined #ruby
<eam>
picking a stronger password isn't super meaningful all told. 2fa is a better and more user friendly path to pursue
<toretore>
anyone putting requirements on my password better hope i need their service more than i hate being told what my password should be like
<pmarreck>
"We need a bunch of text aka a password that is hard for a person or computer to guess. Here's a live graph showing how strong we think your attempted password is. We need it to be in the green zone. Tips<link>"
<havenwood>
pmarreck: i like the idea, just it would cause anxiety with people not familiar with that format. it's too long to remember, not their usual password, etc.
<pmarreck>
eam: 2FA is a bit frustrating. Gotta whip out my phone and fire up an app every damn time. Slows you down.
<eam>
pmarreck: you mean otp/google auth? 2fa comes in many forms, such as just text notifications
<havenwood>
pmarreck: the Safari direction of trying to get people to let the browser generate your password and store it in your Keychain is one way
<eam>
password managers are great, so would be a switch to PKI
<pmarreck>
toretore: yeah that's exactly why I hate a new requirement on a site that my existing list of passwords doesn't conform to. "Oh, and your password can't end in a number or non-alphanumeric character... But we need at least 1 of both" is the most recent one I've seen
<eam>
once we have password managers and random strings as the norm, PKI is an easy next step
St_Marx has joined #ruby
<havenwood>
pmarreck: people would use leet speak versions of songs, poetry, etc still, so you could likely attack it
<pmarreck>
eam: yeah i've seen text notifications too. that's OK, I guess. I miss OpenID :(
baweaver has joined #ruby
<pmarreck>
havenwood: the safari solution is fine as long as you only connect from the apple walled garden. Doesn't work on some random browser at a hotel
jenrzzz has joined #ruby
<pmarreck>
havenwood: If you write a kolmogorov complexity evaluator good enough, you can include leetspeak variants of words
<havenwood>
pmarreck: pretty brutal in that case, i suppose you can get to Keychain Access from your walled garden iPhone and manually type it. but yeah..
emmesswhy has quit [Quit: Leaving]
wallerdev has joined #ruby
<havenwood>
pmarreck: which gets back to you needing a password manager
<eam>
brute forcing is just not much of an issue
<havenwood>
pmarreck: how are you supposed to remember your passwords?
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patrick99e99 has joined #ruby
<pmarreck>
eam: big fan of some kind of PKI, actually. Problem is that the private key needs to be super secure, and since nobody's going to remember a private key, it has to get derived from a... strong password, again.
<pmarreck>
Or stored somewhere, where it can be hacked
<havenwood>
and people can't remember strong passwords
<eam>
it doesn't need to be any more secure than the password
devdazed has quit [Ping timeout: 250 seconds]
<havenwood>
people hardly remember weak passwords
<eam>
pki solves phishing
retnuh has joined #ruby
<eam>
which is a much larger threat than brute forcing
<pmarreck>
eam: true, that it does.
<pmarreck>
eam: where would my private key be stored?
<eam>
most banks have policies that undermine password security
<eam>
pmarreck: assuming you have a password manager, in that
<pmarreck>
eam: hah, don't get me started on banks
pengin has joined #ruby
<pmarreck>
banks are reliant on the fact that all transactions can be traced and reversed
<eam>
pmarreck: right, if you have a check from someone you have enough information to add/remove money from their account
<pmarreck>
eam: ha, awesome. this is why I came here
<pmarreck>
eam: yep, truth
devdazed has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away is now known as Timgauthier
mathias2 has joined #ruby
<pmarreck>
eam: and that won't work with PKI. as soon as someone unknowingly compromises your private key and signs something as you with it, you're fucked. you can then, I suppose, initiate the revocation with your revocation cert that you of course generated at the time you made the private key... :)
almostworking has left #ruby ["Leaving"]
devdazed has quit [Read error: Connection reset by peer]
patrick99e99 has quit [Ping timeout: 244 seconds]
TPBallbag has joined #ruby
<pmarreck>
eam: omg dude. I lost it at "case insensitive password" lol
<pmarreck>
s/password/passwords
devdazed has joined #ruby
<pmarreck>
There's a hardware signing device out there that I know of, but right now it's only for bitcoin transactions. (the Trezor)
<pmarreck>
But then you're... dependent on a physical hardware device. (To be fair, you can regen all your keys with some loong list of words you write down when you set it up.)
lolmaus has quit [Ping timeout: 240 seconds]
TPBallbag has quit [Remote host closed the connection]
hesco has quit [Ping timeout: 264 seconds]
<eam>
pmarreck: it's not necessary to do that entire dance with PKI, you can also just re-create a new keypair
humonkagoat has joined #ruby
mathias2 has quit [Ping timeout: 240 seconds]
<eam>
no need for a distributed system as we have with tls certs
<eam>
aka rm .ssh/authorized_keys # no revocation mess
bklane has joined #ruby
IrishGringo has quit [Ping timeout: 255 seconds]
lxsameer has quit [Quit: Leaving]
boombadaroomba has quit [Remote host closed the connection]
rudisimo has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
arescorpio has joined #ruby
djbkd has joined #ruby
jnollette has quit [Remote host closed the connection]
fabrice31 has joined #ruby
einarj_ has joined #ruby
humonkagoat has left #ruby [#ruby]
devdazed_ has joined #ruby
claymore has quit [Ping timeout: 258 seconds]
jnollette has joined #ruby
icebourg_ has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
claymore has joined #ruby
Ulrike_Rayne has quit [Ping timeout: 240 seconds]
devdazed has quit [Read error: Connection reset by peer]
icebourg has joined #ruby
icebourg has quit [Client Quit]
devdazed_ has quit [Read error: Connection reset by peer]
bMalum has quit [Quit: bMalum]
einarj has quit [Ping timeout: 245 seconds]
it0a has quit [Quit: WeeChat 1.0.1]
Ulrike_Rayne has joined #ruby
reinaldob has joined #ruby
ghr has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
diegoviola is now known as resented
reinaldob has quit [Remote host closed the connection]
narph has quit [Quit: Connection closed for inactivity]
OffTheRails has quit [Quit: Leaving]
jnollette has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
thsig has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ulrike_Rayne has quit [Max SendQ exceeded]
Ulrike_Rayne has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
banister_ has joined #ruby
<pmarreck>
eam: yeah but how will you invalidate things that were signed with your previous key?
thsig_ has joined #ruby
nkumari has quit [Remote host closed the connection]
Ulrike_Rayne has quit [Excess Flood]
Ulrike_Rayne has joined #ruby
fartface has joined #ruby
jnollette has joined #ruby
banister has quit [Ping timeout: 240 seconds]
<fartface>
I've got a simple problem that I can't seem to find the error in. I'm doing a caesar cipher, and I keep getting 'undefined method '-' for NilClass' but I can't for the life of me see the error in my code. http://pastebin.com/nVc3cykT
<zenspider>
you don't invalidate them? you just delete your private key, no?
<fartface>
It's my ternary conditional that seems to be triggering it, but I can't see anything wrong with it
<zenspider>
fartface: it is whereever you have '-'
nkumari has quit [Remote host closed the connection]
Spami has joined #ruby
reinaldob has quit [Ping timeout: 240 seconds]
rkalfane has joined #ruby
beneggett has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
omosoj has joined #ruby
wldcordeiro_ has quit [Remote host closed the connection]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
tlarevo has joined #ruby
rikur has joined #ruby
<rikur>
I
<zenspider>
J
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
baweaver has quit [Remote host closed the connection]
<rikur>
I'm trying to instance_eval a string which in turn uses NET:HTTP and tries to call s.setsockopt. This is not allowed when running in $SAFE=2. I'm not sure what to try next.
freerobby has joined #ruby
livingstn has quit []
<rikur>
$SAFE=2 is set to prevent the script from deleting any files (not perfect, doesn't need to be.. just want to prevent the most obvious cases - solution is used in-house only).
tlarevo has quit [Read error: Connection reset by peer]
<zenspider>
rikur: why?
tlarevo has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TPBallbag has joined #ruby
<rikur>
zenspider, in my case this is a ruby script running as a "update" hook for git. I'd like to give each project as much flexibility as possible when it comes to enforcing rules per commit (the evaled string) vs. just limiting them to use set methods.
IrishGringo has quit [Ping timeout: 265 seconds]
<rikur>
so if a project lead wants, they could do stuff like: push.commits.each .. etc.
procat has quit [Ping timeout: 265 seconds]
nkumari has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<zenspider>
and why does that involve eval'ing strings?
seanp2k has quit [Quit: seanp2k]
hmsimha has joined #ruby
<rikur>
umm. I have a file called ".git.rb" in a special git branch that will be read and evaled to optionally enforce rules per project. If you know of other means than using an eval, please let me know :)
dkphenom has joined #ruby
<zenspider>
load works
<zenspider>
or require
mathias2 has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
beneggett has quit [Ping timeout: 250 seconds]
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
iamjarvo has joined #ruby
rudisimo has joined #ruby
Soliah has quit [Quit: Soliah]
oleo__ has joined #ruby
<apeiros>
ok, starting rails apps mounted via AFP is not viable.
<apeiros>
~100x longer response times
Xeago has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros>
(development mode)
dideler has joined #ruby
zacts has quit [Quit: leaving]
mathias2 has quit [Ping timeout: 240 seconds]
oleo is now known as Guest71941
Guest71941 has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Ping timeout: 255 seconds]
<zenspider>
apeiros: rsync might be your friend here
seanp2k has joined #ruby
<zenspider>
esp rsync w/ fsevents (or whatever)
Xeago_ has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
<apeiros>
that's what I wanted to avoid :-/
Rhainur has joined #ruby
<apeiros>
(syncing)
KC9YDN has quit [Remote host closed the connection]
<zenspider>
sshfs ?
<zenspider>
I found the latency on that to be better than many
<rikur>
zenspider, I'm not sure if I have access to the file per se - I can only load it's contents as a string. Should I save it under /tmp and then load it? :O
Rhainur1 has quit [Ping timeout: 264 seconds]
<apeiros>
zenspider: I wish the imac had 3 thunderbolt ports. then I could just mount the laptop as an external drive
Sgeo_ has quit [Ping timeout: 264 seconds]
<apeiros>
currently googling for thunderbolt hubs. not having much luck :(
<zenspider>
there are a couple... but they're all hella expensive
Zettam has joined #ruby
rudisimo has quit [Remote host closed the connection]
Axy has quit [Read error: Connection reset by peer]
<apeiros>
that could solve my problem too… one TB port for the screens
<zenspider>
that's a lot of pixels
<apeiros>
zenspider: yeah. also I use TB ports as DisplayPorts - bam, no chaining
<zenspider>
don't the displays have TB on the back?
thsig has quit [Remote host closed the connection]
<apeiros>
the displays aren't TB displays
<zenspider>
aaah. gotcha
Xeago has quit [Ping timeout: 245 seconds]
<zenspider>
and the adapter doesn't have 2 ports. ugh
<apeiros>
problem with that approach - while it works for my current additional screens, it won't work with the two 4K screens I planned :-S
<apeiros>
#firstworldproblems
patrick99e99 has joined #ruby
<apeiros>
well, bed time anyway. gotta split my head about this tomorrow
stunder has joined #ruby
fabrice31 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctp has joined #ruby
arescorpio has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
patrick99e99 has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
desp has quit [Quit: This computer has gone to sleep]
henesy has joined #ruby
hiyosi has joined #ruby
Spami has quit [Ping timeout: 256 seconds]
dseitz has joined #ruby
henesy has quit [Client Quit]
wm3|away has quit [Ping timeout: 255 seconds]
henesy has joined #ruby
n3phos has quit [Quit: ChatZilla 0.9.91 [Firefox 33.1/20141106120505]]
Channel6 has joined #ruby
jenrzzz has joined #ruby
deepin has joined #ruby
deepin has quit [Client Quit]
kirun has quit [Quit: Client exiting]
ghr has joined #ruby
jimbach has joined #ruby
nkumari has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
cpruitt has quit [Quit: cpruitt]
charliesome has joined #ruby
chrisja has quit [Quit: leaving]
ghr has quit [Ping timeout: 240 seconds]
adriancb has quit [Remote host closed the connection]
troyreadyy has joined #ruby
livingstn has joined #ruby
kumarat9pm has joined #ruby
razieliyo has quit [Quit: Saliendo]
<kumarat9pm>
Good day all. I am learning about ruby variables and I am able to understand local and global varialbes which are common in many prog languages. But I am unable to understand instance and class variables. Can you please share any link which explain these things with examples? Thanks in advance.
<jhass>
well, do you understand classes and objects (instances) yet?
danijoo has quit [Read error: Connection reset by peer]
<ka-el-man>
kumarat9pm: it's about scope
troyready has quit [Ping timeout: 264 seconds]
<ka-el-man>
that's the difference between them :)
danijoo has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kumarat9pm>
jhass: Yes, I understand classes and objects.
procat has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
<jhass>
an instance variable is associated with an object. You can access it from any method belonging to that object
<kumarat9pm>
ka-el-man: may be my question is bit weird, they are not there in other prog lang.. why they are implemented in Ruby?
<jhass>
both class variables and instance variables are in any object oriented language
<jhass>
I've seen at least
<ka-el-man>
kumarat9pm: it think maybe it has to do with Ruby being a dynamic language
<kumarat9pm>
jhass: hmm ok
<ka-el-man>
therefore there are differences in scope
<jhass>
some call instance variables fields
<kumarat9pm>
ka-el-man: Ohh I see
<jhass>
or attributes
<ka-el-man>
but i'm not certain about this, can be totaly wrong, that's my take on it
<jhass>
ka-el-man: I disagree
jaequery has joined #ruby
Photism has joined #ruby
<jhass>
I don't see any connection between a dynamically typed language and the scopes it provides
<zenspider>
kumarat9pm: instance variables are TOTALLY there in other (OO) languages
<zenspider>
class variables are too, depending on the language
jaequery has quit [Max SendQ exceeded]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
jaequery has joined #ruby
<zenspider>
jhass: yeah. that doesn't follow
<kumarat9pm>
zenspider: But there is no specific mentioning of them in other languages and as well special notations like @ and @@.. That's where one of my confusion.
jaequery has quit [Max SendQ exceeded]
<jhass>
kumarat9pm: what are the "other languages" here?
jaequery has joined #ruby
<kumarat9pm>
jhass: python, Perl
<ka-el-man>
variable has scope, @variable has a wider scope, @@variable can be used anywhere in the program