quimrstorres has quit [Remote host closed the connection]
<jaequery>
i have a hash with sometimes value is empty. i want to return true if all the elements in the hash has zero value. is there a built in ruby way to do this? like .hash_all_empty?
<waxjar>
what do you mean by "value is empty", just nil ?
<tejas-manohar>
is it possible to do something like require 'lib/*' or require all the files in a directory
<jaequery>
yes, nil or "" or []
<zenspider>
jaequery: it translates pretty much the same way you describe it: values.all?(&:zero?)
<jaequery>
what is &:zero ?
<zenspider>
do note that zero is truthy, not falsey nor "empty"
<waxjar>
tejas-manohar: use an each loop :)
lemur has joined #ruby
<waxjar>
Dir.glob is your friend
<volty>
jaequery: zero is whatever you want to be zero
<jaequery>
sory not 0, i just meant when it's blank
<zenspider>
it is the same as :zero?.to_proc which is the same as lambda { |x| x.zero? }
klmlfl has quit [Remote host closed the connection]
tier has joined #ruby
<volty>
e.c. to mean (zero)
<jaequery>
contacts = {:email => '', :phone => ''} , i want to do, if contacts.all_empty? do ....
<havenwood>
tejas-manohar: since the latter is deprecated
<tejas-manohar>
lol
<havenwood>
former*
<havenwood>
>.>
<havenwood>
off by one error
benzrf is now known as benzrf|offline
nucatus has joined #ruby
benzrf|offline is now known as benzrf
krisquigley has joined #ruby
MrDoctor has joined #ruby
manzo has quit [Ping timeout: 256 seconds]
<tejas-manohar>
lololo
<volty>
MattB2: you suggest I pass directly on a db ? Thx for the links but I'm going to put them in a regular mysql and know how to setup the relations
chrisja has quit [Quit: leaving]
lemur has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<havenwood>
volty: you need a relational database?
<havenwood>
volty: must you use mysql?
lemur has joined #ruby
<havenwood>
volty: i mean amongst sql dbs
<tejas-manohar>
in File.new("out.txt", "w") what does "w" do
<i8igmac>
any one herd of proxychains
<volty>
of course -- when you have parent - children relationship. I prefer to use one db engine for all my data
<MattB2>
volty: The links (specifically the postgres one) were to give you some ideas as to how to represent a tree.
<havenwood>
tejas-manohar: write
<i8igmac>
i wodner if i could find a proxychains like gem
<havenwood>
tejas-manohar: which would fail if the file wasn't opened in write mode
<volty>
MattB2: yes, thanks, long time since I did it, but my relational neurals never die :)
<tejas-manohar>
oh
<MattB2>
volty: your original Q suggested you didn't intend to use a db, I'm also suggesting your lif ewill be much easier with one, even if its just sqlite
<tejas-manohar>
havenwood: so i can do file = File.new("out.txt", "w")
<tejas-manohar>
file.write("your text")
nucatus has quit [Ping timeout: 240 seconds]
<havenwood>
volty: if it's not relational in fact, even easier
krisquigley has quit [Ping timeout: 240 seconds]
<havenwood>
tejas-manohar: best to use a block
<tejas-manohar>
havenwood: like in a method?
Megtastique has quit []
NoNMaDDeN has quit [Remote host closed the connection]
<volty>
MattB2: i was thinking about doing it first with ruby data (to be saved .e.g. in yaml) and then moving to db. After your suggestion I realized that I should go directly with a db.
<MattB2>
volty: a data structure is fine, until it comes to things liek moves, deletes etc. Then things get hairy fast! If you are going with a db, ther eare quite a few tree-structure gems to choose from if you don't fance implementing yourself.
<volty>
ah, MattB2, it isn't for web, it is for a Qt App (QListWidget like)
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
i've jumped the gun repeatedly today, guess just one of those days
baroquebobcat has quit [Quit: baroquebobcat]
aspires has quit []
<havenwood>
at least it's Sunday, i demand a redo!
avrc has joined #ruby
<havenwood>
and in the alternative apologize for my blathering
<MattB2>
volty: gems aren't just for web-apps! :) But if you're implementing from scratch, the postgres article gives some good pointers on possible approaches.
<sevenseacat>
is not sunday, stop living in the past
<sevenseacat>
<_<
Soda has joined #ruby
hlegius_ has quit [Ping timeout: 264 seconds]
<volty>
table folders id, name, parent_id; table bookmarks id, folder_id, url, title ... -- that's all
triple_b has joined #ruby
<tejas-manohar>
havenwood: whats the difference between w and w+
<tejas-manohar>
what am i doing wrong lol havenwood: file = File.new("~/users.json", "w")
<tejas-manohar>
whyd you say look at documentation there
<tejas-manohar>
Read and write mode. The file pointer is at the end of the file if the file exists. The file opens in the append mode. If the file does not exist, it creates a new file for reading and writing.
<tejas-manohar>
so i dont needa check if file exists?
<havenwood>
tejas-manohar: yeah, it'll create a new file
gsd has quit [Read error: Connection reset by peer]
Avahey has quit [Quit: Connection closed for inactivity]
gsd has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
tejas-manohar: you don't have to check if the dir exists for mkdir_p
<volty>
make a class Users
airdeluxe has quit [Quit: Leaving]
<tejas-manohar>
havenwood: if it doesnt, arent i overwriting that folder?
<havenwood>
tejas-manohar: it makes it regardless
<tejas-manohar>
i dont wanna overwrite
garycruise has quit [Quit: 离开]
<tejas-manohar>
id lose the content within the folder
<tejas-manohar>
meaning an existing user of my CLI could lose some of his data lol
davasaurous has quit [Remote host closed the connection]
<havenwood>
tejas-manohar: makes it *unless* it exists
davasaurous has joined #ruby
<tejas-manohar>
volty: after making the class can i remove that setup_users rubbish and leave it at top of class?
<tejas-manohar>
volty: or should i still keep it
henesy has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<volty>
into initialize of the class
Xiti` has quit [Quit: Xiti`]
havenwood has quit []
Xiti has joined #ruby
<volty>
singleton class, of course
<volty>
isn't there array.to_json ?
<volty>
never mind, cannot go on, going to sleep
<volty>
bye
volty has quit [Quit: Konversation terminated!]
<tejas-manohar>
cya
jonr22 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
chrishough has joined #ruby
davasaurous has quit [Remote host closed the connection]
aspiers has joined #ruby
jonr22 has joined #ruby
<tejas-manohar>
havenwood: if i wanna do things with the file variable in user_exists? and create_user and other methods in the class, i need the @ before file as is, right? https://gist.github.com/tejas-manohar/019fc049b9759e1fb9b7
chrishough has quit [Client Quit]
rshetty has quit [Remote host closed the connection]
chrishough has joined #ruby
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
aspiers has quit [Ping timeout: 256 seconds]
jonr22 has quit [Ping timeout: 264 seconds]
lemur has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
emmesswhy has joined #ruby
b4rbz has quit [Remote host closed the connection]
dorei has quit []
MattB2 has quit [Remote host closed the connection]
stalcott has joined #ruby
Prawnzy has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
davasaurous has joined #ruby
fedexo has quit [Ping timeout: 272 seconds]
stalcott has quit [Quit: stalcott]
wsmoak has quit [Quit: wsmoak]
Akagi201 has quit []
Takle has joined #ruby
nucatus has joined #ruby
timonv_ has joined #ruby
jimbach has quit [Remote host closed the connection]
i8igmac has quit [Ping timeout: 250 seconds]
dc_ has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 255 seconds]
nucatus has quit [Ping timeout: 272 seconds]
jimbach has joined #ruby
NoNMaDDeN has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
hlegius has joined #ruby
dcunit3d has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
jimbach has quit [Ping timeout: 240 seconds]
NoNMaDDeN has quit [Ping timeout: 258 seconds]
dc_ has joined #ruby
hlegius has quit [Ping timeout: 264 seconds]
dcunit3d has joined #ruby
corehook has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 264 seconds]
blahwoop has joined #ruby
<blahwoop>
hi guys if i use the Set library.
<blahwoop>
i have words = Set.new
nucatus has joined #ruby
<blahwoop>
now i added something to it. is there a method like include? for sets?
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
<tejas-manohar>
parabolize: i want to make @data_hash have a new key named value of the method's parameter "email", i wanna model @data_source[:email] off of json like http://pastebin.com/xGyHwkHj
<tejas-manohar>
im grabbing the whole content of the file, converting to hash, writing on it, converting back to json, writing to the file hoepfully deleting the rest and witing it with r+
<sevenseacat>
partially because i have no idea what its doing
<tejas-manohar>
sevenseacat: does that make sense now?
<tejas-manohar>
ignore the has key part
<tejas-manohar>
btw
<sevenseacat>
i wouldnt write it like that.
uber_hulk has joined #ruby
jonr22 has joined #ruby
jimbach has quit [Remote host closed the connection]
<tejas-manohar>
sevenseacat: how would you? and does that seem right tho, functionality wise?
jnollette_mobile has quit [Remote host closed the connection]
<sevenseacat>
no.
<sevenseacat>
and im not doing your homework for you.
jimbach has joined #ruby
<tejas-manohar>
sevenseacat: its not my hw but ok
<sevenseacat>
well you told me yesterday you were an experienced developer, so i can only assume this is homework
jnollette has joined #ruby
<tejas-manohar>
sevenseacat: uh no i told you that i am not a total noob and have worked in other languages -- how does that lead to hw? lol
<tejas-manohar>
sevenseacat: hey all i was asking was why that doesnt make sense logically
rixius__ has quit [Ping timeout: 255 seconds]
sea_local has joined #ruby
<tejas-manohar>
sevenseacat: do you have an answer to that?
wolflee__ has quit [Read error: Connection reset by peer]
sinequanon has joined #ruby
arup_r has quit [Quit: Leaving.]
corehook has joined #ruby
kyb3r_ has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
Rogerz has joined #ruby
buddy_tucker has quit [Quit: Konversation terminated!]
adriancb has quit [Remote host closed the connection]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n_blownapart has joined #ruby
corehook has quit [Remote host closed the connection]
Koolaids has quit [Remote host closed the connection]
<n_blownapart>
hi I got a solution last night here using group_by. I'm getting behavior I don't understand with group_by(&:class) : http://pastie.org/9739516
<tejas-manohar>
pastbein does too i just forgot to select it
Musashi007 has quit [Quit: Musashi007]
mois3x has quit [Quit: mois3x]
bigmac has joined #ruby
<parabolize>
tejas-manohar: what error are you getting?
Techguy305|2 has joined #ruby
<tejas-manohar>
parabolize: no error!!!!
<tejas-manohar>
confusing
jenrzzz has quit [Ping timeout: 255 seconds]
<parabolize>
what behavior?
reinaldob has joined #ruby
kireevco1 has joined #ruby
<tejas-manohar>
last line ommitting the ends
lw has quit [Quit: s]
<n_blownapart>
if anyone has time I repasted this. my question involves the output of group_by(&:class) . thank you: http://pastie.org/9739527
hlegius has joined #ruby
tus has quit []
root3 has quit [Quit: WeeChat 0.4.2]
Soda has quit [Remote host closed the connection]
MrDoctor has quit [Quit: Leaving]
reinaldob has quit [Ping timeout: 264 seconds]
krz has joined #ruby
zacstewart has quit [Remote host closed the connection]
hlegius has quit [Ping timeout: 258 seconds]
corehook has joined #ruby
<tejas-manohar>
im really really confused about writing json to files
freerobby has quit [Quit: Leaving.]
sinequanon has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 250 seconds]
sinequanon has joined #ruby
troyready has quit [Ping timeout: 264 seconds]
siso_ has joined #ruby
corehook has quit [Ping timeout: 258 seconds]
maestrojed has joined #ruby
siso has quit [Ping timeout: 272 seconds]
siso_ is now known as siso
rshetty has joined #ruby
disKounted has quit []
davedev2_ has quit []
agrinb has joined #ruby
Alayde has left #ruby ["WeeChat 0.3.8"]
sinequanon has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
mjuszczak has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Takle has joined #ruby
patrick99e99 has joined #ruby
drewvanstone has quit [Ping timeout: 258 seconds]
jusmyth has joined #ruby
weemsledeux has quit [Remote host closed the connection]
jusmyth has left #ruby [#ruby]
Morkel has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
Takle has quit [Ping timeout: 272 seconds]
patrick99e99 has quit [Ping timeout: 240 seconds]
arescorpio has quit [Excess Flood]
krisquigley has joined #ruby
b4rbz has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
uber_hulk has quit [Quit: leaving]
krisquigley has quit [Ping timeout: 240 seconds]
sumark has quit [Remote host closed the connection]
<parabolize>
tejas-manohar: me too. I can write to the file with a block but I can't call it directly. File.open('/path/to/blah.json', 'w+') {|f| f.write(j.to_json)} works but File.open('/path/to/blah.json', 'w+').write(j.to_json) doesn't.
<tejas-manohar>
yeah same lol
<tejas-manohar>
makes no sense
tejas-manohar has quit [Quit: Page closed]
sumark has joined #ruby
Channel6 has quit [Quit: Leaving]
baroquebobcat has joined #ruby
jenrzzz has joined #ruby
josephndenton has joined #ruby
uber_hulk has joined #ruby
agrinb has quit [Remote host closed the connection]
garycruise has joined #ruby
mengu has quit [Ping timeout: 256 seconds]
garycruise has left #ruby [#ruby]
Spami has joined #ruby
arup_r has joined #ruby
arup_r_ has joined #ruby
<parabolize>
tejas-manohar: File.write('/path/to/blah.json', j.to_json) works as well
oo_ has joined #ruby
amclain has quit [Quit: Leaving]
arup_r has quit [Ping timeout: 240 seconds]
avrc has joined #ruby
girassolbit has joined #ruby
n_blownapart has quit [Quit: Leaving]
girassolbit has quit [Max SendQ exceeded]
bmichelsen has quit [Quit: ZZZzzz…]
davasaurous has quit [Remote host closed the connection]
echooo1 has joined #ruby
terlar has quit [Ping timeout: 245 seconds]
bmichelsen has joined #ruby
echooo has quit [Ping timeout: 240 seconds]
jlast has joined #ruby
uber_hulk has quit [Ping timeout: 265 seconds]
greenbagels_ has quit [Quit: Leaving]
Kricir has joined #ruby
corehook has joined #ruby
iamjarvo has joined #ruby
uber_hulk has joined #ruby
Rogerz has quit [Quit: Rogerz]
timonv_ has joined #ruby
techsethi has joined #ruby
f00dMonsta has joined #ruby
<f00dMonsta>
Which tutorials do you guys recommend if I need to learn ruby in 1-3 days? I don't have to be an expert, just for an interview (they don't require Ruby, but that's their main language of choice)
<sevenseacat>
lol
tlarevo has joined #ruby
<f00dMonsta>
o.o what?
ferr has joined #ruby
<blahwoop>
codecademy covers it pretty well
<blahwoop>
like a quick overview
<blahwoop>
procs and lambdas
<blahwoop>
structs
<f00dMonsta>
blahwoop: thanks, I was looking at that, it says an estimated 9hr, but I can brisk through it
hlegius has joined #ruby
<f00dMonsta>
just needed to pick one and do it
timonv_ has quit [Ping timeout: 244 seconds]
<blahwoop>
yeah or read a couple of chapters of well grounded rubyist. i like that one too
klmlfl has quit [Remote host closed the connection]
jnollette has quit [Remote host closed the connection]
claptor has quit [Quit: this channel is bakas]
jnollette has joined #ruby
Rogerz has joined #ruby
hlegius has quit [Ping timeout: 256 seconds]
uber_hulk has quit [Quit: leaving]
nucatus_ has quit [Remote host closed the connection]
uber_hulk has joined #ruby
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
workmad3 has joined #ruby
fedexo has joined #ruby
kobain has joined #ruby
jimbach has joined #ruby
Rogerz is now known as Michaeljackson
Michaeljackson is now known as Bryzzle
kyb3r_ has quit [Ping timeout: 255 seconds]
kyb3r_ has joined #ruby
<cleopatra>
O.o
tlarevo has quit [Remote host closed the connection]
jonr22 has quit [Read error: Connection reset by peer]
noop has joined #ruby
sk87 has joined #ruby
<shevy>
why is make_words slow?
Takle_ has quit [Ping timeout: 264 seconds]
<blahwoop>
heres a more specific question. how can i implement the possible word method into make_words
<blahwoop>
so if it finds bf and its false it kills that whole path
fedexo has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
<shevy>
bf?
<rpag>
boyfriend, best friend
<shevy>
yeah rpag
<shevy>
that's why I asked!
<shevy>
because I thought we were talking about a grid
<rpag>
shevy, will you be my boyfriend?
HayesHimself has joined #ruby
<shevy>
no time
<rpag>
:D
<shevy>
3 upcoming exams this week
<rpag>
what's your field?
<shevy>
everything hahaha
<blahwoop>
badass
Xeago has quit [Ping timeout: 264 seconds]
<rpag>
string theory?
<rpag>
:D
iwishiwerearobot has quit [Quit: >:(]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
arup_r has joined #ruby
<shevy>
originally genetics; somehow I transitioned into biotech, then chemistry; the exams however will be about ecology, genetics and horticultural/agricultural market dynamics
krisquigley has quit [Ping timeout: 256 seconds]
sski has quit [Remote host closed the connection]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sski has joined #ruby
<shevy>
right now I look at plant defence systems against herbivores
<shevy>
so back to blahwoop
<rpag>
do you use ruby for simulations?
<shevy>
if it finds a boyfriend, it kills ... what precisely?
<shevy>
I mean you store a lot of stuff
<blahwoop>
haha
<rpag>
the girlfriend
jonr22 has quit [Remote host closed the connection]
josephndenton has joined #ruby
jonr22 has joined #ruby
<shevy>
rpag dunno really... I use ruby for everything really; commandline... web ... bioruby ... but I lack knowledge in bioinformatics, the algorithms + math notation there confuse me a lot
<shevy>
it's all strings though!
<shevy>
with fat databases
kireevco has quit [Quit: Leaving.]
<blahwoop>
if it's at the combination string of 'bf' it'll go into the dictionary list sees that there are none with that in it and never go to bfh bfhi bhfe
uber_hulk has left #ruby [#ruby]
<shevy>
a password cracker!
iwishiwerearobot has joined #ruby
amundj has joined #ruby
jonr22 has quit [Remote host closed the connection]
roolo has joined #ruby
<shevy>
blahwoop well, can't you decide on that with proper return values? simply return false? I mean you already seem to do quite that
jonr22 has joined #ruby
<shevy>
and the string-assembly can happen through a loop
<shevy>
AND you could also denote a max-timer so it won't try for too long
msgodf has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
sski has quit [Ping timeout: 250 seconds]
kaiwren has quit [Quit: kaiwren]
<shevy>
btw this line also scares me: f.each_line { |line| @words << line.downcase unless (line.length < 3 || line.length > 16) }
<blahwoop>
doin too much at once?
<shevy>
this means it will append to @words only under certain conditions?
<blahwoop>
yup
<shevy>
k
clauswitt has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
<Lingo>
if i manually set @doc.data_file = params[:data_file]...
<Lingo>
["data_file", nil],
codecop has joined #ruby
sonOfRa has quit [Quit: Bye!]
rkalfane has joined #ruby
sonOfRa has joined #ruby
rshetty_ has joined #ruby
<apeiros_>
Lingo: #rubyonrails
jlast has joined #ruby
exadeci has joined #ruby
uber_hulk has joined #ruby
rshetty has quit [Ping timeout: 258 seconds]
kwd has joined #ruby
manzo has joined #ruby
hlegius has joined #ruby
tlarevo has joined #ruby
F__i__L has joined #ruby
<F__i__L>
hey guyzz how can I merge 2 arrays without having any common values in the end array ?
NoNMaDDe_ has joined #ruby
NoNMaDDeN has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
hlegius has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
charliesome has joined #ruby
_bart has joined #ruby
<tobiasvl>
F__i__L: what do you mean? you want an array that consists of all values that are in either array A or array B, but not the ones that are in both?
<F__i__L>
yeap
timonv_ has quit [Remote host closed the connection]
<ordepdev>
array & array or array.uniq
terlar has quit [Read error: No route to host]
hiyosi has quit [Read error: Connection reset by peer]
<_bart>
Hi, I'm using Ruby 2.1.5, what is the recommend built-in testing framework I should use, is it still the mini test one?
<F__i__L>
I think you meant array | array but thanks !
timonv_ has joined #ruby
terlar has joined #ruby
<tobiasvl>
F__i__L: if you don't want any of the common values, shouldn't it be something like (a - b) | (b - a)
davidhq has joined #ruby
<F__i__L>
ah sorry you are both right !
ReRixo has joined #ruby
hiyosi has joined #ruby
workmad3 has joined #ruby
timonv_ has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
<tobiasvl>
or just + instead of | I guess … since there are no duplicates at that point
unshadow has joined #ruby
Darryl_ has quit [Quit: Connection closed for inactivity]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quimrstorres has quit [Remote host closed the connection]
dangerousdave has joined #ruby
quimrstorres has joined #ruby
jheg has quit [Quit: jheg]
bal has quit [Ping timeout: 264 seconds]
bal has joined #ruby
bal has quit [Client Quit]
iwishiwerearobot has quit [Quit: Be back later ...]
bal has joined #ruby
PierreRambaud has joined #ruby
Lingo has quit [Quit: (null)]
jheg has joined #ruby
Timgauthier has joined #ruby
iwishiwerearobot has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
duplex has quit [Ping timeout: 256 seconds]
duplex has joined #ruby
dumdedum has joined #ruby
ponga has joined #ruby
gccostabr has joined #ruby
fandi has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
ikaros has joined #ruby
mkaesz has joined #ruby
hlegius has joined #ruby
ReRixo has quit [Ping timeout: 240 seconds]
nucatus has joined #ruby
hlegius has quit [Remote host closed the connection]
duplex has quit [Ping timeout: 256 seconds]
n008f4g_ has joined #ruby
timonv_ has joined #ruby
duplex has joined #ruby
sprihodko has joined #ruby
kl_ has joined #ruby
<kl_>
If I have a Gemfile.lock directory in my directory, and I modify my Gemfile, then run bundle install -- what happens?
Guest65478 has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
nucatus has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
miyabe has joined #ruby
mloveless has quit [Remote host closed the connection]
Macaveli has joined #ruby
<workmad3>
kl_: Gemfile.lock is a file, not a directory... but that aside, it depends on what change you made to your Gemfile
<workmad3>
kl_: if you added a new gem to your Gemfile and it doesn't require the change of any already locked versions, the new gem and its dependencies will just be merged into Gemfile.lock
krisquigley has joined #ruby
<workmad3>
kl_: if it requires any version changes, bundle install will raise an error
krisquigley has quit [Ping timeout: 250 seconds]
uber_hulk has joined #ruby
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blahwoop has quit [Remote host closed the connection]
<shevy>
kl_ I assume there had to be a way to not assign a new string object
<shevy>
class String also has replace()
<txdv>
I'm already up
sprihodko has quit [Quit: (null)]
<zenspider>
heh. I use clear all the time (tho usually on collections)
<txdv>
coding on shit bro
<zenspider>
replace is what I use on strings
<shevy>
txdv whatcha writing?
<kl_>
new string object's normally better anyway
SHyx0rmZ has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 240 seconds]
<zenspider>
if you're worride about mutability, ruby is REALLY not the right language for you
SHyx0rmZ has joined #ruby
mnms__ has quit [Quit: leaving]
<kl_>
zenspider: haha, yeah :)
yfeldblum has quit [Remote host closed the connection]
mkaesz has joined #ruby
<kl_>
zenspider: but it pays to take inspiration from immutability, even in potentially mutable contexts
fabrice31 has joined #ruby
jimbach has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
<Timgauthier>
shevy you're in the Federal Republic of Germany right?
jimbach has quit [Ping timeout: 258 seconds]
St_Marx has joined #ruby
DaniG2k has joined #ruby
<txdv>
shevy: IO event loop with continuation for easier programming
ldnunes_ has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
<shevy>
Timgauthier nope, about ... ~400 km southeast (or more eastsoutheast), in Austria/Vienna; Bavarians are like brothers to the Austrians though, unlike the rest of Germany :>
<shevy>
txdv sounds... exciting?
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
corehook has joined #ruby
blackmesa has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
uber_hulk has left #ruby [#ruby]
<txdv>
super cereal exciting
<txdv>
i have found a way how to utilize all the code written with blocking code in mind
<damic>
gregf: you there
<txdv>
and still have everything just in one thread/event loop
hlegius has quit [Remote host closed the connection]
Lingo has joined #ruby
<ponga>
hi shevy
ponga has quit [Remote host closed the connection]
razieliyo has quit [Quit: Saliendo]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<shevy>
hi ponga
<shevy>
damic are you working through a tutorial? :P
lxsameer has joined #ruby
lxsameer has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away is now known as Timgauthier
ta has quit [Ping timeout: 265 seconds]
<Timgauthier>
i always forget your austrianinan, sorry m8
<Timgauthier>
how is it being upside down? ;)
St_Marx has quit [Ping timeout: 250 seconds]
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<Lingo>
in rails I used a nested resource
<Lingo>
resources :courses do
<Lingo>
resources :docs
<Lingo>
end
antgel has joined #ruby
<Lingo>
now I'm geting a break in the new form,
<Lingo>
<%= form_for @doc, :html => {:multipart => true} do |f| %>, claiming undefined method `docs_path' for #<#<Class:0x007ffd0cd6dbc8>:0x007ffd0cd6cef8>
skroon has joined #ruby
<Timgauthier>
please use pastie.org or gist.github.com
<Timgauthier>
;) i kid i kid
<skroon>
i'm trying to use ruby-install for installing ruby, but it defaults to /opt for installtion, is there a way to get it install in /usr/local/ default?
<Timgauthier>
what OS skroon ?
<gregf_>
damic++
<skroon>
Timgauthier: linux (ubuntu 14.04)
<Timgauthier>
no idea
St_Marx has joined #ruby
<shevy>
skroon does ruby-install come with a --help section?
startupality has joined #ruby
<shevy>
Timgauthier yeah everybody knows Australia, nobody knows Austria until either Arnold Schwarzenegger, Sigmund Freud or Adolf Hitler is mentioned :>
<Timgauthier>
lol
ponga has quit [Ping timeout: 244 seconds]
<Timgauthier>
yet Germany gets all the blame for hitler
<startupality>
where is the list of available callbacks for https://github.com/aasm/aasm ? i want to be able to use the parameters but instead of using on_transition I want the callback which is callled after the state gets changed.
<shevy>
rightfully so! he came to power in Bavaria; he got not accepted in art school in Vienna so he moved away. In hindsight, nevber let austrians leave here
<Timgauthier>
lol
Lingo has quit [Quit: (null)]
movedx has joined #ruby
kirun has joined #ruby
nagaraj has quit [Ping timeout: 258 seconds]
<movedx>
Why would the Foreman gem work fine (foreman start -f my_proc_file) when executed on the shell, but not when being executed, in the exact same manner, from an init script? It's just exiting immediatley with no errors or explanation.
ajaiswal has quit [Remote host closed the connection]
krisquigley has joined #ruby
kith has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<Timgauthier>
did you load the George Foreman, or the ripoff no name brand?
noway_ has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
lol
giuseppesolinas has joined #ruby
yfeldblum has joined #ruby
weemsledeux has joined #ruby
tlarevo has joined #ruby
movedx has left #ruby [#ruby]
<damic>
shevy: no it was some code i wrote to finish a CTF but just trying to make it cleaner now
pen has quit []
nagaraj has joined #ruby
kevinxu has joined #ruby
razieliyo has joined #ruby
razieliyo has joined #ruby
razieliyo has quit [Client Quit]
kevinxu is now known as Guest55771
skroon has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 272 seconds]
Guest55771 has quit [Max SendQ exceeded]
BlackGear has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
quimrstorres has joined #ruby
AlexRussia has joined #ruby
carlosoliveira has joined #ruby
quimrstorres has quit [Remote host closed the connection]
kevinxu_ has joined #ruby
<Timgauthier>
you wrote code to finish capture the flag?
kevinxu_ has quit [Max SendQ exceeded]
spastorino has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<damic>
Timgauthier: no it was a challenge for one flag in a ctf
fightback has joined #ruby
<damic>
had to decrypt a cipher which led to another, then another 6 in total
Spami has joined #ruby
<Timgauthier>
sounds fun
<damic>
it was
<damic>
our team got 3rd place in our league
<damic>
actually 2nd
<shevy>
out of 3 teams? :>
<shevy>
hard to ask ;P
weemsledeux has quit [Remote host closed the connection]
<damic>
lol
shredding has quit [Quit: shredding]
<damic>
i think it was 36 teams
noway__ has joined #ruby
<damic>
in our league
<damic>
three leagues, were were in the 2nd class league.
fightback has quit [Client Quit]
quimrstorres has joined #ruby
noway_ has quit [Ping timeout: 265 seconds]
krz has quit [Quit: WeeChat 1.0.1]
tlarevo has quit [Remote host closed the connection]
<bhaak>
rpag: go back a 100 years and austrians thinking of themselves as german was widespread. but you know, "things" happened
jlast has quit [Ping timeout: 264 seconds]
Guest21879 has quit []
iref has joined #ruby
ionelmc has joined #ruby
dumdedum has quit [Ping timeout: 245 seconds]
giuseppesolinas has joined #ruby
<apeiros_>
bhaak: in the time of könig und kaiserreich österreich-ungarn? I doubt that :D
yeticry has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
ponga has quit [Ping timeout: 245 seconds]
Prawnzy has quit [Remote host closed the connection]
yeticry has joined #ruby
papal has quit [Ping timeout: 255 seconds]
<shevy>
:)
<bhaak>
apeiros_: yes. remember that it was not binary. you could be austrian and german, like you can be now german and european or german and berliner or german and bavarian ... wait, forget the last one
<shevy>
weird thing was only that hungarian as a language is so ... weird
papal has joined #ruby
vt102 has joined #ruby
giuseppesolinas has quit [Client Quit]
Timgauthier is now known as timgauthier_away
NoNMaDDeN has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
corehook has quit [Remote host closed the connection]
chu has joined #ruby
charliesome has quit [Quit: zzz]
<bhaak>
shevy: it's not related to the other major languages in europe and only remotely related to finnish.
yfeldblum has quit [Ping timeout: 240 seconds]
<bhaak>
some weirdness is to be expected :)
sprihodko has joined #ruby
aspiers has joined #ruby
nucatus has joined #ruby
JCii8__ has joined #ruby
jbw has quit [Ping timeout: 245 seconds]
kasperti_ has joined #ruby
rshetty_ has quit [Remote host closed the connection]
jbw has joined #ruby
techsethi has quit [Quit: techsethi]
Macaveli has quit [Ping timeout: 250 seconds]
JCii8_ has quit [Ping timeout: 244 seconds]
clauswitt has quit [Ping timeout: 250 seconds]
nucatus has quit [Ping timeout: 250 seconds]
Timgauthier has joined #ruby
noop has quit [Ping timeout: 264 seconds]
moritzschaefer has quit [Ping timeout: 255 seconds]
clauswitt has joined #ruby
ReRixo has quit [Ping timeout: 272 seconds]
ReRixo has joined #ruby
tvw has joined #ruby
dumdedum has joined #ruby
nfk has quit [Quit: yawn]
papal has quit [Remote host closed the connection]
papal has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
AFKGeek has joined #ruby
timonv_ has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
marr has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
aclearman037 has joined #ruby
mikepack has joined #ruby
iwishiwerearobot has quit [Ping timeout: 240 seconds]
techsethi has joined #ruby
yalue has joined #ruby
iwishiwerearobot has joined #ruby
sk87 has joined #ruby
nfk has joined #ruby
aspiers has quit [Ping timeout: 255 seconds]
jonr22 has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 240 seconds]
noop has joined #ruby
sprihodko has quit [Quit: (null)]
dangerousdave has joined #ruby
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
freerobby has joined #ruby
jeaye has quit [Quit: WeeChat 1.0]
kobain has quit [Max SendQ exceeded]
<shevy>
when is it appropriate to raise a TypeError exception?
lucyinthesky has joined #ruby
phutchins has joined #ruby
<tobiasvl>
when encountering an object that is not of the expected type
<shevy>
hmm
kl_ has quit [Ping timeout: 264 seconds]
_5kg has joined #ruby
AFKGeek has quit [Remote host closed the connection]
jeaye has joined #ruby
elcheckito has quit [Ping timeout: 272 seconds]
aspiers has joined #ruby
jimbach has joined #ruby
chrisseaton has quit [Read error: Connection reset by peer]
troter__ has quit [Read error: Connection reset by peer]
mroth has quit [Write error: Connection reset by peer]
ckrailo has quit [Read error: Connection reset by peer]
casual_ has quit [Read error: Connection reset by peer]
im0b has quit [Read error: Connection reset by peer]
kapowaz_ has quit [Write error: Connection reset by peer]
incomprehensibly has quit [Read error: Connection reset by peer]
PhilK has quit [Write error: Connection reset by peer]
maZtah has quit [Read error: Connection reset by peer]
alol has quit [Read error: Connection reset by peer]
MiracleBlue has quit [Read error: Connection reset by peer]
jrunning_ has quit [Write error: Connection reset by peer]
dukedave has quit [Write error: Connection reset by peer]
whoojemaflip has quit [Read error: Connection reset by peer]
genta has quit [Ping timeout: 265 seconds]
thesheff17 has quit [Read error: Connection reset by peer]
kyote has quit [Read error: Connection reset by peer]
frode15243 has quit [Read error: Connection reset by peer]
ceej has quit [Write error: Connection reset by peer]
n1ftyn8 has quit [Write error: Connection reset by peer]
ZucchiniZe has quit [Write error: Connection reset by peer]
rfv has quit [Write error: Connection reset by peer]
bjeanes has quit [Read error: Connection reset by peer]
ewilliam_ has quit [Read error: Connection reset by peer]
culturelabs has quit [Write error: Connection reset by peer]
KnownSyntax has quit [Read error: Connection reset by peer]
yo61 has quit [Read error: Connection reset by peer]
shelling has quit [Read error: Connection reset by peer]
akitada has quit [Read error: Connection reset by peer]
sivoais has quit [Ping timeout: 265 seconds]
unclouded has quit [Ping timeout: 265 seconds]
russt has joined #ruby
Juanchito_ has joined #ruby
chrisseaton has joined #ruby
Juanchito has quit [Ping timeout: 265 seconds]
jimeh has quit [Ping timeout: 265 seconds]
hellschreiber has quit [Ping timeout: 265 seconds]
kapowaz_ has joined #ruby
tiagonobre___ has quit [Ping timeout: 265 seconds]
daxroc__ has quit [Ping timeout: 265 seconds]
charles81 has quit [Ping timeout: 265 seconds]
bcavileer_ has quit [Ping timeout: 265 seconds]
incomprehensibly has joined #ruby
im0b has joined #ruby
skarn has quit [Ping timeout: 265 seconds]
troter__ has joined #ruby
mroth has joined #ruby
ckrailo_ has joined #ruby
michael_mbp has quit [Ping timeout: 265 seconds]
alol has joined #ruby
MiracleBlue has joined #ruby
kyote has joined #ruby
daxroc__ has joined #ruby
PhilK has joined #ruby
jrunning_ has joined #ruby
thesheff17 has joined #ruby
exadeci has quit [Ping timeout: 265 seconds]
Snowstormer has quit [Ping timeout: 265 seconds]
machty has quit [Ping timeout: 265 seconds]
callenb__ has quit [Ping timeout: 265 seconds]
charles81 has joined #ruby
tiagonobre___ has joined #ruby
frode15243 has joined #ruby
callenb___ has joined #ruby
shelling_ has joined #ruby
akitada has joined #ruby
Juanchito_ is now known as Juanchito
n1ftyn8 has joined #ruby
ewilliam_ has joined #ruby
ZucchiniZe has joined #ruby
whoojemaflip has joined #ruby
yo61 has joined #ruby
KnownSyntax has joined #ruby
culturelabs has joined #ruby
hellschreiber has joined #ruby
sivoais has joined #ruby
skarn has joined #ruby
michael_imac has joined #ruby
casual_ has joined #ruby
shredding has joined #ruby
bjeanes has joined #ruby
exadeci has joined #ruby
giuseppesolinas has joined #ruby
dukedave has joined #ruby
unclouded has joined #ruby
machty has joined #ruby
rfv has joined #ruby
maZtah has joined #ruby
bcavileer_ has joined #ruby
rshetty has joined #ruby
jimeh has joined #ruby
benzrf|offline is now known as benzrf
atomi has quit [Ping timeout: 265 seconds]
centrx has joined #ruby
ceej has joined #ruby
LekeFly has joined #ruby
upp3r has joined #ruby
atomi has joined #ruby
BTRE has quit [Quit: Leaving]
rdark has quit [Quit: leaving]
jimms has joined #ruby
rdark has joined #ruby
genta has joined #ruby
MrIlyas has joined #ruby
Beoran has joined #ruby
BTRE has joined #ruby
quimrstorres has quit [Remote host closed the connection]
techsethi has quit [Quit: techsethi]
sivoais has quit [Ping timeout: 264 seconds]
nagaraj has quit [Remote host closed the connection]
sivoais has joined #ruby
timonv_ has joined #ruby
drawingthesun has joined #ruby
kaiwren has quit [Ping timeout: 264 seconds]
drawingthesun has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
elcheckito has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
benzrf is now known as benzrf|offline
jlast has joined #ruby
benzrf|offline is now known as benzrf
TheLastExile has joined #ruby
benzrf is now known as benzrf|offline
lw has joined #ruby
jerius has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
elcheckito has quit [Ping timeout: 240 seconds]
<shevy>
123/456 is a Rational
<shevy>
is there a way to split this up into its two components? a = 123; b = 456
<jhass>
saves allocating a ton of hashes just to merge them into one again
<workmad3>
jlebrech: first, it's the mean... 'average' can mean one of 3 different operations... and second, not afaik... there are so many ways you could structure your data in a hash, you kinda need to roll your own operations on it to handle the particular one you chose
upp3r has joined #ruby
<jlebrech>
workmad3: I see.
lw has joined #ruby
klmlfl has joined #ruby
<jlebrech>
maybe in a language without hashes they'd have inbuilt operations for what i'm on abgout?
<jlebrech>
jhass: yeah, i was looking to do a map/reduce as first to no avail
<jhass>
oh you can transform sum(m)/n into sum(m/n) ? I suck at math...
sivoais has quit [Ping timeout: 264 seconds]
<workmad3>
jhass: (a + b + c) / d == (a / d) + (b / d) + (c / d)
Photism has joined #ruby
<ddv>
add a mean method to Enumerable with something like: require 'mathn'; self.sum/self.length.to_f
sivoais has joined #ruby
<workmad3>
(it's very obvious if you remember that d * (a + b + c) == a*d + b*d + c*d and that 'a / d' == 'a + d**-1'
j2p2 has joined #ruby
<workmad3>
err, a * d**-1 even
AFKGeek has joined #ruby
giuseppesolinas has joined #ruby
mary5030 has joined #ruby
<jhass>
mmh, right
<jhass>
thanks
<jlebrech>
well you guys are awesome :D
<workmad3>
jlebrech: you may want to micro-optimise that so that you don't do so many divisions, as they'll be expensive... but I expect you'd need to get a lot more data in your array before you'd really need to worry about it (especially compared with the cost of iterating over the array 3 or 4 times ;) )
mary5030 has quit [Remote host closed the connection]
craigp has joined #ruby
mary5030 has joined #ruby
<jlebrech>
workmad3: yeah :)
havenwood has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
j2p2 has quit [Ping timeout: 245 seconds]
craigp has quit [Client Quit]
Joufflu has joined #ruby
<jhass>
also divisions are still a lot cheaper than allocations
Kricir has joined #ruby
The_NetZ has joined #ruby
<The_NetZ>
hey. having some issue compiling 32bit ruby on a 64 bit system; error: https://clbin.com/Vi9ET
j2p2 has joined #ruby
<workmad3>
jlebrech: oh, you may also find a bit of rounding error gets introduced there too... so if you need really high precision, again move the division to the end and maybe consider converting your calculations to use BigDecimal instead of floats
moritzschaefer has joined #ruby
livathinos has quit []
arup_r has joined #ruby
<jlebrech>
workmad3: that's not an issue :)
giuseppesolinas has quit [Quit: This computer has gone to sleep]
tesuji has quit [Ping timeout: 240 seconds]
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimms has quit [Remote host closed the connection]
<workmad3>
jlebrech: we don't know the context, so can't be sure... hence why I flagged it up, just in case ;)
livathinos has joined #ruby
<jlebrech>
workmad3: that's cool
patrick99e99 has joined #ruby
<workmad3>
jlebrech: it's also surprising how quickly that sort of thing can become an issue... however, iirc my error bound maths correctly, the division should have the effect of reducing the overall error rather than increasing it
sivoais has quit [Ping timeout: 244 seconds]
giuseppesolinas has joined #ruby
apope has joined #ruby
axl_ has joined #ruby
sivoais has joined #ruby
klmlfl has quit [Remote host closed the connection]
upp3r has quit [Quit: upp3r]
divi has joined #ruby
fsapo has joined #ruby
giuseppesolinas has quit [Client Quit]
patrick99e99 has quit [Ping timeout: 265 seconds]
tobago has quit [Read error: Connection reset by peer]
<jheg>
So I have that part working and currently storing each iteration into an array
dangerousdave has joined #ruby
<jheg>
so i have an array of Player objects
dangerousdave has quit [Max SendQ exceeded]
<jheg>
But what I’d like to do is store variables named player1, player2, player3 etc in the array which each var being a Player object
AlexRussia has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
<apeiros_>
that's a bad idea.
dangerousdave has joined #ruby
<apeiros_>
the lvar system is not a hash. if you want a hash, use one.
<jheg>
So I think i need a way of taking the num of players then iterating through each num asking for each players name which is stored in Player.name and assigning the Player object to player1 … player2 and storing these vars in an array
mkaesz has quit [Remote host closed the connection]
<jheg>
make sense
dangerousdave has quit [Max SendQ exceeded]
Hijiri has quit [Quit: WeeChat 1.0.1]
<jheg>
Ah OK
mkaesz has joined #ruby
<apeiros_>
but seriously, if you have player1..player4, I see no reason to not just use player[0]..player[3] instead
<apeiros_>
or why do you want player1 instead of player[0]?
<jheg>
Because the num of players is not finite
dumdedum has joined #ruby
<apeiros_>
jheg: that's actually a reason to *even more* use player[n] instead of playerN
sinkensabe has quit [Remote host closed the connection]
AlexRussia has joined #ruby
Joufflu has quit [Ping timeout: 258 seconds]
dangerousdave has joined #ruby
<jheg>
can you explain that to me apeiros_ I don’t quite follow
dangerousdave has quit [Max SendQ exceeded]
<apeiros_>
I can't explain it until you gave me a good reason to prefer playerN over player[n] (the latter being an array of players)
<jheg>
So lemme just check we on the same page
<Xeago>
apeiros_: you don't want to address your players as player43121230847129837413249
<Xeago>
err jheg
<Xeago>
instead have a array, players which contains a number of items, which you access as players[index]
<jheg>
yeah that’s what I have currently actualluy
<Xeago>
then what is the problem?
sivoais has joined #ruby
mkaesz has quit [Ping timeout: 264 seconds]
<jheg>
yeah not sure :)
<Xeago>
num.times { |i| puts "Name for #{i}'th player?"; name = …read…name…; players << Player.new(name: name) }
mikepack has joined #ruby
<apeiros_>
or just: players = Array.new(num) { |i| …
<apeiros_>
afk
<Xeago>
:O
<Xeago>
didn't know that one
<jheg>
I think it was just when I inspect the player array it was giving me the object [<Player:0x00000101154363458>, <Player:0x000001011cc5a8>] rather than [player1, player2]
stunder has joined #ruby
drewvanstone has joined #ruby
rodfersou has quit [Ping timeout: 240 seconds]
<Xeago>
jheg: you'll need to override #to_inspect to print something useful
<Xeago>
by default you'll get #to_inspect from Object
<Xeago>
which prints the class and memory address
<jheg>
cool that might be just what i needed to know
<jheg>
so I’d do that from the Player class?
<Xeago>
I'm not 100% sure on the method name, might be #inspect as well
sivoais has quit [Read error: Connection reset by peer]
<Xeago>
jheg: on the class you want to be formatted as you want it to be
sivoais has joined #ruby
<apeiros_>
#inspect
<apeiros_>
not to_inspect ;-)
it0a has joined #ruby
<apeiros_>
jheg: and assigning stuff to player1 doesn't make it show up under that name in inspect
<Xeago>
>> class Foo; def inspect; "yay"; end; end; Foo.new.inspect
<earlz>
considering if I should write my database structure manually as SQL, or use the Sequel DSL bits
<earlz>
for a data heavy application
* apeiros_
off again
apeiros_ has quit [Remote host closed the connection]
AFKGeek has quit [Quit: Leaving]
aganov has quit [Remote host closed the connection]
apeiros_ has joined #ruby
Xeago_ has joined #ruby
snath has joined #ruby
apeiros_ has quit [Ping timeout: 245 seconds]
<Takumo>
Hi all, what's the best way to connect ruby to MSSQL in a way which will work on both win32 and linux?
Xeago has quit [Ping timeout: 244 seconds]
geekbri has joined #ruby
kwd has quit [Ping timeout: 240 seconds]
lmickh has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
<jlebrech>
Takumo: write and api in c# ?
n008f4g_ has joined #ruby
<Takumo>
jlebrech: whole point of this project is to not use C# as I don't know the language
<shevy>
Takumo he just wants to distract you from the beauty of ruby ;)
klmlfl has joined #ruby
<Takumo>
in fact, this project is to write an API in ruby to access data in an MSSQL db
<shevy>
unfortunately I only know postgresql, and even then I only used ruby to autogenerate SQL statements, like into a .sql file with lots of INSERT statements
<jlebrech>
the 2nd best option would be to use TDS
<earlz>
some years ago, I wrote some hack to migrate PostgreSQL to MSSQL using active record I think
<shevy>
tatoo driven system?
<shevy>
oh lol
<earlz>
but that wouldn't run on Linux I don't think
<shevy>
now I actually noticed the 'S' in MSSQL... my brain thought it was MySQL for a moment ...
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
sad that _why left - noone else got any drawing skills here
<ponga>
shevy: but i don't get it by 100%, is it supposed to mean you could do a = a in python
zacstewart has joined #ruby
ghostlines has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<ponga>
cos you know
<shevy>
I think it's a pun on permanent self.bla or something, or that you have to pass self in python
<ponga>
i don't know python
<ponga>
i only know ruby
<ponga>
*proud
<shevy>
because in python, self is explicit
<shevy>
which I hate
kireevco has joined #ruby
blackmesa has joined #ruby
<shevy>
why is the object not clever enough to know where it is?
<ponga>
why do you have to that?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
well you can name it differently
<ponga>
is that what they speak as 'the python way'
<shevy>
I dunno really, I am sure python had a reason why it was introduced that way
<ponga>
whenever i come across a question article of python , i see this kind of 'what you are supposed to do is not the true python way of coding, you should try ~'
<ponga>
shevy is it normal
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
f00dMonsta has joined #ruby
<ponga>
python is like there is ultimate answer and everyone should follow the devine rule
anaeem1 has joined #ruby
<shevy>
dunno
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lmickh has quit [Remote host closed the connection]
<shevy>
I don't think any programming language can really adhere to this without breaking that rule
<shevy>
it's more like an attempt to manage complexity
<shevy>
"if we keep it all super simple, it will be all super easy"
<ponga>
shevy do you consider yourself a dev
<shevy>
nope
<ponga>
do you develop to make living shevy
startupality has quit [Quit: startupality]
<shevy>
nope
benzrf is now known as benzrf|offline
pandaant has joined #ruby
_JamieD_ has quit [Ping timeout: 250 seconds]
<ponga>
CAN you manage to just develop to make living as a job shevy
<ericwood>
I'm going to murder this API
<shevy>
I think so, but probably in bioinformatics
jimms has joined #ruby
<ponga>
i see
<shevy>
but I don't really want to spend more time with computers, I want to spend less time with them
<ponga>
so im like you? maybe?
<banisterfiend>
ponga shevy still lives with his mommy and daddy :)
whoisjake has joined #ruby
<ponga>
i reckon i could only use programming to make living when its about linguistics or NLP
<ponga>
but shevy... i see you here all the time...
<ponga>
how come you want to spend less time with it
<shevy>
ponga it's the last remaining IRC channel I am active in really
<ponga>
and banisterfiend thank for personal update
bigkevmc_ has joined #ruby
<ponga>
i see, youre no longer active in ##English anymore
<ponga>
that's where i first saw you
<shevy>
I am in 7 channels right now - 3 of them are inactive, one I can cut, another one is with some people from austria, and the last one is #ruby
<shevy>
hah I missed one
klmlfl_ has quit [Ping timeout: 245 seconds]
bigkevmcd has quit [Ping timeout: 245 seconds]
<ponga>
im mostly active in ##Cooking
<shevy>
lol
roolo has quit [Quit: AAAAaaaaAAAAAAA]
<Timgauthier>
lier
<ponga>
im their authoritive asian cuisine advisory shevy
<shevy>
oh... I think the 7th was #gobolinux. it had the better idea
jimms_ has joined #ruby
<ponga>
everyone there is yoropean
<shevy>
but it died when hisham left :(
Morkel has quit [Quit: Morkel]
<shevy>
people leaving is bad! like _why
<shevy>
<udac> can I use macros, in Lisp, to avoid using ()'s?
<shevy>
cool
rshetty has quit [Remote host closed the connection]
doev has joined #ruby
corehook has quit [Remote host closed the connection]
jimms has quit [Ping timeout: 264 seconds]
pacMakaveli has quit [Remote host closed the connection]
rkalfane has joined #ruby
Macaveli has joined #ruby
mikepack has joined #ruby
giuseppesolinas has joined #ruby
timonv_ has joined #ruby
last_staff has joined #ruby
hmsimha has joined #ruby
grzywacz has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
<Timgauthier>
fuck i dislike having to make menu's :|
dkb20k has joined #ruby
mikecmpbll has quit [Quit: ciao.]
Tricon has joined #ruby
tvw has quit [Ping timeout: 255 seconds]
spacemud has quit [Ping timeout: 250 seconds]
SCHAAP137 has joined #ruby
dANO has quit []
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
krisquigley has quit [Remote host closed the connection]
ptrrr has joined #ruby
DaniG2k has quit [Quit: leaving]
krisquigley has joined #ruby
upp3r has quit [Quit: upp3r]
o0oo0o has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
duggiefresh has joined #ruby
nateberkopec has joined #ruby
stunder has quit [Remote host closed the connection]
wildroman2 has quit []
despai has joined #ruby
joonty has quit [Ping timeout: 265 seconds]
mois3x has joined #ruby
stunder has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
jlebrech has quit []
sambao21 has joined #ruby
francisfish has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
TheLastExile has quit [Ping timeout: 258 seconds]
Hanmac has joined #ruby
jheg has quit [Quit: jheg]
francisfish has joined #ruby
adriancb has quit [Remote host closed the connection]
apope has quit [Quit: apope]
mloveless has joined #ruby
abuzze has joined #ruby
mikecmpbll has joined #ruby
sargas has quit [Quit: Leaving]
Prawnzy has quit [Remote host closed the connection]
<shevy>
you are cooking Timgauthier?
<Timgauthier>
babies
<Timgauthier>
no, for websites
francisfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
troyready has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
the_lord has quit [Read error: Connection timed out]
the_lord has joined #ruby
deric_skibotn has joined #ruby
ReRixo has joined #ruby
pietr0 has joined #ruby
francisfish has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
echooo1 has quit [Remote host closed the connection]
<shevy>
ah yes
<shevy>
I once had this genious idea of letting ruby auto-generate me menus
quimrstorres has quit [Remote host closed the connection]
wallerdev has joined #ruby
momomomomo has quit [Quit: momomomomo]
einarj has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
giuseppesolinas has quit [Client Quit]
hiyosi has quit [Ping timeout: 265 seconds]
quimrstorres has joined #ruby
iamjarvo has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Prometheian has joined #ruby
f00dMonsta_ has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
henesy has quit [Excess Flood]
Macaveli has quit [Ping timeout: 255 seconds]
CorySimmons has joined #ruby
henesy has joined #ruby
fabrice31 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
tvw has joined #ruby
f00dMonsta has quit [Ping timeout: 265 seconds]
bigkevmc_ is now known as bigkevmcd
aspires has quit []
jobewan has joined #ruby
<Timgauthier>
brutal
<Timgauthier>
i'm just going to you refills.bourbon.io code
Tricon has quit [Remote host closed the connection]
<Timgauthier>
it works good enough, its better then what we had before (bootstrap) and i'm not in a place in my head to think through writing it myself right now
stunder has quit [Ping timeout: 240 seconds]
<Timgauthier>
its modular so i can rewrite it later
giuseppesolinas has joined #ruby
boombadaroomba has joined #ruby
benzrf|offline is now known as benzrf
mikecmpbll has quit [Quit: i've nodded off.]
fabrice31 has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
jimbach has quit [Remote host closed the connection]
noop has joined #ruby
j_mcnally has joined #ruby
stunder has joined #ruby
timonv^ has quit [Read error: Connection reset by peer]
Prometheian has quit [Remote host closed the connection]
timonv_ has joined #ruby
kl has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
GreatSUN has quit [Ping timeout: 246 seconds]
apope has joined #ruby
ctp has joined #ruby
djbkd has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
adriancb has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
arup_r has quit [Quit: Leaving.]
redb has joined #ruby
<redb>
hi
_ixti_ has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
aspires has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
arup_r has joined #ruby
Timgauthier is now known as timgauthier_away
<redb>
I have a simple problem which I think has some kind of obvious answer that I can't find: I'm trying scan recursively through a tree of files and folders with Dir.glob. Sometimes, I need to rename a folder. The problem is that whenever I do that, is that inside the Dir.glob structure it still has the files inside the renamed folder with the old name. So if do any operation on those files it fails. The Dir.glob process would need to restart anew to get the ne
<redb>
w paths. How do I solve this?
ferri has quit [Read error: Connection reset by peer]
chthon has quit [Ping timeout: 255 seconds]
p8952_ is now known as p8952
ordepdev has quit [Ping timeout: 255 seconds]
jimms_ has quit [Remote host closed the connection]
ferri has quit [Read error: Connection reset by peer]
grzywacz has quit [Ping timeout: 258 seconds]
t_mmyv has joined #ruby
baweaver has joined #ruby
arya_ching has quit []
arya_ching has joined #ruby
djbkd has quit [Remote host closed the connection]
upp3r has joined #ruby
despai has joined #ruby
naturtrunken_m has joined #ruby
Jake232 has joined #ruby
jonr22 has joined #ruby
klmlfl has joined #ruby
<redb>
havenwood, wait I'm not getting it. could you elaborate a bit more? Assume that I know what map does, and that I know the code you have written. But I still don't uderstand how that fixes my problem.
kaspertidemann has joined #ruby
Pumukel has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
rdark_ has quit [Quit: leaving]
aspires has quit []
<havenwood>
redb: those assumptions are contradictory
<redb>
we're inside the block, a line of code changes a folder's name, say from "Folder" "NEWfolder". Now the block iterates on the files that go into that folder, but it's looking for "Folder/file1" not "NEWfolder/file1"
<redb>
alright, could you still explain a bit more?
aspires has joined #ruby
<havenwood>
redb: whatever change you've made, return it as the value of your block
<havenwood>
redb: map to the new values, whatever they are
_ixti_ has joined #ruby
naturtrunken_m has quit [Remote host closed the connection]
m8 has joined #ruby
<redb>
ah mmmh, almost getting it, lemme try
djbkd has joined #ruby
beneggett has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
timgauthier_away is now known as Timgauthier
claymore has joined #ruby
fantazo has quit [Ping timeout: 255 seconds]
jimbach has joined #ruby
jimbach has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
tvw has quit []
jimbach has joined #ruby
mikecmpbll has joined #ruby
galeido has joined #ruby
gargarin has joined #ruby
<redb>
havenwood, if I've understood correctly, do I need to do use two consecutive blocks like this: Dir.glob(/**/).sort.map{change all folders that need changing}.each{now operate on files of changed folder} ??
krisquigley has joined #ruby
<redb>
I can't change folders and operate directly inside of the first map right?
Authenticator has quit [Quit: leaving]
<havenwood>
redb: sure you can
<redb>
ah... mmmh didn't know that... lemme try again then
grzywacz has joined #ruby
Prometheian has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
eguneys has joined #ruby
<eguneys>
Can you help me about securing API endpoints, see this gist:
djbkd has quit [Remote host closed the connection]
cleopatra has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
Dreamer3 has quit [Quit: Leaving...]
djbkd has joined #ruby
blahwoop has joined #ruby
<blahwoop>
whats up
gargarin has left #ruby [#ruby]
arup_r has quit [Quit: Leaving.]
redb has quit [Ping timeout: 244 seconds]
<havenwood>
eguneys: I doubt you'll want to be an oauth provider yourself. Sure you can use other providers, just pick ones that overlap with your users.
jdj_dk has joined #ruby
<havenwood>
eguneys: i don't understand the redirects question
zacstewart has quit [Remote host closed the connection]
<havenwood>
say more?
hiyosi has joined #ruby
<havenwood>
eguneys: there are certainly simpler options than oauth, do you need things oauth provides?
perturbation has joined #ruby
Hijiri has joined #ruby
t7y9r has quit [Ping timeout: 245 seconds]
jdj_dk_ has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<eguneys>
havenwook: thanks for simplifying the problem, I need role-based authentication like OAuth
anaeem1_ has joined #ruby
tobleronegordon has joined #ruby
ghormoon has quit [Ping timeout: 256 seconds]
blahwoop has quit [Remote host closed the connection]
ghormoon has joined #ruby
Prometheian has joined #ruby
<havenwood>
eguneys: what do you mean by "browser based redirects"? like javascript? 3xx redirection?
tobleronegordon is now known as tobleronelunch[a
<eguneys>
havenwood: I mean when you log in with twitter, it redirects to twitter page, then user logs in to twitter, then twitter sends token to your server back.
jdj_dk_ has quit [Remote host closed the connection]
sambao21_ has joined #ruby
<rubybegg>
How come export PATH=/usr/foo/bar:$PATH works in terminal but doesnt work in a ruby script like so: system("export PATH=/usr/foo/bar:$PATH")
ghostlines has joined #ruby
sambao21 has quit [Read error: Connection reset by peer]
moritzschaefer has quit [Ping timeout: 256 seconds]
jimms has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.91 [Firefox 33.1/20141106120505]]
ta_ has quit [Ping timeout: 265 seconds]
Tricon has quit [Remote host closed the connection]
kl has quit [Ping timeout: 265 seconds]
<Timgauthier>
hahahahaha
<Timgauthier>
nice
<Timgauthier>
jhass <3
yalue has quit [Quit: Leaving]
pygospa has joined #ruby
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jheg>
is it possible to mixin def initialize ?
<apeiros_>
of course
<apeiros_>
it's just a method
claymore has quit [Quit: Leaving]
<jheg>
I can’t seem to get it to work..
b3itz has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
<b3itz>
my professor in an assignment says, "To iterate recursively through all subdirectories starting from the initial directory" What EXACTLY does this mean?
<jhass>
stop thinking about how Hash#each might obtain those arrays, all you care about it is that it yields you the key/value pairs as two element arrays
<athan>
Is ComfortableMexicanSofa the most popular Rails CMS?
aspires has joined #ruby
<jhass>
athan: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
baweaver has quit [Remote host closed the connection]
<n_blownapart>
ok thanks a lot jhass. thing is...
<benzrf>
is ComfortableMexicanSofa a gfycat url
<n_blownapart>
I gotta go. maybe later more drama? ^
n_blownapart has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 258 seconds]
<athan>
benzrf: I think so hahaha.
Tuxero has quit [Quit: Tuxero]
<benzrf>
actually its not unu
sambao21 has quit [Quit: Computer has gone to sleep.]
karmatr0n has joined #ruby
<athan>
so what interests you about Ruby opposed to Haskell, benzrf?
<benzrf>
athan: whatcha mean
<benzrf>
ruby i think is better for quick n dirty scripts
dts has quit [Read error: Connection reset by peer]
ishikawa91 has joined #ruby
<athan>
benzrf: I've never really messed with it until now. The class system seems perfect for monkey-patching
<benzrf>
athan: wait
<benzrf>
athan: you mean whats good about haskell v. ruby?
<havenwood>
freedom-patching*
<athan>
benzrf: Moreso your own opinion for use cases haha
<athan>
havenwood: Tattooing it into my brain :)
jonr22 has joined #ruby
<benzrf>
static typing is just plain great
<benzrf>
there's no contest
<benzrf>
i mean
<athan>
for soundness?
dts has joined #ruby
<benzrf>
individual cases of static typing can suck (e.g. java)
<benzrf>
but the best you can get from static is much, much better than the best you can get from dynamic
<benzrf>
athan: if by soundness you mean lack of bugs, then yes
<benzrf>
like i mean
<benzrf>
even types aside, ruby can't so much as tell you if you typod a variable nae
<benzrf>
*name
pchellovod has quit [Ping timeout: 256 seconds]
<athan>
:o
<benzrf>
dynamism is great for horrifying hacks and all, but how often do you use it in actual code that you're not writing for the purpose of the hack
* athan
needs to study
davasaurous has joined #ruby
<benzrf>
athan: wait, which one do you already know
<athan>
benzrf: Do you have any tips for getting started with ruby?
<athan>
haskell haha
<benzrf>
ah, lol
<havenwood>
benzrf: just use the variable with the closest levenshtein distance
<benzrf>
havenwood: ayy lmao
<benzrf>
athan: do you know any languages besides haskell
timonv_ has quit [Remote host closed the connection]
Pumukel has joined #ruby
<havenwood>
>> require 'rubygems/text'; include Gem::Text; levenshtein_distance 'new', 'nwe'
<guest123>
Hi, i wonder if someone might be able to point me in the right direction. im trying the read a command inside backticks but can seem to to get it right. i wonder if someone would be able to take a look ? http://paste.ee/p/ZOWfO
<benzrf>
to be precise, the objects act a bit differentlyt
renderful has joined #ruby
<benzrf>
athan: in case it isn't clear, "function call" notation like `foo(1, 2, 3)' is really calling the foo method on self
<havenwood>
guest123: use the block form of File.open so it auto-closes itself
<athan>
benzrf: That makes sense!
<benzrf>
athan: this has the annoying effect of making argsless method calls on self indistinguishable from variable lookups:
<havenwood>
guest123: shelling out to curl just to learn?
<guest123>
i would want to read each line of the file for each run of the curl command
<havenwood>
guest123: File.readlines
<havenwood>
guest123: File.read
<athan>
benzrf: ruby also has variable parameters and defaults, right?
davasaurous has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
<benzrf>
athan: since methods live in a different namespace from variables, declaring a method does not introduce a new variable like it does in js
<benzrf>
athan: yeah, but that's a less important language feature
<athan>
oh woah
<athan>
hmm
<benzrf>
athan: there's probably some sort of resource to learn from, i g2g atm
<athan>
what's the most important about ruby, in your opinion?
<athan>
ahh okay
<athan>
thank you for all the help
<n_blownapart>
jhass et al. : why does #first work on a hash and not #last ?
<athan>
(important feature)
<n_blownapart>
they are both array methods ^
<benzrf>
athan: be warned: ruby is a perl-like bog of neat but questionably principled features thrown together in a bubbling swamp of ambiguous syntax and special-cased behavior
<havenwood>
guest123: nope, line 6 remove the backticks, curl, -s and -k flags and just leave the url
<havenwood>
guest123: check the google example above
mazarian has joined #ruby
<havenwood>
guest123: and the docs
parabolize has joined #ruby
it0a has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<n_blownapart>
jhass: so i.e. it's common to store hashes in an array, since an array is the most basic sort of container object, say in a simple database.
borkdude has quit [Ping timeout: 265 seconds]
rshetty has quit [Ping timeout: 240 seconds]
<guest123>
syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('
<jhass>
n_blownapart: array and map are very basic data structures, you can build many more advanced ones from them and that includes combining them in all possible ways
<jhass>
so of course it's common
lidaaa has joined #ruby
moritzschaefer has joined #ruby
eguneys has quit [Remote host closed the connection]
<havenwood>
guest123: err, though your url string is messed up
<jhass>
as common as having a hash with array values or a hash with hash values and so on
<havenwood>
guest123: sec i'll fix the gist
soulcake has quit [Quit: Quack.]
<guest123>
ok thanks bud
<havenwood>
guest123: fixed
<havenwood>
guest123: try that? ^
<quazimodo>
guys I'm trying to usen Open3 to run a command and interact with it (as though it's talking to a tty). It's failing, and I'm getting the idea that using open3 is kinda wrong. I've looked at Ruby's PTY module, but I'm not sure I understand why open3 hangs when the command attemps to read from stdin
<n_blownapart>
jhass ok many thanks
sambao21 has joined #ruby
soulcake has joined #ruby
borkdude has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<guest123>
/usr/lib/ruby/1.9.1/uri/common.rb:176:in `split': bad URI(is not URI?)
<guest123>
theres no curl ?
Kricir has quit [Remote host closed the connection]
<guest123>
i only get the output from curl
djbkd has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
rahult_ is now known as rahult
<havenwood>
guest123: you can keep shelling out to curl if you'd like. or you can just use shell if you'd like.
skullz has joined #ruby
<guest123>
im guessing the secodn option is better
<skullz>
Is there any proper orientDB support yet?
<guest123>
second*
<havenwood>
guest123: if you know shell, and need to get something done, for sure
econerd4ever has quit [Remote host closed the connection]
<havenwood>
guest123: if you're learning ruby, ditch the curl
Xeago has quit [Remote host closed the connection]
econerd4ever has joined #ruby
<havenwood>
there're even libcurl wrapper gems, like patron and curb
djbkd has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
disKounted has joined #ruby
<havenwood>
but for very simple things open-uri often suffices, or net-http is also in the stdlib
deric_skibotn has quit [Ping timeout: 244 seconds]
mois3x has quit [Quit: mois3x]
apope has left #ruby [#ruby]
<guest123>
im using the curl command as its supported by the devices to give the correct reult
djbkd has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
Prometheian has quit [Remote host closed the connection]
<n_blownapart>
jhass: if you have time, one last thing about group_by(&:class). isn't that the syntax for a proc/lambda getting passed as an argument?
kirun has quit [Quit: Client exiting]
deric_skibotn has joined #ruby
econerd4ever has quit [Ping timeout: 265 seconds]
sea_local has quit [Remote host closed the connection]
hiyosi has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.91 [Firefox 33.1/20141106120505]]
msmith has quit [Remote host closed the connection]
_honning_ has quit [Ping timeout: 244 seconds]
axl_ has quit [Quit: axl_]
axl_ has joined #ruby
duncannz has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
airstream66 has joined #ruby
danijoo has joined #ruby
<jhass>
n_blownapart: yes, the magic is that it also calls to_proc on the receiver, group_by(&(:class.to_proc)), and Symbol#to_proc returns a handy Proc object
j2p2 has joined #ruby
axl_ has quit [Client Quit]
mikepack has quit [Remote host closed the connection]
airstream66 has quit [Remote host closed the connection]
eat_multi has quit [Quit: leaving]
b4rbz has joined #ruby
jlast has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 264 seconds]
benzrf|offline is now known as benzrf
Narzew has joined #ruby
CustosL1men has joined #ruby
cndiv has quit [Ping timeout: 258 seconds]
<n_blownapart>
jhass: thanks!
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Freemason has quit [Killed (idoru (Spam is off topic on freenode.))]
fabrice31 has joined #ruby
msx has quit [Read error: Connection reset by peer]
Freemason has joined #ruby
<tobleronegordon>
hah that garbage youtube link is hilarious but offtopic for LEARNING RUBY
<Freemason>
:)
djbkd has joined #ruby
cndiv has joined #ruby
<tobleronegordon>
Ok Im checking some reviews, but anyone have any other suggestions before I spend money and find out I dumped a whole bag of garbage on my desk?
<volty>
what is this crap ?
Hijiri has quit [Quit: WeeChat 1.0.1]
<tobleronegordon>
lol volty
<volty>
on youtube ?
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mazarian has quit [Remote host closed the connection]
<volty>
but, if you do not feel bothered by mine thoughts (tell me if so - I can go to an empty chan and give conference there :) ), i learned that helper&testing files shouldn't be erased even after you master something - - just move them elsewhere, and can serve when you forget, or as (kind of) a coobook
econerd4ever has joined #ruby
<volty>
better learn chinese -- sure that it is more clear and sensed and thought out :)
havenwood has joined #ruby
<pasokk>
just photos and google translate *might* be your friend