bsvineeth has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arooni-mobile has quit [Ping timeout: 246 seconds]
jimbach has quit [Ping timeout: 255 seconds]
frank_o has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
brothmars has quit [Ping timeout: 260 seconds]
symm- has joined #ruby-lang
futilegames has joined #ruby-lang
underscore_ has joined #ruby-lang
<underscore_>
hey!
<underscore_>
hi, I was wondering why this happens and where i can read more about this
<underscore_>
say i type into irb
<underscore_>
[1,2,3,4,5]
<underscore_>
a = _
<underscore_>
it returns
<underscore_>
a = [1,2,3,4,5]
<ari-_-e>
underscore_: I think that's an irb-specific thing
<underscore_>
oh so its not from ruby?
<underscore_>
thanks I'll look into it
<ari-_-e>
it's just result of the last evaluated line
frank_o has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
<underscore_>
thanks arie-_-e
underscore_ has quit [Quit: Page closed]
bsvineeth has quit [Ping timeout: 260 seconds]
[spoiler] has joined #ruby-lang
_ht has joined #ruby-lang
bsvineeth has joined #ruby-lang
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
rahul_j has joined #ruby-lang
thomasxie has joined #ruby-lang
fainder_ has joined #ruby-lang
fusillicode has joined #ruby-lang
bffff_ has quit [Quit: Connection closed for inactivity]
fainder_ has quit [Client Quit]
fainder_ has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
fusillicode has quit [Ping timeout: 245 seconds]
rahul_j has joined #ruby-lang
toastynerd has joined #ruby-lang
koderok has joined #ruby-lang
michd is now known as MichD
toastynerd has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
rahul_j has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
saarinen has joined #ruby-lang
jimbach has joined #ruby-lang
jimbach has quit [Ping timeout: 240 seconds]
mkaesz has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
rahul_j has quit [Read error: Connection reset by peer]
bsvineeth has joined #ruby-lang
pr0ton_ has quit [Quit: pr0ton_]
arBmind has joined #ruby-lang
koderok has quit [Quit: koderok]
rahul_j has joined #ruby-lang
bsvineeth has quit [Ping timeout: 246 seconds]
fusillicode has joined #ruby-lang
kwd has joined #ruby-lang
kro_ has quit [Quit: leaving]
fusillicode has quit [Ping timeout: 240 seconds]
rahul_j has quit [Read error: Connection reset by peer]
|jemc| has joined #ruby-lang
rahul_j has joined #ruby-lang
skade has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
rahul_j has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
rahul_j has joined #ruby-lang
fusillicode has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
Forgetful_Lion has joined #ruby-lang
fusillicode has quit [Ping timeout: 240 seconds]
rahul_j has quit [Read error: Connection reset by peer]
solars has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 250 seconds]
rahul_j has joined #ruby-lang
fainder_ is now known as fainder
tbuehlmann has joined #ruby-lang
ta has joined #ruby-lang
diegovio1 has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
bsvineeth has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 255 seconds]
bsvineeth has joined #ruby-lang
rahul_j has joined #ruby-lang
ta has quit [Client Quit]
ta has joined #ruby-lang
marcofernandez has joined #ruby-lang
diegovio1 has quit [Read error: Connection reset by peer]
fusillicode has joined #ruby-lang
diegoviola has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
jimbach has joined #ruby-lang
fusillicode has quit [Ping timeout: 264 seconds]
rahul_j has joined #ruby-lang
jimbach has quit [Ping timeout: 240 seconds]
rahul_j has quit [Read error: Connection reset by peer]
bsvineeth has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
bsvineeth has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
rahul_j has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 0.4.3]
rahul_j has quit [Read error: Connection reset by peer]
fusillicode has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
rahul_j has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
AKASkip has joined #ruby-lang
adphillips has joined #ruby-lang
adphillips has quit [Client Quit]
rahul_j has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
fainder has quit [Quit: Leaving...]
apeiros has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
bsvineeth has joined #ruby-lang
jhass|off is now known as jhass
rahul_j has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
<Lewix_>
how would you remove all the negatives numbers from an array in an efficient way
<Lewix_>
array.each_index {|i| array.delete_at(i) if array[i] < 0 } is the wrong way to go about it
ur5us has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby-lang
<jhass>
Lewix_: .reject!
<Lewix_>
jhass: right thanks
rahul_j has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Client Quit]
rahul_j has joined #ruby-lang
robbyoconnor has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
<Mon_Ouie>
each { delete_at } isn't just inefficient, it doesn't work, because when you delete in the middle of the array the indices of all the following element get shifted by one
<Mon_Ouie>
You'd have to iterate over the array backwards to make it work
qba73 has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
rahul_j has joined #ruby-lang
arBmind has joined #ruby-lang
<yorickpeterse>
morning
banister has joined #ruby-lang
<apeiros>
mourning
rahul_j has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
rahul_j has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
jimbach has joined #ruby-lang
marr has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 1.0]
<Lewix_>
Mon_Ouie: that's what i meant by inefficient
jimbach has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
Meta5 has joined #ruby-lang
arBmind has joined #ruby-lang
rahul_j has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
mkaesz has quit [Ping timeout: 240 seconds]
rahul_j has quit [Read error: Connection reset by peer]
<sluukkonen>
heh, Array#reject! actually uses delete_at(i) in a loop
saarinen has quit [Quit: saarinen]
rahul_j has joined #ruby-lang
thomasxie has quit [Read error: Connection reset by peer]
sarkyniin has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
<maloik_>
Fellow grammar nazi's, are there any holes to be poked in this sentence? The queue contains changes for this %{resource}. The server will process these as soon as possible, only then will your changes be active.
<maloik_>
specifically the last sentence (queue contains.. is for context)
<apeiros>
*nazis
<maloik_>
:-(
sMecKs has quit [Read error: Connection reset by peer]
<DefV>
hahaha
<surrounder>
lol
<oddmunds>
maloik_: looks good to me.
<sluukkonen>
I'd probably write the last sentence with something like 'The changes will be active only after the server has finished processing them.'
<oddmunds>
maaybe spilt it into two setences.
<oddmunds>
yeah
<apeiros>
I'm not a native speaker, but looks good to me too
<oddmunds>
better
<maloik_>
sounds good sluukkonen thanks
letenje has joined #ruby-lang
<sluukkonen>
or maybe s/active/visible/?
<yorickpeterse>
maloik_: yo, what day do you lot fly in for Baruco?
<apeiros>
in effect?
* apeiros
has_many :yaks
<sluukkonen>
<- not a native speaker either, so ymmv
<maloik_>
yorickpeterse: uhm, thursday I believe
<sluukkonen>
maybe 'Changes will be effective after…'
workmad3 has joined #ruby-lang
<maloik_>
effective != in effect
<yorickpeterse>
maloik_: Ah, same here
<yorickpeterse>
Staying from the 11th until the 16th
<maloik_>
I believe we fly back monday morning
<yorickpeterse>
Can't go to Barcelona and *not* see any museums
<maloik_>
yay for free day in barcelona
<maloik_>
museums? psssh
<yorickpeterse>
maybe I'll even watch tourists get mugged by pickpockets
<maloik_>
I'm a complete heretic when it comes to that :D
<maloik_>
was actually considering squeezing in my climbing shoes and finding a gym but I doubt my colleagues would be up for that
<yorickpeterse>
lifting in Barcelona, classy
<maloik_>
a climbing gym
<maloik_>
not a regular gym
<yorickpeterse>
You're still lifting
<maloik_>
more like pulling
<maloik_>
do you even climb bro
<maloik_>
:D
<yorickpeterse>
Not regulary
thomasxie has joined #ruby-lang
<maloik_>
anyone recall the name of those portable wifi access points you put a sim into?
<yorickpeterse>
there's like 15 million brands of them, which one in particular?
<maloik_>
the general name, so I can google around
<yorickpeterse>
You mean mifi?
<maloik_>
yes!
<maloik_>
if you know of one that's supposedly better than most others do feel free to share :-)
<yorickpeterse>
nfi, I never use them
<yorickpeterse>
I piggy back on other people's wifi
ecnalyr has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
<yorickpeterse>
np
toertore has quit [Quit: Leaving]
jimbach has quit [Ping timeout: 240 seconds]
migbar has joined #ruby-lang
rolfb has joined #ruby-lang
migbar has quit [Client Quit]
kyb3r_ has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
Lewix_ has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has quit [Ping timeout: 250 seconds]
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
ecnalyr has joined #ruby-lang
amerine_ has joined #ruby-lang
jimbach has joined #ruby-lang
amerine has quit [Ping timeout: 255 seconds]
mkaesz has joined #ruby-lang
jimbach has quit [Ping timeout: 240 seconds]
frank_o has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
ecnalyr has quit [Quit: Macbook has gone to sleep. . .]
tkuchiki has quit [Ping timeout: 240 seconds]
relix has quit [Remote host closed the connection]
Silex has quit [Ping timeout: 255 seconds]
tkuchiki_ has quit [Ping timeout: 272 seconds]
relix has joined #ruby-lang
Silex has joined #ruby-lang
bin7me has joined #ruby-lang
thomasxie has joined #ruby-lang
ldnunes has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 240 seconds]
Miphix has joined #ruby-lang
havenwood has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
<motoko>
yorickpeterse: I know what was the problem. It wasnt nokogiri. Tags are changing after a few pages thats why I got empty values. I had to compare pages to figure it out ;-) Now I dont have to download pages to my disk ;)
havenwood has quit [Ping timeout: 264 seconds]
relix has quit [Ping timeout: 255 seconds]
relix has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
thomasxie has quit [Remote host closed the connection]
hellangel7 has joined #ruby-lang
<yorickpeterse>
Ah
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 245 seconds]
fullybaked has joined #ruby-lang
banister has joined #ruby-lang
jimbach has joined #ruby-lang
jimbach has quit [Ping timeout: 240 seconds]
qba73_ has joined #ruby-lang
qba73 has quit [Read error: Connection reset by peer]
stamina has joined #ruby-lang
Sgeo_ has quit [Read error: Connection reset by peer]
Kero_ is now known as Kero
frank_o has quit [Quit: leaving]
Hinkdogg__ has joined #ruby-lang
sepp2k has joined #ruby-lang
goatish_mound has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rsl has quit [Ping timeout: 260 seconds]
banister has joined #ruby-lang
earthquake has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
t4nk777 has joined #ruby-lang
t4nk777 has quit [Client Quit]
diegoviola has quit [Ping timeout: 245 seconds]
bsvineeth has joined #ruby-lang
davispuh has joined #ruby-lang
thomasxie has joined #ruby-lang
dwknoxy has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AKASkip has quit [Ping timeout: 260 seconds]
AKASkip has joined #ruby-lang
yfeldblum has joined #ruby-lang
havenwood has joined #ruby-lang
workmad3 has joined #ruby-lang
cmisenas has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
havenwood has quit [Ping timeout: 264 seconds]
jimbach has joined #ruby-lang
cmisenas has quit [Client Quit]
symm- has quit [Ping timeout: 240 seconds]
miqui has joined #ruby-lang
earthquake has quit [Quit: earthquake]
Forgetful_Lion has quit [Remote host closed the connection]
malconis has joined #ruby-lang
ur5us has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
dm78 has joined #ruby-lang
dm78 has quit [Remote host closed the connection]
dm78 has joined #ruby-lang
Siyfion has joined #ruby-lang
ur5us has quit [Ping timeout: 260 seconds]
jimbach has quit [Ping timeout: 240 seconds]
[spoiler] has quit [Quit: Leaving]
hellangel7 has quit [Read error: Connection reset by peer]
Hinkdogg__ has quit [Quit: Computer has gone to sleep.]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
ta has joined #ruby-lang
cmisenas has joined #ruby-lang
bsvineeth has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
ta has quit [Ping timeout: 244 seconds]
dorei has joined #ruby-lang
diegoviola has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Read error: Connection reset by peer]
banister has joined #ruby-lang
dm78 has joined #ruby-lang
motoko has quit [Ping timeout: 246 seconds]
fullybaked has quit []
<apeiros>
hm, how do I go about a gem not finding the header files because they're not where it expects them? I know I can add build options to `gem install` using `gem install mygem -- BUILD_OPTIONS`, but how do I figure which option to pass so it finds the header?
<yorickpeterse>
apeiros: `pkg-config`
yell0wgh0st has quit [Quit: yell0wgh0st]
<apeiros>
yorickpeterse: run that in the ext dir? or how?
<apeiros>
yeah, I was about to collect more info :) but sometimes people interrupt so it takes more than a minute ;-)
letenje has quit [Quit: Leaving]
<apeiros>
output comming too…
<crankharder>
how do I check if the class of a given instance defines a particular method? respond_to? isn't sufficient since that will return true for inherited methods
<apeiros>
gist updated
<apeiros>
crankharder: method_defined?
<apeiros>
and yes, respond_to? works for inherited methods too
<apeiros>
but respond_to? is for instance level, not class level
<apeiros>
i.e.:
t4nk783 has joined #ruby-lang
<apeiros>
crankharder: oh, wait, did I just misread?
<crankharder>
method_defined is still returning true
<crankharder>
i think so
<apeiros>
you only want true if the method is immediately on the lcass?
<crankharder>
this still returns true
<crankharder>
class Foo ; end ; Foo.method_defined?(:inspect)
<t4nk783>
What is wrong with this line of code for my BMI calculator? BMI = mass/(height**2)
<crankharder>
is there a better way to define inspect if it's not directly defined than any of those suggestions? unless methods(false).include?(:inspect) ; def inspect...
<crankharder>
works for me, but a bit kludgey
<apeiros>
t4nk783: nothing. want to refine your question?
<jhass>
crankharder: respond_to? :foo, false iirc
<apeiros>
yorickpeterse: any idea re extconfig with fusefs?
<t4nk783>
What is wrong with this line of code for my BMI calculator? BMI = mass/(height**2) It says that ** is not a valid method. Works in the irb, though.
<yorickpeterse>
To be exact: << `$ pkg-config osxfuse --cflags`
<apeiros>
yorickpeterse: grah
dorei has quit [Read error: Connection reset by peer]
<yorickpeterse>
:P
<apeiros>
copy-paste-itis
<yorickpeterse>
t4nk783: what's the type of `height` ?
<yorickpeterse>
also paste the exact error message
dorei has joined #ruby-lang
<apeiros>
ok, new problem…
<apeiros>
checking for rb_errinfo()... *** extconf.rb failed ***
<Silex>
yorickpeterse: you'd remove the css files...
<Silex>
</captainobvious>
argish has joined #ruby-lang
<jhass>
yorickpeterse: yeah, why not have the css generated on deployment
<yorickpeterse>
~reasons~
argish has quit [Quit: Lost terminal]
alekst has joined #ruby-lang
<yorickpeterse>
CTO gave the magic go-ahead: "Just remove the Less"
<yorickpeterse>
aww yiss
<DefV>
kill
<DefV>
kill now
yell0wgh0st has joined #ruby-lang
brixen has quit [Excess Flood]
<apeiros>
yorickpeterse: so your project will have less less? :D
<yorickpeterse>
No, more
<yorickpeterse>
(*badum tsh*)
brixen has joined #ruby-lang
jtoy has quit [Ping timeout: 260 seconds]
tylersmith has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
rahul_j has joined #ruby-lang
vondruch has quit [Quit: Ex-Chat]
mistym has joined #ruby-lang
<apeiros>
yorickpeterse: hm, ok, seems to be unrelated to ruby.h. error is just horribly reported. ruby.h is found just fine, but later on it says "The compiler failed to generate an executable file"
<apeiros>
going into ext/rfuse and running extconf.rb directly, reading the mkmf.log I see that the error is this:
<t4nk783>
Thanks. Unfortunately, I haven't taken the Codecademy course on classes yet.
solars has joined #ruby-lang
<t4nk783>
Anything else that can be optimized? Is the grammar looking OK?
<centrx>
Looks good
<centrx>
Style changes for clarity and simplicity
<t4nk783>
Should I add two spaces before elsif and else?
<t4nk783>
G on
<jhass>
no
<t4nk783>
Go on
tylersmith has quit [Ping timeout: 264 seconds]
__butch__ has joined #ruby-lang
charliesome has quit [Quit: zzz]
<centrx>
t4nk783, That gist I linked, it did use a method definition (def), but it also replaced your if-statement with a case-statement, replaced your strings with symbols, and removed the unnecessary setting of variables
<yorickpeterse>
t4nk783: generally people write the body of if/elsif on a new line
<yorickpeterse>
opposed to using `then`
<t4nk783>
Yeah, I wondered about that.
<yorickpeterse>
Also, print() doesn't emit a newline
<yorickpeterse>
so any following terminal output will be on the same line
<t4nk783>
Noted
<centrx>
t4nk783, Here is something you can do without the method definition, at the bottom
<t4nk783>
I'm listening
emmesswhy has joined #ruby-lang
<centrx>
t4nk783, Your if-statement and my case-statement both return the value
thomasxie has quit [Ping timeout: 245 seconds]
<centrx>
t4nk783, So instead of setting category = multiple times within the body of the if-statement, you can set category = the entire if-statement, after the if branches have been resolved
<centrx>
t4nk783, This makes it clearer to read and so less potentially buggy, easier to add new features, for both yourself and others
ht_ has joined #ruby-lang
<t4nk783>
Sorry, I didn't quite get that.
_ht has quit [Ping timeout: 250 seconds]
<centrx>
t4nk783, Take a look at the bottom section of the gist
<centrx>
under ## OR ##
<centrx>
t4nk783, These three versions all have identical behavior, but they use different syntax and styles.
mkaesz has quit [Ping timeout: 244 seconds]
<t4nk783>
Oh, I think I get it!
<t4nk783>
Why do you use two # for comments? Isn't a single enough?
<centrx>
t4nk783, Just makes it look like a more prominent header
shinnya has joined #ruby-lang
<t4nk783>
Good to know.
<t4nk783>
Thank you for your help!
rahul_j has joined #ruby-lang
bsvineeth has joined #ruby-lang
Miphix has quit [Quit: Leaving]
<centrx>
You are welcome
bsvineeth has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
RobertBirnie has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
Siyfion has quit []
ta has joined #ruby-lang
bsvineeth has joined #ruby-lang
michaeldeol has joined #ruby-lang
havenwood has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
rippa has joined #ruby-lang
charliesome has joined #ruby-lang
banister has joined #ruby-lang
wallerdev has joined #ruby-lang
sharpmachine has joined #ruby-lang
toastynerd has joined #ruby-lang
mistym has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
karamazov has joined #ruby-lang
sdouglas has joined #ruby-lang
sdouglas has quit [Client Quit]
sdouglas has joined #ruby-lang
shinnya has quit [Ping timeout: 272 seconds]
qba73 has quit []
charliesome has quit [Quit: zzz]
yell0wgh0st has joined #ruby-lang
sporkmonger has joined #ruby-lang
sirish_ has quit [Ping timeout: 255 seconds]
vikasyaligar has joined #ruby-lang
benlovell has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Ping timeout: 264 seconds]
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
omosoj has joined #ruby-lang
sporkmonger has quit [Quit: Poof!]
workmad3 has quit [Ping timeout: 245 seconds]
cmisenas has quit [Quit: cmisenas]
sporkmonger has joined #ruby-lang
mkaesz has joined #ruby-lang
mistym has joined #ruby-lang
sporkmonger has quit [Client Quit]
jimbach has quit [Ping timeout: 240 seconds]
mnngfltg has quit [Remote host closed the connection]
t4nk783 has quit [Quit: Page closed]
Hinkdogg___ has joined #ruby-lang
amsi has joined #ruby-lang
WeierstrassP has joined #ruby-lang
mkaesz has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
bsvineeth has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has joined #ruby-lang
relix has quit [Client Quit]
relix has joined #ruby-lang
gjaldon has joined #ruby-lang
michaeldeol has joined #ruby-lang
Squarepy has joined #ruby-lang
saarinen has joined #ruby-lang
cmisenas has joined #ruby-lang
wallerdev has joined #ruby-lang
solars has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby-lang
Meta5 has quit [Quit: Meta5]
Meta5 has joined #ruby-lang
tylersmith has joined #ruby-lang
WeierstrassP has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
wallerdev_ has joined #ruby-lang
wallerdev has quit [Ping timeout: 260 seconds]
wallerdev_ is now known as wallerdev
Mon_Ouie has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
diegoviola has quit [Ping timeout: 255 seconds]
AKASkip has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stamina has quit [Quit: WeeChat 0.4.3]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby-lang
Lewix has joined #ruby-lang
hahuang65 has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
michaeldeol has quit [Client Quit]
futilegames has quit [Quit: futilegames]
joel_ has joined #ruby-lang
joel_ is now known as curiouscain
<curiouscain>
Hey anyone able to give me some advice?
<apeiros>
curiouscain: save money
<yxhuvud>
sure. Sausages are nice.
michaeldeol has joined #ruby-lang
<curiouscain>
You know what I mean
<yxhuvud>
don't ask to ask questions - ask your questions
<apeiros>
actually, I don't (yet)
djbkd has joined #ruby-lang
<curiouscain>
I've got a technical test for an interview in the morning. What parts of ruby do you recommend me brushing up on? Bear in mind that I'm a dev and I use ruby relatively often, but I've never had to take a technical test for a ruby job before
<apeiros>
when we tested, I checked knowledge of common core methods first
<apeiros>
String, Symbol, Array, Hash, Enumerable, Comparable being probably the most important
<yxhuvud>
the object model is good to know as well.
wallerdev_ has joined #ruby-lang
<curiouscain>
Alright
wallerdev has quit [Ping timeout: 272 seconds]
wallerdev_ is now known as wallerdev
<yxhuvud>
if it is a rails gig, then I'd brush up on that as well if that is necessary
<curiouscain>
Is there anything possibly obscure but useful that I should make sure I know?
<curiouscain>
Yeah, it's a rails job (junior)
<apeiros>
I find questions for obscure knowledge suspicious
<curiouscain>
Why's that?
<apeiros>
because it's 99% useless knowledge
<yxhuvud>
brushing up on obscure things is likely a waste of time
<apeiros>
it's not what makes you productive
<curiouscain>
I understand that, I just get edgy when I don't know what I'm going to be tested on
<apeiros>
sure. but arcane knowledge is a test for when you checked in as skill level guru
<curiouscain>
Alright then, so for a junior level, the things you mentioned should suffice?
<apeiros>
no, those are the things you should be solid in
<curiouscain>
Those are things I know how to use in Ruby, currently
<apeiros>
re rails: know active record (relations, scopes, finders, where/order/limit), know routing, templates and partials. project layout.
<yxhuvud>
migrations!
<curiouscain>
I'm familiar with rails basics, however the technical test (and interview, as far as I've been told) doesn't include any rails knowledge
workmad3 has joined #ruby-lang
<apeiros>
ok
momomomomo has quit [Quit: momomomomo]
<curiouscain>
Thanks for the help
ntrophimov has joined #ruby-lang
<ntrophimov>
Hi all!
<ntrophimov>
Is anyone here?
<curiouscain>
I am
<jhass>
ntrophimov: no, just bots here
<apeiros>
no, anyone is not currently in the channel
loincloth has quit [Remote host closed the connection]
torrieri has quit [Quit: Leaving...]
ntrophimov was kicked from #ruby-lang by apeiros [so somebody even tells you to tell in all channels that you are cross-posting - I haven't seen you doing that…]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has quit [Remote host closed the connection]
dwknoxy is now known as dknox-lunch
Lewix has joined #ruby-lang
pr0ton_ has quit [Quit: pr0ton_]
hellangel7 has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby-lang
workmad3 has quit [Quit: Reconnecting]
workmad3 has joined #ruby-lang
Lewix has quit [Ping timeout: 246 seconds]
yell0wgh0st has quit [Quit: yell0wgh0st]
jbardin has joined #ruby-lang
skade has joined #ruby-lang
PsionTheory has joined #ruby-lang
skade_ has joined #ruby-lang
skade has quit [Ping timeout: 260 seconds]
ddv has joined #ruby-lang
gjaldon has quit []
tbuehlmann has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
Mopman has quit [Quit: WeeChat 0.3.7]
skade_ has quit [Quit: Computer has gone to sleep.]
futilegames has joined #ruby-lang
yell0wgh0st has joined #ruby-lang
sepp2k has quit [Quit: Konversation terminated!]
miqui has quit [Read error: Connection reset by peer]
sharpmachine has quit [Remote host closed the connection]
Hinkdogg___ has quit [Quit: Computer has gone to sleep.]
bsvineeth has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
loincloth has joined #ruby-lang
bsvineeth has joined #ruby-lang
bsvineeth has quit [Read error: Connection reset by peer]
bsvineeth has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
curiouscain has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lsegal has joined #ruby-lang
pkrnj has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dknox-lunch is now known as dknox
banister has joined #ruby-lang
michaeldeol has joined #ruby-lang
nhjk has joined #ruby-lang
mistym has joined #ruby-lang
momomomomo has joined #ruby-lang
miqui has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
Lewix has joined #ruby-lang
foucist has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
centrx has quit [Quit: Mead error: Connection reset by beer]
alexju_ has joined #ruby-lang
<foucist>
anyone know of a good way to pick 10 random items from a large collection of items, such that each pick is unlikely to have a repeat item?
<foucist>
some kind of hashing function ?
alexju has quit [Ping timeout: 260 seconds]
<jhass>
foucist: .sample(n)
vikasyaligar has quit [Remote host closed the connection]
<foucist>
jhass: yeah but there's nothing that minimizes the chance of a repeat
Hinkdogg___ has joined #ruby-lang
<jhass>
foucist: "The elements are chosen by using random and unique indices into the array in order to ensure that an element doesn’t repeat itself unless the array already contained duplicate elements."
<Squarepy>
we have a winner
<pipework>
TFM just got R'd
<foucist>
jhass: the Array is generated new each time though
<foucist>
every .sample is on a newly generated array
<foucist>
which is likely to have many of the same ids
<pipework>
foucist: Build up a single array then?
<jhass>
then combine the arrays first or sample until you got an element not yet in the collected objects
<foucist>
pipework: nah this is a daily cronjob thing, already keeping a list of ids around in redis, trying to stop that completely :P
<pipework>
foucist: Why keep them in memory that long?
<pipework>
Something.pluck(:id).sample(n) or so
jimbach has joined #ruby-lang
torrieri has joined #ruby-lang
kwd has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
adphillips has joined #ruby-lang
_sillymarkets has joined #ruby-lang
<_sillymarkets>
Anyone work with Viewpoint gem before?
toastynerd has quit [Remote host closed the connection]
cmckee has joined #ruby-lang
amsi has quit [Ping timeout: 264 seconds]
sharpmachine has joined #ruby-lang
mistym has joined #ruby-lang
toastynerd has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby-lang
mistym has quit [Remote host closed the connection]
nofxx__ has quit [Read error: Connection reset by peer]
jeff_r has joined #ruby-lang
yell0wgh0st has joined #ruby-lang
wallerdev has joined #ruby-lang
Meta5 has quit [Quit: Meta5]
postmodern has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
mistym has joined #ruby-lang
benlovell has joined #ruby-lang
sepp2k has joined #ruby-lang
cmisenas has quit [Quit: cmisenas]
_sillymarkets has quit [Ping timeout: 246 seconds]
cmckee_ has joined #ruby-lang
cmckee has quit [Ping timeout: 244 seconds]
cmckee_ is now known as cmckee
Meta5 has joined #ruby-lang
postmodern has quit [Ping timeout: 255 seconds]
benlovell has quit [Ping timeout: 260 seconds]
tylersmith has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby-lang
cmisenas has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Meta5 has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
Meta5 has joined #ruby-lang
jarto has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Read error: Connection reset by peer]
Squarepy has quit [Quit: Leaving]
bsvineeth has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: No route to host]
jbardin has quit [Quit: jbardin]
kwd has quit [Quit: Sleeping now. ZZZzzz…]
tylersmith has quit [Read error: Connection reset by peer]
mustmodify has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mustmodify>
I'm doing some work building a list of universities and their logos. It could easily be open-sourced and put into a gem but I would need a portable data source, preferably with search capabilities. I was thinking sqlite... any thoughts? Anyone know of a gem doing something similar?
tylersmith has joined #ruby-lang
mistym has quit [Remote host closed the connection]
karamazov has quit [Remote host closed the connection]
<foucist>
is it just urls to university & to logo ?
<foucist>
could store it in yaml form
<mustmodify>
that's the $.25 tour... but one of the big issues is matching freetext names. For instance, "University of Florida Medical School" -> University of Florida. UF => University of Florida.
_lexjm has joined #ruby-lang
<mustmodify>
Three things about using a json file. 1. I've done that before with good results. 2. I worry that I'm not being a good citizen in doing that as part of a gem because a list of universities would be longish, and all that would have to sit in memory, which seems wasteful. But sometimes I overthink things, so feel free to tell me I'm overthinking. 3. Seems like it would be easier to do matching with a database, and, if I understand SQLite correctly, it d
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
michaeldeol has joined #ruby-lang
PsionTheory has quit [Remote host closed the connection]
<wallerdev>
how much memory could a list of universities take up lol
mistym has joined #ruby-lang
<mustmodify>
fine, I was just trying not to be the problem.
Hinkdogg___ has quit [Quit: Computer has gone to sleep.]
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 255 seconds]
ht_ has quit [Remote host closed the connection]
nhjk has quit []
bin7me has quit [Read error: Connection reset by peer]
amsi has joined #ruby-lang
Meta5 has joined #ruby-lang
Meta5 has quit [Client Quit]
solars has quit [Ping timeout: 240 seconds]
jbardin has joined #ruby-lang
ur5us has joined #ruby-lang
Squarepy has joined #ruby-lang
brothmars has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
elia has joined #ruby-lang
pr0ton_ has joined #ruby-lang
pr0ton_ has quit [Client Quit]
pr0ton_ has joined #ruby-lang
sdouglas has quit [Read error: Connection reset by peer]