lethosor|away has quit [Quit: Connection closed for inactivity]
hyperjuice has quit [Ping timeout: 248 seconds]
oo_ has quit [Remote host closed the connection]
hpoydar has quit [Remote host closed the connection]
bintelli has joined #ruby
juanpaucar has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
<weaksauce>
the thing that gets me about javascript is that it had nothing to do with java. just named as such because java was the popular new thing at the time. I am going to make a nodescript language and make it terrible.
marr has quit [Ping timeout: 246 seconds]
<havenwood>
weaksauce: node is its own nodescript
mgorbach has quit [Client Quit]
<weaksauce>
nodescriptscript it is
<weaksauce>
:P
mgorbach has joined #ruby
bim has quit [Remote host closed the connection]
<weaksauce>
but seriously. I have an irc bot that has a backing event system written in eventmachine.
<weaksauce>
the framework uses eventmachine actually
oo_ has joined #ruby
mgorbach has quit [Client Quit]
<weaksauce>
I have a class that looks up things in a db using active record(before that raw sql) but it just doesn't seem to want to look up things correctly even though tests run and say that it should run fine.
mgorbach has joined #ruby
juanpaucar has quit [Ping timeout: 246 seconds]
<weaksauce>
seems like eventmachine is causing some issues with threads and querying... anyone else have an issue similar to this?
nateberkope has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
wallerdev has quit [Quit: wallerdev]
krisquigley has joined #ruby
mgorbach has quit [Client Quit]
mgorbach has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
<weaksauce>
or does anyone have an idea of what avenue to look down?
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weaksauce>
the frustrating thing is that this should be a simple affair really
shevy has quit [Ping timeout: 252 seconds]
krisquigley has quit [Ping timeout: 264 seconds]
growlove has joined #ruby
tkuchiki has joined #ruby
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
StevenXL has quit [Ping timeout: 264 seconds]
Megtastique has quit []
robustus has quit [Ping timeout: 255 seconds]
davispuh has quit [Ping timeout: 250 seconds]
DEA7TH has quit [Ping timeout: 255 seconds]
robustus has joined #ruby
sankaber has joined #ruby
mrmagneto has joined #ruby
dc has joined #ruby
baweaver has joined #ruby
Kricir has quit [Remote host closed the connection]
<paradisaeidae>
The recent combination of Ruby 2.2.1 and eventmachine 1.0.7 simplifies threading by using a call which explicitly does not require the global vm lock.
ebbflowgo has joined #ruby
amclain has joined #ruby
riotjones has joined #ruby
nateberkope has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
nateberkopec has joined #ruby
thumpba_ has quit [Ping timeout: 244 seconds]
ringarin has quit [Quit: Leaving]
ValicekB has quit [Ping timeout: 276 seconds]
phutchins has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
hmsimha has joined #ruby
rbennacer has joined #ruby
amdbcg has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
speakingcode has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
ValicekB has joined #ruby
Kricir has joined #ruby
rbennacer has quit [Remote host closed the connection]
snath has joined #ruby
jeramy_s has joined #ruby
hpoydar has joined #ruby
dorei has quit []
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
Sawbones has joined #ruby
baweaver has quit [Remote host closed the connection]
ghr has joined #ruby
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
teddyp1cker has joined #ruby
bim has joined #ruby
tmoor has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
martin290 has joined #ruby
<martin290>
hi everyone
<martin290>
i heard this community is really good so i wanted to stop in and say hi!
hpoydar has quit [Ping timeout: 264 seconds]
diegoviola has quit [Remote host closed the connection]
palms has joined #ruby
* sevenseacat
waves hello
tmoor has quit [Client Quit]
ghr has quit [Ping timeout: 248 seconds]
teddyp1cker has quit [Ping timeout: 276 seconds]
bim has quit [Ping timeout: 252 seconds]
eytanfb has quit [Ping timeout: 252 seconds]
jottr_ has joined #ruby
juanpablo___ has joined #ruby
iotouch has joined #ruby
ujihisa has joined #ruby
Megtastique has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
lnr has joined #ruby
lnr has quit [Read error: Connection reset by peer]
mleung has joined #ruby
iamjarvo has joined #ruby
juanpablo___ has quit [Ping timeout: 252 seconds]
luksaur has quit [Quit: Leaving]
Feyn has quit [Quit: Leaving]
ujihisa has quit [Ping timeout: 265 seconds]
sudog has quit [Ping timeout: 252 seconds]
michael_mbp has quit [Excess Flood]
lnr has joined #ruby
sledwin has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
hyperjui_ has quit [Remote host closed the connection]
mikenovikov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davidhq has joined #ruby
fabrice31 has joined #ruby
gusrub has quit [Quit: Leaving]
a5i has joined #ruby
kblake has quit [Ping timeout: 256 seconds]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 245 seconds]
jeramy_s has joined #ruby
<havenwood>
martin290: hellooo
<martin290>
hey
<martin290>
whats up?
moshee has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
<havenwood>
martin290: chunky bacon
<martin290>
haha
<martin290>
so, i came here because.. i've been learning c#
<martin290>
and i heard that ruby is a really good language
<martin290>
was wondering if you (or anyone else here) knows both, and which one they prefer coding in?
moshee has joined #ruby
GnuYawk has quit [Ping timeout: 264 seconds]
keen____ has joined #ruby
yfeldblum has joined #ruby
<sevenseacat>
I can spell C#, thats about it.
jordsmi has joined #ruby
<crowell>
C# is a nice language
longfeet has joined #ruby
<martin290>
lol
nateberkopec has quit [Quit: Leaving...]
<martin290>
any opinions which one you like better?
<havenwood>
martin290: Ruby. This is #ruby after all.
<havenwood>
martin290: But Ruby.
<martin290>
any particular reason(s) why??
<crowell>
martin290: they're both good languages, and have their use cases
Kricir has quit []
keen___ has quit [Ping timeout: 250 seconds]
<martin290>
so let's say that i wanted to learn a language because i wanted to be more marketable (i know sql, and good bit of c#)
michael_mbp has quit [Excess Flood]
<martin290>
would you recommend ruby for that purpose?
oo_ has joined #ruby
towski__ has quit [Remote host closed the connection]
tgunr has quit [Ping timeout: 256 seconds]
mleung has quit [Quit: mleung]
michael_mbp has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
amystephen has quit [Quit: amystephen]
<havenwood>
martin290: Yeah, something along the lines of Ruby, Clojure or F# sounds good to me. There are many ways to do it.
C1V0 has joined #ruby
<martin290>
havenwood: can you write desktop apps in ruby?
<havenwood>
martin290: GUI bindings are one of Ruby's shortcomings. There are certainly options but it isn't a focus.
longfeet_ has quit [Quit: Leaving]
<martin290>
havenwood: so is ruby mainly for web dev?
<havenwood>
martin290: It's a general purpose programming language. It does have a strong foothold in web apps but it's used for all sorts of things.
mjuszczak has joined #ruby
<martin290>
havenwood: so if i wanted to, i could make a desktop application strictly out of ruby?
wallerdev has quit [Quit: wallerdev]
<havenwood>
martin290: I assume by desktop app you mean a GUI app and not a command line app?
<martin290>
havenwood: that's right
amystephen has joined #ruby
<martin290>
havenwood: like i had an idea of making an application that would work with a sql server db in the background
amystephen has quit [Client Quit]
roqo has joined #ruby
<havenwood>
martin290: Sure, you can make GUI apps in Ruby. There are a variety of bindings. Shoes4 is fun but it's only working with JRuby at the moment.
<havenwood>
martin290: It's a very nice implementation of Ruby on the JVM. They're doing some exciting work.
<havenwood>
top notch
<weaksauce>
I think it's because the lib I am using can't handle anything higher
djbkd has quit [Remote host closed the connection]
<martin290>
havenwood: so do you currently have a job working with ruby?
<havenwood>
martin290: i do
<martin290>
havenwood: do you like it
<havenwood>
yup
<havenwood>
<3 ruby
<martin290>
how long have you been doing it for
<martin290>
sorry for all my questions, btw
<havenwood>
four years
<sevenseacat>
ruby \o/
<havenwood>
\o/
<sevenseacat>
no-one asked me, but I also have a job working with ruby on rails, for web app dev.
<havenwood>
sevenseacat: how long have you been doing Ruby?
<martin290>
it's cool, i want people's opinions!
<sevenseacat>
since jan 1 2011. was my new years resolution that year.
<havenwood>
sevenseacat: Nice!
juanpaucar has joined #ruby
<martin290>
you know what i've noticed???
<martin290>
from what i can tell, you guys seem SUPER nice
<martin290>
and some of the guys in the ##csharp channel, well, they're not so nice
<sevenseacat>
we generally are, unless people come in who just dont want to learn or dont care
<sevenseacat>
then we get snarky
<havenwood>
;)
<sevenseacat>
and we can be very snarku
<martin290>
lol
<sevenseacat>
snarky
<martin290>
well, let me give you a for instance
<martin290>
i was using a method that has like 10 overloads and apparently i was using the wrong one
<martin290>
and one person was like.... why don't you read the f'ing documentation
<weaksauce>
martin290 don't worry
<martin290>
or something along those lines...
<weaksauce>
rubyist wont tell you that
<weaksauce>
because there isn't any fucking documentation
<martin290>
thanks!!!!
<martin290>
:)
<martin290>
HAHAHAHA
<weaksauce>
:D
<sevenseacat>
we have a saying in ruby - 'matz is nice so we are nice' (matz is the creator of ruby)
<weaksauce>
they may say... well it's in the tests
elcontrastador has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<sevenseacat>
so we try to be nice... sometimes we fail, but we try
<weaksauce>
matz is really nice.
elcontrastador has quit [Client Quit]
<martin290>
have you guys spoke with him?
<sevenseacat>
i haven't, no
<havenwood>
yeah
fedexo has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
<weaksauce>
no indeed
<martin290>
so let's say that i want to learn start learning ruby
<weaksauce>
seems like a cat that would be nice to hang around with though
<martin290>
can you guys suggest a good way of learning the language and syntax?
gsd has joined #ruby
<sevenseacat>
i actually jumped in the deep end with rails, so i dont have a good way of learning the intricacies of ruby - some of them i'm still trying to work out
sevenseacat has left #ruby ["Me dun like you no more."]
<martin290>
sounds like how i learned sql
sevenseacat has joined #ruby
<martin290>
basically thrown to the wolves lol
<weaksauce>
codeacademy.com or damn there was another that is actually really good\
<sevenseacat>
one day i will even learn to use my irc client properly and stop deleting the channel
<weaksauce>
codezen or something like that
<sevenseacat>
ruby koans?
<havenwood>
sevenseacat: one say i'll set up an irc bouncer
<havenwood>
one day*
<martin290>
does anyone here live in nc?
<weaksauce>
martin290 rubymonk.com]
<havenwood>
LA here
<sevenseacat>
australia here
<martin290>
oh ok, just wondering
<weaksauce>
gets a bit light near the meataprogramming things but seems pretty solid for the fundamentals
<havenwood>
martin290: this is a good place to ask questions
casadei has joined #ruby
<martin290>
havenwood: yeah, thanks, i've definitely figured that out, and thanks for being so nice :)
<martin290>
thanks again everyone for being so nice to me :)
<sevenseacat>
as long as you dont start asking things like 'where do you work, how much do you make, and are you married', its cool
<martin290>
i really appreciate it
yh has quit [Ping timeout: 248 seconds]
<weaksauce>
martin290 I think the ruby community is really tolerant
<weaksauce>
at least #ruby
diegoviola has joined #ruby
arup_r has joined #ruby
<weaksauce>
so welcome
<martin290>
weaksauce: so far i'm definitely liking it :)
krisquigley has quit [Ping timeout: 272 seconds]
<sevenseacat>
even if you decide not to learn ruby, everyone is welcome. i lurk in the lua channel sometimes just because, hoping to learn information by osmosis >_>
ghr has joined #ruby
* sevenseacat
does not understand lua but wants to
arup_r has quit [Remote host closed the connection]
jeramy_s has quit [Quit: Peace out!]
<martin290>
lua channel??
iotouch has quit [Quit: This computer has gone to sleep]
djbkd has joined #ruby
<havenwood>
If you could be fluent in every human language, every programming language or play every instrument which would you choose?
casadei has quit [Ping timeout: 256 seconds]
iotouch has joined #ruby
djbkd has quit [Remote host closed the connection]
cyberarm has quit [Read error: Connection reset by peer]
flori has quit [Ping timeout: 265 seconds]
<martin290>
hrm....
<sevenseacat>
thats really hard
<sevenseacat>
ive wanted to do all of those things >_>
<martin290>
hahaha
<martin290>
i was never musically inclined
flori has joined #ruby
<martin290>
but i feel like if i was, that would be pretty cool
A205B064 has quit [Ping timeout: 265 seconds]
<sevenseacat>
i think i'd pick the music
<martin290>
me too
<martin290>
i'd never become musically talented on my own lol
sevenseacat has left #ruby ["Me dun like you no more."]
yfeldblum has quit [Remote host closed the connection]
<paradisaeidae>
weaksauce: So you have libs which are holding you in 2.1.3? Which ones?
sevenseacat has joined #ruby
<sevenseacat>
really need to disable that shortcut
<weaksauce>
the irc bot didn't seem to work without 2.1ish
<weaksauce>
isaac
<havenwood>
I think I'd choose human languages. I find them so difficult and I want to be able to speak!
<weaksauce>
it's not bad but they haven't touched it in years
jefus_ has quit [Quit: Leaving]
ghr has quit [Ping timeout: 264 seconds]
<havenwood>
Fluency in every programming language seems like a lot of fun though.
<c-c>
nevertheless, its impossible for one person
juanpablo___ has joined #ruby
<c-c>
and achieved simply by employing those skilled in the particular language or instrument
<c-c>
so, you already have it, given suitable means of gaining funds
<martin290>
well, i stutter, so learning all the human languages probably wouldn't be too beneficial lol
<havenwood>
so many languages!
<c-c>
in fact, assuming fundraising potential, you already indirectly already have the means of using any language or instrument
<c-c>
and, volunteers might even do it for free if your idea is good
<paradisaeidae>
weaksauce: Looks like it's not far from running with recent 2.2, being that it has tests for 1.9.2 (?)
moshee has quit [Ping timeout: 256 seconds]
<weaksauce>
paradisaeidae I can try to get it to work on something newer. It had some troubles before and it wasn't a super priority to get it working on the latest and greatest so I left it on 2.1.3
aghalarp has joined #ruby
<paradisaeidae>
Does not bundle an eventmachine.... so how does it choke?
arescorpio has quit [Read error: Connection reset by peer]
<paradisaeidae>
eventmachine installs can require some work occasionally, though worth the effort in performance over years.
juanpablo___ has quit [Ping timeout: 252 seconds]
Dreamer3 has joined #ruby
freerobby has quit [Quit: Leaving.]
yfeldblum has joined #ruby
<weaksauce>
paradisaeidae what do you mean does not bundle an event machine?
moshee has joined #ruby
qualityaddict has joined #ruby
<paradisaeidae>
Some gems bundle a slightly modified eventmachine with them.
GnuYawk has quit [Ping timeout: 272 seconds]
<paradisaeidae>
weaksauce: Take some backups.... when you make mods...
mjuszczak has quit []
Megtastique has quit []
mikenovikov has joined #ruby
apoplexy has joined #ruby
Joufflu has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Neomex has joined #ruby
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
tcrypt has quit [Remote host closed the connection]
towski_ has joined #ruby
braincrash has quit [Quit: bye bye]
aghalarp has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
riotjones has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
charliesome has joined #ruby
duncannz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
braincrash has joined #ruby
GnuYawk has joined #ruby
aghalarp has quit [Ping timeout: 255 seconds]
tus has quit []
sohrab has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
anaeem1 has joined #ruby
djbkd has joined #ruby
maximski has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
jerematic has quit [Remote host closed the connection]
davidhq has joined #ruby
davidhq has quit [Client Quit]
djbkd has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
hpoydar has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mark06>
what would you suggest for configuring stuff before a require clause?
palms has quit [Ping timeout: 256 seconds]
<sevenseacat>
seems vague.
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mark06>
for example the required script can see previously defined global variables, but globals are not good answer
sevvie has quit [Remote host closed the connection]
hobodave has joined #ruby
bim has joined #ruby
mgberlin has quit [Remote host closed the connection]
Axy has quit [Read error: Connection reset by peer]
hmsimha has quit [Ping timeout: 252 seconds]
mgberlin has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
teddyp1cker has quit [Ping timeout: 256 seconds]
GnuYawk has joined #ruby
User458764 has joined #ruby
bim has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
mengu has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 256 seconds]
anaeem1 has quit [Remote host closed the connection]
iotouch has quit [Quit: This computer has gone to sleep]
mengu has quit [Ping timeout: 265 seconds]
iotouch has joined #ruby
dseitz has joined #ruby
Deele has joined #ruby
hmsimha has joined #ruby
Parker0 has joined #ruby
Parker0 has quit [Client Quit]
Matadoer has quit [Ping timeout: 255 seconds]
anaeem1_ has joined #ruby
Matadoer has joined #ruby
havenwood has quit []
dc has joined #ruby
casadei has joined #ruby
horsecowdog has joined #ruby
Matadoer has quit [Ping timeout: 250 seconds]
dc has quit [Ping timeout: 256 seconds]
CaptainCibai has quit [Remote host closed the connection]
Megtastique has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
Feyn has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
Matadoer has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
juanpaucar has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Client Quit]
cajone has joined #ruby
danman has quit [Quit: danman]
horsecowdog has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 264 seconds]
Ellis has joined #ruby
kp666 has joined #ruby
Brando753 has joined #ruby
jordsmi has quit [Quit: Connection closed for inactivity]
anaeem1__ has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
poguez_ has joined #ruby
<Ellis>
i have a hash with 12 keys and 12 values, i want to change the value of say key 4 to the value of key 1, and the value of key 1 to the value of key 10, basically i’m rotating everything over 3, anyone know a method for this?
gsd has quit [Ping timeout: 264 seconds]
juanpaucar has quit [Ping timeout: 264 seconds]
krz has joined #ruby
sohrab_ has joined #ruby
horsecowdog has joined #ruby
sohrab has quit [Ping timeout: 252 seconds]
krisquigley has joined #ruby
mgberlin has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jerematic has joined #ruby
<mark06>
I doubt this is common task so a method exists
<martin290>
Ellis: i don't know ruby, but, would sorting the array work?
hobodave has quit [Quit: Computer has gone to sleep.]
hobodave has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
cajone has quit [Ping timeout: 250 seconds]
<Ellis>
martin290: i dont think so … i’m trying to create a rubiks cube so i can’t sort them
oo_ has joined #ruby
<martin290>
Ellis: ah ok, just a suggestion :)
<Ellis>
i guess i could use an array of arrays
oo_ has quit [Remote host closed the connection]
ujihisa has joined #ruby
<Ellis>
martin290: iappreciate it : }
oo_ has joined #ruby
bluOxigen has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
GnuYawk has quit [Ping timeout: 250 seconds]
chintanparikh has joined #ruby
jerematic has quit [Ping timeout: 246 seconds]
<chintanparikh>
Anyone know how I would create a TCP packet using Array.pack?
charliesome has joined #ruby
slakware has joined #ruby
eytanfb has joined #ruby
dcarper has joined #ruby
ponga has quit [Remote host closed the connection]
GnuYawk has joined #ruby
eytanfb has quit [Read error: Connection reset by peer]
jzigmund has quit [Remote host closed the connection]
Jiyuhen has quit [Remote host closed the connection]
juanpablo___ has quit [Ping timeout: 256 seconds]
<pagios_>
i actually have function1 that executes on server, i want to wait for function1 return value and accordingly fire functio2n how can i easily do this in ruby? in javascript i use .then
sinkensabe has joined #ruby
jenrzzz has joined #ruby
Jiyuhen has joined #ruby
<sevenseacat>
call the second after the first? unless you're starting the first in a thread, there shouldnt a problem
GnuYawk has quit [Ping timeout: 264 seconds]
zz_AlphaTech is now known as AlphaTech
<pagios_>
sevenseacat: yea but i mean if i run function11( trigger server; } ; function2( trigger server ) ; function2 will fire before function1 returns no?
<pagios_>
is function1 blocking in this case?
riotjones has quit [Quit: Leaving...]
<sevenseacat>
ruby is not javascript
<pagios_>
sevenseacat: i only want to run function2 W?HEN function1 returns
<sevenseacat>
yes, i know.
<pagios_>
how do i do that in ruby
codecop has joined #ruby
<sevenseacat>
you're overcomplicating this.
<sevenseacat>
its how ruby works by default.
<pagios_>
so it is synchronous only execute function2 after function1 returns
<sevenseacat>
its how javascript works too, unless you get into asynchronous things.
<pagios_>
yea
<pagios_>
with callbacks
<sevenseacat>
however, you've made no mention of having asynchronisity anywhere
<pagios_>
so ruby will block all code in this thread until function1 returns
KnownSyntax has quit [Quit: Connection closed for inactivity]
poguez_ has quit [Quit: Connection closed for inactivity]
ponga has quit [Remote host closed the connection]
CodyReichert has joined #ruby
Morkel has quit [Client Quit]
sankaber has quit [Ping timeout: 250 seconds]
chinmay_dd has joined #ruby
browndawg has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
amclain has quit [Quit: Leaving]
joonty has quit [Quit: joonty]
Takle has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
turtil has quit [Quit: WeeChat 1.1.1]
haxrbyte_ has quit [Ping timeout: 264 seconds]
bMalum has joined #ruby
djbkd has joined #ruby
skj3gg has joined #ruby
iotouch has joined #ruby
iotouch has quit [Client Quit]
michael_mbp has quit [Excess Flood]
hpoydar has joined #ruby
iotouch has joined #ruby
ahmetkapikiran has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
michael_mbp has joined #ruby
AlphaTech is now known as zz_AlphaTech
eytanfb has joined #ruby
Seich has quit [Ping timeout: 256 seconds]
krzkrz has joined #ruby
iamjarvo has joined #ruby
dumdedum has joined #ruby
Seich has joined #ruby
demiurgen has joined #ruby
hpoydar has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
terlar has joined #ruby
pen has quit []
krzkrz has quit [Client Quit]
ta has joined #ruby
neanderslob has quit [Remote host closed the connection]
yfeldblum has joined #ruby
psudoze has quit [Ping timeout: 244 seconds]
<avril14th>
moin
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
avril14th has quit [Remote host closed the connection]
eytanfb has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
beat has joined #ruby
polysics has joined #ruby
djbkd has quit [Remote host closed the connection]
mengu has joined #ruby
bal1 has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
GnuYawk has quit [Ping timeout: 265 seconds]
Spami has joined #ruby
bal has quit [Ping timeout: 276 seconds]
despai has joined #ruby
colorisco has joined #ruby
<demiurgen>
how exactly is the thread scheduling working in ruby? it seems to me that if I start a thread in some script, and the run a long, blocking operation in the main script, then the thread will not execute for the duration of that blocking operation. is this correct?
yfeldblum has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
yfeldblum has joined #ruby
Takle has quit [Remote host closed the connection]
<jhass>
demiurgen: depends on how you block, but in MRI your code will not run in parallel, yes, it only runs two threads in a parallel on things like IO
pontiki has joined #ruby
<demiurgen>
jhass: I see. thanks!
<demiurgen>
what's my best option to start some ruby code block as a separate process?
<jhass>
fork
<jhass>
also check jruby & rubinious for implementations without that restriction
<jhass>
pagios_: "read about that in Ruby"? What do you mean?
bim has joined #ruby
<pontiki>
pagios_: vaguely, it looks like with an enumerator
atmosx has quit [Quit: WeeChat 0.4.4-dev]
charliesome__ has quit [Quit: zzz]
atmosx has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
kaffepanna has joined #ruby
tosbourn has quit [Ping timeout: 246 seconds]
<pagios_>
for instance i am trying this and getting an exception: Aws::SNS::Errors::InvalidParameter - Invalid parameter: Endpoin http://pastie.org/10084114
claw___ has joined #ruby
Pupeno has joined #ruby
<pontiki>
where is the exception happening?
jenrzzz has quit [Ping timeout: 244 seconds]
claw__ has quit [Ping timeout: 264 seconds]
ahmetkapikiran has joined #ruby
bim has quit [Ping timeout: 244 seconds]
Porfa has quit [Quit: porfa]
allenn has joined #ruby
<pagios_>
pontiki: actually the exception is happening afterwards so nothing to do with that, but i get this from the console.log "RESPONSEEEEE #<Aws::PageableResponse:0x00000002c46ee8>" how can i traverse and print the content of that
<ruboto>
pain_, Please join #RubyOnRails for Rails questions. You need to be authenticated with NickServ, see /msg NickServ help
universaL is now known as universa1
<jhass>
jlebrech: it's semi-public API, but you can use what sidekiq web uses
<jhass>
oh
<jhass>
?crosspost jlebrech
<ruboto>
jlebrech, Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
<Pharaoh2>
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
<gilmour>
Hmm. I haven't noticed any issues yet :/ Just updated yesterday myself.
<Pharaoh2>
are you using rvm?
<gilmour>
Using RVM?
<gilmour>
haha
jimms has quit [Read error: Connection reset by peer]
<Pharaoh2>
can you try to reinstall your gems?
jimms_ has joined #ruby
<gilmour>
Which version of ruby are you getting this error on?
zorak8 has joined #ruby
<Pharaoh2>
2.1.5 and 2.2.1
<Pharaoh2>
seems that apple llvm changed how to responds to invalid compiler flags
<gilmour>
I just realized I probably shouldn't have blown away my gemset for the project I'm working on this morning -_-
One-Sky has quit [Ping timeout: 250 seconds]
<Pharaoh2>
oh yes you shouldn't have
<gilmour>
;)
<Pharaoh2>
welcome to the boat
<gilmour>
^
jottr has quit [Ping timeout: 252 seconds]
<gilmour>
Pharaoh2: Whew, nah it worked fine for me freshly installing gems for a fairly fat rails project, 2.1.5
Takle has quit [Remote host closed the connection]
<Pharaoh2>
is there a way for gem install to use the existing code from the gemset instead of downloading again so that I can make changes to the extconf.rb?
<gilmour>
I haven't reinstalled rvm/rubies either; usually it seems you need to after updating commandline tools, I think.
fabrice31_ has joined #ruby
<gilmour>
Not that I know of, sorry.
<gilmour>
Have you tried imploding and reinstalling rvm? Seems to do the trick with extension failures on updates, often.
<Pharaoh2>
yes that is the first thing I did
beat has joined #ruby
<gilmour>
Bummer.
<Pharaoh2>
now I am going to implode restart and then install
a5i has quit [Quit: Connection closed for inactivity]
sevvie has quit [Ping timeout: 250 seconds]
OrbitalKitten has joined #ruby
devans has quit [Remote host closed the connection]
tosbourn has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
sankaber has joined #ruby
nfk has quit [Quit: yawn]
tus has joined #ruby
Pharaoh2 has quit [Quit: Byebye]
sinkensabe has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
ntln has joined #ruby
ta has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
jimms_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
jimms has joined #ruby
Porfirium has quit [Quit: Porfirium]
tier has joined #ruby
Pharaoh2 has joined #ruby
amdbcg has quit [Ping timeout: 250 seconds]
tosbourn has joined #ruby
<Pharaoh2>
well, imploded, restarted and trying to install again
Takle has quit [Remote host closed the connection]
kyrylo has quit [Ping timeout: 245 seconds]
bim has joined #ruby
jvdp11 has joined #ruby
sgambino has joined #ruby
sgambino has quit [Remote host closed the connection]
sgambino has joined #ruby
LJT has quit [Quit: Sleeping...]
rbennacer has joined #ruby
Takle has joined #ruby
slackbotgz has quit [Remote host closed the connection]
BeeninJailTwice has joined #ruby
hpoydar has quit [Ping timeout: 264 seconds]
<BeeninJailTwice>
anybody here?
spyderman4g63 has joined #ruby
maloik has quit [Ping timeout: 248 seconds]
<matugm>
BeeninJailTwice, hi
juanpaucar has joined #ruby
<BeeninJailTwice>
hey is it okay if i say "hey guys"
<BeeninJailTwice>
?
maloik has joined #ruby
One-Sky has quit [Ping timeout: 250 seconds]
<matugm>
You already said it :P
<BeeninJailTwice>
no i mean
spyderma_ has joined #ruby
<BeeninJailTwice>
i went to node.js i said "hey guys" and they bitched at me
<BeeninJailTwice>
for not being gender neutral
<BeeninJailTwice>
so i was thinking if this was a freenode thing
<matugm>
lol
<matugm>
not a freenode thing, node devs are weird ;)
<BeeninJailTwice>
weird how?
<gilmour>
They use Javascript? (zing)
jerius has joined #ruby
oo_ has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
polysics has quit []
LJT has joined #ruby
tus has quit []
doodlehaus has joined #ruby
<Pharaoh2>
gilmour: you have any other ideas?
spyderman4g63 has quit [Ping timeout: 244 seconds]
<matugm>
Beening, don't worry about it, is there something we can help you with?
<jhass>
BeeninJailTwice: while we don't enforce it as a channel policy and I go over it most of the time, I prefer to not use that expression when addressing a group of unknown gender
juanpaucar has quit [Ping timeout: 265 seconds]
linoj has quit [Quit: linoj]
<jhass>
especially since there are so many equivalent expressions
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass>
like "hey people"
<jhass>
or simply "hi"
<undeadaedra>
hey friends
<BeeninJailTwice>
oh so jhass also from the same stupid ass crowd
<BeeninJailTwice>
bitch get a life lol
<jhass>
aaand bye
<BeeninJailTwice>
instad of nitpicking
<BeeninJailTwice>
dipshit
<jhass>
!ban BeeninJailTwice !P no insults
BeeninJailTwice was kicked from #ruby by ChanServ [Banned: no insults]
serivichi has joined #ruby
<Pharaoh2>
jhass: is "guys" in the phrase "hey guys" so strongly associated with gender in your culture? Because in mine its not at all
bim has quit [Remote host closed the connection]
<gilmour>
Pharaoh2: I really don't, I'm not super familiar with the C compiler -> Ruby honestly. is `CC` set properly?
<gilmour>
:/
<ytti>
no it's not, but this guy was clearly just looking for excuse to argue
<Pharaoh2>
I did try setting CXX=g++ but didn't really help
<ytti>
it's not offensive or exclusive
<ytti>
and females use it to refer exclusively female group
shazaum has joined #ruby
<undeadaedra>
or you don't say anything and it works
<gilmour>
Pharaoh2: Installing that brew might solve your issue, although it 'shouldn't' be needed for sure.
vtunka_ has joined #ruby
Pharaoh2 has quit [Disconnected by services]
Pharaoh2_ has joined #ruby
<gilmour>
The ops guys at my office had us install it in the past (when mavericks came out), and very likely because of the sort of issue you're having haha.
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Igorshp has quit [Remote host closed the connection]
<undeadaedra>
o_O
sevvie has quit [Ping timeout: 264 seconds]
<Pharaoh2>
gilmour: I will try install that see what happens
One-Sky has quit [Ping timeout: 276 seconds]
tjbiddle has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
Rapier- has joined #ruby
nug has joined #ruby
lanemeyer has quit [Ping timeout: 250 seconds]
kubunto has joined #ruby
weemsledeux has joined #ruby
<kubunto>
how can i connect ruby to a sqlite db?
RegulationD has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
failshell has joined #ruby
RegulationD has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
<Coraline>
kubunto: there's a sqlite gem
<kubunto>
sudo gem sqlite3?
enebo has joined #ruby
<undeadaedra>
kubunto: sqlite gem, or something like sequel if you want a wrapper around it
<ytti>
agreed
<kubunto>
what would the command be to install it
<ytti>
not or, but and :)
<Coraline>
Put it in your Gemfile
juanpablo___ has joined #ruby
<kubunto>
i dunno where that is
ta has quit [Remote host closed the connection]
<Coraline>
You should have a file called Gemfile in the root of your project folder.
<undeadaedra>
it's not compulsory to have one...
<Coraline>
It's canonical
<jhass>
kubunto: gem install sqlite3
<jhass>
like any other gem
One-Sky has joined #ruby
arup_r has quit [Ping timeout: 245 seconds]
<kubunto>
i didnt have a sqlite dev package which was wierd
Mark-6ma has joined #ruby
<kubunto>
python didnt seem to require it
B1n4r10 has joined #ruby
<kubunto>
glad it was easy tho
freerobby has joined #ruby
arup_r has joined #ruby
mgorbach has quit [Ping timeout: 252 seconds]
juanpablo___ has quit [Ping timeout: 252 seconds]
evanjs has joined #ruby
Takle has quit [Remote host closed the connection]
vtunka_ has quit [Ping timeout: 250 seconds]
vtunka has quit [Ping timeout: 250 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
kubunto has quit [Quit: Anyone who thinks the Large Hadron Collider will destroy the world is a twat]
mgorbach has joined #ruby
einarj has joined #ruby
aryaching has joined #ruby
mgberlin has joined #ruby
pontiki has joined #ruby
kaffepanna has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
jgoyon has quit [Quit: WeeChat 1.0]
<gilmour>
Isn't sqlite3 in stdlib for python? It is not for Ruby; I don't think that's too weird ;)
One-Sky has quit [Ping timeout: 246 seconds]
lavros has joined #ruby
agarie has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
jeromelanteri has quit [Ping timeout: 250 seconds]
<Pharaoh2>
ok, I have narrowed the issues down to just one gem, other native extensions still build fine
<Pharaoh2>
for now I will work without that gem
nettoweb has joined #ruby
arup_r has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 248 seconds]
serivichi has quit [Ping timeout: 252 seconds]
einarj has quit [Remote host closed the connection]
devans has joined #ruby
duggiefresh has joined #ruby
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
serivichi has joined #ruby
michael_mbp has quit [Excess Flood]
<gilmour>
Pharaoh2: Which gem?
jottr has quit [Ping timeout: 256 seconds]
<Pharaoh2>
seven-zip-ruby
<Pharaoh2>
gem install seven_zip_ruby -v '1.2.4'
Advocation has quit [Quit: Advocation]
tesuji has joined #ruby
<gilmour>
Pharaoh2: did the apple-gcc42 assist you to narrow that down, or...? Curious
<Pharaoh2>
nope
<Pharaoh2>
seems like apple-gcc42 is horribly broken in 10.10.3
iasoon has quit [Ping timeout: 245 seconds]
<gilmour>
Haah. Interesting. Sigh. Well best of luck, I'm kind of wary now since I don't have any such issues O_o heh.
michael_mbp has joined #ruby
iasoon has joined #ruby
Porfirium has joined #ruby
<hanmac>
dam i really need to update my libarchive gem ... (or make a total rewrite of it)
jackmas has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
Takle has joined #ruby
<hanmac>
but working on OSX is always a pain in the ass ... ( and default installed compiler on them are always shitty)
sinkensabe has joined #ruby
hpoydar has joined #ruby
<r3dk1ng>
OSX sucks balls
<r3dk1ng>
Apple should have used LINUX from day 1
gilmour is now known as chrisarcand
serivich has joined #ruby
_ixti_ has joined #ruby
mengu has quit [Remote host closed the connection]
serivichi has quit [Ping timeout: 240 seconds]
ixti has quit [Ping timeout: 246 seconds]
Lloyd is now known as lloyd
Advocation has joined #ruby
<hanmac>
i read it yesterday that apple fixed a problem inside of TCP package handing ... THAT WAS KNOWN SINCE 80' ... with it you could block all web apps like chrome or node.js ;P
iamjarvo has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamjarvo has quit [Max SendQ exceeded]
<jhass>
uhm, no hanmac, you misunderstood fefe there
iamjarvo has joined #ruby
<hanmac>
jhass: hm i also read the source link and where was similar info
mgberlin has quit [Remote host closed the connection]
psudoze has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
__chris has joined #ruby
Zackio has quit [Remote host closed the connection]
<jhass>
yet you conflate type of attack with actual issue
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
palms has joined #ruby
mitchellhenke has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
shazaum has quit [Ping timeout: 264 seconds]
Channel6 has joined #ruby
sgambino_ has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<monsieurp>
r3dk1ng: I second that
Zackio has joined #ruby
<hanmac>
but its still apples fault that they want to use some modificated versions of standard functions, i mean if OSX would have used the orignal BSD function, or would have implment it correct, than nothing would have happend
iamjarvo has joined #ruby
<monsieurp>
never quite understood this fuss, almost religion, around Apple products
attamusc has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
attamusc has quit [Client Quit]
shazaum has joined #ruby
attamusc has joined #ruby
Advocation has quit [Quit: Advocation]
<r3dk1ng>
monsieurp: it's because it's techno jewlery
<hanmac>
hey! let us design a new system, let call it OSY ... its more "male" than OSX ;P
iamjarvo has joined #ruby
a5i has joined #ruby
<ytti>
i'm looking for new laptop
<r3dk1ng>
monsieurp: people buy it because it's flashy, cool and the IN thing....
<ytti>
ibm carbon looks nice
<ytti>
lenovo
<monsieurp>
The only Apple product I've held dear to me heart was the iPod (1st gen all the way to the 5th)
<ytti>
whatnot
<jhass>
wasn't there this lovely paper where they showed the same brain activity patterns occur when religious people are shown symbols of their religions and apple users are shown apple products?
iamjarvo has quit [Max SendQ exceeded]
<ytti>
but i can get macbook pro much cheaper with better specs :/
<monsieurp>
Apple decided to stop making them in favour of the iPod touch
<monsieurp>
which, of course, sucks
Beoran_ has joined #ruby
<ytti>
i just don't like osx
<ytti>
but the pricing isn't bad
kesroesweyth has quit [Ping timeout: 244 seconds]
<Pharaoh2>
well, hate all you want on OSX, but very few things can beat a mac book pro in performance battery life and weight
reinaldob has joined #ruby
iamjarvo has joined #ruby
<monsieurp>
Pharaoh2: no shit sherlock
<ytti>
not sure how well linux lives in retina mbp
<Pharaoh2>
I mean those thing put together, not individually
iamjarvo has quit [Max SendQ exceeded]
<ytti>
at least i've understood camera does not work at all
<r3dk1ng>
lmao
<monsieurp>
Pharaoh2: for the price, the opposite would be quite.. surprising
LJT has quit [Quit: Sleeping...]
sgambino has quit [Ping timeout: 276 seconds]
<Pharaoh2>
yes, well, but when the company is footing the bill, why not
<hanmac>
ytti: if you are looking for lenovo, i would suggest to format it, because i read in news a few weeks ago that they had a spy proxy tool that can spy your ssl/https stuff
gauke has quit [Quit: gauke]
iamjarvo has joined #ruby
<ytti>
hanmac, yeah but that didn't apply to carbon
iamjarvo has quit [Max SendQ exceeded]
<monsieurp>
I mean 1k in a god damn laptop, I expect it to crush the concurrence when it comes to specs
mengu has joined #ruby
<monsieurp>
right?
<ytti>
hanmac, and yeah i would defintiely format it, as i'd run linux on it
<Pharaoh2>
from corporate point of view the cost is peanuts if it improves developer productivity
<monsieurp>
not sure about the latter but hey
tgunr has joined #ruby
<monsieurp>
to each his own (POV)
livathinos has quit []
iamjarvo has joined #ruby
mrmargolis has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<hanmac>
i only used pcs i build/ select myself ... (specially because i am looking for a chasis where i can put my many harddrives into it ;P)
__chris has quit [Quit: Leaving]
<Pharaoh2>
If I had to buy my own laptop, I would surely not buy a apple, considering price/performance
mikecmpb_ has joined #ruby
<monsieurp>
Pharaoh2: let me guess, you're wearing an iWatch too right?
n80 has quit [Quit: n80]
<Pharaoh2>
but if someone else is paying, get the highest end mac book pro and you will be mostly happy
<Pharaoh2>
uhh no..
iamjarvo has joined #ruby
Beoran has quit [Ping timeout: 250 seconds]
<r3dk1ng>
mac = waste of money
<Pharaoh2>
I am using a nexus 6, I have an asus G73 personal laptop
<monsieurp>
stupid reasoning
<ytti>
Pharaoh2, i'm looking for laptop, what is good bang for buck right now?
<monsieurp>
"if someone else is paying, then I'll have him pay as much as possible"
<Pharaoh2>
lenovo released a pretty nice laptop recently
juanpaucar has joined #ruby
<Pharaoh2>
let me look it up again
juanpaucar has joined #ruby
<Pharaoh2>
oh it is the carbon
psudoze has quit [Ping timeout: 250 seconds]
<Pharaoh2>
just remembered the x1 or something
<ytti>
Pharaoh2, lenovo carbon costs more than mbp :(
<Pharaoh2>
really? damn!
<Pharaoh2>
ytti: whats your usecase?
LudicrousMango has quit []
<ytti>
Pharaoh2, mostly browser + xterms
riotjones has quit [Remote host closed the connection]
<Pharaoh2>
how important is weight and batter life?
<ytti>
not very
<ytti>
i'd want 15" if possible
<monsieurp>
Lenovo W510
riotjones has joined #ruby
<ytti>
oh and 16GB memory would be nice
yh has quit [Ping timeout: 244 seconds]
gauke has joined #ruby
yh has joined #ruby
<Pharaoh2>
you can also go for the new dell xps
mikecmpbll has quit [Read error: Connection reset by peer]
<r3dk1ng>
or Dell Precision M class
ascarter has joined #ruby
kaffepanna has joined #ruby
amdbcg has quit [Ping timeout: 264 seconds]
juanpablo___ has joined #ruby
<r3dk1ng>
Moblie Workstation
<r3dk1ng>
if you want Bang
<nickjj>
ytti, are you running a bunch of VMs?
<Pharaoh2>
16 gig ram
<Pharaoh2>
no, he is running chrome
User458764 has joined #ruby
dcarper has joined #ruby
<nickjj>
chrome uses a lot of memory, but probably not 16gb
bluOxigen has joined #ruby
jottr has joined #ruby
<ytti>
nickjj, i need windows for corp crap, like lync :(
<r3dk1ng>
You would be fine with 8GB unless you had to run more than one VM
<r3dk1ng>
if you had SSD
<r3dk1ng>
as well
riotjones has quit [Ping timeout: 256 seconds]
<ytti>
monsieurp, i don't see that in levono site, but w541 when added 16GB memory, high res display and 256GB SSD, costs <40usd less than MBP
hpoydar has quit [Remote host closed the connection]
<shevy>
but the best resource in the end I found is to be the "try it yourself" approach at http://rubular.com/
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rapier- has joined #ruby
<shevy>
the perl book was awful by the way, perl is awful - but the regex chapter was really great. you just need to remember what means what in a regex... like {1,5}
beat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ninjs>
I don't know why I missed it the first time I tried to learn rails, but ruby is so damn cool.
gsd has joined #ruby
One-Sky has quit [Ping timeout: 252 seconds]
<ninjs>
I've been playing around for like 2 hours just changing arrays to strings and back haha
hpoydar has joined #ruby
B1n4r10 has joined #ruby
gsd has quit [Read error: Connection reset by peer]
hpoydar has quit [Remote host closed the connection]
gsd has joined #ruby
Megtastique has quit []
linoj has joined #ruby
anaeem___ has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
<shevy>
more fun than PHP eh
beat has joined #ruby
Zesty has joined #ruby
MasterPiece has joined #ruby
<ninjs>
not sure, never wrote any PHP
Spami has joined #ruby
shadoi1 has joined #ruby
Zesty has quit [Client Quit]
mengu has joined #ruby
<shevy>
hehe
<shevy>
it's pretty funny
<shevy>
you can write functions in all CAPS
Spami has quit [Client Quit]
mdarby has quit [Remote host closed the connection]
<shevy>
but invoke them lowercased if I remember correctly
<gregf_>
ninjs: Ha! there aint no fun in PHP. shevy's lying
mdarby has joined #ruby
<workmad3>
shevy: like this?
<workmad3>
>> def WOO!; puts "I <3 ruby!!!"; end; WOO!
<apeiros>
or do you expect me to go through the whole code line by line?
<GaryOak_>
so on line 9 I'm calling puts my_ivar and it outputs "testing"
<apeiros>
GaryOak_: tell me, does `my_ivar` have an @ in front of it?
<GaryOak_>
no
<GaryOak_>
not in that method
<apeiros>
so you know it's not an instance variable
<apeiros>
so what else could it be?
Hijiri has quit [Quit: WeeChat 1.0.1]
<GaryOak_>
then why does it contain "testing"
<apeiros>
please, bear with me and answer my question
dfinninger has quit [Remote host closed the connection]
<GaryOak_>
ok, I'm just confused
<apeiros>
yes, and I'm trying to unconfuse you. I'm doing that by asking you questions.
msgodf has quit [Ping timeout: 245 seconds]
One-Sky has quit [Ping timeout: 244 seconds]
<GaryOak_>
so it's a class variable?
msnyon has joined #ruby
<apeiros>
no. @@var are class variables
<GaryOak_>
ok so it's a local var
<apeiros>
that would be possible from the syntax
One-Sky has joined #ruby
<GaryOak_>
Or is it a method call?
agarie has quit [Remote host closed the connection]
<apeiros>
but from the context, you can see that nowhere in the method speak is an lvar named `my_ivar` assigned
<apeiros>
so from the context, you also know it can't be a local variable. a local variable always requires an assignment first.
One-Sky has quit [Max SendQ exceeded]
<apeiros>
yes. method call is the only other option besides local variable.
<apeiros>
now the question is, where is the method `my_ivar` defined and what does it do?
One-Sky has joined #ruby
<GaryOak_>
it's defined by the attr_reader
<apeiros>
correct
allenn has quit [Remote host closed the connection]
<apeiros>
and as jhass said before, `attr_reader :my_ivar` is short for `def my_ivar; return @my_ivar; end`
<apeiros>
does that answer why `my_ivar` (the method call) evaluates to the same value as `@my_ivar` (an instance variable lookup)?
<GaryOak_>
phew yes thank you
akkmaxon has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GaryOak_>
and you can't change my_ivar's value without actually accessing the instance var using the @
jimms has joined #ruby
<GaryOak_>
otherwise you are just calling the method
<apeiros>
you can't write to an instance variable from the outside without going throug a method
<apeiros>
note that "change ivars value" can mean two things:
<apeiros>
a) assign a different object
<apeiros>
b) mutate the currently assigned object
User458764 has joined #ruby
<GaryOak_>
ok
ta has joined #ruby
<apeiros>
for a) I either need a method, or I must be within the object to which the ivar belongs (and then I can use normal variable assignment: @my_ivar = "new value")
ebbflowgo has quit [Ping timeout: 255 seconds]
<apeiros>
for b) I just need a reference of the object somewhere
One-Sky has quit [Ping timeout: 255 seconds]
<GaryOak_>
I've just seen code where they read instance vars without the @, but now it makes sense
<apeiros>
>> class Foo; def initialize(word); @word = word; end; def say; "the word is: #{@word}"; end; end; outside = "outside"; foo = Foo.new(outside); outside.upcase!; foo.say
Spami has quit [Quit: This computer has gone to sleep]
baweaver has joined #ruby
DerisiveLogic has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
lethosor|away has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjuszcza_ has joined #ruby
Matthews_ has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
mjuszczak has quit [Ping timeout: 256 seconds]
B1n4r10 has quit [Ping timeout: 276 seconds]
michaeldeol has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
dfinninger has quit [Remote host closed the connection]
_honning_ has joined #ruby
wald0 has quit [Quit: Lost terminal]
linoj has quit [Quit: linoj]
ta has joined #ruby
Hobogrammer has joined #ruby
FernandoBasso has joined #ruby
robertt_dex has quit [Ping timeout: 276 seconds]
dfinninger has joined #ruby
dseitz has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
yxhuvud has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
DerisiveLogic has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
yxhuvud has joined #ruby
gauke has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszcza_ has quit [Ping timeout: 250 seconds]
krisquig_ has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 240 seconds]
akkmaxon has quit [Quit: Konversation terminated!]
baweaver has joined #ruby
krisquigley has joined #ruby
ujjain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdarby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
duggiefresh has joined #ruby
cjim has joined #ruby
quimrstorres has quit [Remote host closed the connection]
agarie has joined #ruby
jheg has quit [Quit: jheg]
gauke has quit [Client Quit]
Filete has joined #ruby
meschiv2 has joined #ruby
hannahko_ has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 240 seconds]
werelivinginthef has joined #ruby
elaptics_away is now known as elaptics
mjuszczak has joined #ruby
terlar has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
cjim has quit [Client Quit]
beat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agarie has quit [Ping timeout: 276 seconds]
ascarter has joined #ruby
cjim has joined #ruby
baweaver has quit [Remote host closed the connection]
Scriptonaut has joined #ruby
krisquigley has joined #ruby
dcarper has joined #ruby
rdark has quit [Quit: leaving]
<Scriptonaut>
does anyone have a good recommendation for an indepth book on ruby 2.0+?
<Scriptonaut>
not an introductory book, something really meaty
Porfa has quit [Quit: porfa]
<shellfu>
heh
<acl777>
scriptonaut: well grounded rubyist 2nd edition
mikecmpbll has joined #ruby
<acl777>
solid book, especially if you already know another language
djbkd has joined #ruby
mjuszczak has quit []
dcarper_ has joined #ruby
GnuYawk has joined #ruby
dcarper has quit [Ping timeout: 256 seconds]
endash has quit [Quit: endash]
<Scriptonaut>
acl777: sweet thanks
ghr has joined #ruby
endash has joined #ruby
baweaver has joined #ruby
<Scriptonaut>
ya I've been a rails dev for about 6 months, and have been casually using ruby for years, but I want to fill the gaps that might be scattered throughout my knowledge
wallerdev has joined #ruby
_honning_ has quit [Ping timeout: 250 seconds]
<acl777>
yeah. that's a good book to really get ruby. i've been reading the 1st edition.
bigmac__ has joined #ruby
RegulationD has quit [Remote host closed the connection]
ndrei has joined #ruby
dj_zubehoer has quit [Remote host closed the connection]
bigmac has joined #ruby
byprdct has joined #ruby
fabrice31 has joined #ruby
byprdct has quit [Max SendQ exceeded]
c0m0 has quit [Ping timeout: 264 seconds]
byprdct has joined #ruby
bigmac_ has quit [Ping timeout: 255 seconds]
Igorshp has quit [Remote host closed the connection]
bigmac_ has joined #ruby
byprdct has quit [Max SendQ exceeded]
bigmac__ has quit [Ping timeout: 245 seconds]
cartothemax has quit [Remote host closed the connection]
bigmac__ has joined #ruby
fschuindt has joined #ruby
Takle has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 264 seconds]
bigmac has quit [Ping timeout: 245 seconds]
<fschuindt>
Guys, there's a way to trim a string to remove the line breaks? The string is a line from a text file, at the end of the line it line breaks. How can I remove it? I have tried .delete('\n') but it don't worked.
baweaver has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 250 seconds]
thiagovsk has joined #ruby
bigmac has joined #ruby
ghr has quit [Ping timeout: 276 seconds]
<a5i>
Ruby is incredibly flexible
<shevy>
fschuindt .chomp
<shevy>
to remove all of them well
tvon has quit [Quit: Lost terminal]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy>
>>> "abc\ndef\nyo\n".delete("\n")
<ruboto>
shevy # => /tmp/execpad-4d6a25b1d7e6/source-4d6a25b1d7e6:2: syntax error, unexpected '>' ...check link for more (https://eval.in/311821)
bigmac_ has quit [Ping timeout: 250 seconds]
<shevy>
so I fail
<a5i>
you can make Ruby verbose if you wanted
mostlybadfly has quit [Quit: Connection closed for inactivity]
<ruboto>
a5i # => /tmp/execpad-077ebb442b6d/source-077ebb442b6d:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/311824)
bigmac has quit [Ping timeout: 250 seconds]
<fschuindt>
shevy: .chomp worked great! :)
<a5i>
mk, I know elsif
<fschuindt>
shevy: ty
<shevy>
\o/
<shevy>
a5i you fail with the bot just as I did. I call you my fail-brother now, we are the fail team!
<shevy>
I always write a method in a .rb file, and call that
bigmac_ has quit [Ping timeout: 255 seconds]
<Scriptonaut>
best language for one liners is haskell
<shevy>
rather than fancy combinations of commandline arguments
<Scriptonaut>
or something like that
<zlude>
Hello guys, I want to improve this code... just for study! Someone can help me? http://pastie.org/private/ltbjgc6eu2om2kgngezdga#11,16,22 for example.. can I call "redis = Redis.new()" just one time? and at redis_get = RedisAction.new... can I omit :redis_value? how?
<shevy>
haskell is like a cult
<shevy>
once you are in the cult, you love it
cjim has joined #ruby
<shevy>
whereas those who are outside have no idea what the fuzz is all about
<Scriptonaut>
ya, learning haskell made every day programming a lot less fun, haha
<shevy>
it's a very different way to think about things, compared to C or Ruby
<Scriptonaut>
ya, rather than describing the steps to get a results, you describe the nature of the result itself
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<shevy>
zlude that is a case where you could use an @ivar, have you used them before yet?
bigmac_ has joined #ruby
uber has quit [Quit: bye]
<shevy>
aha
<shevy>
you did
cjim_ has joined #ruby
<shevy>
I see the rest of your code
volk_ has joined #ruby
<volk_>
anybody here pretty good with graph algs? i’m looking to add a feature to my app which allows people to search for certain things based on friends of friends (one degree of separation) , i dont want the specific answer per se, but just at least something to look into.
cjim has quit [Read error: Connection reset by peer]
bigmac has quit [Ping timeout: 252 seconds]
<shevy>
zlude for instance, in the method initialize, add a new method called reset
bim has joined #ruby
baweaver has joined #ruby
<shevy>
and then add it: def reset; @redis = Redis.new(); end
<shevy>
you should also drop the (), it looks weird when there are no arguments
bigmac__ has quit [Ping timeout: 244 seconds]
serivichi has quit [Ping timeout: 244 seconds]
sgambino has joined #ruby
<shevy>
zlude does that code work? looks not legit to me or perhaps my eyes don't like it:
akurilin has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
<zlude>
shevy, yes, this is working. but i wanna to improve my code.. write a better ruby.
icebourg has joined #ruby
teddyp1cker has joined #ruby
bigmac__ has joined #ruby
pygospa has joined #ruby
baweaver has quit [Remote host closed the connection]
leafybas_ has joined #ruby
akurilin has joined #ruby
RTG` has quit [Ping timeout: 252 seconds]
<jhass>
shevy: required keyword args, new in 2.2
bigmac_ has quit [Ping timeout: 252 seconds]
apoplexy has joined #ruby
bigmac_ has joined #ruby
bim has quit [Ping timeout: 276 seconds]
<jhass>
zlude: drop the spaces though, def initialize(redis_key:, redis_value:)
teddyp1cker has quit [Client Quit]
rbennacer has quit [Remote host closed the connection]
gfawcettpq has quit [Ping timeout: 264 seconds]
<jhass>
replace the redundant redis = Redis.new with a private method def redis; Redis.new; end
akkmaxon has joined #ruby
dcarper_ has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
bigmac has quit [Ping timeout: 246 seconds]
<jhass>
use Ruby 1.9 style hashes when using keyword argument: RedisAction.new(redis_key: "user", redis_value: "me")
krisquigley has joined #ruby
<jhass>
also any strong reason you don't use the same object to call both, get and set?
dcarper has joined #ruby
CloCkWeRX has quit [Ping timeout: 252 seconds]
bigmac has joined #ruby
<Scriptonaut>
what's ruby 2.0+ style hash?
cjim_ has quit [Quit: (null)]
<jhass>
there's none
<Scriptonaut>
I thought { key: 'val', otherkey: 'otherval' } was ruby 2.0
<Scriptonaut>
hash
leafybasil has quit [Ping timeout: 265 seconds]
<jhass>
no, it's there since 1.9
bigmac__ has quit [Ping timeout: 250 seconds]
leafybas_ has quit [Ping timeout: 252 seconds]
dcarper has quit [Read error: Connection reset by peer]
<Scriptonaut>
how'd you do it before, { "key" => "val", "ptherkey" => "otherval"}
dcarper_ has joined #ruby
<Scriptonaut>
I noticed rails 4 moved away from that
RTG` has joined #ruby
<Scriptonaut>
and uses the key: 'val' syntax
<jhass>
no, { :key => "val", :otherkey => "otherval" } is the equivalent
<Scriptonaut>
oh
bigmac__ has joined #ruby
<jhass>
yes, Rails 5 will make Ruby 2.2 required and make extensive use of keyword arguments even
threh has joined #ruby
bigmac_ has quit [Ping timeout: 250 seconds]
<Scriptonaut>
hrm, when is that coming out
Ziioynx has joined #ruby
<jhass>
no idea
rhllor has joined #ruby
bigmac_ has joined #ruby
<eam>
it's incomplete in 1.9, "foo bar": doesn't work until 2.2 for example
<eam>
which also means no jruby
mjuszczak has joined #ruby
<jhass>
huh? I'm sure the jruby people will adapt
<jhass>
isn't jruby 9000 targeted at 2.2?
bigmac has quit [Ping timeout: 244 seconds]
krisquigley has quit [Ping timeout: 276 seconds]
havenwood has quit [Remote host closed the connection]
bigmac has joined #ruby
bigmac__ has quit [Ping timeout: 256 seconds]
bigmac__ has joined #ruby
sandelius has joined #ruby
bigmac_ has quit [Ping timeout: 256 seconds]
sandelius has quit [Client Quit]
tvw has joined #ruby
casshern2 has quit [Ping timeout: 244 seconds]
beat has joined #ruby
BTRE has quit [Quit: Leaving]
bigmac_ has joined #ruby
Takle has joined #ruby
rhllor_ has joined #ruby
tgunr has quit [Read error: Connection reset by peer]
<shevy>
ok so that is valid syntax then. now I know that required keyword args look like shit
agarie has joined #ruby
Filete has quit [Read error: Connection reset by peer]
tgunr has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
<jhass>
yeah, we don't have much left in the language
rhllor_ has quit [Remote host closed the connection]
bigmac has quit [Ping timeout: 276 seconds]
<jhass>
what would you propose to define them?
rhllor has quit [Ping timeout: 264 seconds]
<shevy>
crystal uses keyword args as well?
baweaver has joined #ruby
rhllor has joined #ruby
<jhass>
kinda, you can pass all regular args as keyword args as well
vivekananda has joined #ruby
bigmac__ has quit [Ping timeout: 276 seconds]
bigmac has joined #ruby
<shevy>
dunno. the problem is that I would design a completely different language altogether if I'd had the required skills. I'd want a language that is modelled similar to biological cells
akkmaxon has quit [Quit: Konversation terminated!]
<jhass>
def x(foo, bar, baz) can be called with x(1, baz: 3, bar: 2)
<shevy>
hmm
<shevy>
how do you manage to use two different languages at the same time
dfinninger has joined #ruby
Takle has quit [Read error: Connection reset by peer]
bigmac__ has joined #ruby
<jhass>
how do you?
<jhass>
or do you never speak german anymore?
gfawcettpq has joined #ruby
dcarper_ has quit []
<shevy>
I don't need a parser to speak german
baweaver has quit [Remote host closed the connection]
bigmac_ has quit [Ping timeout: 272 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bigmac_ has joined #ruby
sandelius has joined #ruby
<shevy>
my german is always perfect by nature
kyrylo has joined #ruby
<shevy>
if computers would be better at understanding things that human beings want!
<shevy>
have you tried babelfish translations
werelivinginthef has quit [Remote host closed the connection]
kirun has joined #ruby
OtterCoder has joined #ruby
User458764 has joined #ruby
jenrzzz has joined #ruby
Pharaoh2 is now known as MrTuring
ndrei has quit [Ping timeout: 240 seconds]
bigmac has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
coventry` has joined #ruby
MrTuring is now known as Pharaoh2
CloCkWeRX has joined #ruby
bigmac__ has quit [Ping timeout: 248 seconds]
<GaryOak_>
does anyone you think a typed version of ruby would be good?
vivekananda has quit [Ping timeout: 245 seconds]
<coventry`>
Is there a better way to configure the version of ruby bundle uses than changing the #! line in /usr/bin/bundle?
bigmac_ has quit [Ping timeout: 240 seconds]
<shevy>
GaryOak_ depends on how it would be used. optional or mandatory? and the scope of what it does
bigmac has joined #ruby
marr has quit [Ping timeout: 245 seconds]
<mwlang>
nothing like having a little downtime to spend exploring how to do stuff in Ruby — here’s a couple of useful tricks I figured out this morning: https://gist.github.com/mwlang/796ed6076c692504a33d
<shevy>
GaryOak_ but I think in principle, if you could get the benefits of typed/static declarations upfront while retaining the good things of flexibility, then that would be nice
<jhass>
contradictioned: #!/usr/bin/env ruby and patch your path to have the right one first
thumpba has joined #ruby
<jhass>
er coventry` ^
<jhass>
sorry contradictioned
rbennacer has joined #ruby
<shevy>
don't contradict contradictioned
<GaryOak_>
shevy: Just looking into it, but I think it would be better being optional
<coventry`>
jhass: OK, nothing within the bundle framework itself? I can live with that.
Pharaoh2 is now known as MrTuring
<jhass>
no, ensuring the right ruby version is a job for your ruby version switcher, not bundler
bigmac__ has joined #ruby
<jhass>
bundler ensures the right gem versions are loaded by your app
<mwlang>
reading back up the chain….why is Rails 5 going to lock in on Ruby >= 2.2
jherbst has joined #ruby
<mwlang>
i.e. what’s in 2.2 that’s RoR5 is taking advantage of that’s not in 1.9+?
tosbourn has quit [Remote host closed the connection]
<coventry`>
jhass: OK, I'll read about rvm. Thanks.
<jhass>
or rbenv, chruby, pick your poison ;)
arturmartins has quit [Quit: Leaving...]
bigmac has quit [Ping timeout: 244 seconds]
<coventry`>
What would you recommend?
Yzguy has joined #ruby
cjim_ has joined #ruby
bigmac has joined #ruby
<shevy>
mwlang btw out of curiousity, when did you start to write ruby code?
<mwlang>
shevy: 2005
<shevy>
\o/
n008f4g_ has quit [Quit: leaving]
cartothemax has joined #ruby
bigmac_ has quit [Ping timeout: 255 seconds]
Yzguy has joined #ruby
<shevy>
about at when I started with ruby too, more or less. I think 2 years after I switched to linux I was still using php though... used linux sometime in 2004 or so
bigmac_ has joined #ruby
<mwlang>
shevy: didn’t really get full-time into Ruby until 2009 or so as I had a lot of pre-existing code to juggle in other languages and was managing more than coding, too.
ndrei has joined #ruby
bigmac__ has quit [Ping timeout: 248 seconds]
bigmac__ has joined #ruby
<latemus>
When I iterate through the elements af an array using Array#index, if the array contains an identical element multiple times, I'm getting the index of the first occurence of that element, because I am iterating by name. http://pastie.org/private/9t73b2maqa5nvw8zh9dpq Is there a way to overcome that?
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Scriptonaut>
ruby is super pleasant to program in, the amount of thoughtfulness always surprises me. Half the time if I want something, I can guess the method name for an object and it exists
TheKruex has joined #ruby
<latemus>
I need the actual index for each element.
A205B064 has joined #ruby
AlexRussia has quit [Ping timeout: 272 seconds]
<mwlang>
Scriptonaut: or more embarassingly, you think, “it can’t be that simple, let me ask on IRC” and somebody’s response leads to face-palming. :-p
baweaver has quit [Remote host closed the connection]
<shevy>
Scriptonaut yeah ruby is pretty good
djbkd_ has joined #ruby
<Scriptonaut>
haha, ya. I think I'm probably known as a meganoob in #rubyonrails because I ask really easy stuff on a daily basis
bigmac has quit [Ping timeout: 245 seconds]
RegulationD has joined #ruby
<mwlang>
Scriptonaut: nah, you’re a bit past the noobie stage.
bigmac_ has quit [Ping timeout: 245 seconds]
bigmac has joined #ruby
wallerdev has quit [Quit: wallerdev]
chipotle has joined #ruby
<Scriptonaut>
heh, ya. 5 months ago though I was pretty annoying
linoj has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
bigmac_ has joined #ruby
n80 has quit [Quit: n80]
platzhirsch has left #ruby [#ruby]
Joufflu has joined #ruby
postmodern has quit [Quit: Leaving]
bigmac__ has quit [Ping timeout: 264 seconds]
towski_ has joined #ruby
<shevy>
we all were at one point in our lives weren't we
djbkd_ has quit [Ping timeout: 250 seconds]
bigmac__ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
bigmac has quit [Ping timeout: 250 seconds]
claw has joined #ruby
shadeslayer has quit [Ping timeout: 264 seconds]
beat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigmac has joined #ruby
AlexRussia has joined #ruby
bigmac_ has quit [Ping timeout: 248 seconds]
tchebb has quit [Ping timeout: 244 seconds]
ta has joined #ruby
bigmac_ has joined #ruby
HayesHimself has quit [Ping timeout: 244 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has quit []
bigmac__ has quit [Ping timeout: 250 seconds]
MetaFloor has joined #ruby
bigmac__ has joined #ruby
<MetaFloor>
hey all
MrTuring is now known as Pharaoh2
x1337807x has joined #ruby
noname has joined #ruby
claw___ has quit [Ping timeout: 250 seconds]
<MetaFloor>
./msg nickserv identify
Rephiax has joined #ruby
shadeslayer has joined #ruby
<Scriptonaut>
latemus:
<Scriptonaut>
did you ever get help
<latemus>
Scriptonaut: Nah
<Scriptonaut>
k, so you are iterating through an array
failshell has joined #ruby
<Scriptonaut>
and need the index
claw_ has joined #ruby
<Scriptonaut>
when you are on a certain element?
<latemus>
Yeah man. Did you see the pastie
bigmac has quit [Ping timeout: 244 seconds]
x1337807_ has joined #ruby
<Scriptonaut>
oh no let me look
hannahkoala has joined #ruby
bigmac has joined #ruby
x1337807x has quit [Read error: Connection reset by peer]
Yzguy has joined #ruby
jcutrell has joined #ruby
lavros has quit [Quit: leaving]
Yzguy has quit [Max SendQ exceeded]
<latemus>
Scriptonaut: Yeah, basically I want to iterate throu each element, and for each element one of the things i nood to do is get that element's index.
bigmac_ has quit [Ping timeout: 264 seconds]
<Scriptonaut>
this might be bad ruby, someone tell me if it is: Hash[(0..chr.size).zip chr].each { |i, c| puts "#{c}#{i}" }
<latemus>
s/nood/need
<jcutrell>
Hey folks. Quick question - is there a basic consensus on what abstraction is most widely accepted/appropriate for wrapping a rest API over http? I’m assuming based on what I’ve seen that Faraday is the most common tool for this.
agarie has quit [Read error: Connection reset by peer]
<ruboto>
Scriptonaut # => /tmp/execpad-47c5d7bb4267/source-47c5d7bb4267:2: syntax error, unexpected .., expecting :: or '[' or ...check link for more (https://eval.in/311847)
<ninjs>
anyone know of any good libraries for working with excel files? mainly taking rows, deleting some cells and changing some formatting
<mdcox>
jhass: Not a real issue, just a curiosity. I kind of want to reimplement the stdlib on my own for shiggles and want it to simply not load it unless I've written it.
bigmac_ has quit [Ping timeout: 248 seconds]
bigmac has joined #ruby
<mdcox>
not the whole thing obviously...just when I come up on parts not written yet
baweaver has quit [Remote host closed the connection]
<shevy>
there is a commandline switch to not load rubygems I think
<shevy>
other than that, the stdlib part seem to be require-on-demand rather than auto-require anyway
<mdcox>
jhass: I'm not sure, I haven't looked too much into it. I just assume things like say, split() on a string probably isn't built into the interpreter....I could be wrong though. I haven't put too much thought into it.
JoshGlzBrk has joined #ruby
<shevy>
I think it is built in, it's written in Ruby-C there
<jhass>
mdcox: so stdlib has a specific meaning in ruby
<jhass>
mdcox: there's core and stdlib, core are things that are always available once your program starts
<jhass>
stdlib are things that are shipped with ruby, but aren't loaded until you require them
<shevy>
static VALUE rb_str_split_m(int argc, VALUE *argv, VALUE str)
<shevy>
so that is C code mdcox
teddyp1cker has quit [Read error: Connection reset by peer]
teddyp1c_ has joined #ruby
<shevy>
jhass what about rubygems!
<jhass>
mdcox: and another thing to note is all what's core is written in C and compiled into the ruby executable, while large parts of stdlib are written in Ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
evanjs has joined #ruby
<jhass>
shevy: that's loaded in the prelude, iirc there was an option to not load it
dj_zubehoer has joined #ruby
<mdcox>
jhass: So if I strip out all the loaded ruby parts I should be getting to where I wanted...
<mdcox>
unless it just doesn't work at that point :P
bigmac has quit [Ping timeout: 245 seconds]
<jhass>
no
iamjarvo has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
bigmac has joined #ruby
RegulationD has quit [Remote host closed the connection]
<jhass>
maybe somebody else needs to explain, but i thought I was pretty clear
mdarby has joined #ruby
bigmac_ has quit [Ping timeout: 248 seconds]
Rephiax has quit []
<shevy>
mdcox how do you want to remove the C code man
<mdcox>
jhass: I mean if I compile the C code and only include what's there (core you called it) and stripped out all the ruby then it'd just be the pure interpreter (I guess, again, no real thought into it, I should probably just start hacking at it and see why it doesn't work.)
<jhass>
that's a lot of work
vivekananda has joined #ruby
<shevy>
yeah you can do that
<jhass>
rubinius has larger parts of core written in Ruby
<jhass>
maybe that's what you want to look into
dfinninger has quit [Remote host closed the connection]
bigmac__ has quit [Ping timeout: 264 seconds]
<mdcox>
thanks for the help
bigmac_ has joined #ruby
baweaver has joined #ruby
bigmac has quit [Ping timeout: 250 seconds]
Hijiri has joined #ruby
bigmac has joined #ruby
<jhass>
if you just want to write your own implementations of core classes, just name them differently
<jhass>
I don't see the hassle of not loading core
banister has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teddyp1c_ has quit [Remote host closed the connection]
<jhass>
seems like a useless complication of the exercise
<mdcox>
the whole thing is useless...it's just fun
<mdcox>
tearing things apart, duct taping them back together
teddyp1cker has joined #ruby
bigmac__ has joined #ruby
dfinninger has joined #ruby
<shevy>
yeah I don't know why jhass complains here
<shevy>
I think he does not want you to do it!
tosbourn has joined #ruby
<shevy>
mdcox DO NOT DO THIS YOU WILL DESTROY THE WORLD IF YOU DO
<jhass>
mdcox: you might be interested in Crystal: https://github.com/manastech/crystal Ruby inspired syntax, entirely written in itself, which makes it very easy to hack on
jenrzzz has quit [Ping timeout: 272 seconds]
<latemus>
mruby?
<shevy>
;)
<mdcox>
IN A WORLD, WHERE ONE MAN DID THE USELESS...
bruno- has joined #ruby
<jhass>
lots of parts in stdlib missing which would be useful contributions ;)
<shevy>
TO THEN GO AND CREATE CRYSTAL
cartothemax has quit [Remote host closed the connection]
bruno- has quit [Client Quit]
<shevy>
though
<shevy>
if crystal has a better documentation than ruby
<jhass>
eam: kinda, you can pass pretty much anything to a macro as argument (lke a whole class or method) and then let the macro generate code using it
<jhass>
eam: no runtime besides GC though
<jhass>
which is why it will never replace ruby, but complement it for me
<acl777>
atmosx: no, i'm not actively looking. I'm pretty happy where i'm at.
<atmosx>
acl777: where are you at?
<atmosx>
lol
<acl777>
i'm in NYC now
djbkd has quit [Remote host closed the connection]
<shevy>
atmosx you'll move to Berlin?
<atmosx>
acl777: I got a job offer for berlin, relocation and all. But I'm not willing to relocate so it's a non-deal. What I get thought is that there is a growing demand for ruby devs in Germany.
yh has quit [Ping timeout: 265 seconds]
speakingcode has joined #ruby
beat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<atmosx>
shevy: no way
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
ooooooh, NICE, Exception#cause is set automatically
mdcox has quit [Read error: Connection reset by peer]
<apeiros>
didn't know that
r3dk1ng has quit [Read error: Connection reset by peer]
<atmosx>
shevy: Well if GD comes to power, I might.
<eam>
jhass: I can live without eval, but I do find the perspective on dynamic interesting. Either go very high or very low level for it :)
mdcox has joined #ruby
<acl777>
atmosx: where are you now?
<acl777>
berlin is pretty awesome.
cartothemax has joined #ruby
<atmosx>
shevy: although if I move from here, I'd rather go to Vienna (if in Europe), Stockholm or Canada/Australia.
<acl777>
i've lived in germany for 3 years. so i know what it's like.
<atmosx>
or some island in the pacific
ghr has quit [Ping timeout: 252 seconds]
<shevy>
cool
<acl777>
i'm from canada :-)
<atmosx>
acl777: what it's the food like?
<shevy>
I have never been in Stockholm, only in Goeteborg
<atmosx>
acl777: really, so you speak English French and German?
<eam>
and canadian
<acl777>
and japanese.
<acl777>
eh?!
<shevy>
Canada should join the EU, we give the UK to the USA, everybody wins
<acl777>
and ruby!
<atmosx>
acl777: japanese? how came?
bobbrez has joined #ruby
<eam>
acl777: whoa sorry, I am not fluent in canadian
<atmosx>
shevy: no shit, that's a good deal.
<eam>
which sorry way to the library sorry
<atmosx>
I'm not sure what the US takes from the deal, but I'm in.
<acl777>
canada basically is in the EU by the 'commonwealth'
<eam>
ugh, I didn't properly conjugate my
tcrypt has joined #ruby
<eam>
"eh"
<acl777>
eh?!
rubytor has quit [Quit: No Ping reply in 180 seconds.]
<atmosx>
eh
<acl777>
eh.
<atmosx>
ri takes a lifetime to isntall wtf
<atmosx>
I should add --no-ri in my .rdoc
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
<atmosx>
I mean ri for rails 4.2.1
axl_ has joined #ruby
<acl777>
but honestly, berlin's a great place to be in europe.
<atmosx>
acl777: out of cusiority how much do you make per month (assuming you're a ruby dev)
<acl777>
enough to get by in NYC.
noname2 has joined #ruby
<atmosx>
acl777: manhattan?
<acl777>
yup
OrbitalKitten has joined #ruby
<atmosx>
fair enough then
<ytti>
that is very flexible
<ytti>
considering amont of homeless people there
<acl777>
lol
<atmosx>
acl777: are you homeless?
* acl777
holds sign: "will code php for food"
<atmosx>
shit
<atmosx>
that's sad
<ytti>
but wages in EU generally are lower than in US from what offers I've seen
<eam>
can't estimate the salary without knowing how big your apartment is. Where on the 100 to 500 sqft range does it lie?
fschuindt has joined #ruby
<ytti>
we use imperial here?
MasterPiece has quit [Quit: Leaving]
<acl777>
around 500
<ytti>
i'm shocked
<atmosx>
eam: location matters, too. Manhattan is kinda broad..
hmnhf_ has quit [Ping timeout: 240 seconds]
<ytti>
what next? rewrite ruby in php?
<atmosx>
hm
<eam>
ruby on the hiphop vm
zenith_ has joined #ruby
hmnhf_ has joined #ruby
<atmosx>
php is object oriented right? because doesn't look like
<atmosx>
it is
<apeiros>
100-500 sqft? o0 isn't that like supertiny?
<eam>
apeiros: that's the joke ;)
<ytti>
i'm looking at reloc to cyprus, i can get three stories new house with pool
<ytti>
for same money i pay for shitty one bedroom aparatment in helsinki
<apeiros>
eam: oh, ok. I thought I calculated wrongly.
<acl777>
lol
<apeiros>
because… imperial…
<acl777>
because... human!
<atmosx>
eam: super-tinny, no. I was living in 50 sqm and was pretty happy with it. But it's tiny.
<atmosx>
I was paying 250 EUR in 2008 for 50m^2 in a tiny Greek town. They robbed me!
<apeiros>
ytti: holyfuck, and I thought switzerland was expensive
<ytti>
and very few developers hit 4kEUR/month
<atmosx>
plus 25 for the shitty internet connection!
<ytti>
and pay about 30% taax
<eam>
we have higher tax in california
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<ytti>
well we also have VAT
<atmosx>
ytti: What's the tax rate in Estonia?
<ytti>
which you're missing completely
<apeiros>
I'll refrain from complaining about expensive CH then :D
<eam>
ytti: we have 9% sales tax
<ytti>
atmosx, stonia is much better, also apartments are lolz cheap compared to helsinki
<atmosx>
apeiros: you're Swiss, you're rich by default. Same goes for shevy.
* atmosx
is broke by default
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ytti>
eam, 24% here
<eam>
ytti: california has all the taxes of europe and all of the social services of ... not europe
<apeiros>
I think I pay about 10% in income taxes and we have 8.5% VAT for most goods iirc
<ytti>
and you can't cirumvent VAT
<ytti>
like you can sales tax
workmad3 has joined #ruby
<eam>
california state tax alone is 10%, federal is another 30-ish
<apeiros>
property tax only starts to matter here when you have >250K
<atmosx>
eam: I'm Greek, I currently pay ~ 60% taxes and they are still gonna kick out of the Euro. It's silly. I can *live* because I own my house, otherwise it's impossible without tax-evading...
<ytti>
i wouldn't move to califonria below 150kUSD/year
<apeiros>
or rather, start at that amount. they matter at about >500K
<ytti>
and even then, job would need to be really really good
<atmosx>
ytti: is there any possibility to make that sum in california behind a keyboard>
<eam>
apeiros: property tax in california is cheap, only 1-1.5% of the property value per year! Except all the homes are >$1m
<ytti>
atmosx, yes
<atmosx>
ytti: well then, might be an option.
<atmosx>
eam: you from california?
<eam>
yes
zenith_ has quit [Ping timeout: 250 seconds]
<atmosx>
eam: and currently live in California?
Kricir has quit [Remote host closed the connection]
<eam>
atmosx: yessir
<apeiros>
yeah I think for the first 250K, prop tax here is 0, for the second 250K it's around 1% too
<eam>
not really complaining btw, it's a great place to live
<ytti>
too bad the new trend is all the cool jobs are in the cities :(
<apeiros>
no, actually I think it's even lower
<atmosx>
eam: is every girl wearing tight pants and has a hot body as shown in TV Series?
<ytti>
i liked the old trend of offices in the suburbs
<apeiros>
got to check next time :D
nahtnam has quit [Quit: Connection closed for inactivity]
<eam>
atmosx: that's southern california
<atmosx>
eam: why, is there aren *california*?
<atmosx>
eam: that's the only *california* I know of :-P
<ytti>
also getting to us is kinda pita, for eutard
<ytti>
essentially l1b is best option
RegulationD has quit [Remote host closed the connection]
<eam>
atmosx: remember, San Francisco <-> Los Angeles are as far away as spain to italy
<eam>
it's a long state
<ytti>
i thought culturally :)
<atmosx>
eam: and it's kinda broke right?
<atmosx>
eam: I mean poor finances and all?
<eam>
atmosx: kinda, but it doesn't impact anyone because we don't get any social services anyway
sgambino has quit [Remote host closed the connection]
<ytti>
california would be best place for startup, not sure i'd want to work there without relevant equity
<eam>
ytti: but you'd get equity -- and that's why all our homes are >7 figures
JoshGlzBrk has joined #ruby
<ytti>
eam, i mean work related equity
<eam>
yeah me too
<acl777>
and 100% of 0 is still 0 :-)
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
<ytti>
it doesnt matter honestly, as long as i could lie to myself of prospect of exit
<eam>
ytti: stock/options are a standard part of most comp packages
<atmosx>
exits are awesome
<acl777>
oh, don't worry, someone will be lying :-)
<eam>
and because it's california: no vacation plan
Megtastique has joined #ruby
aghalarp has joined #ruby
Megtastique has quit [Max SendQ exceeded]
<ytti>
yeah we get 5 weeks legally
<eam>
I have zero days
<atmosx>
eam: hm, wait you said you're from North California
<ytti>
which is paid more than your normal hours :/
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
<atmosx>
eam: no hot girls == sucks
<atmosx>
eam: well, for me at least.
Megtastique has joined #ruby
<acl777>
if you're into dorky guys: paradise! :-)
Megtastique has quit [Max SendQ exceeded]
alvaro_o has quit [Quit: Ex-Chat]
<eam>
atmosx: SF is full of really good looking people
<acl777>
go work for snapchat in LA. they're giving lotsa equity, and lotsa hot chicks
<workmad3>
acl777: also, I'm british, our fallback is the weather :)
mitchellhenke has joined #ruby
<ytti>
my landlord wanted to raise more
<ytti>
sent me bunch of letters
<acl777>
workmad3: it's raining, eh?!
<ytti>
i never signed
<eam>
ytti: that's reasonable - SF caps at like 1%
<workmad3>
acl777: worse... the sun's out!
<eam>
sub-inflationary caps
RTG` has quit [Ping timeout: 272 seconds]
<ytti>
then two big guys came to my door and asked me to sign :)
<ytti>
decided i want to sign after all
<acl777>
workmad3: wtf are you inside then?! go work on your tan!
bMalum has quit [Ping timeout: 272 seconds]
bMalum_ is now known as bMalum
spyderman4g63 has quit [Remote host closed the connection]
dx7_ has quit [Remote host closed the connection]
<workmad3>
acl777: the sun is what I call "The evil burning all-seeing eye"
Takle has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
<pipework>
workmad3: I call it the 'hatestar'
<pipework>
It's a mutual thing.
<shevy>
workmad3 it would be very cold without the sun!
bMalum has quit [Client Quit]
<eam>
ytti: with ellis the unit can't be rented for a number of years and it's cheaper to let the unit sit vacant than to continue collecting rent at the controlled levels
<pipework>
shevy: It's very cold anyways. Why bother?
dx7 has joined #ruby
<eam>
which contributes to the lack of inventory
speakingcode has quit [Ping timeout: 252 seconds]
<ytti>
eam, my mind is blown
<workmad3>
pipework: I like... but I worry that it would take that as a nickname now and assume we're now friends :(
<shevy>
pipework it's getting warmer here every day
djbkd has joined #ruby
silentpo2t has joined #ruby
<acl777>
workmad3: i love the sun... i couldn't get enough of it in miami.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy>
known for warm weather, hot girls and dangerous crocodiles
<pipework>
workmad3: Some of my best friends are totally convinced I say horrible things because I like them.
mdcox has left #ruby [#ruby]
<acl777>
shevy: never saw any crocs...
shadoi1 has quit [Quit: Leaving.]
<acl777>
at least on south beach :-)
<acl777>
oh wait, you're talking about the guys?!
<workmad3>
pipework: I'm very upfront about that... the more I'm friends with someone, the nastier the shit I'll say to their face :P
<acl777>
:-)
<shevy>
no I think I really read about crocodiles ... though perhaps it was somewhere else in Florida
<acl777>
lol
<acl777>
prolly.
djbkd_ has joined #ruby
<jhass>
workmad3: pipework you're saying that's not normal?
<pipework>
workmad3: Right! But it doesn't mean I like you. I can have relationships with people I don't like and still value them enough to let them think 'friend' is the right word to use.
iamjarvo has joined #ruby
<pipework>
jhass: Which part?
speakingcode has joined #ruby
<shevy>
who likes workmad3 anyways
Takle has joined #ruby
silentpo2t has quit [Quit: leaving]
iamjarvo has quit [Max SendQ exceeded]
<pipework>
I do.
<pipework>
He's terrible.
<jhass>
pipework: insulting your friends to prove friendship
<workmad3>
pipework: sure... those are the people I'm 'friendly' with
bal has quit [Client Quit]
<shevy>
he has a mighty beard
* acl777
goes back to work...
<pipework>
jhass: :D
<pipework>
jhass: In that case, I hope we're not friends, you sick bastard. <3
iamjarvo has joined #ruby
<workmad3>
shevy: it's bushy and unruly at least... not sure it's quite 'mighty' yet
maximski has joined #ruby
silentpost has joined #ruby
VBlizzard has joined #ruby
lobolars has joined #ruby
maximski has quit [Max SendQ exceeded]
<shevy>
feed it some more burgers
baweaver has quit [Remote host closed the connection]
<shevy>
all the parts that the mouth area misses
<workmad3>
shevy: I'll let my wife know that I'm under orders to eat more burgers!
maximski has joined #ruby
<shevy>
you are a good husband, always informing the wife
<workmad3>
who do you think needs to cook the burgers?
<pipework>
shevy: Maybe they're wife and wife?
zzing has joined #ruby
<eam>
which one's the beard
djbkd has quit [Ping timeout: 252 seconds]
pen has joined #ruby
<pipework>
eam: Whoever it is, I bet it's the same color as the carpet, drapes, and armpits
<shevy>
pipework I would not know. But what I can say is that married people change a lot. and when kids come up, it changes even more. They have no more time for the old fun things anymore!
_blizzy_ has quit [Ping timeout: 250 seconds]
<pipework>
shevy: Are you a breeder?
<workmad3>
pipework: no, unfortunately the ginger only comes out in the beard
<pipework>
If given the chance, would you be?
<shevy>
pipework biologists breed everything
<pipework>
workmad3: Then you're a ginger, just a lesser class than those with more tinge of the ginge.
<pipework>
shevy: Even yourself?
djbkd_ has quit [Ping timeout: 256 seconds]
<pipework>
With someone else, that is.
<shevy>
nah
<pipework>
\o
<shevy>
we only differ in our genome anyway
<eam>
old people are still fun
Hijiri has quit [Ping timeout: 250 seconds]
<pipework>
I've got too much wrong with me to continue spreading my genetics for the human race's future, let alone the next generation. :(
wildroman2 has joined #ruby
<pipework>
shevy: I mean, I'm ginger, so we differ on some level that leaves me with a mutation.
<shevy>
no worries, there are others who spread their wrongs happily
<workmad3>
eam: I'm really getting into board games in the last year or so
Pumukel has joined #ruby
<pipework>
shevy: I'd rather be right than less wrong.
<atmosx>
shevy: 30 USD to develop and design an RFID attendance system.
<workmad3>
eam: any recommendations? :)
pen has quit [Client Quit]
<shevy>
atmosx hmmm
jordsmi has quit [Quit: Connection closed for inactivity]
<eam>
uh, wife and I have been playing ticket to ride
sgambino_ has quit [Remote host closed the connection]
<atmosx>
shevy: you have to start low (low level, low paycheck, etc.)
<shevy>
atmosx you mean for the payment stuff right? not because of the content
<pipework>
Is that singapore dollars an hour?
<atmosx>
shevy: yeah sure, it's silly.
<eam>
we stopped playing chess in order to maintain the integrity of our marriage
<workmad3>
eam: heh :) one of the first purchases when we were getting more into board games ;)
<pipework>
eam: You can never truly lose chess unless you can't find ways to win that don't require winning the game.
<shevy>
atmosx well, I dunno... a good friend at age 34 makes almost 100.000 euro a year, he studied economics. I don't want to have to compete with that
<workmad3>
eam: latest one was pandemic... Ninja: Legend of the Scorpion Clan is quite fun too, but takes a fair bit of time to play
rbennacer has quit [Remote host closed the connection]
towski__ has joined #ruby
<eam>
workmad3: ever play space alert?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Porfirium has joined #ruby
<workmad3>
eam: not come across that one no
<eam>
it's a pretty fantastic party game
<workmad3>
'party game'? does that require interaction with more than 2 other people?
wildroman2 has quit [Client Quit]
sevvie has joined #ruby
wallerdev has joined #ruby
<jhass>
since we went completely OT now: random though: we should all install pokerth and do a #ruby poker tournament
<jhass>
*thought
<shevy>
atmosx synthetic biology is cool, you know the BioBricks project?
* atmosx
doesn't play poker
fschuindt has quit [Quit: WeeChat 1.1.1]
<atmosx>
shevy: nope
<eam>
yeah 4 or so, you collaboratively program actions to coordinate astronauts saving their spaceship from attackers
<jhass>
atmosx: me neither, I suck at it!
<jhass>
that's where the fun comes in
jimms has joined #ruby
<atmosx>
jhass: ... okay as long as money is not involved, I'm in.
<eam>
under time pressure and other limits (sometimes can't talk) so you get hilarious results when it fails
<atmosx>
jhass: or maybe play with fractions of btc
wallerdev has quit [Client Quit]
<workmad3>
eam: hmm, fun... still not sure where the wife and I come down on co-operative games... pandemic is fun at times, but frequently she gets pissed off at the board being too mean :P
<eam>
imagine 4 people writing a concurrent ruby program with 4 threads in just a few minutes without really talking to each other
<jhass>
atmosx: pokerth is a open source, no money thingy
towski_ has quit [Ping timeout: 245 seconds]
<workmad3>
eam: we lost a game of pandemic before the second turn recently :(
<atmosx>
shevy: hahahah, that sucks :-P and it's dangerous!
<shevy>
"Eau d?coli" hehehehe
<eam>
aah
<shevy>
atmosx but it's cool! it is creative! like _why in ruby!
<atmosx>
jhass: a friend of mine told me that in order for me to learn poker, (really learn poker) I had to play (and lose) money.
<jhass>
sounds reasonable
<atmosx>
jhass: yeap.
<eam>
and it's best if you lose to him
<jhass>
having to drink grappa when you loose works too though IME
<atmosx>
jhass: how are you going to do that remotely?
<jhass>
yeah, that's a problem
<pipework>
I've been thinking of implementing mental poker using ephemeral keys per session.
<workmad3>
atmosx: can you not hear the rustling in that tree outside your window?
<pipework>
Then building card games on that.
<workmad3>
atmosx: that's jhass waiting to force-feed you grappa!
qhartman has quit [Quit: Ex-Chat]
<atmosx>
workmad3: hm, well I'm Sicialian I so... I'm kinda used to grappa :-P
* workmad3
has no idea what grappa is
ndrei has quit [Ping timeout: 250 seconds]
<eam>
did you hear about the fight that broke out between the two italians at a bar?
<eam>
yeah they were grappa-ling
<atmosx>
workmad3: Italian highly alcoholic drink
<atmosx>
haha
<workmad3>
apeiros: can we have a /punban in ruboto please?
<eam>
:D
<workmad3>
apeiros: 1 minute ban with an automatic message of "No punning, bad eam
<apeiros>
no
<workmad3>
:(
<apeiros>
but there'll be crowdkick/crowdban
<apeiros>
so if you can convince enough people eligible for crowd commands…
ndrei has joined #ruby
<pipework>
I'd have to be permabanned, because I refuse to stop punning.
RegulationD has joined #ruby
<atmosx>
seriously? that's cool, a ne wkind of irc democracy
<eam>
looks like apeiros is pun-ting on that ban feature
<atmosx>
if enought people request a ban on atroll, troll is banned?
<pipework>
That or I'd write a script/bot to keep count of punkicks and frame the situation as points with a high score.
<pipework>
atmosx: that's not new.
djbkd has joined #ruby
<workmad3>
eam: gah!!!!
<workmad3>
eam: you're worse than my brother :(
<atmosx>
pipework: I'm new to IRC, since 2001..
<atmosx>
never saw that thing
* atmosx
was crawling on Undernet though
<pipework>
atmosx: It's not been new even within that time, but it hearkens back much further in history
<apeiros>
atmosx: yes. and no, not new. and ban time would be limited. but ops would be informed and can prolong the ban.
<atmosx>
sounds cool
<pipework>
I think it sounds terrible.
<apeiros>
it's intended to be a stop-gap as ops can't be expected to be around 100% of the time.
<atmosx>
and could work when trolls join and apeiros is not here
<atmosx>
yeah
<shevy>
what if apeiros is also a troll
<pipework>
atmosx: Just appoint more ops that can be trusted?
<atmosx>
I figured
beneggett has joined #ruby
<workmad3>
atmosx: apeiros isn't the only op nowadays :P
dj_zubehoer has quit []
RegulationD has quit [Remote host closed the connection]
<workmad3>
tada!
<atmosx>
workmad3: oh well!
<pipework>
atmosx: /msg chanserv access #ruby list
<atmosx>
workmad3: will they give a payraise for that? :-P
beneggett has quit [Read error: Connection reset by peer]
<apeiros>
fear the mad work op
RegulationD has joined #ruby
<workmad3>
atmosx: yeah, I got a 3000% payrise for it
<shevy>
ack
<atmosx>
having @ at ruby should imediately put you in the top-10 ruby-consultants in the UK
devans has quit [Remote host closed the connection]
<pipework>
workmad3: What is 3000% of 'who cares'?
<atmosx>
rt
<atmosx>
rst
<workmad3>
pipework: fuck all
beneggett has joined #ruby
<atmosx>
cool
<pipework>
lawl
<shevy>
atmosx perhaps you should work in the UK if you got a good offer
devans has joined #ruby
<atmosx>
shevy: I had an offer but wasn't good. Work as a sys-admin in a bio-informatics departmant as some london univ. They wanted ruby and someone that knows what a Bacteria is... so I send them an email and told me that I'd have to take an interview but given my Pharmacy (about-to-get degree) I would probably pass.
RegulationD has quit [Remote host closed the connection]
RTG` has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
spyderman4g63 has quit []
n80 has joined #ruby
<atmosx>
shevy: they had some issues with former sys-admin not understanding shit about biol;ogy apparently. However the salary wasn't that good: 45k / year + some tiny bonus. (UK Pounds)
GnuYawk has quit [Ping timeout: 244 seconds]
<atmosx>
it's not good for London, I've heard that you can make more as a dev
<atmosx>
rails dev
cjim_ has joined #ruby
<atmosx>
rails/js/html/css3 (but another couple of buzz-words there and you're up)
<workmad3>
atmosx: just about a living wage in london :P
tus has quit [Ping timeout: 252 seconds]
<ytti>
i was in 80pound night hotel in london in november
<ytti>
it was so terrible, i left to proper one
<ytti>
had to pay two nights anyhow :(
<atmosx>
workmad3: yeap, I had no idea at the beginning, they looked like 'a lot' to me. Then I talked to a couple of friends that live in London, and told it's not good enough.
<workmad3>
ytti: the YMCA?
baweaver has joined #ruby
x1337807x has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
<atmosx>
ytti: last time I went to London I stayed at the Chelsea Hotel. Was nice. Except from the food of course. It was good by UK standards I think.
<workmad3>
atmosx: that's about how much I was offered for a london dev job... as a fresh graduate :P
<atmosx>
but the food in the UK ... well.
maletor has joined #ruby
<atmosx>
it's like the sea.
<ytti>
workmad3, no, can't remember the name
baweaver has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
<shevy>
atmosx yeah probably. there is also the cost of living, I always shy away from that when I hear it, like London is super expensive
LJT has quit [Quit: Sleeping...]
<atmosx>
workmad3: 45k?
<ytti>
i could check emails if important :)
devans has quit [Ping timeout: 255 seconds]
<atmosx>
workmad3: hehe
<ytti>
london also has really terrible building quality
Zen-Zen has joined #ruby
<ytti>
you'd need to be hella rich to live nicely in london
<workmad3>
ytti: I was trying to make a joke about 80 quid a night being about right for the cheapest hotel possible in london :P
jherbst has quit [Ping timeout: 256 seconds]
sgambino has joined #ruby
<workmad3>
atmosx: I think it was 39k + 4k signing bonus... I didn't actually take it though :P
RegulationD has joined #ruby
<atmosx>
shevy: I don't think London is much more expensive than Vienna + I'd rather live in Vienna, it's way more beautiful
<shevy>
London has one thing going for it - Dunkin' Donuts. Though then I later found out... that is from the USA right? But I saw it in London first... like 16 years ago or so
Zen-Zen has quit [Client Quit]
baweaver has joined #ruby
<ytti>
workmad3, we don't have ymca here, i think, so i don't know how that satuff works, i know it only from the song :)
<workmad3>
atmosx: ended up deciding that 20k in manchester was actualy about the same amount, and wouldn't require 80+ hour weeks at an investment bank :P
<ytti>
shevy, yeah us
dmst has quit [Quit: Connection closed for inactivity]
<atmosx>
workmad3: you thought that selling donuts in Picadilly would get a multiple amount? :-P
<ytti>
damn us has good fast food
<atmosx>
s/in/at
<shevy>
atmosx dunno... London is big, I love big cities
dc has joined #ruby
<ytti>
easy to be healthy here, when delicious food is so expensive you don't eat it 3 times a day
<shevy>
hahaha
rodfersou has quit [Quit: leaving]
<atmosx>
shevy: Hm, you should see Istanbul. Way more dangerous/luxurious than London... I think it's the most fascinating city I've been lately.
<atmosx>
shevy: it's dangerous though
<ytti>
i'd stuff my stupid face hole full of 5guys and dunking donuts in california
<eam>
shevy: you need a cronut
<workmad3>
ytti: the biggest problem with healthy eating... pure lard is dirt-cheap and tastes fantastic!
<shevy>
I used to love english breakfast... they drowned their plates with sausages and eggs, you always had a stuffed stomach afterwards
baweaver has quit [Remote host closed the connection]
<shevy>
atmosx I've only ever been to turkey as tourist. I don't really wanna see the rest of the country these days, I'd rather go to Greece!
sevvie has quit [Ping timeout: 256 seconds]
<atmosx>
shevy: hahah oh c'mon that thing in the morning makes me wanna vomit :-P
<ytti>
i bet britons have hungover every day
<atmosx>
shevy: you're very much welcome
<ytti>
that's the trick
<shevy>
strangely enough I loved that breakfast type
<workmad3>
ytti: a lot of them probably are
<shevy>
it's so totally unfitting to tea :D
<atmosx>
shevy: I live in the North but if you happen to get by, I'll show you around :-). You could stay at my place we have enough room.
<workmad3>
shevy: it's apparently good for soaking up the beer and the real ale though :P
<shevy>
atmosx hmm the north does not have the mediterranean sea or? I need to have islands and water!
<havenwood>
Fried toast, bangers and mash for breakfast and fish and chips with beer for lunch is a quick way to gain a lot of weight.
<atmosx>
workmad3: how many lts of beer are you able to drink & keep walking on a straight line?
<workmad3>
atmosx: I don't drink :P
<atmosx>
shevy: Oh it does, we have the Peninsula of Chalkidiki here.
<shevy>
aha
<workmad3>
atmosx: when I did... 0 lts of beer (can't stand the foul stuff)
<shevy>
there are like a million islands
<workmad3>
atmosx: cider and sambuca though... I could knock that back in rather copious amounts :)
<atmosx>
shevy: search google images for CHalkidiki.
vudew has joined #ruby
Pumukel has joined #ruby
momomomomo has joined #ruby
<ytti>
oh yeah england has cider going for it
baroquebobcat has joined #ruby
<ytti>
cider here is really really sweet
<workmad3>
havenwood: bangers and mash isn't breakfast
<shevy>
atmosx btw do you now have your degree? or do you still have to wait
<ytti>
mostly for children
<workmad3>
ytti: isn't 'cider' really just apple juice in most places?
<atmosx>
workmad3: you know Sabuca is the only drink that makes me lose consciousness after ~ 4 shots.
<ytti>
workmad3, i don't think it's that commonly used in most places
<shevy>
hehe
<ytti>
seems to be rather uncommon
<havenwood>
workmad3: That's what they fed us every day for breakfast at Cambridge. It was free so I ate too much. >.>
<shevy>
for me it is vodka... that thing literally kills me
<ytti>
even in europe
<atmosx>
workmad3: I don't rememeber shit. Happened 2 times, one I was in Rhodes (shevy google it,s it's a Greek island) and the second in a local bar,
<shevy>
tequila is cool though
<workmad3>
havenwood: ah, heh :)
<workmad3>
atmosx: I like it flaming with coffee beans :D
<shevy>
havenwood why have you been in Cambridge - aren't you living in the USA?
<atmosx>
havenwood: what shevy asked :-P
<workmad3>
ytti: cider in the UK is always alcoholic is all :P
<havenwood>
shevy: Back in law school days. Living in LA now.
<atmosx>
workmad3: I generally don't drink alcohol. But if we ever come together, I'll get drunk over Sambuca.
LJT has joined #ruby
<havenwood>
I like having class break for tea.
<pipework>
workmad3: Anything else is just old apple juice, right?
Jiyuhen has quit [Ping timeout: 256 seconds]
<atmosx>
havenwood: you have a law school degree from Cambridge?
<workmad3>
atmosx: I've not drunk anything alcoholic for probably 2 years now :P
jimms has quit [Ping timeout: 272 seconds]
Jiyuhen has joined #ruby
<atmosx>
workmad3: you've been on therapy?
<workmad3>
atmosx: no... just stopped bothering to drink
loechel has joined #ruby
cjim_ has quit [Quit: (null)]
<atmosx>
workmad3: I see
psudoze has joined #ruby
<havenwood>
atmosx: Just a semester there as exchange. Got my JD stateside.
<workmad3>
atmosx: couldn't see the point anymore, all I ever really drank for was to make crowds of people tolerable :P
<shevy>
law school wheeee
<ytti>
i recall reading metastudy about alcohol consumption
<IceDragon>
shevy: something broke my YAML
<IceDragon>
>:
<shevy>
I should call him havenlawyer
<havenwood>
shevy: noooo
<shevy>
IceDragon EVERYTHING DOES
<IceDragon>
/usr/lib/ruby/gems/2.2.0/gems/basalt-0.12.2/lib/basalt/config/base.rb:18:in `load': undefined method `load_file' for Psych:Module (NoMethodError)
<workmad3>
shevy: how about lawyerwood?
<IceDragon>
no, something BROKE MY YAML
<shevy>
IceDragon especially if you save your yaml file in an ISO encoding
<ytti>
and that study concluded that risk drinkers are carrying only slightly worse health risks than people who don't drink at all
<atmosx>
IceDragon: you should be using JSON
<IceDragon>
SHIT DOESNT BREAK MY SHIT
<shevy>
lol
<shevy>
a gem called basalt. isn't that a volcano thingy?
<pipework>
Shit is stackable.
<atmosx>
havenwood: so you're like a 1-semester lawyer?
<IceDragon>
Its my gem for managing my mruby packages :(
tosbourn has joined #ruby
<shevy>
oh I see
RegulationD has quit []
<pipework>
They're typically FIFO. That is, Feces In Feces Out.
<shevy>
the sole mruby guy here, and it's a dragon
<atmosx>
hahah
GnuYawk has joined #ruby
<pipework>
shevy: I play with it. :(
<atmosx>
fifo
<workmad3>
ytti: I exercise my liver and kidneys with copious amounts of coffee to make up for the alcohol deficiency ;)
<IceDragon>
But it isn't the only one suffering from this, almost anything I using YAML before spazes out with this error after I updated all my gems
<pipework>
I feel like I'm talking about software projects I've been paid to hate/work on
<IceDragon>
*I was using with YAML
<pipework>
workmad3: That's disgusting.
<pipework>
Coffee without alcohol. Ew.
Pumukel has quit [Ping timeout: 256 seconds]
loechel is now known as Pumukel
<IceDragon>
jhass: noooooes
<atmosx>
workmad3: coffee is a strong anti-oxidant althought it gives a good shock to your nevrous system
Sid05 has quit [Ping timeout: 244 seconds]
<atmosx>
ops gf calls
<ytti>
workmad3, coffee also seems to be quite healthly
_2_Karesand has joined #ruby
<havenwood>
atmosx: Just a regular lawyer. I'm still admitted in federal courts and just on "special" status with the bar. Kinda like retired but if I needed to I could go active without taking the bar again.
<ytti>
afaik, finns consume most coffee per capita
<ytti>
by non-trivial margin
Anarch_ has joined #ruby
FernandoBasso has quit [Read error: Connection reset by peer]
<IceDragon>
jhass: we should sue these people and have them rename to YAMCL
<workmad3>
ytti: hmm, that list is pretty surprising... no italians, and the US seems pretty far down the list
<atmosx>
I mean the amount of capuccino's produced every morning in Italy is converging to +oo
hmnhf__ has joined #ruby
hmnhf_ has quit [Quit: Konversation terminated!]
<pipework>
What's +oo
<ytti>
workmad3, US has much cultural diversity
<ytti>
workmad3, and some of them are not big coffee drinkers
<pipework>
atmosx: ∞ you mean?
<ytti>
workmad3, also it's luxory product, so poorest people may not be able to afford to drink it copiously
tosbourn has quit [Ping timeout: 250 seconds]
<jhass>
IceDragon: oh, I didn't realize, mh
<IceDragon>
let le sueing commence !
<atmosx>
pipework: yes!
<workmad3>
ytti: I judge americans by the cultural stereotypes their TV imports into my brain... and that states that all americans drink double-shot, grande pumpkin spice frappacinos at every meal!
mjuszczak has quit []
<jhass>
but yaml wasn't popular in 2005, was it?
GnuYawk has quit [Ping timeout: 250 seconds]
<IceDragon>
actually I'm gonna figure out which gem is messing with my the standard library yaml
<IceDragon>
s/my//
<casshern2>
cucumber or rspec?
<atmosx>
so if anyone here gets sued, havenwood will defend him in court for free and we all can watch the butchery while eating tacos via some live streaming sinatra application?!
<atmosx>
Casshern2: these are not mutually exclusive.
mjuszczak has joined #ruby
ramfjord has joined #ruby
aryaching has quit []
<havenwood>
atmosx: I always felt like an imposter. I still do now, just a different field. :P
hmnhf has joined #ruby
RegulationD has joined #ruby
<workmad3>
havenwood: I sometimes feel like an imposter... then I remember that we let pipework in and all is good with the world again ;)
hmnhf__ has quit [Ping timeout: 256 seconds]
<atmosx>
havenwood: :-) nah, it's just a syndrome. You're fine.
ascarter has joined #ruby
freerobby has quit [Quit: Leaving.]
krisquigley has joined #ruby
zapata has quit [Ping timeout: 276 seconds]
Anarch_ has quit [Quit: WILL TROLL FOR FOOD]
ghr has quit [Ping timeout: 256 seconds]
<atmosx>
workmad3: I see posts like this https://news.ycombinator.com/item?id=9346730 and I understand why i get job offers... If this guy wants to teach a non-programmer 10 diff disciplines in one go and "throw them" to the market... well then, everybody can do it.
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
<pipework>
I have the worst imposter syndrome.
maximski has quit []
freerobby has joined #ruby
zapata has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
ascarter has quit [Max SendQ exceeded]
revoohc has quit [Quit: revoohc]
ascarter has joined #ruby
<havenwood>
Quick, let's use big fancy words that mean simple things so we know we belong. Polymorphism!
<atmosx>
pipework: I'm getting compliments all day long (from patients/clients) and still I think I suck. Basically I think I suck at anatomy and have a very mediocre grasp of pharmacylogy and pharmacognosy but apparently it works.
<atmosx>
pipework: I'm a pharmacist btw
<jhass>
AbstractSingletonFactoryBean!
ascarter has quit [Max SendQ exceeded]
maximski has joined #ruby
<workmad3>
jhass: Enterprise Service Bus!
okdas has quit [Changing host]
okdas has joined #ruby
maximski has quit [Max SendQ exceeded]
ascarter has joined #ruby
<atmosx>
I had a hard time understanding what the Singleton is, until I've read a good article about it.
jcutrell has quit [Quit: jcutrell]
<pipework>
atmosx: I've had a personal pharmacist before. Nice guy. I think he's dead though... far before his time.
krisquigley has quit [Ping timeout: 256 seconds]
<workmad3>
atmosx: and then you realised it was "Fancy wrapper around global variables so we don't feel bad about using it again"?
LJT has quit [Quit: Sleeping...]
maximski has joined #ruby
ascarter has quit [Max SendQ exceeded]
maximski has quit [Max SendQ exceeded]
<atmosx>
workmad3: well, no. LOL
ghr has joined #ruby
<atmosx>
workmad3: but that's a good description.
<pipework>
Whale, no.
<workmad3>
atmosx: that's the only thing I've ever seen singletons used for :P
<jhass>
to be fair it's actually a lazily initialized constant, most of the time
ta has joined #ruby
<pipework>
A singleton isn't necessarily about globals.
ascarter has joined #ruby
<atmosx>
lazily, what does lazily even mean?
<jhass>
on first request/access
<atmosx>
workmad3: see... What you started?
maximski has joined #ruby
<pipework>
It's about an object always returning the same shit even when you think you're asking for something else. There's also other stuff around mutexes/locks, but ehg
maximski has quit [Max SendQ exceeded]
<workmad3>
pipework: oh yeah, a good singleton is a threadsafe global variable!
ascarter has quit [Max SendQ exceeded]
<pipework>
workmad3: Admittedly.
failshell has quit [Remote host closed the connection]
mjuszczak has quit []
<atmosx>
Ruby is amazing. It's simple enough to write procedural code if you want to and complex enough to indulge into metaprogramming if you'd like to and talk all day long about abstract concepts.
ascarter has joined #ruby
<pipework>
atmosx: It's just making computers turn things off and on again quickly. We're just sophisticated IT people. :(
maximski has joined #ruby
<atmosx>
So can you share an ORM connection through multiple files in a Sinatra application ina thread-safe mode?
maximski has quit [Max SendQ exceeded]
<pipework>
atmosx: 'files'?
mjuszczak has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
<pipework>
We're all just participants and audience to the biggest con ever, reality./
ramfjord has joined #ruby
<workmad3>
atmosx: a) not sure why you think I'm a consultant :P b) I don't feel the need to try and apply meaning to your nonsense ;)
cpt_yossarian has quit [Read error: Connection reset by peer]
maximski has joined #ruby
<atmosx>
workmad3: ... that hurt my feelings.
<pipework>
workmad3: I think he started with 'con', but didn't think it was as funny as the subtlety of consultant.
maximski has quit [Max SendQ exceeded]
cpt_yossarian has joined #ruby
<workmad3>
atmosx: it's friday... go drink them better ;)
<atmosx>
workmad3: nah, I'll wait my gf and watch a movie.
<atmosx>
I'm too bored to get dressed and go out
maximski has joined #ruby
<pipework>
What's the opposite of consultant? Someone who knows what they hell they're doing, but doesn't make as much money.
<IceDragon>
shevy: gem psych 2.0.13, dunno who or what installed it, it overrode the system psych
<pipework>
You thought I was gonna say prosultant. I know it.
maximski has quit [Max SendQ exceeded]
<workmad3>
pipework: I was gonna say 'competent' personally
<IceDragon>
jhass: I figured out the yaml problem :3
<jhass>
IceDragon: you used bootstrap instead?
<atmosx>
pipework: Have you read the story of the '500 mile' email?
mengu has joined #ruby
<pipework>
atmosx: I'm illiterate, sir.
<atmosx>
500 miles email or something.
momomomomo has quit [Ping timeout: 272 seconds]
maximski has joined #ruby
<IceDragon>
jhass: Nah, I removed the rubygems psych, I have no idea where it came from all of a sudden
<atmosx>
pipework: well, we're chatting which implies reading.
maximski has quit [Max SendQ exceeded]
<pipework>
atmosx: TTS?
<pipework>
Maybe someone's taking dictation and typing for me?
<atmosx>
pipework: lol srsly?
<pipework>
Maybe I'm a superior being? (no chance, far too ginger)
<pipework>
atmosx: I mean, you can't really know, miaow can you?
Hijiri has joined #ruby
maximski has joined #ruby
<atmosx>
pipework: no, but I believe in statistics..
<workmad3>
atmosx: it's a well known 'fact' that you need a soul to read, and also a well known 'fact' that gingers have no souls!
<pipework>
atmosx: Do you know how to lie with them?
maximski has quit [Max SendQ exceeded]
<atmosx>
so the chances of you being a cat are kinda .. outside the bell.
<atmosx>
pipework: of course
<pipework>
atmosx: I think you've convinced yourself of the lie that statistics is information and not data.
<atmosx>
pipework: choose the sample/approach and you're all done.
<workmad3>
atmosx: without a soul, you may be able to stare at words, garner understanding and produce responses... but you're not reading, because only 'true' people with 'souls' can achieve that transcedant state!
bradleyprice has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
fabrice31 has joined #ruby
<pipework>
workmad3's a low level ginger. I'm not sure if that means he has some soul, or not. I'm first class. Ginger as fuck.
cjim_ has joined #ruby
<atmosx>
pipework: I think that you're making too many assumptions there. That said statistics can be extremely useful and help you turn data in to real/useful info if you apply them correctly.
werelivinginthef has joined #ruby
<workmad3>
atmosx: are you a frequentist or a bayesian?
maximski has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
maximski has quit [Max SendQ exceeded]
silentpost has quit [Ping timeout: 250 seconds]
bradleyp_ has quit [Ping timeout: 252 seconds]
<pipework>
workmad3: I'm a liar, like everyone who comports themselves as someone who knows statistics.
maximski has joined #ruby
<atmosx>
workmad3: depends on the situation.
maximski has quit [Max SendQ exceeded]
sevvie has joined #ruby
<atmosx>
pipework reminds of Socrates.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx>
he knows that he doesn't know (but still knows more than anyone else, so apparently eveyone else doesn't know shit... it's a vicious cycle).
<workmad3>
atmosx: so you think that probabilities actually have a different fundamental meaning based on 'situation'?
maximski has joined #ruby
<atmosx>
workmad3: based on factors
maximski has quit [Max SendQ exceeded]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<workmad3>
atmosx: ok... and how do you judge which factors influence what the meaning of a probability is in a particular situation? :P
a5i has quit [Quit: Connection closed for inactivity]
<workmad3>
atmosx: note, we're not talking about what the probabilities are, but what the abstract concept 'probability' actually means
maximski has joined #ruby
cjim_ has quit [Read error: Connection reset by peer]
cjim_ has joined #ruby
maximski has quit [Max SendQ exceeded]
fabrice31 has quit [Ping timeout: 256 seconds]
maximski has joined #ruby
<atmosx>
workmad3: I'm not sure I understand the question at this point
maximski has quit [Max SendQ exceeded]
dblessing has joined #ruby
<workmad3>
atmosx: heh :) I'm not sure I do either tbh ;)
dblessing has quit [Client Quit]
<workmad3>
atmosx: I just thought I'd challenge you on the 'I believe in statistics' statement and picked the standard "frequentist vs bayesian" philosophical interpretation to challenge you on :P
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<atmosx>
workmad3: Well mys tatement still stands: I believe in the power of probability in order to preduct the next outcome *when applied correctly*.
naftilos76 has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
maximski has joined #ruby
<workmad3>
atmosx: personally, I think most probabilites are really statements about a particular observer's lack of knowledge of a situation, rather than a fundamental attribute of the situation being observed
maximski has quit [Max SendQ exceeded]
_honning_ has quit [Ping timeout: 244 seconds]
<workmad3>
atmosx: which is more of a bayesian interpretation... but it does seem that there are some (but not many) truly objective probabilities in the universe too, such as radioactive decay, where the frequentist interpretation may be applicable
maximski has joined #ruby
<mjuszczak>
Is there a way to take a string and just have the first 15 characters of it?
<atmosx>
workmad3: I seriously though thought you were a consultant.
<pipework>
mjuszczak: Have you looked at the documentation for String?
<mjuszczak>
reading through it now
<pipework>
Or the guhzillionty google results?
brb3 has quit [Quit: <.<]
<mjuszczak>
but nothing has come up as obvious. Saw chop and chomp.
<jhass>
mjuszczak: String#[]
tier has quit []
joonty has joined #ruby
<workmad3>
atmosx: heh :) I've done stuff that's pretty 'consultancy' at times (because of some of the projects we've had in), but I'm just a developer... also about to change jobs, so pretty soon I'll really just be a developer all the time :P
<undeadaedra>
Then, you can create such variables with obj = Name.new
<undeadaedra>
or, if you want to set what is inside, obj = Name.new(value_for_a, value_for_b)
jeff_laplante has quit [Remote host closed the connection]
<undeadaedra>
and then access through obj.a and obj.b
maximski has quit []
Asher has quit [Ping timeout: 245 seconds]
<undeadaedra>
I hope this at least makes you see it better ?
bigmac__ has joined #ruby
apoplexy has quit [Ping timeout: 264 seconds]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
<jhass>
Ellis: you can skip over them for now. In Ruby Struct is just a shorthand to write a class that does nothing but contain a few attributes. Somebody might nitpick you for writing such a class instead of using Struct, but that's all
<Ellis>
undeadaedra: ty for explaining it i appreciate it
<Ellis>
jhass: thanks
bigmac has quit [Ping timeout: 264 seconds]
krisquigley has joined #ruby
charliesome has quit [Ping timeout: 252 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
bigmac has joined #ruby
<undeadaedra>
Ellis: :)
bigmac_ has quit [Ping timeout: 255 seconds]
bigmac_ has joined #ruby
cpt_yossarian has quit [Ping timeout: 264 seconds]
SouL_|_ has joined #ruby
jobewan has quit [Quit: Leaving]
pika_pika has quit [Ping timeout: 245 seconds]
bigmac__ has quit [Ping timeout: 245 seconds]
mjuszczak has quit []
bigmac__ has joined #ruby
mitchellhenke has joined #ruby
bigmac has quit [Ping timeout: 250 seconds]
krisquigley has quit [Ping timeout: 245 seconds]
Joufflu has quit [Ping timeout: 245 seconds]
bigmac has joined #ruby
bigmac_ has quit [Ping timeout: 265 seconds]
vivekananda has quit [Ping timeout: 244 seconds]
bigmac_ has joined #ruby
mengu has joined #ruby
bigmac__ has quit [Ping timeout: 264 seconds]
fnordperfect has quit [Ping timeout: 244 seconds]
bim has joined #ruby
bigmac__ has joined #ruby
mjuszczak has joined #ruby
bigmac has quit [Ping timeout: 264 seconds]
bigmac has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
last_staff has joined #ruby
bigmac_ has quit [Ping timeout: 256 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
bigmac_ has joined #ruby
silentpost has joined #ruby
workmad3 has joined #ruby
Porfirium has quit [Quit: Porfirium]
bim has quit [Ping timeout: 255 seconds]
jeramy_s has joined #ruby
bigmac__ has quit [Ping timeout: 272 seconds]
snath has quit [Ping timeout: 252 seconds]
bigmac__ has joined #ruby
greenbagels has joined #ruby
sinkensabe has quit [Remote host closed the connection]
bigmac has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
riotjones has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
bigmac_ has quit [Ping timeout: 272 seconds]
bigmac has joined #ruby
ndrei has joined #ruby
bigmac_ has joined #ruby
bigmac__ has quit [Ping timeout: 264 seconds]
bigmac__ has joined #ruby
oddskill is now known as oddskill_away
fabrice31 has quit [Ping timeout: 265 seconds]
mjuszczak has quit []
silentpost has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
silentpost has joined #ruby
juanpablo____ has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
bigmac has quit [Ping timeout: 264 seconds]
bigmac has joined #ruby
keen____ has quit [Read error: Connection reset by peer]
bigmac_ has quit [Ping timeout: 265 seconds]
reinaldob has joined #ruby
bigmac_ has joined #ruby
bigmac__ has quit [Ping timeout: 276 seconds]
juanpablo____ has quit [Read error: Connection reset by peer]
juanpablo____ has joined #ruby
keen____ has joined #ruby
bigmac__ has joined #ruby
juanpablo___ has quit [Ping timeout: 276 seconds]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigmac has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
mozzarella has quit [Quit: WeeChat 1.1.1]
reinaldob has quit [Ping timeout: 244 seconds]
mozzarella has joined #ruby
WajidKagzi has joined #ruby
bigmac has joined #ruby
bigmac_ has quit [Ping timeout: 245 seconds]
juanpablo____ has quit [Ping timeout: 264 seconds]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
<dudedudeman>
is that one better/worse? does it matter? lol
<weaksauce>
the api is excellent.
<weaksauce>
just sharing links is bad
<ramfjord>
the guides are less in depth and maybe slightly less canonical
<weaksauce>
the search on the api is excellent
<weaksauce>
the guides are an explanation.
<dudedudeman>
sorry for just the link..
<ramfjord>
I believe the guides are literally the rdoc on the actual code
<ramfjord>
the api*
djbkd_ has joined #ruby
[1]bergice has quit [Read error: Connection reset by peer]
threh has quit [Ping timeout: 250 seconds]
<dudedudeman>
great info, thank you
davidhq has joined #ruby
<dudedudeman>
i guess it makes much, much more sense for the associations to live outside of the migrations. i'm not sure why i thought they be included together
<weaksauce>
dudedudeman no I mean't the way you have to share a link to a page on the api is bad
mostlybadfly has joined #ruby
<weaksauce>
not that you linking to the guides was bad
<dudedudeman>
ah ah.
x1337807x has joined #ruby
<dudedudeman>
i see what you're meaning, with the scrolling all the way back to top and such
GaryOak_ has quit [Remote host closed the connection]
<dudedudeman>
are my tables supposed to be plural? or are my classes supposed to be plural
<weaksauce>
a model is not plural but the table is.
djbkd_ has quit [Ping timeout: 252 seconds]
<weaksauce>
User.all vs. Users.all
Pupeno_ has joined #ruby
<dudedudeman>
ok. i had that correct then
Pupeno has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
dx7 has quit [Ping timeout: 244 seconds]
<dudedudeman>
it's telling me 'Monitors' is uninitialized but 'Monitors' by itself is no where in my code
<dudedudeman>
i have 'create_table :monitors', but i'm understanding that should be plural
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 250 seconds]
dx7_ has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
vdamewood has joined #ruby
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
rbennacer has joined #ruby
xenokiller has quit [Ping timeout: 264 seconds]
davidhq has joined #ruby
Takle has quit [Remote host closed the connection]
<weaksauce>
yeah you create table plural but use the actual singular model.
<weaksauce>
imo that's the dumbest part of rails
mozzarella has quit [Quit: WeeChat 1.1.1]
Porfa has joined #ruby
mozzarella has joined #ruby
<dudedudeman>
ah ah ah. right on. i just realized i had named my migration classes incorrectly and they did not match my names of my migrations
jonatin has joined #ruby
musashi1 has joined #ruby
blackmesa has quit [Quit: WeeChat 1.1.1]
<weaksauce>
why are you using AR and not rails?
<dudedudeman>
as you can probably tell, i am newer to all of this
xenokiller has joined #ruby
<dudedudeman>
i work in a building where one of our web development teams has our entire backend built in sinatra and AR
<dudedudeman>
and one of the dudes from that team is mentoring me
<dudedudeman>
so i decided instead of building a blog or another beginner type project, that i would wade throlugh building an application that actually could get used at work
<dudedudeman>
i currently don't work on that team, i'm just learning from them
<dudedudeman>
but, it also gives me the excuse of being able to work on it during down time at work. :)
<dudedudeman>
so i'm just trying to build it and learn within the constraints of the environment here
nahtnam has joined #ruby
<weaksauce>
what are you trying to build? a website?
<dudedudeman>
umm, eventually it will be that i guess.
<shortdudey123>
nvm, got it... used NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install
<dudedudeman>
we have these monitors that i have to calibrate at work. i currently just calibrate them and then write down the measurement on paper
<dudedudeman>
so i'm wanting to make that digital, and have a database i can use to track their calibrations, when the last time they were calibrated at, how many times it took to get them calibrated, and so on
lordkryss has joined #ruby
<dudedudeman>
i'll eventually want it to send me emails on which monitors to calibrate next based on their time stamp
<weaksauce>
rails would be a good way to go.
cjim_ has quit [Quit: (null)]
<dudedudeman>
i agree. :(
<weaksauce>
that's basically what rails was built for
<dudedudeman>
as stupid as this sounds, i plan on building the entire thing in sinatra using activerecord, launching it, and then building the exact same app in rails as a learning exercise
<pipework>
You can tell that pipecork isn't me because I'd never write code that horrible unless I sobered up completely.
mjuszczak has quit []
jeromelanteri has joined #ruby
juanpablo____ has joined #ruby
<weaksauce>
curious.
<weaksauce>
good luck!
fryguy9 has quit [Quit: Leaving.]
<dudedudeman>
thank you!
<dudedudeman>
i know that might be a bass ackwards way of doing it
<dudedudeman>
i guess i'm coming at it from the angle where i'd like to know what i'm actually doing when i type in rails commands. like what's actually happening under the hood
<dudedudeman>
thank you so much @weaksauce
<dudedudeman>
that got me where i needed to be so i can finally go home for the night. lol.
jottr has quit [Ping timeout: 245 seconds]
<weaksauce>
you don't have to use the generators/scaffolding to get work done in rails and when you do that it tells you exactly what it's doing anyway. :)
<dudedudeman>
i'll sign on later after doing some more work
wallerdev has joined #ruby
shazaum has joined #ruby
bobbrez has joined #ruby
<weaksauce>
no problem dudedudeman
<dudedudeman>
ugh! i just need to do it then
<dudedudeman>
ha
<dudedudeman>
no reason to be scared i guesss
djbkd has quit [Remote host closed the connection]
<weaksauce>
well. have good backups at least ;)
jottr has joined #ruby
<dudedudeman>
ha
x1337807x has quit [Ping timeout: 240 seconds]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
<pipework>
weaksauce: Don't back down on backups.
<dudedudeman>
i use cloud9 for my development environment, and have backups of that as well. so, it would take a couple major failures to lose my stuff. and github
juanpablo____ has quit [Ping timeout: 245 seconds]
<dudedudeman>
which reminds me, i need to commit and push. thank you! ha
snockerton has quit [Quit: Leaving.]
<pipework>
dudedudeman: Huh, people actually use that as their primary development environment for personal use?
<pipework>
Fascinating.
<dudedudeman>
cloud9?
snath has joined #ruby
snath has left #ruby [#ruby]
<pipework>
correct
<dudedudeman>
ah. Well, here's why i use it
<dudedudeman>
i get downtime at work when i can work on code, which is great. however, i'm on a fedora box that is locked down by my sysadmin(typical). i use cloud9 because i get an ubuntu box with full sudo privileges that i can access through chrome without having to bug my sysadmin every time i need something downloaded or installed
Channel6 has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
<terrellt>
Not a developer?
<terrellt>
A full time paid developer*
<dudedudeman>
and when i work at home, it's seamless. the same things i was staring at before leaving the office are there right for me when i get home
<dudedudeman>
no, i am not. that is my current goal/dream/passion in life. to get a full time job doing that
<pipework>
dudedudeman: Hm, I can understand that a bit. I just would rather have a more local scene. If you had ssh, you could carry around a VM in your pocket.
<pipework>
dudedudeman: You can do it! Just don't suck.
<terrellt>
That seems good to me then.
<dudedudeman>
haha. i'm working on it!
<dudedudeman>
i have a few freelance clients, and have been at 'code' for about a year and a half
pietr0 has quit [Quit: pietr0]
<dudedudeman>
i'm getting there, and go to weekly/monthly meetups in my area that have been great. i have my code mentor here at the office that is awesome. and i'm working on a project that i feel could be useful to me and those that come after me in this position.
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<weaksauce>
I mean't the database if you are touching anything important
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<weaksauce>
but yeah code backups too
Yzguy has quit [Read error: Connection reset by peer]
<dudedudeman>
oh.. yeah, it's just an sqlite3 db at the moment. if this gets pushed in to production at work, it'll get dumped to a mongodb