<shime>
does anybody know nice and simple encrpytion/decryption method that uses salt? something better than base32, but simpler than AES-256-CBC?
zachrab has joined #ruby
nanoyak has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
MrSamuel has quit [Ping timeout: 246 seconds]
ponga has joined #ruby
kenneth has joined #ruby
sambao21 has quit [Read error: Connection reset by peer]
<d10n-work>
Do all functions that mutate objects conventionally use ! or only methods?
ggherdov has quit []
ta_ has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
gattie has quit [Quit: Leaving...]
MrSamuel has joined #ruby
<weaksauce>
d10n-work it's just a convention but there are many examples of things that mutate state (active record .save for instance) that don't use the !
x77686d has joined #ruby
<weaksauce>
netuoso the count and times are reversed
<netuoso>
weaksauce: ahh lol you hurt my brain suggesting to remove the ifs
shime_ has joined #ruby
scripore has joined #ruby
<d10n-work>
how about functions not attached to the object they mutate?
sambao21 has joined #ruby
<netuoso>
ahh weaksauce arr_1.times auto matically does that and count is the count of it
MrSamuel_ has quit [Ping timeout: 244 seconds]
<netuoso>
i think i see, let me do that
<d10n-work>
shime: I'd expect there to be a library that handles encryption for you. I wouldn't advertise encryption in what you're writing unless you're using something stronger than aes-256-ecb
<weaksauce>
netuoso >> "test".length.times { |x| puts x }
<d10n-work>
(sorry for the non-answer, just a thought and a bit of advice)
uber has quit [Read error: Connection reset by peer]
<weaksauce>
^ why it "worked" netuoso
<netuoso>
you are a great teacher
<netuoso>
thanks AGAIN
<weaksauce>
you can see why I said your code looked like c code now?
<weaksauce>
no problem
<netuoso>
yeah, and it did
<netuoso>
probably performed like crap under heavy testing too
theotherstupidgu has quit [Ping timeout: 264 seconds]
<netuoso>
im currently in a 2 month rails class and working on making my ruby top notch while at iut
chrishough has joined #ruby
<ellisTAA>
netuoso: what class
theotherstupidgu has joined #ruby
<netuoso>
TechTalentSouth Code Immersion program
triple_b has joined #ruby
<netuoso>
ellisTAA: ^
knut has quit [Ping timeout: 244 seconds]
<ellisTAA>
did u know how to code when u started the program?
ndjaja has quit [Quit: ndjaja]
GaryOak_ has quit [Remote host closed the connection]
hmsimha has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sevenseacat has joined #ruby
graydot has joined #ruby
graydot has quit [Client Quit]
_gautam_ has quit [Quit: Be back later ...]
<netuoso>
ellisTAA: self taught. but yeah
arup_r has joined #ruby
<netuoso>
the majority of the people did not. they are business people, entrepreneurs, start up people, etc. .. people that had a need for coding and are smart, but didnt really have prior exp
<ellisTAA>
jhass: yeah i dont want to build a new array. do u think using map and each are whats causing my problem?
<jhass>
nope
<jhass>
I think you don't understand your own code and that's the problem, tbh
reinaldob has quit [Ping timeout: 245 seconds]
<jhass>
see
<jhass>
the test inputs numbers
<ellisTAA>
yeah
<jhass>
and it wants a number out
<jhass>
why would that require a single string
<jhass>
do you know what a stack is?
<ellisTAA>
well i dont want an array, i’m putting the expression into a string bc that’s what i thought was a way to get what i want, then i will convert the string to non-string
<ellisTAA>
stack refers to an array with an ability to push and pop, yaeh?
<jhass>
that's one implementation, the concept is more important here
_gautam_ has joined #ruby
<ellisTAA>
how so
wallerdev has quit [Quit: wallerdev]
_gautam_ has quit [Client Quit]
<jhass>
because RPN is the classic example for using one
netuoso has quit [Ping timeout: 246 seconds]
<jhass>
in fact, RPN was invented because back then it was easier to build calculators that way
<ellisTAA>
so to solve this problem i should be using pop and push?
<jhass>
because all you needed was a stack
ta_ has joined #ruby
<jhass>
yes
adamjleonard has joined #ruby
<ellisTAA>
a stack just refers to an array?
nii236|irssi has joined #ruby
<centrx>
a stack is like an array where elements are added and removed only from the top end
<ellisTAA>
i see
<jhass>
as said, Ruby's array provides the interface of an stack, it's one implementation of it so to say
<numberten>
if i have a |*| as the args for a lambda
<numberten>
does that mean the function takes any number of arguments and ignores them?
zachrab has quit [Ping timeout: 276 seconds]
yellowgh0st has quit [Quit: yellowgh0st]
fandi has joined #ruby
yellowgh0st has joined #ruby
yellowgh0st has quit [Client Quit]
juanpablo__ has joined #ruby
yellowgh0st has joined #ruby
yellowgh0st has quit [Client Quit]
<Rennex>
can you recommend a GUI library for ruby? i want it to work on windows, no jruby/java nonsense, and native look would be nice but it's not a dealbreaker
juanpablo__ has quit [Ping timeout: 245 seconds]
theotherstupidgu has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
beef-wellington has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josephndenton has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
oo_ has joined #ruby
josephndenton has joined #ruby
paulfm has joined #ruby
beef-wellington has quit [Ping timeout: 265 seconds]
dc has quit [Remote host closed the connection]
adriancb has joined #ruby
wallerdev has quit [Quit: wallerdev]
scripore has joined #ruby
crueber has joined #ruby
arescorpio has joined #ruby
wallerdev has joined #ruby
VBlizzard has joined #ruby
adriancb has quit [Ping timeout: 272 seconds]
jottr has quit [Ping timeout: 255 seconds]
blizzy has quit [Disconnected by services]
VBlizzard is now known as blizzy
jenrzzz has quit [Ping timeout: 244 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
zz has joined #ruby
crueber has quit [Ping timeout: 240 seconds]
theotherstupidgu has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
nuck has joined #ruby
nuck has quit [Max SendQ exceeded]
postmodern has joined #ruby
seal has quit [Quit: Ex-Chat]
nuck has joined #ruby
ta_ has joined #ruby
sent1nel has joined #ruby
sent1nel has quit [Remote host closed the connection]
<ccolorado>
Does anyone knows if there is an equivalent to bundler for pyton ? asking here first since I may need to explain what bundler is on #python
<sevenseacat>
you probably won't.
davedev2_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
davedev24_ has quit [Ping timeout: 256 seconds]
<ccolorado>
sevenseacat: I am not disputing that.
ta_ has quit [Ping timeout: 276 seconds]
pdoherty has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
<postmodern>
say I've already defined a query method that performs a DNS query and parses the response
<postmodern>
and I want to extract the query logic from the parsing logic, what would be a good name for a method that _only_ does the DNS query
theotherstupidgu has quit [Ping timeout: 245 seconds]
deric_skibotn has quit [Ping timeout: 255 seconds]
theotherstupidgu has joined #ruby
pdoherty has quit [Ping timeout: 255 seconds]
tunaCanBruh has joined #ruby
backhoe has left #ruby ["Leaving"]
fantazo has quit [Quit: Verlassend]
rcoulman has joined #ruby
adamjleonard has quit [Ping timeout: 264 seconds]
bzeu has joined #ruby
jlast has quit [Remote host closed the connection]
zzzbra has quit [Ping timeout: 244 seconds]
tunaCanBruh has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
ccolorado has left #ruby [#ruby]
krz has quit [Ping timeout: 264 seconds]
paulfm has quit [Quit: Zzzzz...]
pu22l3r has joined #ruby
paulfm has joined #ruby
paulfm has quit [Client Quit]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
devyn has joined #ruby
LudicrousMango has quit [Remote host closed the connection]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LudicrousMango has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
<bzeu>
The initialize method inside a class is the "constructor" as in C++?
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
__main__ has quit [Ping timeout: 256 seconds]
<postmodern>
bzeu, that is correct
<bzeu>
Oh okey.
jaequery has joined #ruby
<bzeu>
postmodern: And the destructor?
<postmodern>
bzeu, there is also a initialize_copy method, which are like copy constructors
<bzeu>
Ahh
<postmodern>
bzeu, eh, no destructor, everything get's GCed
<postmodern>
bzeu, there is an Object Finalizer, but it's not the same
codeurge has joined #ruby
centrx has quit [Quit: In the beginning there was nothing, which exploded. - Terry Pratchett]
<bzeu>
postmodern: Oh okey I will have a read on that, thanks!
<postmodern>
bzeu, basically you should use blocks or explicit methods to clean up your objects
dspangenberg has joined #ruby
<postmodern>
bzeu, otherwise let the GC clean them out
<porfa>
data.css('.span4 ul a')[5]['href'] <— this outputs me the link to the sixth image, can’t i so something like data.css('.span4 ul a’)[0..5][‘href'] so it outputs me the links for image 1 through 6 ?.. how to?
<porfa>
sorry, discussion going on.
OrbitalKitten has joined #ruby
tkuchiki has joined #ruby
<rcoulman>
porfa: You could try using map
LudicrousMango has quit [Ping timeout: 272 seconds]
triple_b has joined #ruby
djbkd has quit [Remote host closed the connection]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
josephndenton has quit [Ping timeout: 244 seconds]
nanoyak has joined #ruby
dspangenberg has quit [Ping timeout: 245 seconds]
<porfa>
rcoulman: thank you so much for the sugestion, a simple google search menaged to fix my problem!! :D
<rcoulman>
cool
<porfa>
data.css('.span4 ul a').map{ |a| [a['href']] }[0, 9]
<porfa>
what do you call “map” ? a method? (still learning rubby as i make my scripts for my needs)
karmatr0_ has joined #ruby
<porfa>
*ruby
eka has joined #ruby
<rcoulman>
It’s a method defined on Array and other “Enumerable” classes
<rcoulman>
The curly braces indicate a “block” which the map method evaluates once for each element in the array
<rcoulman>
One of the differences between C++ and Ruby is that a Ruby class can only have one initialize method, where a C++ class can have multiple constructors
ki0 has joined #ruby
<rcoulman>
More generally, C++ allows multiple methods of the same name with different signatures; Ruby does not
<rcoulman>
Ruby has much more flexible argument syntax, though, which makes up for a lot of that
theotherstupidgu has joined #ruby
juanpablo__ has joined #ruby
Sakens has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
autococker_bud has quit [Remote host closed the connection]
scripore has joined #ruby
juanpablo__ has quit [Ping timeout: 265 seconds]
eka has joined #ruby
<porfa>
hmm
patrick99e99 has quit [Ping timeout: 272 seconds]
Sakens has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
patrick99e99 has joined #ruby
jottr has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
agrinb has joined #ruby
theotherstupidgu has quit [Ping timeout: 245 seconds]
JDiPierro has joined #ruby
robbyoconnor has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
ajaiswal has joined #ruby
gtrak has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
LudicrousMango has joined #ruby
_reset has quit [Ping timeout: 255 seconds]
JDiPierro has quit [Ping timeout: 265 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wldcordeiro has joined #ruby
<porfa>
im trying to .downcase some strings, but the ones that have special signs like HÉLLO output as HÉllo intead of Héllo … is there anyway around this or is it required for me to gem install unicode_utils ?
dseitz has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
anibara has joined #ruby
bzeu has quit [Ping timeout: 244 seconds]
timanema has joined #ruby
uptownhr has joined #ruby
<anibara>
I’m trying to use twitter gem and getting Faraday::Builder is now Faraday::RackBuilder when I run the code. Anybody else got this or have idea how to resolve it
djbkd has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timanema has quit [Client Quit]
Hobogrammer has quit [Ping timeout: 272 seconds]
timanema has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
numberten has left #ruby [#ruby]
bzeu has joined #ruby
<bzeu>
Sry back
<bzeu>
rcoulman: I was afk ,thanks btw!
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
radic has quit [Ping timeout: 245 seconds]
<bzeu>
rcoulman: A quick question. Do you think that Ruby and/or RoR is dying honestly?
mrmargolis has quit [Remote host closed the connection]
radic has joined #ruby
mrmargolis has joined #ruby
ki0 has quit [Remote host closed the connection]
Ankhers has joined #ruby
<anibara>
don’t say that. I’m just starting
<mozzarella>
yes, time to switch to nodejs
theotherstupidgu has joined #ruby
<mozzarella>
it's the future
ponga has quit [Remote host closed the connection]
lioninawhat has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<mozzarella>
my coffee machine runs in a browser and it's using javascript
karmatr0_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
sent1nel has quit [Remote host closed the connection]
oo_ has joined #ruby
<bzeu>
mozzarella: So false
mrmargolis has quit [Ping timeout: 240 seconds]
zzzbra has joined #ruby
Hobogrammer has joined #ruby
<anibara>
I’m trying to use twitter gem and getting Faraday::Builder is now Faraday::RackBuilder when I run the code. Anybody else got this or have idea how to resolve it
Mia has quit [Read error: Connection reset by peer]
nuck has quit [Quit: Computer has gone to sleep.]
MrSamuel has joined #ruby
Megtastique has quit []
yfeldblum has quit [Remote host closed the connection]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ankhers has quit [Ping timeout: 250 seconds]
anibara has left #ruby [#ruby]
pontiki has joined #ruby
anibara has joined #ruby
<anibara>
I’m trying to use twitter gem and getting Faraday::Builder is now Faraday::RackBuilder when I run the code. Anybody else got this or have idea how to resolve it
krz has joined #ruby
oo_ has quit [Remote host closed the connection]
Takle has joined #ruby
agjacome has quit [Quit: leaving]
oo_ has joined #ruby
codeurge has joined #ruby
ta_ has joined #ruby
Channel6 has quit [Quit: Leaving]
krz has quit [Ping timeout: 265 seconds]
Takle has quit [Ping timeout: 245 seconds]
theotherstupidgu has quit [Ping timeout: 244 seconds]
theotherstupidgu has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 276 seconds]
marcdel has joined #ruby
braincrash has quit [Quit: bye bye]
iamjarvo has joined #ruby
marcdel_ has joined #ruby
marcdel has quit [Ping timeout: 244 seconds]
Cat_1 has quit []
beef-wellington has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
npgm has quit [Quit: Connection closed for inactivity]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JBreit has joined #ruby
braincrash has joined #ruby
tus has quit []
beef-wellington has quit [Ping timeout: 272 seconds]
zz has quit []
avahey has joined #ruby
ellisTAA has joined #ruby
freerobby has quit [Quit: Leaving.]
ellisTAA has quit [Client Quit]
freerobby has joined #ruby
standingcloud has joined #ruby
karmatr0n has joined #ruby
Hobogrammer has joined #ruby
JBreit has left #ruby ["Leaving"]
triple_b has joined #ruby
jottr has joined #ruby
triple_b has quit [Client Quit]
shum has quit [Quit: WeeChat 1.1.1]
kyb3r_ has joined #ruby
shum has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
sent1nel has joined #ruby
maximski has quit []
jerematic has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 264 seconds]
agent_white has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
lampd1 has joined #ruby
aaas_ has joined #ruby
tunaCanBruh has joined #ruby
patric100e99 has joined #ruby
<pontiki>
ping?
shime_ has quit [Remote host closed the connection]
wjimenez5271 has quit [Ping timeout: 265 seconds]
n008f4g_ has quit [Ping timeout: 245 seconds]
patrick99e99 has quit [Ping timeout: 265 seconds]
aaas has quit [Ping timeout: 265 seconds]
aaas_ is now known as aaas
deimos has joined #ruby
nuck has joined #ruby
wjimenez5271 has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
ta_ has quit [Ping timeout: 276 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
waynerade has joined #ruby
Megtastique has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
tunaCanBruh has quit [Ping timeout: 256 seconds]
dc_ has joined #ruby
ponga has joined #ruby
pdoherty has joined #ruby
<nii236|irssi>
pong
__main__ has quit [Ping timeout: 276 seconds]
aagdbl has quit [Quit: Leaving]
<deimos>
Quick question, I have a repository with multiple sub dirs each with rspec tests, and its own spec_helper. I'd like to to run rspec from the root of the repo and use the spec_helper in each sub dir to run the tests. They run ok when running rspec in the sub dir itself, but one level above when using `rspec -r subdir/spec/spec_helper.rb subdir` it fails. Any
<deimos>
direction on how to/a better way of doing that?
<deimos>
I hate how irccloud splits text like that, sorry heh
shum has quit [Client Quit]
aapole has quit [Ping timeout: 276 seconds]
ponga has quit [Ping timeout: 264 seconds]
pdoherty has quit [Ping timeout: 245 seconds]
LudicrousMango has quit [Remote host closed the connection]
LudicrousMango has joined #ruby
freerobby has quit [Quit: Leaving.]
dspangenberg has joined #ruby
shum has joined #ruby
Cache_Money has joined #ruby
shum has quit [Client Quit]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
swgillespie has joined #ruby
dspangenberg has quit [Ping timeout: 240 seconds]
LudicrousMango has quit [Ping timeout: 264 seconds]
wldcordeiro has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
oo_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
nobitanobi has joined #ruby
oo_ has joined #ruby
jenrzzz has joined #ruby
postmodern has quit [Quit: Leaving]
theotherstupidgu has quit [Ping timeout: 256 seconds]
hgl has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
juanpablo__ has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 245 seconds]
theotherstupidgu has joined #ruby
djbkd has quit [Quit: My people need me...]
philwantsfish has quit [Ping timeout: 246 seconds]
oo_ has quit [Ping timeout: 264 seconds]
MrSamuel has quit [Quit: MrSamuel]
juanpablo__ has quit [Ping timeout: 245 seconds]
theotherstupidgu has quit [Ping timeout: 246 seconds]
__Kyle__ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
hgl has joined #ruby
ozialien has joined #ruby
fandi has quit [Ping timeout: 244 seconds]
agent_white has joined #ruby
arescorpio has quit [Excess Flood]
mitt3ns has joined #ruby
mitt3ns has left #ruby [#ruby]
tylersmith has quit []
shum has joined #ruby
oo_ has joined #ruby
theotherstupidgu has joined #ruby
jusmyth has joined #ruby
djbkd has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
ta_ has joined #ruby
lioninawhat has quit [Remote host closed the connection]
__Kyle__ has quit [Remote host closed the connection]
longfeet has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<porfa>
Início > BRINCADEIRAS>AVENTAIS>AVENTAL SEXY
oleo has quit [Quit: Verlassend]
<mozzarella>
no, only if I get there using the menu
<jidar>
what's the deal with calling external applications that seems to break all over the place with ruby?
acangiano has quit [Quit: Nettalk6 - www.ntalk.de]
<jidar>
it looks like anything to do with Vagrant that another application calling it just breaks
<porfa>
where can i host a screenshot?
<gr33n7007h>
porfa, imgur.com
beef-wellington has quit [Ping timeout: 272 seconds]
<porfa>
http://imgur.com/1JUv5p7 can you see the breadcrumbs now? why don’t they appear there? :(
Ludicrou_ has joined #ruby
<porfa>
div class="breadcrumb clearfix"
<porfa>
i can’t seem to fetch the breadcrumbs names.. i guess i dont understand how breadcrumbs work
<mozzarella>
porfa: because it follows your browsing "history", click on "inicio" and click on your own link, you'll see that the breadcrumb will change
<mozzarella>
hence why you can't get it when fetching it with ruby
<porfa>
hmmm i understand now… so, any methods to get the “Brincadeiras” text? the “aventais” text i can get because it’s in the top of the left column categories… but it’s a subcategory.. now.. the “brincadeiras” category is going to be a challenge uh?
enterprisedc has quit [Quit: enterprisedc]
<porfa>
i input the product url into the script, it gets me the prod name, the subcategory from the top left menu text, but.. the MAIN category i have no idea how i can get it
LudicrousMango has quit [Ping timeout: 276 seconds]
abuzze has quit [Remote host closed the connection]
<porfa>
i’ll do it manually! i dont’ care! :)
<porfa>
but thanks for the lil info on how breadcrumbs work mozzarella !! :)
echevemaster has quit [Remote host closed the connection]
abuzze has joined #ruby
Megtastique has quit []
codeurge has joined #ruby
theotherstupidgu has quit [Ping timeout: 272 seconds]
abuzze_ has joined #ruby
Pharaoh2 has joined #ruby
{xenomorph} is now known as xenomorph
TinkerTyper has quit [Ping timeout: 255 seconds]
theotherstupidgu has joined #ruby
davedev24_ has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
sent1nel has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 245 seconds]
standingcloud has quit [Remote host closed the connection]
TinkerTyper has joined #ruby
raphaelss has quit [Ping timeout: 244 seconds]
apeiros has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
fandi has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
sent1nel has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
theotherstupidgu has quit [Read error: Connection reset by peer]
<ellisTAA>
what is the typical week like for a web developer / app developer? i’m learning ruby and then RoR, and was wondering what a job in this field would be like.
vdamewood has joined #ruby
lioninaw_ has joined #ruby
krz has joined #ruby
amclain has quit [Ping timeout: 245 seconds]
aganov has joined #ruby
lioninawhat has quit [Ping timeout: 265 seconds]
mjmac has joined #ruby
lioninawhat has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
li0ninawhat has quit [Ping timeout: 265 seconds]
last_staff has joined #ruby
posixpascal has joined #ruby
li0ninawhat has joined #ruby
gizmore has joined #ruby
sigurding has quit [Quit: sigurding]
lioninaw_ has quit [Ping timeout: 265 seconds]
<sevenseacat>
9-5 sitting in front of a computer working.
lioninaw_ has joined #ruby
<weaksauce>
same thing you are doing now but you get paid for it and if you mess it up too many times or are too slow you get fired.
lioninawhat has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
josephndenton has joined #ruby
<sevenseacat>
pretty much.
lioninawhat has joined #ruby
Xeago has joined #ruby
<sevenseacat>
oh, and an hour for lunch.
<sevenseacat>
woo.
theother1tupidgu has quit [Ping timeout: 245 seconds]
<quazimodo>
hullo
agrinb has joined #ruby
<weaksauce>
and free coffee usually
<quazimodo>
hi sevenseacat
theotherstupidgu has joined #ruby
<sevenseacat>
really good if you drink coffee *doesnt*
li0ninawhat has quit [Ping timeout: 272 seconds]
<sevenseacat>
quazimodo: afternoon.
li0ninawhat has joined #ruby
<quazimodo>
sevenseacat: i need a job :(
<sevenseacat>
go get one.
<quazimodo>
i'm interviewing/applying :)
<quazimodo>
just... need to land the damn fish
bal has joined #ruby
oo_ has quit [Remote host closed the connection]
lioninaw_ has quit [Ping timeout: 272 seconds]
<sevenseacat>
keep working at it
ta_ has joined #ruby
lioninaw_ has joined #ruby
josephndenton has quit [Ping timeout: 255 seconds]
lioninawhat has quit [Ping timeout: 265 seconds]
Jackneill has joined #ruby
lioninawhat has joined #ruby
oo_ has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
kenneth has joined #ruby
li0ninawhat has quit [Ping timeout: 265 seconds]
li0ninawhat has joined #ruby
psy_ has joined #ruby
<Crazy_Atheist>
anyone got an idea where some sort of ruby dev would be in cygwins packages?
Aova has quit [Read error: Connection reset by peer]
lioninaw_ has quit [Ping timeout: 265 seconds]
SixiS has joined #ruby
lioninaw_ has joined #ruby
lioninawhat has quit [Ping timeout: 265 seconds]
Hobogrammer has quit [Ping timeout: 265 seconds]
lioninawhat has joined #ruby
Spami_ has joined #ruby
Spami has quit [Ping timeout: 264 seconds]
li0ninawhat has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
dawkirst has joined #ruby
li0ninawhat has joined #ruby
Aova has joined #ruby
lioninaw_ has quit [Ping timeout: 265 seconds]
lioninaw_ has joined #ruby
danman has quit [Quit: danman]
tyfighter has quit [Ping timeout: 245 seconds]
Takle_ has joined #ruby
livathinos has joined #ruby
theotherstupidgu has quit [Ping timeout: 276 seconds]
Takle has quit [Read error: Connection reset by peer]
lioninawhat has quit [Ping timeout: 265 seconds]
lioninawhat has joined #ruby
li0ninawhat has quit [Ping timeout: 265 seconds]
theotherstupidgu has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
dspangenberg has joined #ruby
arup_r has quit [Remote host closed the connection]
li0ninawhat has joined #ruby
jusmyth has quit [Quit: Leaving.]
lioninaw_ has quit [Ping timeout: 265 seconds]
dawkirst has quit [Quit: Leaving...]
lioninaw_ has joined #ruby
lioninawhat has quit [Ping timeout: 272 seconds]
hs366 has joined #ruby
lioninawhat has joined #ruby
ixti has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 1.0.1]
LouisRoR has quit [Ping timeout: 255 seconds]
theotherstupidgu has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
ponga has joined #ruby
dspangenberg has quit [Ping timeout: 264 seconds]
li0ninawhat has quit [Ping timeout: 272 seconds]
nuck has quit [Quit: Computer has gone to sleep.]
lioninaw_ has quit [Ping timeout: 265 seconds]
shredding has joined #ruby
jusmyth has joined #ruby
neoxquick has joined #ruby
kalusn has joined #ruby
lioninawhat has quit [Ping timeout: 272 seconds]
sigurding has joined #ruby
sent1nel has joined #ruby
<avril14th>
morning
<gizmore>
good morning :)
juanpablo__ has joined #ruby
Takle_ has quit [Remote host closed the connection]
dmolina has joined #ruby
nii236|irssi has quit [Quit: leaving]
tokik has joined #ruby
sent1nel has quit [Ping timeout: 265 seconds]
theotherstupidgu has quit [Ping timeout: 244 seconds]
<zenspider>
The DRY principle is stated as “Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.”
<mikecmpbll>
"don’t repeat yourself (DRY) is a principle of software development, aimed at reducing repetition of information of all kinds"
hgl has joined #ruby
seal has quit [Quit: Ex-Chat]
oo_ has quit [Remote host closed the connection]
<mikecmpbll>
"Additionally, elements that are logically related all change predictably and uniformly, and are thus kept in sync."
oo_ has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
<mikecmpbll>
"DRY code is created by data transformation and code generators, which allows the software developer to avoid copy and paste operations."
<ddv>
zenspider: It has a lot to do with code duplication
<mikecmpbll>
we've all got quotes, mate.
<zenspider>
no, it really doesn't... but have fun with that. I'm not here to argue. just help prevent unnecessary complexity.
<ddv>
zenspider: explain to us why it has nothing to do with code duplication
<mikecmpbll>
i think you probably think it's unnecessary because you don't understand what the situation is, which i'm not surprised by, it hasn't been explained in much depth
tyfighter has joined #ruby
<mikecmpbll>
my initial approach, i'm certain, was ludicrous, but I'm looking for the right one and i don't believe that having 10 classes that are exactly the same bar one keyword in various places throughout the class.
<mikecmpbll>
is the way to go *
<apeiros_>
code duplication is/was one of the symptoms of not being dry. but people started to apply it to the symptom and thought "be DRY" meant "don't duplicate code" instead of understanding that less code duplication was a result of being dry.
<apeiros_>
if it was all about code duplication - run your code through a compression algorithm
<mikecmpbll>
i don't disagree.
jenrzzz has joined #ruby
josephndenton has joined #ruby
asmodlol has joined #ruby
cichol has quit [Remote host closed the connection]
<bzeu>
What is an instance variable?
<zenspider>
it is a variable that belongs to an object (instance). They start with "@".
<tobiasvl>
bzeu: a variable belonging to an instance/object
<bzeu>
Yes but what does that mean?
quimrstorres has joined #ruby
DEA7TH has joined #ruby
<tobiasvl>
what does it *mean*… do you know what an object is?
<mikecmpbll>
not sure how it can be broken down much more than that..
<tobiasvl>
maybe read an intro ruby book?
<zenspider>
bzeu: what does anything mean, really?
<bzeu>
I know what an object is
<tobiasvl>
and you know what a variable is?
<zenspider>
might as well just eat cheetos
fandi has quit [Remote host closed the connection]
<mikecmpbll>
:D
<ddv>
he doesn't know what an instance is
josephndenton has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Remote host closed the connection]
<tobiasvl>
bzeu: it's a variable that's local to an instance. it belongs to the instance. it's specific and unique to the instance.
<tobiasvl>
bzeu: its scope is the instance.
quazimodo has quit [Ping timeout: 244 seconds]
wm3|away has joined #ruby
oo_ has quit [Remote host closed the connection]
<bzeu>
ddv: I do
<zenspider>
then you're going to have to get better at asking questions
<ddv>
you don't know what a variable is, bzeu?
quimrstorres has joined #ruby
<bzeu>
ddv: My programming experience are more than your age, so don't go there. This is just different from what I know
<ddv>
....
theotherstupidgu has quit [Ping timeout: 272 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider>
bzeu: aaaand maybe... just maybe you won't be an egotistical cock while you try to formulate an actual good question
<tobiasvl>
bzeu: ok, so what do you want to know about instance variables? what's the problem here?
timonv has joined #ruby
<tobiasvl>
where does your understanding stop
<mikecmpbll>
!troll
<helpa>
TROLL DETECTED!
<ddv>
bzeu: /ignore
<tobiasvl>
bzeu: if you've programmed for decades I'm guessing you're new to object oriented programming
<wm3|away>
it must be friday... time for the weekly feeding of the trolls!
<bzeu>
tobiasvl: So I was looking at some code and an instance variable was inside a method.
wm3|away is now known as workmad3
<bzeu>
As you said @local_variable
joonty has joined #ruby
<tobiasvl>
bzeu: sure. methods belong to instances too, so that's not very weird.
<bzeu>
Yes. But shouldn't they be declared first in the class?
<workmad3>
bzeu: no
<apeiros_>
you lot are quick with the troll card
<bzeu>
Or are there other variables for the class-scope?
<workmad3>
bzeu: at least, not in ruby :)
<zenspider>
and cock card... but I think that one was justified in this case. :P
<tobiasvl>
bzeu: no, they don't need to be declared in the class definition first. @ means that its scope is the instance.
<bzeu>
tobiasvl: Oh I see.
<ddv>
apeiros_: you should ban that guy for being a dick to people who are trying to help him
<workmad3>
bzeu: in fact, using '@some_variable' in ruby at the class level has a very different meaning
<zenspider>
workmad3: not different at all
<zenspider>
classes are instances too
<workmad3>
bzeu: or rather, it has exactly the same meaning, but it's treating the class as the instance, not an instance of the class
<workmad3>
zenspider: I was getting there
<workmad3>
zenspider: but yes, I should have said 'using @some_var in ruby at the class level has a very different meaning to declaring instance variables for instances of the class'
<apeiros_>
ddv: I haven't seen them being a dick. mind quoting one occasion?
<ddv>
lol I feel like a child
<ddv>
anyways
<ddv>
apeiros_: <bzeu>ddv: My programming experience are more than your age, so don't go there. This is just different from what I know
<mikecmpbll>
haha
<apeiros_>
I see, missed that one
<mikecmpbll>
i might use that one down the pub.
<mikecmpbll>
if someone spills my drink.
<bzeu>
self.var is also an instance variable?
<bzeu>
ddv: If you want to play smart next time, find the right person.
<apeiros_>
bzeu: please mind your behavior.
Morkel has joined #ruby
<bzeu>
apeiros_: Maybe he should not open his mouth and talk s hit then and I will.
dawkirst has joined #ruby
<tobiasvl>
come on guys. kiss and make up now and let's talk ruby instead of shit
<mikecmpbll>
let's settle this with a codejam.
theotherstupidgu has joined #ruby
<bzeu>
ddv: I hope you ask a question in ##c++ or ##c soon :)
<apeiros_>
bzeu: pointing at other's behavior to justify your own misbehavior is childish and doesn't matter to me. so just don't.
<mikecmpbll>
so you can pair?
<zenspider>
apeiros_ I say he goes.
<ddv>
bzeu: u mad bro? :)
<zenspider>
douchebaggery shouldn't be tolerated here
<apeiros_>
good thing xml imports take ages. *backlog consultation*
<bzeu>
ddv: Why should I be mad?
<tobiasvl>
I say they both go at this point… I'm trying to help here but it's hard when they insist on fighting
marcdel_ has quit []
<tobiasvl>
I'll go eat lunch instead
<zenspider>
ddv: stop poking the bear
<mikecmpbll>
let's play a game, who can write my factory class the fastest.
<apeiros_>
ok. ddv & bzeu: full stop here or shortban.
<zenspider>
mikecmpbll: haha
<zenspider>
mikecmpbll: Class.new BOOM
<mikecmpbll>
:D
<ddv>
apeiros_: this is pretty funny to be honest
<zenspider>
apeiros_: thanks
<apeiros_>
btw., anybody interested in reviving #ruby-pro?
<apeiros_>
because I am, but I'm not going to do it alone.
<zenspider>
do you get paid for being in there? :D
<apeiros_>
o0
<apeiros_>
no
<mikecmpbll>
lol
<apeiros_>
that would be an interesting concept, though.
<zenspider>
so... pro is not short for professional... programming? :P
<ddv>
but then bzeu cannot join....
theotherstupidgu has quit [Ping timeout: 246 seconds]
Aova has quit [Read error: Connection reset by peer]
<zenspider>
ddv: dumbass
ddv was kicked from #ruby by apeiros_ [I told you to drop it]
<mikecmpbll>
that was coming.
ddv has joined #ruby
withnale_ has joined #ruby
theotherstupidgu has joined #ruby
<ddv>
:)
marr has joined #ruby
rodfersou has joined #ruby
lioninawhat has joined #ruby
dmoe has quit []
colli5ion has joined #ruby
Aova has joined #ruby
leafybasil has joined #ruby
ki0_ has quit []
dmoe has joined #ruby
<bzeu>
apeiros_: I thought you said to stop? :)
asmodlol has quit [Ping timeout: 276 seconds]
<apeiros_>
bzeu: yes, hence 11:20 apeiros_ has kicked ddv (I told you to drop it)
theotherstupidgu has quit [Ping timeout: 272 seconds]
theotherstupidgu has joined #ruby
asmodlol has joined #ruby
<ddv>
You don't have to PM me, bzeu. I'm still here....
<ddv>
[11:27:46] <bzeu>Hahahah goodbye :)
lioninawhat has quit [Ping timeout: 272 seconds]
gigetoo has quit [Ping timeout: 276 seconds]
<bzeu>
What?
<tobiasvl>
you guys
<bzeu>
I didn't pm you
<zenspider>
fucking hell... would you two kids grow the fuck up?
<mikecmpbll>
[10:11:24] <ddv>lol I feel like a child
sent1nel has joined #ruby
<zenspider>
relevant, yes :P
<ddv>
zenspider: language....
<zenspider>
English, mostly
<zenspider>
then ruby
<ddv>
apeiros_: ^
jack_rabbit has quit [Ping timeout: 264 seconds]
juanpablo__ has joined #ruby
bayed has joined #ruby
wottam has joined #ruby
abuzze_ has quit [Ping timeout: 272 seconds]
olleromo___ has quit []
dspangenberg has joined #ruby
olleromo___ has joined #ruby
<apeiros_>
*sob* I don't police PM's and you're both aduls. use /ignore.
tyfighter has quit [Ping timeout: 245 seconds]
sent1nel has quit [Ping timeout: 272 seconds]
<ddv>
apeiros_: zenspider was using foul language
ki0 has joined #ruby
<bzeu>
How are global variables in Ruby? Are the considered evil as in C++?
<mikecmpbll>
you can use whatever fucking language you like!
patronus_ has quit [Read error: Connection reset by peer]
juanpablo__ has quit [Ping timeout: 244 seconds]
ddv was banned on #ruby by apeiros_ [ddv!*@*]
bzeu was banned on #ruby by apeiros_ [ddv!*@*]
bzeu was kicked from #ruby by apeiros_ [ok, I've had it]
ddv was kicked from #ruby by apeiros_ [ok, I've had it]
<apeiros_>
clarification: swearing is ok. swearing at people isn't.
ki0 has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bzeu_ has joined #ruby
theotherstupidgu has quit [Ping timeout: 265 seconds]
<workmad3>
apeiros_: the more eloquent form is '"Fuck that" is ok, "Fuck you" isn't' right? :)
abuzze has joined #ruby
<agent_white>
;D
<zenspider>
here's to hoping they migrate to #ruby-lang
<bzeu_>
apeiros_: You kicked me for what reason?
<apeiros_>
workmad3: about that
<zenspider>
dense, this one is...
beef-wellington has joined #ruby
aagdbl has joined #ruby
thumpba has joined #ruby
bzeu_ was banned on #ruby by apeiros_ [*!*@*213.113.165.169]
bzeu_ was kicked from #ruby by apeiros_ [kicked before]
duncannz has quit [Ping timeout: 240 seconds]
frankS2 has quit []
patronus has joined #ruby
LiquidInsect has quit [Ping timeout: 276 seconds]
<workmad3>
apeiros_: ok... so that's the rules for foul language clarified... how about the rules for fowl language?
<mikecmpbll>
cluck
theotherstupidgu has joined #ruby
<mikecmpbll>
you
<workmad3>
:D
frankS2 has joined #ruby
* workmad3
is now wasting time while trying to get focussed enough to do something useful
LiquidInsect has joined #ruby
shime has joined #ruby
<agent_white>
Teehee 'fowl language'... like fowl like ducks... ducktyping...
<zenspider>
bok bok is the standard greeting in #chicken :P
* agent_white
coughs and shuffles towards the door
<zenspider>
they're kinda crazy tho
<zenspider>
so many chicken puns
<workmad3>
zenspider: I'd try to make one now... but I can't think of any :( guess I need to spend some time in #chicken
<zenspider>
a little lisp is good for everyone
<zenspider>
I'm partial to racket now... but chicken is good
tkuchiki has joined #ruby
joonty has quit [Quit: joonty]
beef-wellington has quit [Ping timeout: 255 seconds]
thumpba has quit [Ping timeout: 245 seconds]
ych_ has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
kyote has quit []
kyote has joined #ruby
greengriminal has joined #ruby
* agent_white
hands apeiros a beer
joonty has joined #ruby
<workmad3>
apeiros_: aww, there's no one in
<workmad3>
#ruby-fix-your-connection atm
<certainty>
no drink and ban
<apeiros_>
workmad3: ##
<workmad3>
bah, who put that return key there? :(
<agent_white>
certainty: Unless drink, ban?
<workmad3>
apeiros_: still empty :P
<certainty>
agent_white: TrueClass
<apeiros_>
workmad3: good thing :)
<agent_white>
\o/
openscript has joined #ruby
<certainty>
bah
* apeiros_
afk
* certainty
puts another return in workmad3's way
ldnunes has joined #ruby
<workmad3>
certainty: that's it, I'm off (to find coffee and attempt work) :P
<certainty>
:p
<arup_r_>
:)
<zenspider>
bedtime for me as soon as cosmos is done
dimaursu16 has quit [Ping timeout: 264 seconds]
mjc_ has quit []
gccostabr has quit [Quit: See you later!]
pdoherty has joined #ruby
mjc_ has joined #ruby
arup_r_ has quit [Remote host closed the connection]
LiquidInsect has quit [Ping timeout: 265 seconds]
shime has quit [Ping timeout: 246 seconds]
pdoherty has quit [Ping timeout: 244 seconds]
dimaursu16 has joined #ruby
Mia has joined #ruby
sigurding has quit [Quit: sigurding]
agrinb has joined #ruby
spider-mario has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<greengriminal>
hey, all so i have somewhat of a weird task. I have some JSON that I'd like to convert to coffeescript and then write it to a file. is this possible?
mrmargolis has joined #ruby
<greengriminal>
fyi the json is generated using ruby.
<zenspider>
why not write it as JSON?
<zenspider>
it is a nice intermediate data language
<zenspider>
I'm not sure what you mean by convert to coffeescript
<greengriminal>
zenspider, well the thing is i would if i could. But the purpose of my task is to generate some json that is written to a coffeescript file which is then used in an an angularjs app.
<zenspider>
but coffeescript IS just javascript... and so is JSON, hence my question
agrinb has quit [Ping timeout: 272 seconds]
chthon has quit [Quit: Ex-Chat]
<zenspider>
json2cson filePath > out.cson
chthon has joined #ruby
<greengriminal>
zenspider, that's cool
<zenspider>
also relevant: "Just to clarify, almost all JSON or JavaScript object/array literals will work just fine when copy+pasted into CoffeeScript"
<zenspider>
aaand cosmos is over. bedtime
mrmargolis has quit [Ping timeout: 256 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
<greengriminal>
but the thing is i need my rake task to convert the json to cson once it finishes generating.
tkuchiki has joined #ruby
Takle has joined #ruby
olivier_bK has quit [Ping timeout: 264 seconds]
<greengriminal>
but thanks anyways
tyfighter has joined #ruby
dawkirst has quit [Quit: Leaving...]
<greengriminal>
also that is a node package
tkuchiki has quit [Remote host closed the connection]
dimaursu16 has quit [Ping timeout: 264 seconds]
mambo has joined #ruby
yellowgh0st has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
ta_ has joined #ruby
tunaCanBruh has joined #ruby
drawingthesun has joined #ruby
drawingthesun has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
tunaCanBruh has quit [Ping timeout: 276 seconds]
openscript has quit [Remote host closed the connection]
Ankhers has joined #ruby
roshanavand has joined #ruby
thesheff17 has quit []
greengriminal has left #ruby ["Leaving"]
thesheff17 has joined #ruby
gemmy has joined #ruby
Aova has quit [Read error: Connection reset by peer]
Ankhers has quit [Ping timeout: 250 seconds]
mclee_ has joined #ruby
shevy has quit [Ping timeout: 276 seconds]
quimrsto_ has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Aova has joined #ruby
_KaszpiR__ has joined #ruby
_KaszpiR_ has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Ping timeout: 244 seconds]
abuzze has quit [Remote host closed the connection]
<apeiros_>
n8 zenspider
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quimrsto_ has quit [Remote host closed the connection]
yellowgh0st has quit [Quit: yellowgh0st]
abuzze has joined #ruby
asmodlol has quit [Ping timeout: 265 seconds]
joonty has quit [Quit: joonty]
ypasmk has quit [Quit: ypasmk]
joonty has joined #ruby
ajaiswal has quit [Read error: Connection reset by peer]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hanmac1>
hm i dont know if that would be fast enough thats why i try to use C/C++ ... (its very time critical)
ikeike443 has quit [Quit: Leaving...]
nuck has quit [Quit: Computer has gone to sleep.]
jottr has quit [Ping timeout: 245 seconds]
nfk has joined #ruby
gemmy has quit [Quit: Lost terminal]
asmodlol has quit [Ping timeout: 276 seconds]
antgel has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
GarbagePailKid has quit [Ping timeout: 256 seconds]
asmodlol has joined #ruby
yfeldblum has joined #ruby
josephndenton has joined #ruby
quazimodo has joined #ruby
terlar has joined #ruby
agrinb has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
hs366 has quit [Quit: Leaving]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
Morkel has quit [Quit: Morkel]
yfeldblum has quit [Ping timeout: 255 seconds]
<certainty>
why would boost be slow?
hs366 has joined #ruby
<jhass>
dunno, probably just some FUD I somewhere heard about it being bloated
daxroc has quit []
daxroc has joined #ruby
ta_ has joined #ruby
LiquidInsect has joined #ruby
josephndenton has quit [Ping timeout: 246 seconds]
jlebrech has joined #ruby
abuzze has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
<jlebrech>
does anyone know of a DSL to transform an api, say I'm using a terrible api and I want to make a nice api on top of it.
mwlang has joined #ruby
<hanmac1>
jhass: problem description: one server with multiple "small" connections, bundle them to get a bigger one, and connect them to a other server with one big connection ... you got what mean so far right?
ych_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlSquire has joined #ruby
Jake232 has joined #ruby
The_Phoenix has joined #ruby
<hanmac1>
it seems the other tested implementations are not fast enough so they say write something your own
<mwlang>
I’m working on a gem in which I’m providing some rake tasks as part of the gem’s features. I need to wrap these in unit tests. Can anyone point me to a good gem or example of unit testing your rake tasks?
Takle has quit [Remote host closed the connection]
<jhass>
hanmac1: yeah. and channel bonding is no option?
<apeiros_>
mwlang: if your rake tasks are just MyGem::Rake::TaskName.run then it's easy
<jhass>
hanmac1: TCP or IP layer?
Ludicrou_ has quit [Remote host closed the connection]
asmodlol has quit [Ping timeout: 240 seconds]
LudicrousMango has joined #ruby
<jhass>
hanmac1: can you talk about what it's for specifically? Just curios :)
<maasha>
apeiros_: so what to use instead of "I" ?
shum has joined #ruby
<apeiros_>
maasha: one of the two endians explicitly. e.g. N
<jhass>
apeiros_: mmh, that code's not run on the assignment though
kapil__ has quit []
<apeiros_>
jhass: ah, I see what you mean. might be worth a shot, yes
<maasha>
apeiros_: you do know that in your fork code you use "I" !
<apeiros_>
maybe ruby -w already picks it up
<maasha>
:oD
maximski has joined #ruby
<apeiros_>
maasha: yes, but there I don't persist
<apeiros_>
i.e. the packed data is guaranteed to be evaluated on the same machine
josephcs has quit [Ping timeout: 246 seconds]
lioninawhat has joined #ruby
kapil__ has joined #ruby
<maasha>
apeiros_: ah, sure
bayed has quit []
bayed has joined #ruby
psy_ has quit [Quit: Leaving]
plashchynski has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
lioninawhat has quit [Ping timeout: 265 seconds]
sent1nel has joined #ruby
dspangenberg has joined #ruby
enterprisedc has joined #ruby
juanpablo__ has joined #ruby
Takle has joined #ruby
Aova has quit [Read error: Connection reset by peer]
theotherstupidgu has quit [Quit: leaving]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
theotherstupidgu has joined #ruby
ozialien has quit [Ping timeout: 255 seconds]
<theotherstupidgu>
:q
sent1nel has quit [Ping timeout: 265 seconds]
dspangenberg has quit [Ping timeout: 272 seconds]
juanpablo__ has quit [Ping timeout: 255 seconds]
Takle has quit [Ping timeout: 246 seconds]
Aova has joined #ruby
beef-wellington has joined #ruby
<mwlang>
jhass: apeiros_ thanks! Got it working. Now to write tests.
pkrzywicki_ has joined #ruby
dimaursu16 has quit [Ping timeout: 264 seconds]
pkrzywicki has quit [Ping timeout: 265 seconds]
jusmyth has quit [Quit: Leaving.]
ayaz has joined #ruby
zzzbra has joined #ruby
beef-wellington has quit [Ping timeout: 272 seconds]
aapole has quit [Ping timeout: 244 seconds]
nhhagen has joined #ruby
ayaz has quit [Remote host closed the connection]
shazaum has joined #ruby
dimaursu16 has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
n1lo has joined #ruby
JDiPierro has joined #ruby
tyfighter has quit [Ping timeout: 256 seconds]
agrinb has joined #ruby
cpt_yossarian has quit [Ping timeout: 246 seconds]
lukeholder has joined #ruby
agent_white has quit [Quit: night]
ta_ has joined #ruby
lightstalker has quit [Ping timeout: 250 seconds]
<quazimodo>
beep boop
mrmargolis has joined #ruby
Ankhers has joined #ruby
jottr has joined #ruby
lukeholder has quit [Max SendQ exceeded]
MaciejCzyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lukeholder has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
adriancb has joined #ruby
jlebrech has quit [Remote host closed the connection]
noop has quit [Ping timeout: 246 seconds]
ta_ has quit [Ping timeout: 276 seconds]
lukeholder has quit [Max SendQ exceeded]
Takle has joined #ruby
pdoherty has joined #ruby
DaniG2k has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
MaciejCzyzewski has joined #ruby
mrmargolis has quit [Ping timeout: 264 seconds]
yellowgh0st has quit [Quit: yellowgh0st]
lukeholder has joined #ruby
zerolith is now known as zerolith_zzz
tunaCanBruh has joined #ruby
<DEA7TH>
I get it that I can substitute array.map{|el| el.id} with array.map(&:id). But what can I do if I want instead the following: array.map{|el| el.booking.id} ?
lukeholder has quit [Max SendQ exceeded]
pika_pika has joined #ruby
lukeholder has joined #ruby
yellowgh0st has joined #ruby
yellowgh0st has quit [Client Quit]
seal has joined #ruby
pdoherty has quit [Ping timeout: 272 seconds]
lukeholder has quit [Client Quit]
aqabiz has quit [Quit: aqabiz]
<certainty>
DEA7TH: you add #booking_id to the class of el and do .map(&:booking_id) ... at least that's one way
sevenseacat has joined #ruby
<certainty>
or you just leave it the way it is
<certainty>
anyway
<certainty>
gtg
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
last_staff has quit [Ping timeout: 264 seconds]
tunaCanBruh has quit [Ping timeout: 246 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
<DEA7TH>
Is there another way? I don't like adding all those extra methods
shredding has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
<certainty>
DEA7TH: i'm not aware of any other. having el.booking.id can be a smell (it depends). you have 3 collaborators in there
x77686d has joined #ruby
robustus|Off has joined #ruby
<jhass>
DEA7TH: is that ActiveRecord?
robustus|Off is now known as robustus
<DEA7TH>
jhass: yes
<jhass>
DEA7TH: you're sure .booking_id is not already available then? Also you might want #pluck if that's a query
<DEA7TH>
certainty: I often have to go through multiple ActiveRecord associations in order to get a value, is that a smell?
spyderman4g63 has joined #ruby
<DEA7TH>
sometimes i even go like trip_item.booking.customer.nickname
<DEA7TH>
(TripItem has one Booking which has one Customer which has the attribute nickname)
spyderman4g63 has quit [Ping timeout: 276 seconds]
<DEA7TH>
I'll watch this
luriv has quit [Ping timeout: 276 seconds]
Macaveli has joined #ruby
siso has quit [Quit: siso]
tyfighter has joined #ruby
railsForDaiz has joined #ruby
abuzze_ has joined #ruby
abuzze has quit [Ping timeout: 245 seconds]
luckyruby has joined #ruby
aagdbl has quit [Quit: Connection closed for inactivity]
<DEA7TH>
Another question: I just wrote a 200 lines of code long function for data generation. Does it hurt that it's too long? Its components are independent 20-30-loc chunks, and separated with a comment explaining what each one does. Inner functions are also used.
<DEA7TH>
I could split the function into multiple functions, and one which calls them one by one, but they would never be reused.
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa>
idiomatic ruby is lots of methods that are at most 10 lines long
<wasamasa>
at least that's what rubocop tells me
last_staff has joined #ruby
<mwlang>
DEA7TH: if you’re going to unit test that, then split into smaller methods so you can write focused unit tests on each chunk.
<DEA7TH>
wasamasa: Hm. What if all of them are inner methods of one large method which contains them all? They're not going to be reused anyway.
sent1nel has joined #ruby
<mwlang>
DEA7TH: are you writing a throwaway script? i.e. get some major task done and move on or are you writing production code that will have a long shelf life?
scripore has joined #ruby
<wasamasa>
DEA7TH: well, my remark was aimed to demonstrate that it's no absolute truth
<wasamasa>
DEA7TH: if it's a library, better rethink the design
<wasamasa>
DEA7TH: if it's a rake script/test, don't bother
Aova has quit [Read error: Connection reset by peer]
<DEA7TH>
mwlang: Mock data generator. I'll probably want to rerun it multiple times.
DaniG2k has quit [Quit: leaving]
<mwlang>
when I’m doing the former, I’ll sometimes have long methods as long as there’s not a lot of conditional flow there, but if its production, I break it down to smaller methods and BDD the mess.
brb3 has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DEA7TH>
It will also be extended when the project has new data generation needs, e.g. a new table with related functionality. It serves to demo my project without showing real data which I'm not allowed to show.
<mwlang>
DEA7TH: something like that doesn’t need to be broken down — I rarely put tests around those sorts of scripts.
jusmyth has joined #ruby
shine_ has joined #ruby
abuzze_ has quit [Remote host closed the connection]
<wasamasa>
what I'd check for is whether the code can be shortened by writing it to be more data-driven
<wasamasa>
so, for instance by putting the data into a hash and using it for dispatch
<gregf_>
bah :/ sorry . long back
<DEA7TH>
gregf_: yeah, I tried that and it worked, but is too verbose :/
<hanmac1>
jhass: back again: the problem is: one Server is multiple internet connections that needs to be connected to another server with one big connection ... there where some stuff used before but it didn't work, so i want to write some stuff my own ... currently i found http://stackoverflow.com/questions/11421678/how-to-make-a-proxy-server-in-c-using-boost
sent1nel has quit [Ping timeout: 265 seconds]
jottr has joined #ruby
Aova has joined #ruby
<jhass>
hanmac1: so, is that for a single port, multiple ports or all IP traffic?
<hanmac1>
jhass: like PC-A has four IP connections, single port, each of them are connected to one big server, multiport (so each connection of PC-A is connected to one port of PC-B)
atomical has joined #ruby
joonty has quit [Quit: joonty]
<jhass>
when I said port I mean TCP port, not ethernet port :
<jhass>
)
arya_ching has joined #ruby
ych_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cantonic has quit [Read error: Connection reset by peer]
<hanmac1>
jhass: hm yes ... and no ... each of the ethernet ports on PC-A is connected to one TCP-Port on PC-B
<ypasmk>
can I dynamically choose the action in an array for example p = ‘any?’ and then [‘value1’,’value2’].p { |v| v == ‘value1’ }
Stoge88 has joined #ruby
jerematic has joined #ruby
<jhass>
hanmac1: just a specific port of the address that's on that port or do you then do TCP in IP in TCP?
cantonic has joined #ruby
<arup_r>
Spree::Product.find_by_sap_code('0822018188A14005').display_price.money + 2 is giving Nomethod error
<arup_r>
Don't know why
<jhass>
hanmac1: if I should shut up, just say so, still just curiosity ;)
AlexRussia has joined #ruby
<jhass>
ypasmk: yes, use #public_send
<hanmac1>
jhass: hm currently i dont know much of myself ... (currently i am try to implement it like a proxy but that does split the data into multiple parts)
paulfm has joined #ruby
Grumelo has quit [Read error: Connection reset by peer]
<jhass>
so if your just does some regular socket calls with ports, it's probably just the specific port case
beef-wellington has joined #ruby
kevr_ has joined #ruby
yfeldblum has joined #ruby
juanpablo__ has joined #ruby
__chris has quit [Ping timeout: 245 seconds]
<ypasmk>
ruby is awesome
<hanmac1>
jhass: i need to see if its fast enough for the customers
josephndenton has joined #ruby
agrinb has joined #ruby
paulfm_ has joined #ruby
<jhass>
hanmac1: I sort of wonder if you can't just use an iptables rule to do such a thing. Don't know them too well but I feel like it's just masquerading, for example what your home router calls "port forwarding"
<jhass>
if you can, it's in the kernel and won't get faster than that
pontiki has quit [Quit: off to workies!!]
<apeiros_>
ypasmk: btw., re your yesterday "inject does not work with || or &&" - yes, it does. but || and && are not methods, so you can't use the abbreviated form.
<hanmac1>
jhass: the task is that the four internet connections should work as one ... there might be some other implmentations but i for my self didnt find anything like that
<ypasmk>
apeiros_: yes … I used a different approach so no one liner winner there for me
<jhass>
I'm still not sure I got you on what it's doing specifically
<apeiros_>
ypasmk: what did you end up using?
Olipro_ is now known as Olipro
tyfighter has quit [Ping timeout: 256 seconds]
paulfm has quit [Ping timeout: 264 seconds]
<ypasmk>
apeiros_: a loop thingy like the bubble algorithm
<mwlang>
hanmac1 mulitple physical connections that act as one is called a bonded connection.
josephndenton has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 255 seconds]
<ypasmk>
apeiros_: it was more complicated … for a missing value in the list (nil or empty) then the previous one should take its place to be compared with the next …
<apeiros_>
ypasmk: sounds like you had a gross datastructure to begin with :-p
<apeiros_>
but that'd just mean a grep before the map
pu22l3r has joined #ruby
<hanmac1>
mwlang: hm yes ... but i need to ask why "channel bonding" is not used before for that ... i think it has something todo with "failure safety" ... hm like i said i maybe not deep enough into that project yet
pu22l3r has quit [Remote host closed the connection]
MrSamuel has quit [Remote host closed the connection]
<ypasmk>
apeiros_: hmmm … please elaborate …
pu22l3r has joined #ruby
<apeiros_>
ary.grep(/\A(?:true|false)\z/).map { |x| x == "true" }.inject { |a,v| a && v }
<jhass>
hanmac1: say you have eth1 with 10.1.0.1, eth2 with 10.2.0.1 and so on and eth_internal with 192.168.0.1, the other server is at 192.168.0.2. The other server listens on 192.168.0.2:101, 192.168.0.2:102 and so on and you want connections to 10.1.0.1:100 go to 192.168.0.2:101, 10.2.0.1:100 go to 192.168.0.2:102 and so on
<jhass>
is that what you want?
zzzbra has quit [Ping timeout: 255 seconds]
<ypasmk>
apeiros_: hmmmm … interesting … I’ll give it a shoot see if it works in my case
<apeiros_>
if it doesn't, then you didn't fully describe your problem :-p
<hanmac1>
jhass: yes i think thats like they want it
lioninawhat has joined #ruby
<mwlang>
hanmac1: Are you trying to host a server behind two different ISP’s or something?
<jhass>
hanmac1: that's IP masquerading then, a few iptables rules should do it
LouisRoR has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
<hanmac1>
mwlang: i dont 100% know what my company is trying todo ;P
dangerousdave has quit [Max SendQ exceeded]
shime has joined #ruby
<mwlang>
hanmac1: well, if that is what they’re wanting for failover when one ISP goes down, then you’ll have to implement BGP which isn’t all that easy to do: http://en.wikipedia.org/wiki/Border_Gateway_Protocol for more info.
luriv has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
xrlabs has joined #ruby
<hanmac1>
mwlang: hm ok good to know ... but i need to ask the others if thats what they want
AlSquire has joined #ruby
athan has joined #ruby
<jhass>
yeah, I think you actually have no idea what they want, it might be better to clarify that first before spending too much effort
theotherstupidgu has quit [Ping timeout: 240 seconds]
nhhagen_ has quit [Remote host closed the connection]
zzzbra has joined #ruby
Morkel has joined #ruby
<hanmac1>
i will see what does might help me, but today is Fr means, as less work as possible ... ;P
nhhagen has quit [Ping timeout: 255 seconds]
cpt_yossarian has joined #ruby
sprihodko has joined #ruby
<workmad3>
hanmac1: alright for some :P
tunaCanBruh has quit [Ping timeout: 244 seconds]
theotherstupidgu has quit [Ping timeout: 264 seconds]
cpt_yossarian has quit [Client Quit]
zzzbra has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ych4k3r has joined #ruby
nhhagen has joined #ruby
n008f4g_ has quit [Ping timeout: 265 seconds]
nhhagen has quit [Remote host closed the connection]
luckyruby has quit [Ping timeout: 252 seconds]
dblessing has joined #ruby
psy_ has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
lioninawhat has quit [Remote host closed the connection]
kiddoboy has joined #ruby
<kiddoboy>
Multiplataform application. What technologies to use? Web + Mobile + Desktop. Any opensource project as an example?
ki0_ has joined #ruby
luriv has joined #ruby
tyfighter has joined #ruby
philwantsfish has joined #ruby
<ypasmk>
there no exclude? in ruby right?
<wasamasa>
wikipedia is a multiplatform application
asmodlol has quit [Ping timeout: 255 seconds]
<xrlabs>
what do you mean ypasmk
ki0 has quit [Ping timeout: 264 seconds]
iamninja has quit [Quit: ZZZzzz…]
LudicrousMango has joined #ruby
<ypasmk>
ary.include?(‘somevalue’) and ary.exclude?(‘somevalue’)
<kiddoboy>
wasamasa: Is it done with ruby?
<wasamasa>
kiddoboy: no, PHP
<wasamasa>
kiddoboy: still, doesn't matter
<xrlabs>
you could do it after that, ypasmk
<xrlabs>
wait a sec
<certainty>
ypasmk: isn't exclude just? !include?
plashchynski has quit [Quit: plashchynski]
<certainty>
erm, the ? went to the wrong place
<kiddoboy>
wasamasa: What do you mean? I'm looking best practices for using ruby in a multiplataform way
<wasamasa>
kiddoboy: do the backend in any language you like, do the frontend in the languages the browser supports, make everyone use a browser to access the thing
<wasamasa>
kiddoboy: that's the easiest way for a simple- to medium-complex application
bunbury has joined #ruby
<wasamasa>
kiddoboy: everything closer to native is a shitload more complex to do, especially if it has to be supported on more than one platform
Takle has joined #ruby
d3v has quit [Ping timeout: 256 seconds]
<wasamasa>
kiddoboy: github is written in rails, is that enough for you?
<kiddoboy>
wasamasa: I understand the browser thing
<ypasmk>
gregf_: true … but I want to send it with public_send
<xrlabs>
that's actually quite cool
<wasamasa>
kiddoboy: well, good
tesuji has quit [Ping timeout: 245 seconds]
<kiddoboy>
wasamasa: I would like to know what people use in order to extend the browser application to a desktop client and mobile client
<wasamasa>
kiddoboy: a browser
<wasamasa>
kiddoboy: browsers run everywhere!
<kiddoboy>
wasamasa: I understand responsive css as well
<wasamasa>
kiddoboy: browsers run on desktops, mobile phones, laptops
<ypasmk>
I just extended the enumarable module with a method def exclude?(item) !include?(item) end
SolarSailor has joined #ruby
<ypasmk>
but don’t know if that is condidered to be a good practise
<gregf_>
ypasmk: p [1,2,3].public_send("include?",2), ![1,2,3].public_send("include?",2)
<kiddoboy>
wasamasa, The thing is that my company wants to launch a desktop application and mobile application independent from the browser
<gregf_>
ypasmk: its not as complicated as you're making it :/
<wasamasa>
kiddoboy: tell them they're in for a world of pain
ki0_ has quit [Remote host closed the connection]
<ypasmk>
gregf_: well it is because the ! goes in front of the method and the dynamic part goes to the public_send method
<ypasmk>
I’m looking for one liner …
<kiddoboy>
kiddoboy: they are looking for possible technologies
ki0 has joined #ruby
<ypasmk>
otherwise I will need something like a condition to control the call
plashchynski has joined #ruby
kenneth has joined #ruby
<kiddoboy>
So no QT neither FX with jruby?
<wasamasa>
bwahaha
<wasamasa>
I guess you're one of those who only understand once they've experienced it themselves :D
nhhagen has joined #ruby
<kiddoboy>
wasamasa: But ruby as bindings for QT5 isn't this correct?
<gregf_>
ypasmk: class Array; def exclude? val; return !self.include?(val);end;end;p [1,2,3].exclude?(2); <== like that
<gregf_>
*cries*
<kiddoboy>
wasama: literature is scarse though.
<wasamasa>
kiddoboy: worse, QT has only C++ docs
<kiddoboy>
wasamasa: It seems no one is using it
freerobby has joined #ruby
<wasamasa>
no idea about FX
<wasamasa>
I've only heard of it thanks to ruby
<kiddoboy>
wasama: It's the replacement of Swift in Java world
kenneth has quit [Client Quit]
tiwillia has joined #ruby
arup_r has quit []
Aova has quit [Read error: Connection reset by peer]
* wasamasa
retches
<kiddoboy>
I guess rubymine is developed with that. Am I wrong?
kenneth has joined #ruby
nhhagen has quit [Remote host closed the connection]
<wasamasa>
also, it's swing if anything
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
<kiddoboy>
wasamasa: I guess ruby community doesn't bother about destop and mobile. Just browsers like you say.
jdripper has joined #ruby
<wasamasa>
kiddoboy: well, there are of course people who tried making solutions for those
nhhagen has joined #ruby
<wasamasa>
kiddoboy: I'm just pointing out that even if you use those, you'll have more things to worry about than when just doing a web application
<kiddoboy>
wasamasa: There Rhomobile for multi-mobile development with ruby. But also not to much buzz on it in the ruby community.
EvanFreeman has joined #ruby
terlar has quit [Read error: Connection reset by peer]
juanpablo__ has joined #ruby
<hanmac1>
kiddoboy: hm i an writing a binding for wxWidgets ... you might like it, but its not finish yet
<kiddoboy>
wasamasa: Totally agree with you, but our costumers demand desktop applications. Currently we use C++ to develop them. I am looking to ways of making use of ruby not just for the browser application.
nhhagen has quit [Remote host closed the connection]
icbm has joined #ruby
<wasamasa>
kiddoboy: great, instead of just worrying about C++, you need to worry about C++ *and* ruby
<wasamasa>
kiddoboy: the number of failing points has doubled!
<wasamasa>
I wonder what management will think of this
Aova has joined #ruby
<kiddoboy>
hanmac1: OK can you tell me more about it. Why wxWidgets over QT or TK? Can you point me out to the github repo?
<workmad3>
kiddoboy: you could always use something like mruby to embed a ruby runtime into your C++ apps... then you can use ruby to script bits (or all) of your C++ desktop apps :)
blackoperat has joined #ruby
<hanmac1>
kiddoboy: wxwidgets.org because it does look native on the different OS
<waxjar>
rubymotion is a pretty big platform for doing ios (or android?) apps, no?
<kiddoboy>
hanmac1: Why are you taking the effort if no one is with you? What are the motivations? Will the library be reliable over time? What guarantees?
<wasamasa>
kiddoboy: welcome to the world of opensource
<wasamasa>
kiddoboy: where the majority of projects is done by one or two persons
<wasamasa>
kiddoboy: even openssl
chthon has quit [Ping timeout: 245 seconds]
<wasamasa>
kiddoboy: and gnupg and many more
<hanmac1>
kiddoboy: i need it for some other project ... thats the main reason why i wrote bindings because i need it somewhere else
<kiddoboy>
In my point of view the community needs to be involved to push ruby towards different boundaries. Don't you think so?
<wasamasa>
kiddoboy: people start those projects mostly to scratch their own itch
scripore has quit [Quit: This computer has gone to sleep]
sent1nel has joined #ruby
<wasamasa>
kiddoboy: not because someone tells them the community has to move forward or some other crock
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kiddoboy>
hanmac1: So you are trying to develop a multiplataform application?
<hanmac1>
yeah why not ;P
<wasamasa>
kiddoboy: node-webkit is a thing, however since node is js, people use it with javascript
<wasamasa>
kiddoboy: surprise, surprise
yfeldblum has joined #ruby
RandyT has joined #ruby
skj3gg has joined #ruby
skj3gg has quit [Client Quit]
<hanmac1>
kiddoboy: and if you ask: my big plan is a new open RPGMaker in Ruby ;P ... but that will still take sometime for that :( (yes shevy i still didnt abandom that dream)
<waxjar>
i really don't like the node-webkit stuff. it produces clunky, poorly-integrated memoryhungry beasts :P
<wasamasa>
kiddoboy: browsers are complicated beasts, someone wrote javascript integration, people are lazy and use it
<kiddoboy>
Ruby at enterprise level gets a bit behing due to this things in my point of view. Its hard to sell the idea when the technologies are limited to web development and back office work.
agrinb has quit [Ping timeout: 265 seconds]
<wasamasa>
rofl, "Ruby at enterprise level"
kenneth has joined #ruby
<wasamasa>
nobody at this level uses a single language for everything
skj3gg has joined #ruby
<wasamasa>
even java people deal with having to use xml for config :P
browndawg has joined #ruby
browndawg has quit [Client Quit]
<certainty>
starship enterprise?
<wasamasa>
kiddoboy: technologies aren't limited, the ones being limited are people who believe they can't push those technologies forward
<IceDragon>
eww xml :x
marr has quit [Ping timeout: 264 seconds]
* hanmac1
uses xml files for maps! ;P
kenneth has quit [Client Quit]
Renich has joined #ruby
<IceDragon>
hanmac1: UR A BAD PERSON
<wasamasa>
lol
* IceDragon
points and cries
<workmad3>
hanmac1: do you run that XML through an XSLT sheet to produce ruby though?
<wasamasa>
workmad3: please stop the perversion
<certainty>
workmad3: sick
<workmad3>
wasamasa: :D
<workmad3>
wasamasa: if I was perverted, I'd have said the XSLT should produce PHP ;)
<apeiros_>
I thought you'd go the other way round. use enterprise ruby to convert ruby to xml too
<wasamasa>
ಠ_ಠ
<certainty>
of course it's xml -> yaml(with embedded objects) -> ruby
<hanmac1>
sorry dont know but i thought that no one uses tk if they can use better
mleone has joined #ruby
<wasamasa>
^
kenneth has joined #ruby
<kiddoboy>
hanmac1: From what I read TK and QT have now the same look and feel of the desktop as well. Is this wrong?
<apeiros_>
workmad3: I thought more like this: <pixel x="0" y="0"><red>0</red><green>255</green><blue>128</blue></pixel>…
<wasamasa>
nope
<wasamasa>
that's totally wrong
mleone has quit [Client Quit]
<wasamasa>
QT actually looks decent
<wasamasa>
TK doesn't even have themes
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<apeiros_>
I mean since that's plaintext, it can easily be gzipped. it will certainly be much smaller than e.g. a PNG!!!!1!1!!
<wasamasa>
its only benefit is that you don't need to sacrifice a goat to program with it
tyfighter has quit [Ping timeout: 264 seconds]
<wasamasa>
or a GUI designer
phoo1234567 has joined #ruby
<wasamasa>
but it's as ugly as sin
chthon has joined #ruby
iamninja has joined #ruby
scripore has joined #ruby
mcpierce has joined #ruby
kenneth has quit [Client Quit]
rubyIsKillingME has joined #ruby
Jackneill has joined #ruby
<mcpierce>
Hi, all. I'm looking for some help on writing a Ruby extension. I have VALUE that was created by a call to Data_Wrap_Struct and I want to add a mark function to it.
michael_mbp has quit [Excess Flood]
<rubyIsKillingME>
What is the generic lexicology for method names in ruby? I'm writing a compiler
kenneth has joined #ruby
<mcpierce>
I can't access the actual call to Data_Wrap_Struct so is it possible to modify that existing VALUE to add the function reference?
phoo1234567 has quit [Max SendQ exceeded]
<hanmac1>
kiddoboy: wx itself is nice because it does look different on different systems ... like native
theotherstupidgu has quit [Ping timeout: 256 seconds]
<kiddoboy>
Tk is the standard GUI not only for Tcl, but for many other dynamic languages, and can produce rich, native applications that run unchanged across Windows, Mac OS X, Linux and more.
<kiddoboy>
What 'native applications' mean then?
pu22l3r_ has joined #ruby
phoo1234567 has joined #ruby
rubyIsKillingME has left #ruby [#ruby]
kenneth has quit [Client Quit]
<kiddoboy>
hanmac1: oh I see now what do you mean
kenneth has joined #ruby
michael_mbp has joined #ruby
<kiddoboy>
What about JRUBY and using java libraries?
agrinb has joined #ruby
davout has left #ruby ["kthxbye"]
ych4k3r has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
kenneth has quit [Client Quit]
terlar has joined #ruby
Luyt_ has quit [Ping timeout: 264 seconds]
Megtastique has joined #ruby
<hanmac1>
kiddoboy: i dont theat jruby as existent for me ;P (also because my bindings will never work for them)
ych4k3r_ has quit [Read error: Connection reset by peer]
<certainty>
wasamasa: haha those slides are awesome
RandyT has quit [Ping timeout: 245 seconds]
kenneth has joined #ruby
RandyT_ has joined #ruby
michael_mbp has quit [Excess Flood]
RandyT_ is now known as RandyT
jusmyth has joined #ruby
fryguy9 has joined #ruby
sprihodko has quit [Quit: (null)]
sevenseacat has quit [Quit: Leaving.]
<kiddoboy>
hanmac1: Is you're RPG planned to work in mobile as well?
kenneth has quit [Client Quit]
michael_mbp has joined #ruby
livingstn has joined #ruby
x77686d has quit [Quit: x77686d]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kenneth has joined #ruby
mitchellhenke has joined #ruby
dspangenberg has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
brb3 has joined #ruby
kenneth has quit [Client Quit]
<kiddoboy>
hanmac1: I thought wxWidgets was dead but it seams very active. Why the ruby bindings were gone? Do you have some idea of the reason?
kenneth has joined #ruby
chinmay_dd has joined #ruby
tunaCanBruh has joined #ruby
<hanmac1>
kiddoboy: wxRuby wasnt conttinuted for years and it did only worked with wx2.8 and ruby1.8 ... my rebuild of it does work with recent of both
last_staff has quit [Quit: last_staff]
<kiddoboy>
kiddoboy: I really would like to have a common framework for desktop development in which we could plugin what ever bindings. Is this something to utopic?
michael_mbp has quit [Excess Flood]
Xeago has quit [Remote host closed the connection]
michael_mbp has joined #ruby
Xeago has joined #ruby
kenneth has quit [Client Quit]
<kiddoboy>
The desktop bindings and mobile bindings would be just a new controller-view layer in top of the model layer.
<certainty>
"just"
Luyt_ has joined #ruby
kenneth has joined #ruby
cpt_yossarian has joined #ruby
jusmyth has left #ruby [#ruby]
theotherstupidgu has joined #ruby
jdripper has joined #ruby
kenneth has quit [Client Quit]
<kiddoboy>
certainty: Meaning we would be able to use the model layer cross-platform wise and deploy accordingly.
<wasamasa>
certainty: yeah, I like the style
fmcgeough has joined #ruby
dspangenberg has quit [Ping timeout: 256 seconds]
<certainty>
kiddoboy: that's too enterprisey for me. I don't know much about that stuff, so feel free to ignore my bitching ;)
<kiddoboy>
All the cross-platform development in one single repository.
Xeago_ has joined #ruby
Jackneill has quit [Remote host closed the connection]
Xeago has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
michael_mbp has quit [Excess Flood]
<kiddoboy>
Rhomobile uses kind of the same logic, but it seems no one uses it. Which is a little bit weird for me. Specially when it is owned by Motorola.
michael_mbp has joined #ruby
fryguy9 has quit [Quit: Leaving.]
ki0 has quit [Remote host closed the connection]
<workmad3>
apeiros_: looks kinda like I'd expect an SVG 'bitmap' to look :)
<kiddoboy>
But Rhomobile is for the mobile market. I would like to see something open-source for all platforms.
nhhagen has joined #ruby
<kiddoboy>
No one of you had the same idea? I can imagine so. Why it doesn't exist? Technology challenges? How hard is it to be accomplished?
kenneth has joined #ruby
lmickh has joined #ruby
Landshark753 has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
nhhagen_ has joined #ruby
<kiddoboy>
My feeling is that the solution exists but its hidden under the entreprise protection layer. Companies do it but don't reveal the how to. Am I to far from the truth?
pierombaabu has joined #ruby
<kiddoboy>
No question that there are plenty of entreprise frameworks out there not revealed to the world!
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
<kiddoboy>
Isn't it time to make an open-source one?
theotherstupidgu has quit [Ping timeout: 245 seconds]
<kiddoboy>
Rails is great but is not enough for what I'm looking for to achieve.
Guest9343 is now known as bl4ckdu5t
plashchynski has quit [Quit: plashchynski]
bl4ckdu5t has quit [Changing host]
bl4ckdu5t has joined #ruby
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ki0 has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
shime has quit [Read error: Connection reset by peer]
DefV_ is now known as DefV
theotherstupidgu has joined #ruby
it0a has joined #ruby
shime has joined #ruby
jimms has quit [Ping timeout: 276 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
zzzbra has joined #ruby
michael_mbp has quit [Excess Flood]
ta_ has joined #ruby
ych_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tagrudev has quit [Remote host closed the connection]
<apeiros_>
almost forgot to unban.
mbeasley has quit [Quit: WeeChat 0.4.2]
tyfighter has joined #ruby
tus has joined #ruby
xjiujiu has quit [Ping timeout: 264 seconds]
michael_mbp has joined #ruby
nhhagen_ has quit []
* apeiros_
yawns
<apeiros_>
assets:precompile taking ages…
reelbk has joined #ruby
<apeiros_>
soon weekend, hurray
duggiefresh has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
ta_ has quit [Ping timeout: 272 seconds]
plashchynski has joined #ruby
michael_mbp has quit [Excess Flood]
skj3gg has quit [Quit: ZZZzzz…]
<certainty>
saturday is workday
jottr has quit [Ping timeout: 265 seconds]
Aova has quit [Read error: Connection reset by peer]
waynerade has joined #ruby
einarj has quit [Remote host closed the connection]
michael_mbp has joined #ruby
roshanavand has quit [Quit: roshanavand]
roshanavand has joined #ruby
zenith_ has quit [Read error: Connection reset by peer]
zenith_ has joined #ruby
michael_mbp has quit [Excess Flood]
raphaelss has quit [Ping timeout: 264 seconds]
michael_mbp has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Aova has joined #ruby
weems|mac has joined #ruby
josephnd1nton has joined #ruby
theotherstupidgu has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
theotherstupidgu has joined #ruby
tjohnson has joined #ruby
skj3gg has joined #ruby
banister has joined #ruby
mbeasley has joined #ruby
lessless has joined #ruby
michael_mbp has quit [Excess Flood]
ki0 has quit [Remote host closed the connection]
jottr has joined #ruby
michael_mbp has joined #ruby
josephnd1nton has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
iamjarvo has joined #ruby
shum1 has quit [Ping timeout: 244 seconds]
hanmac1 has quit [Quit: Leaving.]
theotherstupidgu has quit [Ping timeout: 240 seconds]
tiwillia has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FooMunki has quit [Quit: FooMunki]
arya_ching has joined #ruby
sent1nel has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
sigurding has joined #ruby
apeiros_ has quit [Ping timeout: 244 seconds]
theotherstupidgu has joined #ruby
SHyx0rmZ has joined #ruby
Takle_ has quit [Remote host closed the connection]
zenith_ has quit [Ping timeout: 245 seconds]
theotherstupidgu has quit [Client Quit]
tiwillia has joined #ruby
scripore has joined #ruby
gtrak has joined #ruby
theotherstupidgu has joined #ruby
ypasmk has quit [Quit: ypasmk]
ki0 has joined #ruby
sent1nel has quit [Ping timeout: 265 seconds]
theotherstupidgu has quit [Client Quit]
Takle has joined #ruby
theotherstupidgu has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
xjiujiu has joined #ruby
brb3 has joined #ruby
Alina-malina has joined #ruby
dspangenberg has joined #ruby
sent1nel has joined #ruby
Luyt__ has joined #ruby
uptownhr has joined #ruby
Ankhers has joined #ruby
kenneth has joined #ruby
fabrice31_ has joined #ruby
Luyt_ has quit [Ping timeout: 264 seconds]
theother1tupidgu has joined #ruby
naftilos76 has joined #ruby
theotherstupidgu has quit [Ping timeout: 265 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
klmlfl has joined #ruby
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
amundj has quit [Ping timeout: 245 seconds]
kenneth has quit [Client Quit]
codeurge has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
noop has joined #ruby
snath has quit [Ping timeout: 244 seconds]
tiwillia has quit [Ping timeout: 264 seconds]
bal has quit [Quit: bal]
AlSquire has joined #ruby
tyfighter has quit [Ping timeout: 245 seconds]
bal has joined #ruby
bal has quit [Client Quit]
zachrab has joined #ruby
zenith_ has joined #ruby
lioninawhat has joined #ruby
mrmargolis has quit [Remote host closed the connection]
Jackneill has joined #ruby
lkba has joined #ruby
Jackneill has quit [Remote host closed the connection]
zwer_l has quit [Remote host closed the connection]
juanpablo__ has quit [Ping timeout: 264 seconds]
klmlfl has quit [Ping timeout: 240 seconds]
zwer has joined #ruby
willgorman|away is now known as willgorman
uptownhr has quit [Quit: uptownhr]
pu22l3r_ has quit []
werelivinginthef has joined #ruby
havenwood has joined #ruby
linuxer1 has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
ixti has joined #ruby
Takle has joined #ruby
tyfighter has joined #ruby
bjornar has quit [Read error: Connection reset by peer]
bootstrappm has quit [Remote host closed the connection]
theotherstupidgu has quit [Ping timeout: 256 seconds]
stunder has joined #ruby
jlast has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
theotherstupidgu has joined #ruby
Luyt has joined #ruby
tiwillia has quit [Read error: Connection reset by peer]
eka has joined #ruby
tiwillia has joined #ruby
Luyt__ has quit [Ping timeout: 264 seconds]
tier has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
reinaldob has joined #ruby
tier has joined #ruby
ptrrr has joined #ruby
dfinninger has joined #ruby
tiwillia has quit [Read error: Connection reset by peer]
bootstrappm has joined #ruby
tiwillia has joined #ruby
pu22l3r has joined #ruby
yfeldblum has joined #ruby
michael_mbp has quit [Excess Flood]
Aova has joined #ruby
ypasmk has joined #ruby
pu22l3r has quit [Remote host closed the connection]
michael_mbp has joined #ruby
ych4k3r has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
amil has quit [Quit: Leaving...]
zzzbra has quit [Ping timeout: 264 seconds]
cantonic has joined #ruby
roolo has quit [Quit: AAAAaaaaAAAAAAA]
willgorman is now known as willgorman|away
zenith_ has joined #ruby
CustosL1men has quit [Ping timeout: 276 seconds]
ych4k3r_ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 255 seconds]
karmatr0n has joined #ruby
asmodlol has joined #ruby
chrishough has joined #ruby
pu22l3r has joined #ruby
ych4k3r has quit [Read error: Connection reset by peer]
anarang has quit [Quit: Leaving]
michael_mbp has quit [Excess Flood]
AlexRussia has quit [Ping timeout: 265 seconds]
ypasmk has quit [Ping timeout: 272 seconds]
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
hs366 has quit [Remote host closed the connection]
michael_mbp has joined #ruby
Pharaoh2 has joined #ruby
baroquebobcat has joined #ruby
sent1nel has quit [Remote host closed the connection]
ych4k3r has joined #ruby
sigurding has quit [Quit: sigurding]
nobitanobi has joined #ruby
cantonic has quit [Quit: cantonic]
Hobogrammer has joined #ruby
ych4k3r_ has quit [Ping timeout: 256 seconds]
mwlang has quit [Quit: mwlang]
cantonic has joined #ruby
sent1nel_ has joined #ruby
d10n-work has joined #ruby
Xeago_ has quit [Remote host closed the connection]
zenith_ has quit [Ping timeout: 244 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quazimodo has quit [Ping timeout: 246 seconds]
georgesmith has joined #ruby
zachrab has quit [Remote host closed the connection]
cantonic has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
kenneth has joined #ruby
cantonic has joined #ruby
ych4k3r_ has joined #ruby
ych4k3r has quit [Ping timeout: 256 seconds]
mbwe has joined #ruby
theotherstupidgu has quit [Remote host closed the connection]
St1gma has joined #ruby
theotherstupidgu has joined #ruby
tyfighter has quit [Quit: tyfighter]
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troulouliou_dev has joined #ruby
zachrab has quit [Ping timeout: 272 seconds]
pdoherty has quit [Remote host closed the connection]
georgesmith has quit [Quit: georgesmith]
cjim has joined #ruby
lampd1 has joined #ruby
shredding has quit [Quit: shredding]
nb_bez___ has joined #ruby
deric_skibotn has joined #ruby
iamjarvo has joined #ruby
nb_bez___ has quit [Client Quit]
nb_bez___ has joined #ruby
leafybasil has quit [Remote host closed the connection]
tjohnson has quit []
zenith_ has joined #ruby
tjohnson has joined #ruby
zzzbra has joined #ruby
Renich has quit [Quit: leaving]
arya_ching_ has joined #ruby
Renich has joined #ruby
tier has quit [Remote host closed the connection]
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
Renich has quit [Client Quit]
ych4k3r has joined #ruby
Renich has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
josephnd1nton has joined #ruby
kiddoboy has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
arya_ching has quit [Ping timeout: 264 seconds]
Renich has quit [Client Quit]
Renich has joined #ruby
danjordan has quit [Quit: danjordan]
ych4k3r_ has quit [Ping timeout: 256 seconds]
xjiujiu has quit [Read error: Connection reset by peer]
lorn_ is now known as Lorn
Lorn has quit [Changing host]
Lorn has joined #ruby
ych4k3r has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
marcdel has joined #ruby
Takle has joined #ruby
ponga has quit [Remote host closed the connection]
josephnd1nton has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 245 seconds]
troulouliou_dev has quit [Quit: Leaving]
Hijiri has quit [Quit: WeeChat 1.0.1]
beneggett has joined #ruby
Renich has quit [Quit: leaving]
georgesmith has joined #ruby
ych4k3r has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
pdoherty has joined #ruby
sudog has joined #ruby
marcdel has quit [Client Quit]
aganov has quit [Remote host closed the connection]
pierombaabu has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
pierombaabu has joined #ruby
mary5030 has joined #ruby
zzzbra has quit [Read error: Connection reset by peer]
trufflesnout has joined #ruby
trufflesnout has quit [Client Quit]
georgesmith has quit [Client Quit]
Takle has quit [Remote host closed the connection]
Kharma has quit []
Kharma has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sent1nel_ has quit [Remote host closed the connection]
jdripper has quit [Quit: Leaving.]
snath has joined #ruby
sambao21 has joined #ruby
AlexRussia has joined #ruby
pierombaabu has quit [Ping timeout: 272 seconds]
porfa has joined #ruby
yellowgh0st has joined #ruby
michael_mbp has quit [Excess Flood]
marcdel has joined #ruby
michael_mbp has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
sdwrage has joined #ruby
godd2 has joined #ruby
Morkel has quit [Quit: Morkel]
marcdel has quit [Client Quit]
MuffinPimp has joined #ruby
MuffinPimp has quit [Remote host closed the connection]
<bhaak>
has omniref really written an email to every ruby gem owner?
Aova has quit [Read error: Connection reset by peer]
elabs-developer has quit [Quit: elabs-developer]
maletor has joined #ruby
chthon has quit [Quit: Ex-Chat]
sent1nel has joined #ruby
MuffinPimp has joined #ruby
sent1nel has quit [Remote host closed the connection]
sent1nel has joined #ruby
swgillespie has joined #ruby
mikecmpbll has joined #ruby
<gregf_>
my, django-rest is probably the easiest framework out there :/
michael_mbp has quit [Excess Flood]
Aova has joined #ruby
yellowgh0st has quit [Quit: yellowgh0st]
Alayde has joined #ruby
<apeiros_>
gregf_: only for another 11 months.
bricker has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
<gregf_>
well, spring is far more complicated :/
jaequery has joined #ruby
<Alayde>
Can someone lend me a hand with merging ruby hashes? I've tried a fair bit of googling but can't seem to work out how I'd merge the two hashes here: http://pastebin.com/Wxcx8ctq
<gregf_>
ror is very good too :)
<Alayde>
well...merge them and get the data structure I want
uptownhr has joined #ruby
konsolebox has joined #ruby
raphaelss has joined #ruby
maximski has quit []
_chs_ has quit []
_chs_ has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chinmay_dd has quit [Quit: Connection closed for inactivity]
ych4k3r has quit [Read error: Connection reset by peer]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
scripore has quit [Quit: This computer has gone to sleep]
wallerdev has joined #ruby
ych4k3r has joined #ruby
shime has quit [Read error: Connection reset by peer]
scripore has joined #ruby
shime has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
wow has joined #ruby
<wow>
hey guys, just a quick question, i'm using net/smtp
<wow>
do i have to connect to a said smtp server in order to send mails?
<tobiasvl>
yes that's what smtp is for
<wow>
i.e, to send a mail to someone using hotmail, do i need to connect to the hotmail server?
krisleech has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cheerio]
<tobiasvl>
oh
<tobiasvl>
no.
<wow>
so what do i do
<tobiasvl>
any smtp server will do
<wow>
so i can just host my own?
qpls has quit [Ping timeout: 252 seconds]
zenspider has quit [Ping timeout: 252 seconds]
<tobiasvl>
well not necessarily any, depends on what they allow
<tobiasvl>
yes sure
<wow>
so
Kharma has quit [Read error: Connection reset by peer]
<wow>
Net::SMTP.start should work
hfp_work has quit [Ping timeout: 252 seconds]
gremax has quit [Ping timeout: 252 seconds]
ponga has quit [Ping timeout: 255 seconds]
Lucky___ has quit [Ping timeout: 252 seconds]
fredsir has quit [Ping timeout: 252 seconds]
suy has quit [Remote host closed the connection]
<tobiasvl>
yes
suy has joined #ruby
jaredrhine_ has quit [Remote host closed the connection]
WillAmes has quit [Ping timeout: 252 seconds]
Scient has quit [Ping timeout: 252 seconds]
angryzor has quit [Ping timeout: 252 seconds]
<eam>
wow: you can connect to the remote server directly, or you can run your own server which will act as a queue and then IT will make the remote connection
jaredrhine has joined #ruby
Ulrike has quit [Read error: Connection reset by peer]
Guest87185 is now known as _chs_
eval-in__ has joined #ruby
<eam>
generally better to do the latter, but you'll need to learn a bit about how to manage it
moshee has quit [Ping timeout: 252 seconds]
<wow>
hm
zenspider has joined #ruby
<wow>
do i need my own email as well?
Ulrike has joined #ruby
tommylommykins has quit [Ping timeout: 252 seconds]
kke has quit [Ping timeout: 252 seconds]
gkra has quit [Ping timeout: 252 seconds]
theRoUS has quit [Ping timeout: 252 seconds]
<wow>
to specify an argument to smtp.send_message
ghr has quit []
<eam>
you need a source address, yes
<wow>
no i mean
sanguisdex has quit [Ping timeout: 252 seconds]
ValicekB has quit [Ping timeout: 252 seconds]
unreal has quit [Ping timeout: 252 seconds]
wang has quit [Ping timeout: 252 seconds]
hightower4 has quit [Ping timeout: 252 seconds]
waxjar has quit [Ping timeout: 252 seconds]
lynxman has quit [Ping timeout: 252 seconds]
PaulePanter has quit [Ping timeout: 252 seconds]
coco___ has quit [Ping timeout: 252 seconds]
roger_rabbit has quit [Ping timeout: 252 seconds]
KramerC has quit [Ping timeout: 252 seconds]
jerrett has quit [Ping timeout: 252 seconds]
nevans has quit [Ping timeout: 252 seconds]
dandrade_ has quit [Ping timeout: 252 seconds]
chuck has quit [Ping timeout: 252 seconds]
<wow>
can i use literally any address without authentication
plashchynski has joined #ruby
<eam>
yes and no
tommylommykins has joined #ruby
<wow>
why no?
ght has quit [Ping timeout: 252 seconds]
dualbus has quit [Ping timeout: 252 seconds]
Koshian has quit [Ping timeout: 252 seconds]
hackeron has quit [Ping timeout: 252 seconds]
bakis has quit [Ping timeout: 252 seconds]
Sp4rKy has quit [Ping timeout: 252 seconds]
eythorium has quit [Ping timeout: 252 seconds]
dazeddev has quit [Ping timeout: 252 seconds]
zmyrgel has quit [Ping timeout: 252 seconds]
ixx has quit [Ping timeout: 252 seconds]
kke has joined #ruby
PaulePanter has joined #ruby
gkra has joined #ruby
chuck has joined #ruby
chuck has quit [Changing host]
chuck has joined #ruby
jerrett has joined #ruby
coco_ has joined #ruby
wang has joined #ruby
dandrade has joined #ruby
unreal has joined #ruby
shellfu has joined #ruby
ixx has joined #ruby
hackeron has joined #ruby
ght has joined #ruby
<eam>
ancillary stuff like SPF or DKIM can be used to indicate that only trusted senders may transmit mail for a given domain
dazeddev has joined #ruby
eythorium has joined #ruby
<eam>
a given domain may or may not use these
ixx is now known as Guest5532
MaciejCzyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lynxman has joined #ruby
kaspertidemann has joined #ruby
<wow>
well eam
<wow>
i don't need the person who receives it to know it's valid
<wow>
will it still work though
<godd2>
very advice. much rubyist. wow
ghr has joined #ruby
<eam>
it may or may not, because the receiving SMTP server may or may not test and reject your mail based on these
Darryl___ has joined #ruby
<wow>
hm
tvw has quit []
<eam>
most popular providers, say gmail, will reject invalid SPF/DKIM
MaciejCzyzewski has joined #ruby
<eam>
and will also enable it for their domains
ghr has quit [Client Quit]
<eam>
but if you register your own domain name and set up your own SMTP server you can accept anything you like
eval-in_ has quit [Ping timeout: 252 seconds]
yasu has quit [Read error: Connection reset by peer]
tier has joined #ruby
kenneth has joined #ruby
yasu has joined #ruby
konsolebox has quit [Ping timeout: 276 seconds]
scripore has quit [Quit: This computer has gone to sleep]
elaptics is now known as elaptics`away
waxjar has joined #ruby
fredsir has joined #ruby
moshee has joined #ruby
freerobby has joined #ruby
hfp_work has joined #ruby
yfeldblum has joined #ruby
qpls has joined #ruby
<eam>
if you're doing something for myapp.com, you totally can just not configure SPF or DKIM and then send unauthenticated. That should work
gremax has joined #ruby
krisleech has joined #ruby
GaryOak_ has joined #ruby
Scient has joined #ruby
KramerC has joined #ruby
angryzor has joined #ruby
<wow>
ok
theRoUS has joined #ruby
zmyrgel has joined #ruby
<wow>
how long will it take to send 1000000 to someone
<wow>
emails that is
<eam>
but myapp.com might also be spoofed by spammers, and potentially lower your mail reputation
adamjleonard has joined #ruby
<tobiasvl>
wow: one million emails
<wow>
yep
quimrsto_ has joined #ruby
<tobiasvl>
well it will take a while because you will get ratelimited/graylisted
<eam>
wow: it depends, SMTP deliverability is super complicated
quimrsto_ has quit [Remote host closed the connection]
<tobiasvl>
and possibly blacklisted
tunaCanBruh has joined #ruby
<wow>
tobiasvl: by the receiver or the server
ndjaja has quit [Quit: ndjaja]
<eam>
one million emails to one million different providers could be sent instantly
scripore has joined #ruby
Landshark753 has joined #ruby
Sp4rKy has joined #ruby
<eam>
but one million emails all to @gmail.com addresses will take a long time
<wow>
not gmail
<wow>
some other provider
<eam>
to any particular provider
last_staff has joined #ruby
tier has quit [Read error: Connection reset by peer]
<eam>
depending on what kind of anti-spam controls they have
plashchynski has quit [Ping timeout: 265 seconds]
tier has joined #ruby
Patabugen has joined #ruby
<wow>
hm
<wow>
im gonna test sending around 5 emails on myself first
<tobiasvl>
start small
<Patabugen>
Hey, I know nothing about Ruby but I'd like to use Mailcatcher which is distributed as a RubyGem. Is it feasable for me to just intall Ruby and the Gem or does it need to be part of a projject/filesystem?
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ych4k3r has quit [Ping timeout: 256 seconds]
galeido has joined #ruby
Pharaoh2 has joined #ruby
The_Phoenix has quit [Ping timeout: 245 seconds]
quimrstorres has quit [Ping timeout: 240 seconds]
ndjaja has joined #ruby
ValicekB has joined #ruby
<wow>
this is a load of baloney
<wow>
this doesnt work at all
yfeldblum has quit [Ping timeout: 240 seconds]
<apeiros_>
Patabugen: you can just install ruby + mailcatcher
<wow>
not for hotmail anyways
<Patabugen>
Super, thanks apeiros_!
ych4k3r has joined #ruby
<tobiasvl>
wow: hotmail probably has SPF/DKIM activated?
<wow>
;(
<wow>
well the other provider though dunno
<apeiros_>
I'd hope so
<apeiros_>
DKIM is M$ brainchild after all
<tobiasvl>
yeah true
towski_ has joined #ruby
<tobiasvl>
wow: so are you actually planning to spam?
<tobiasvl>
or what
<wow>
well he did steal my gf
plashchynski has joined #ruby
<apeiros_>
that said, M$ and dogfeeding wasn't always a thing
<wow>
that's the least i can do
<eam>
bwahahaa
openscript has quit [Ping timeout: 264 seconds]
The_Phoenix has joined #ruby
<eam>
wow: you should be aware that the civil liabilities for spam are rather severe
mostlybadfly has joined #ruby
Megtastique has joined #ruby
Aova has quit [Read error: Connection reset by peer]
<wow>
good luck
<wow>
i'm under 9 proxies
<eam>
unless you really know what you're doing (and it appears you don't really) you might be on the hook for let's see what's $500 times one million dollars?
<wow>
lol don't worry
<wow>
he's 16 years old
hightower4 has joined #ruby
<wow>
what can he do
marr has joined #ruby
mediocregopher has joined #ruby
<eam>
wow: microsoft isn't 16 years old
nevans has joined #ruby
<wow>
i didnt send it to hotmail though
<eam>
I guess I messed up my units, that'd leave me with dollars squared
<wow>
some other provider
<wow>
if it's a local provider in my country can i get arrested easier?
<apeiros_>
huh? I think I should read the backlog, I seem to have missed some fun?
scripore has quit [Quit: This computer has gone to sleep]
<mediocregopher>
Hi all! I'm getting the following when trying to "gem install": ERROR: While executing gem ... (ArgumentError) IPv6 address must be 16 bytes
<mediocregopher>
<tobiasvl>
wow: maybe you should ask ruby related questions, not criminal ones
<wow>
I'm sorry
<wow>
i'm just angry
<mediocregopher>
I get it both inside and outside rvm, with multiple versions
roger_rabbit has joined #ruby
<mediocregopher>
has anyone else had this problem?
<eam>
wow: the best revenge is living well
mostlybadfly has quit [Client Quit]
einarj has joined #ruby
sanguisdex has joined #ruby
bakis has joined #ruby
scripore has joined #ruby
<eam>
go write a ruby app and make a bazillion dollars
Koshian has joined #ruby
mostlybadfly has joined #ruby
<wow>
I don't notably program in Ruby
<eam>
now's the time to start!
<wow>
sometimes I do
<wow>
well I mostly program in C
Squarepy has quit [Quit: Leaving]
<eam>
wow: me too!
<wow>
sorry i just can't move to a big language like ruby
n1lo has quit [Ping timeout: 265 seconds]
<wasamasa>
lol
<tobiasvl>
why did you pick ruby for your spam generator then
<wow>
short code
<wasamasa>
wow was in here a few days ago
dualbus has joined #ruby
Jackneill has quit [Remote host closed the connection]
<wasamasa>
wow: please leave
<wow>
wasamasa: why?
<wow>
what did I do?
<tobiasvl>
what did he ask about then? how to use ruby to DDoS a service?
<wasamasa>
wow: you won't get any help with unlawful activities on freenode
<theRoUS>
i'm writing cucumber tests for a class that can send output to arbitrary files/streams. i'm trying to use aruba to test that it's getting to $stderr, but 'Then the stderr should contain exactly' is failing, saying that $stderr got ""
<apeiros_>
wallerdev's family name is "danger" :-p
* apeiros_
humms "highway to the danger zone"
<theRoUS>
it works when i run my class' methods interactively in irb
thumpba_ has joined #ruby
ych4k3r has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
Hijiri has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: yawn]
ych4k3r has joined #ruby
<ellisTAA>
wallerdev: ty
<wallerdev>
:p
shellfu has quit [Remote host closed the connection]
<wallerdev>
whoaaa
thumpba has quit [Ping timeout: 256 seconds]
<wallerdev>
just typed ir instead of irb on accident
<wallerdev>
took me into IronRuby
<wallerdev>
by microsoft
<wallerdev>
how did this get on my system haha
<tobiasvl>
should we send help?
djbkd has joined #ruby
<GaryOak_>
installed by default
<wasamasa>
wat
<wallerdev>
ah looks like it's installed with the mono framework
klmlfl_ has joined #ruby
<GaryOak_>
instead of drunk texting, drunk installing ruby versions
martinium has joined #ruby
martinium has quit [Changing host]
martinium has joined #ruby
<wallerdev>
:p
shellfu has joined #ruby
reset has joined #ruby
Zai00 has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
martiniu_ has quit [Ping timeout: 255 seconds]
danman has joined #ruby
x1337807x has joined #ruby
tunaCanBruh has quit [Ping timeout: 244 seconds]
ndjaja has left #ruby [#ruby]
klmlfl has quit [Ping timeout: 245 seconds]
openscript has joined #ruby
* theRoUS
wonders if apeiros_ will be as catastrophically helpful as in the past
djbkd has quit [Remote host closed the connection]
zachrab has quit [Remote host closed the connection]
* apeiros_
wonders about the meaning of "catastrophically helpful"
wottam has joined #ruby
wottam has quit [Client Quit]
<theRoUS>
apeiros_: 'helpful to a fault' ? :-D you've always been a great help to me when i've had questions.
tunaCanBruh has joined #ruby
<apeiros_>
I could be cataclysmically unhelpful: I haven't used cucumber in years
uptownhr has quit [Quit: uptownhr]
Hijiri has joined #ruby
tiwillia has quit [Read error: Connection reset by peer]
tiwillia has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<wallerdev>
what do you guys think of go
Morkel has joined #ruby
<wallerdev>
seems to be gaining popularity
<apeiros_>
it's on the higher spots of my "languages to finally take a look at"
<theRoUS>
wallerdev: go? fish.
* theRoUS
quacks and clangs
<wallerdev>
haha yeah
<wallerdev>
i looked at it a couple years ago i think, but never wrote anything in it
<theRoUS>
apeiros_: well, even that response is helpful. what testing framework(s) do you prefer?
<wallerdev>
looked interesting but didnt have a lot of library support
<apeiros_>
theRoUS: minitest
<theRoUS>
wallerdev: the beauty of FLOSS: no support? add it!
theotherstupidgu has quit [Ping timeout: 264 seconds]
<apeiros_>
and every time I use it, I'm reminded of failing to finish baretest 0.5. :'(
<wallerdev>
lol i dont want to implement everything just to get a project off the ground
athan has joined #ruby
<apeiros_>
ETOOMANYPROJECTS, damit
<wallerdev>
seems like there's a lot more support now though
ych4k3r has quit [Read error: Connection reset by peer]
<odigity>
Is there a way to create a Module (intended for inclusion in a class) to have private instance methods that don't get imported into the class but are still accessible by the non-private instance methods in that module?
klmlfl_ has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<apeiros_>
odigity: just mark them as private
Aova has quit [Read error: Connection reset by peer]
theotherstupidgu has quit [Ping timeout: 272 seconds]
<apeiros_>
works the same as methods defined as private in the class you include the module in
<odigity>
apeiros_, but they'll still be accessible by instance methods in the class itself. in other words, they'll be polluting the namespace, even though they're only needed by other instance methods in the module
ych4k3r has joined #ruby
<odigity>
won't they?
<apeiros_>
yes
<odigity>
so they're not really private to the module
kyb3r_ has joined #ruby
<apeiros_>
the concept you wish for does not exist in ruby
djbkd has quit [Ping timeout: 244 seconds]
<wallerdev>
just dont tell anyone about the methods, no one will know
<odigity>
I'm guessing it's a concept that doesn't exist in Ruby, but I thought I'd ask, because if there was a way, it would reduce namespace pollution
patrick99e99 has quit [Ping timeout: 240 seconds]
<odigity>
ok
<odigity>
I'll just stick to using long descriptive method names to minimize the problem :)
Akuma has quit [Read error: Connection reset by peer]
<odigity>
everyone loves method names like validate_sufficient_funds_for_membership and validate_purchaseable_start_date...
ta_ has quit [Ping timeout: 245 seconds]
<wallerdev>
you could do def self. in the module, then they wont get included or called by accident
rajeshchawla has joined #ruby
lmickh has quit [Remote host closed the connection]
Aova has joined #ruby
rajeshchawla has quit [Client Quit]
zenith_ has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
The_Phoenix has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
shredding has quit [Quit: shredding]
theotherstupidgu has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
quimrstorres has joined #ruby
deric_skibotn has quit [Ping timeout: 245 seconds]
lioninawhat has joined #ruby
thumpba has joined #ruby
thumpba_ has quit [Remote host closed the connection]
shredding has joined #ruby
chinmay_dd has joined #ruby
fantazo has quit [Quit: Verlassend]
martinium has quit [Remote host closed the connection]
dc_ has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
ych4k3r_ has joined #ruby
galeido has joined #ruby
Fusl_ has joined #ruby
_maes_ has joined #ruby
ta_ has joined #ruby
ych4k3r has quit [Ping timeout: 256 seconds]
lioninawhat has quit [Ping timeout: 265 seconds]
Fusl has quit [Disconnected by services]
Fusl_ is now known as Fusl
jottr has quit [Remote host closed the connection]
exadeci has quit [Quit: Connection closed for inactivity]
quimrstorres has quit [Remote host closed the connection]
maximski has quit []
jenrzzz has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
jottr has joined #ruby
djbkd has joined #ruby
fabrice31 has joined #ruby
failshell has joined #ruby
galeido has quit [Ping timeout: 265 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 276 seconds]
roshanavand has joined #ruby
deric_skibotn has joined #ruby
reinaldob has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
klmlfl has joined #ruby
josephnd1nton has joined #ruby
galeido has joined #ruby
ta_ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jlast has joined #ruby
plashchynski has quit [Quit: plashchynski]
klmlfl has quit [Ping timeout: 264 seconds]
josephnd1nton has quit [Ping timeout: 245 seconds]
martinium has joined #ruby
martinium has joined #ruby
punkrawkR has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
martinium has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
jxf has quit []
cantonic has quit [Quit: cantonic]
ta_ has quit [Ping timeout: 245 seconds]
jxf has joined #ruby
n1lo has joined #ruby
plashchynski has joined #ruby
klmlfl has joined #ruby
gfawcettpq has quit [Quit: Leaving.]
punkrawkR has quit [Client Quit]
towski_ has quit [Remote host closed the connection]
trampi has quit [Remote host closed the connection]
paulfm_ has quit [Ping timeout: 272 seconds]
Lucky___ has joined #ruby
jottr_ has joined #ruby
aapole has joined #ruby
bootstrappm has quit [Quit: bootstrappm]
ych4k3r_ has quit [Ping timeout: 240 seconds]
Akuma has joined #ruby
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danjordan has joined #ruby
plashchynski has quit [Quit: plashchynski]
Pharaoh2 has joined #ruby
blackoperat has quit [Ping timeout: 265 seconds]
jobewan has quit [Quit: Leaving]
alekst_ has quit []
alekst_ has joined #ruby
kobain has joined #ruby
Pharaoh2 has quit [Client Quit]
jottr has quit [Ping timeout: 244 seconds]
rodfersou has quit [Quit: leaving]
lioninawhat has joined #ruby
quimrstorres has joined #ruby
klmlfl has quit [Remote host closed the connection]
Akuma has quit [Read error: Connection reset by peer]
tier has quit [Read error: Connection reset by peer]
<pizzaops>
Is there a reason why the conditional logic in this — https://gist.github.com/pizzaops/c7ea2def34c4306a0bc7 — returns `undefined local variable or method `ensurevalue'`? Ensurevalue is definitely an empty string before the loop returns.
tier has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
<pizzaops>
Does ruby treat that as undefined once the loop exits or something?
<pizzaops>
It doesn't exist before the loop, I create it in the loop? Is that how that works? I have to create it before the loop or it exists only inside?
<graft>
you have to create it before the loop
<pizzaops>
Ah ok, I didn't know that.
<apeiros_>
pizzaops: local variables defined within a block are local to that block
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shime has joined #ruby
<apeiros_>
and "defined" in ruby means "are assigned to for the first time"
<pizzaops>
apeiros_: but I can still set local variables that are defined before the block, inside the block?
<graft>
pizzaops: yes
<apeiros_>
yes
<pizzaops>
w00t ok thanks
<apeiros_>
blocks close over the lexical context
livingstn has quit [Client Quit]
ych4k3r has joined #ruby
shredding has joined #ruby
thumpba_ has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
shredding has quit [Client Quit]
CustosLimen has quit [Quit: Leaving]
rajeshchawla has quit [Remote host closed the connection]
duggiefresh has quit []
JDiPierro has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
razieliyo has quit [Ping timeout: 264 seconds]
ekem_`d`_mekekem is now known as ekem_`d`_meke
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rajeshchawla has joined #ruby
yellowgh0st has joined #ruby
m8 has joined #ruby
theotherstupidgu has quit [Remote host closed the connection]
bdamos has quit [Remote host closed the connection]
claw__ has quit [Ping timeout: 240 seconds]
theotherstupidgu has joined #ruby
plashchynski has quit [Quit: plashchynski]
claw__ has joined #ruby
martinium has quit []
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Patabugen has joined #ruby
eka has joined #ruby
maximski has joined #ruby
blizzy has quit [Ping timeout: 244 seconds]
raphaelss has quit [Quit: leaving]
claw___ has joined #ruby
wallerdev has joined #ruby
shredding has joined #ruby
shredding has quit [Client Quit]
claw__ has quit [Ping timeout: 276 seconds]
siso has quit [Quit: siso]
uptownhr has quit [Quit: uptownhr]
cantonic has joined #ruby
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
tier has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
tier has joined #ruby
tunaCanBruh has quit [Ping timeout: 265 seconds]
ellisTAA has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
shime has quit [Ping timeout: 264 seconds]
shredding has joined #ruby
copy0401 has quit []
blizzy has joined #ruby
copy0401 has joined #ruby
rajeshch_ has joined #ruby
average has joined #ruby
rajeshchawla has quit [Ping timeout: 256 seconds]
pika_pika has joined #ruby
fantazo has quit [Quit: Verlassend]
djbkd has joined #ruby
Aova has quit [Read error: Connection reset by peer]
plashchynski has joined #ruby
JDiPierro has joined #ruby
ta_ has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
pontiki has joined #ruby
arya_ching_ has quit [Ping timeout: 240 seconds]
ych4k3r has quit [Read error: Connection reset by peer]
Aova has joined #ruby
leslie has joined #ruby
leslie is now known as Guest56771
x1337807x has joined #ruby
mrmargolis has joined #ruby
GarbagePailKid has quit [Quit: leaving]
fabrice31 has joined #ruby
ych4k3r has joined #ruby
naftilos76 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
bayed has quit [Quit: Connection closed for inactivity]
<Wolfram74>
hrmmm
<Wolfram74>
oh, a ? for the whole expression?
<wallerdev>
just non greedy
endash has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
<Wolfram74>
hrmmm
<wallerdev>
+ or * followed by ? makes them not greedy
JDiPierro has quit [Remote host closed the connection]
<Wolfram74>
rubular doesn't recognize the :
<wallerdev>
oh that just means dont save it in a capture group
freerobby has quit [Quit: Leaving.]
zachrab has quit [Remote host closed the connection]
chrishough has joined #ruby
<apeiros_>
rubular should
<endash>
Is there a built-in inverse of Module#included_modules, e.g. a list of classes or modules that include the given mod, as opposed to a list of modules that are included by the given mod
<apeiros_>
just checked. (?:…) works fine in rubular
maximski has quit []
Megtastique has quit []
Morkel has quit [Quit: Morkel]
<apeiros_>
endash: not really. you can use ObjectSpace.each_object(Class). but for obvious reasons, you should only use this for development/debugging
CustosLimen has joined #ruby
<endash>
Gotcha. Since I'm implementing the module myself I can keep track via #included, so no biggie
<pontiki>
is there a preferred idiom for making a method both an instance method and a class method?
<wallerdev>
does objectspace.each_object add new objects created to it if you create objects in the block, so you could make it run forever?
<wallerdev>
call the class method from the instance method i guess
<wallerdev>
seems kinda pointless
<pontiki>
saves on doing crap like this: self.class.method_name
fmcgeough has quit [Quit: fmcgeough]
thumpba has joined #ruby
shredding has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
lesleh has quit [Quit: Have you ever tried to eat a clock? It's very time consuming.]
LudicrousMango has quit [Remote host closed the connection]
thumpba_ has joined #ruby
LudicrousMango has joined #ruby
skj3gg has quit [Quit: welp, see you later.]
zzzbra has joined #ruby
<apeiros_>
pontiki: meta programming to the rescue!
lioninawhat has joined #ruby
james_ has joined #ruby
thumpba has quit [Ping timeout: 245 seconds]
james_ is now known as Guest94035
Guest94035 is now known as KingJames
KingJames is now known as DukeJames
LudicrousMango has quit [Ping timeout: 255 seconds]
<ellisTAA>
i’m trying to rescue an exception … and i’m getting this error message “class or module required for rescue clause> with backtrace:” do i need to require something if i’m going to use rescue?
Wolfram74 has quit [Remote host closed the connection]
decoponio has quit [Read error: Connection reset by peer]
Loplin has joined #ruby
decoponio has joined #ruby
<Loplin>
Hello. I had some code, 'eval(IO.read(machine_file), binding)' that I decided to move to a little function, but realized that the new 'binding' was for inside of the function.
<Loplin>
Is there a way to refer to the caller's binding without explicitly passing it, or to make my function behave more like a macro?
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
thumpba has joined #ruby
<Loplin>
(not a ruby programmer, so in case ruby macros are something else, I mean for something like a C macro)
dfinninger has quit [Remote host closed the connection]
DadoCe has joined #ruby
thumpba__ has joined #ruby
beef-wellington has quit [Ping timeout: 272 seconds]
klmlfl has quit [Ping timeout: 256 seconds]
nanoyak has quit [Ping timeout: 265 seconds]
Hijiri has joined #ruby
<wallerdev>
ellisTAA: you probably have the syntax wrong or something
<havenwood>
ellisTAA: expect { raise "calculator is empty" }.to raise_error "calculator is empty"
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chrishough has quit [Read error: Connection reset by peer]
<ellisTAA>
what does expect mean?
chrishough has joined #ruby
blizzy has joined #ruby
<average>
ellisTAA: it depends on your expectations
nanoyak has quit [Client Quit]
rfi has joined #ruby
<havenwood>
ellisTAA: You expect `raise "calculator is empty" to raise with the message `"calculator is empty"`.
<ellisTAA>
ahh i see
<havenwood>
ellisTAA: Have you read up on exception in Ruby and the raise_error matcher in RSpec?
<havenwood>
ellisTAA: It reads like English, no?
<havenwood>
expect { raise "calculator is empty" }.to raise_error "calculator is empty"
<ellisTAA>
i haven’t read about the raise_error match in RSpec but i’m raeding about exceptions now. this spec is telling me to rescue an exception?
timonv has joined #ruby
<havenwood>
no
<average>
sperare { aumento "calcolatrice e vuoto" }.per aumentare_errore "calcolatrice e vuoto"
<average>
havenwood: maybe he's italian
<havenwood>
it expects, ...well it says what it expects--that calling a particular method will raise a particular error.
<ellisTAA>
so it’s saying calculator.plus should raise the error “calculator is empty”?
theotherstupidgu has quit [Ping timeout: 265 seconds]
<havenwood>
ellisTAA: that is how it reads
<havenwood>
in English
<ellisTAA>
ok gotcha
aboudreault has quit [Quit: damn]
<ellisTAA>
so what does it want me to do? based on what that says it doesn’t seem to be asking me to do anything? or is it asking me to return that message when calculator.plus raises an error?
<odigity>
ruby-doc.org does a great job of providing docs for the core class and modules, but there's nothing for the language itself. trying to understand the rescue keyword better...
<atmosx>
that's 1.9, current version is light years ahead 2.2
<agent_white>
The ruby documentation is sub-par. Best is to find a blog post :)
<odigity>
atmosx, I know. I'm on 1.9 at the moment. Going to upgrade in a few weeks.
<atmosx>
odigity: yearh ruby official docs suck unfortunately :-(
juanpablo___ has quit [Quit: (null)]
<odigity>
that's unfortunate
<havenwood>
ellisTAA: Nope, that's not the right track.
<atmosx>
odigity: okay, good luck. Yeah it is.
<ellisTAA>
:(
juanpablo___ has joined #ruby
DadoCe has quit [Remote host closed the connection]
<ellisTAA>
havenwood: thanks
nobitanobi has quit [Remote host closed the connection]
zachrab has joined #ruby
eka has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
ptrrr has joined #ruby
<havenwood>
ellisTAA: in irb type: raise "calculator is empty"
TheNumb has joined #ruby
TheNumb has quit [Changing host]
TheNumb has joined #ruby
nanoyak has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
<havenwood>
ellisTAA: what does it say?
<ellisTAA>
havewood: RuntimeError: calculator is empty
<ellisTAA>
in quotes
ghostmoth has joined #ruby
<havenwood>
ellisTAA: You've raised a RuntimeError with the message "calculator is empty".
<ellisTAA>
ok ..
djbkd has quit [Remote host closed the connection]
<havenwood>
ellisTAA: now in irb try rescuing the error you raised: raise "calculator is empty" rescue "whew, saved!"
ta_ has quit [Ping timeout: 276 seconds]
graft has quit [Quit: Lost terminal]
<ellisTAA>
ahh r u saying the type of error i use in my code is wrong?
ptrrr has quit [Client Quit]
x77686d has quit [Quit: x77686d]
riotjone_ has joined #ruby
djbkd has joined #ruby
<havenwood>
ellisTAA: For starters, the test is asking you to raise an error and you're trying to rescue an unrelated class of errors.
juanpablo___ has quit [Ping timeout: 264 seconds]
<ellisTAA>
result = “whew, saved!"
pontiki has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<havenwood>
ellisTAA: so you wrote code that would rescue NoMethodErrors inside your method, when the test asks for an error to be raised when the method is called a certain way.
<ellisTAA>
ahhh i see. what i read online told me to use rescue for exceptions ..
jlast has quit [Remote host closed the connection]
<havenwood>
ellisTAA: Read more about exceptions.
DrShoggoth has quit [Quit: Leaving]
nobitanobi has joined #ruby
<ellisTAA>
ok
<havenwood>
ellisTAA: You can raise them. You can rescue them. The two are not the same.
jlast has joined #ruby
aboudreault has joined #ruby
<ellisTAA>
i see. do u know a good source about exceptions? the one’s i’ve come across seem to suck
<havenwood>
ellisTAA: Read a whole book on Ruby. :)
riotjones has quit [Ping timeout: 240 seconds]
<ellisTAA>
ha. peter cooper’s book doesn’t talk about exceptions i think ...
<ellisTAA>
maybe it does ..
blackmes1 has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]