<dudedudeman>
oh i agree. i work in an animation studio, and the app would be built to be a part of our already existing production pipeline
aghalarp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d10n-work has joined #ruby
casadei has quit [Remote host closed the connection]
<dudedudeman>
mongo is already in place here, auto back ups, optimization, all that
Yzguy has joined #ruby
Yzguy has quit [Max SendQ exceeded]
<dudedudeman>
but truth be told, i have no reason to even think about that at this point. i need to get the thing up and working, first.
<pipework>
Oh dear, switching from sqlite3 to mongo when going to production?
<pipework>
You, sir, must like to live dangerously.
<dudedudeman>
BRING IT ON
<pipework>
That or you hate data and lose it eagerly.
<dudedudeman>
psh. data
<weaksauce>
lol
horsecowdog has quit [Remote host closed the connection]
<pipework>
"Just ones and zeroes. I mean, here's your compressed backup, son: 0,1"
bobbrez has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<undeadaedra>
Wait
<dudedudeman>
HA
* pipework
hands dudedudeman exactly one electron
<undeadaedra>
how did you get my photos archive
<pipework>
Go build the universe.
<undeadaedra>
are you the NSA, pipework ?
rbennacer has quit [Ping timeout: 264 seconds]
<pipework>
undeadaedra: I can not confirm nor deny that I've seen your dick pics, but you might want to trim a bit.
baweaver has joined #ruby
<dudedudeman>
oh... NSA... i'm out.
<dudedudeman>
PEACE
<dudedudeman>
:P
_honning_ has joined #ruby
dudedudeman has quit [Quit: Page closed]
<undeadaedra>
pipework: Trim my dick? oO
<pipework>
undeadaedra: around the area.
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
gregf1 has quit [Quit: WeeChat 1.0.1]
bigmac has joined #ruby
Ellis has quit [Quit: Ellis]
meschiv2 has quit [Ping timeout: 264 seconds]
Ellis has joined #ruby
mleung has quit [Quit: mleung]
Ellis has quit [Client Quit]
bigmac_ has joined #ruby
kblake has quit [Remote host closed the connection]
bigmac__ has joined #ruby
aghalarp has joined #ruby
krisquigley has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
Yzguy has joined #ruby
Yzguy has quit [Max SendQ exceeded]
havenwood has quit [Remote host closed the connection]
baweaver has joined #ruby
bigmac has quit [Ping timeout: 255 seconds]
cpt_yossarian has joined #ruby
rbennacer has joined #ruby
bigmac_ has quit [Ping timeout: 250 seconds]
DEA7TH has quit [Ping timeout: 245 seconds]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
bigmac__ has quit [Ping timeout: 272 seconds]
gusrub has quit [Quit: Leaving]
yh has joined #ruby
colorisco has quit [Ping timeout: 248 seconds]
JoshGlzBrk has joined #ruby
krisquigley has quit [Ping timeout: 276 seconds]
mjuszczak has joined #ruby
<shevy>
pipework is the ultimate sniffer
<shevy>
he literally puts his nose into everywhere
maximski has joined #ruby
<undeadaedra>
everywhere ( ͡° ͜ʖ ͡°)
knikolov has quit [Quit: WeeChat 1.2-dev]
bkxd has quit [Ping timeout: 264 seconds]
rkat has joined #ruby
rkat has left #ruby [#ruby]
davedev24_ has quit [Ping timeout: 256 seconds]
yh has quit [Ping timeout: 256 seconds]
maximski has quit [Client Quit]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
mjuszczak has quit [Ping timeout: 255 seconds]
MatthewsFace has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
Pupeno_ has quit [Remote host closed the connection]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
Sgeo has joined #ruby
knikolov has joined #ruby
lewix has joined #ruby
davedev24_ has joined #ruby
fabrice31 has joined #ruby
<wallerdev>
hey guys
<wallerdev>
what are you doing this weekend
bigmac has joined #ruby
<undeadaedra>
’night
Sgeo has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
bigmac_ has joined #ruby
baweaver has quit [Remote host closed the connection]
lloyd is now known as Lloyd
fabrice31 has quit [Ping timeout: 265 seconds]
bigmac has quit [Ping timeout: 252 seconds]
bim has joined #ruby
silentpost has quit [Ping timeout: 256 seconds]
<SirFunk>
So, Inheritance is using '<' composition is using 'include'. Is there a name for pulling out common functionality into a new class and just instantiating and using it?
doodlehaus has joined #ruby
RegulationD has joined #ruby
evanjs has joined #ruby
cpt_yossarian has quit [Read error: Connection reset by peer]
evanjs has quit [Remote host closed the connection]
bim has quit [Ping timeout: 245 seconds]
rbennacer has quit [Remote host closed the connection]
Feyn has joined #ruby
Ellis has joined #ruby
Ellis has quit [Client Quit]
RegulationD has quit [Ping timeout: 246 seconds]
<shevy>
wallerdev mostly I just prepare for upcoming exams in the next week; (1) technical ecology, and (2) immunology and allergies (mostly food-allergies)
<wallerdev>
cooooool
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev>
i dont have any plans
<wallerdev>
probably gonna play video games
sohrab has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
sohrab has joined #ruby
<weaksauce>
SirFunk refactoring something into a utility class?
vivekananda has quit [Quit: Leaving]
vivekananda has joined #ruby
<weaksauce>
SirFunk if you can do that it means that you are making the object structure more ideal object oriented practices. each class should have one concern etc.
jenrzzz has quit [Ping timeout: 264 seconds]
<weaksauce>
if you do that and it makes sense to*
vivekananda has quit [Remote host closed the connection]
happyface has quit [Quit: Connection closed for inactivity]
Megtastique has quit []
vivekananda has joined #ruby
<wallerdev>
yeah it's not really a "design pattern" it's just not copy pasting code
_1_cantalicio2 has joined #ruby
<SirFunk>
weaksauce: yeah. I just wasn't sure if there was a good name to talk about that pattern
<SirFunk>
Generally inheritance and/or composition feel icky to me
<SirFunk>
then you end up with methods in the child class calling methods that you have no idea where they come from until you start digging into the includes/parent classes
<SirFunk>
which are themselves often a few levels deep
<SirFunk>
I'd rather just use some other class that encapsulates the logic and is named for what it does
rbennacer has joined #ruby
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
jefus has joined #ruby
xenokiller has quit [Ping timeout: 264 seconds]
<weaksauce>
SirFunk I don't think composition is when you use mixins
robustus|Off has joined #ruby
robustus|Off is now known as robustus
<weaksauce>
it's more of a when you have a separate class that you use.
<weaksauce>
has_a relationships vs. is_a relationships (composition vs. inheritance)
_1_cantalicio2 has quit [Remote host closed the connection]
<weaksauce>
bike has a wheel is the canonical example I think
Channel6 has quit [Quit: Leaving]
wallerdev has quit [Ping timeout: 264 seconds]
lidenskap has quit [Remote host closed the connection]
lidenskap has joined #ruby
maximski has joined #ruby
A205B064 has quit [Ping timeout: 244 seconds]
teddyp1cker has joined #ruby
Rickmasta has joined #ruby
lidenskap has quit [Remote host closed the connection]
sohrab has quit [Ping timeout: 255 seconds]
tcrypt has quit [Ping timeout: 246 seconds]
sohrab has joined #ruby
teddyp1cker has quit [Ping timeout: 245 seconds]
jeramy_s has joined #ruby
bricker has quit [Quit: leaving]
aef has quit [Remote host closed the connection]
silentpost has joined #ruby
slyv has joined #ruby
aef has joined #ruby
maximski has quit []
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
dorei has quit []
poguez_ has quit [Quit: Connection closed for inactivity]
kblake has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Coraline>
orb: AFAIK I'm the only Coraline in the Ruby world.
<Coraline>
Too late
Deele has quit [Ping timeout: 256 seconds]
redlegion has quit [Quit: leaving]
redlegion has joined #ruby
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
silentpost has quit [Ping timeout: 240 seconds]
lethosor|away has quit [Quit: Connection closed for inactivity]
wldcordeiro has quit [Ping timeout: 245 seconds]
<FernandoBasso>
I'm at 78% CodeCademy Ruby tutorial.
rbennacer has quit [Remote host closed the connection]
{orb} has joined #ruby
<kubunto>
FernandoBasso: whats in the codecademy tutorial?
<FernandoBasso>
I found Poignant amazing, but in the attempt to make it an entertaining book, it is also very 'blah blah'-like, and I am going through a period of very limited free time. CodeCademy seemed more to the point.
<FernandoBasso>
But I intend to go through Poignant in the future.
<kubunto>
FernandoBasso: again what was in the tutorial
zubov has joined #ruby
<FernandoBasso>
kubunto: Basic stuff.
<kubunto>
math, string, set stuff, flow control?
<FernandoBasso>
I especially liked the blocks vs procs vs lambdas section (which I'll have to review and practice again, to be fair)
<FernandoBasso>
kubunto: Yep.
<FernandoBasso>
I'm getting started at the classes and objects part right now.
<FernandoBasso>
I believe I'll have finished this course till Monday.
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maximski has joined #ruby
benlieb has quit [Ping timeout: 245 seconds]
Sgeo has joined #ruby
krisquigley has joined #ruby
<FernandoBasso>
kubunto: How have you learned Ruby? What about you, Coraline?
<kubunto>
FernandoBasso: i took up a project and choose to write in ruby
icebourg has joined #ruby
<kubunto>
decided*
<FernandoBasso>
I'll try to make an ftp client for vim. I'll probably try Ruby for that.
<Coraline>
I started with Rails in 2007, then realized I needed to know Ruby, so I started in on the fundamentals of the language.
hannahkoala has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<FernandoBasso>
But how? Reading what?
<Coraline>
Mainly by trying things out and reading the docs
<kubunto>
i have been in school since 2010 learning the basics of programming
<Coraline>
I learn best by doing a project, personally
<kubunto>
^
silentpost has joined #ruby
<FernandoBasso>
I finished uni last year. I'm from brazil and unis suck around here... So, I can't say I learned much there.
<FernandoBasso>
Coraline: I think I am like that, but when I engage in trying some real project, I feel disheartened and it always seems I have to learn the languages more first before really trying real projects. I guess I'll have to change that.
tosbourn has joined #ruby
<kubunto>
Coraline: does Ruby have a lot to offer for web data analysis
<Coraline>
kubunto: depends on your goals? It's pretty powerful at munging and good for data structures, so e.g. processing logs would be a good use case.
<Coraline>
FernandoBasso: start small?
zubov_ has joined #ruby
<kubunto>
Coraline: funny you say that, first project in ruby was to do a log parser
zubov has quit []
<Coraline>
:)
<kubunto>
i liked having regex native to ruby
<kubunto>
(python does not)
krisquigley has quit [Ping timeout: 264 seconds]
maximski has quit []
<FernandoBasso>
Coraline: :)
Filete has joined #ruby
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
tosbourn has quit [Ping timeout: 250 seconds]
<FernandoBasso>
I'll probably engage in a project that parses real state websites to create a huge portal of apartments, houses, properties etc. It will be a web scraper, or something like that.
<kubunto>
Coraline: how long have you been using ruby?
<FernandoBasso>
It seems ruby is my best bet for that (with nokogiri).
evanjs has quit [Remote host closed the connection]
juanpablo____ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bim has quit [Ping timeout: 256 seconds]
axl_ has quit [Quit: axl_]
lemur has joined #ruby
<kubunto>
brb
<kubunto>
wanna test something
kubunto has quit [Quit: brb]
kubunto has joined #ruby
<kubunto>
still have the issue
amystephen has quit [Quit: amystephen]
juanpablo____ has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
lewix has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<kubunto>
nvm
<silentpost>
window size 3
<silentpost>
oops
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk has quit [Quit: yawn]
<zubov_>
kubunto: remove self from your def or call the method directly as you do not need to new it up first
<kubunto>
zubov_: which file
<zubov_>
kubunto: it more or less acts like a static method in java if it has self in from of it
<zubov_>
from=front
<zubov_>
[1] pry(main)> class Test
<zubov_>
[1] pry(main)* def self.print
<zubov_>
[1] pry(main)* puts 'hello'
<zubov_>
[1] pry(main)* end
<zubov_>
[1] pry(main)* end
<zubov_>
=> :print
<zubov_>
[2] pry(main)> Test.print
<zubov_>
versus
<zubov_>
[3] pry(main)> class Test1
<zubov_>
[3] pry(main)* def print
<zubov_>
[3] pry(main)* puts 'hi'
<zubov_>
[3] pry(main)* end
<zubov_>
[3] pry(main)* end
<zubov_>
[6] pry(main)> t = Test1.new
<zubov_>
=> #<Test1:0x007fb3e31de518>
<zubov_>
[7] pry(main)> t.print
<zubov_>
hi
jottr has quit [Ping timeout: 246 seconds]
turtil has quit [Quit: WeeChat 1.1.1]
vdamewood has joined #ruby
turtil has joined #ruby
Sgeo has quit [Ping timeout: 244 seconds]
<kubunto>
does the new method get called on initialize?
<zubov_>
you got this
<zubov_>
parser = Parser.new
<zubov_>
parser.parse_date(date)
<kubunto>
i moved the Parser.new to the intialization of a fileparser class
Tungki has quit [Read error: Connection reset by peer]
<kubunto>
but it doesnt seem to get hit
<kubunto>
pushing chage
<kubunto>
there we go
<zubov_>
but you got this in the other class
<zubov_>
def self.parse_date(date)
<kubunto>
i changed that to just parse_date
* kubunto
facepalms
<zubov_>
:)
topher has joined #ruby
<kubunto>
ok got hte parser initialized, but still got the same thing as i did before i got that fixed
<kubunto>
parse_date does not exist when it does
Guest5201 has quit [Ping timeout: 272 seconds]
tiago has joined #ruby
michael_mbp has quit [Excess Flood]
tiago is now known as Guest3271
michael_mbp has joined #ruby
Kricir has joined #ruby
<zubov_>
go back to your version before the last push except for remove the self in front parse_date(date)
n80 has quit [Quit: n80]
<kubunto>
TIL why not to use git to change stuff while trouble shooting
<zubov_>
initialize is the constructor for ruby classes/objects
CloCkWeRX has joined #ruby
Kricir has quit [Client Quit]
topher has quit [Quit: Page closed]
<kubunto>
what should the line say for the parse_date
<zubov_>
if you reverted back to the original then just parse_date(date)
FernandoBasso has quit [Quit: leaving]
maximski has joined #ruby
teddyp1cker has joined #ruby
<zubov_>
you are newing that up in the Fileparser class
longfeet has joined #ruby
pullphinger has joined #ruby
<kubunto>
it is jsut parse_date now
<zubov_>
as a general rule of thumb you should also name your file the same as your class name make it easier down the road
tjbiddle has joined #ruby
casadei has joined #ruby
teddyp1cker has quit [Ping timeout: 246 seconds]
vdamewoo_ has joined #ruby
vdamewood has quit [Ping timeout: 248 seconds]
ujihisa has joined #ruby
vdamewoo_ is now known as vdamewood
braincrash has quit [Quit: bye bye]
vt102 has quit [Remote host closed the connection]
casadei has quit [Ping timeout: 250 seconds]
tjbiddle has quit [Quit: tjbiddle]
linoj has quit [Quit: linoj]
sankaber has joined #ruby
braincrash has joined #ruby
coderhs has joined #ruby
rajeshchawla has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
coderhs has quit [Client Quit]
babykosh has quit [Quit: babykosh]
WajidKagzi has joined #ruby
lethosor|away has joined #ruby
Nuck has joined #ruby
WajidKagzi has quit [Ping timeout: 248 seconds]
<Nuck>
I'm trying to break up a class into small testable portions by splitting it into modules I can then include into the class, right? Is there a good pattern for encapsulating things like helper methods internal to a method?
<Nuck>
Or is what I'm doing a code smell?
hgl has quit [Read error: Connection reset by peer]
redlegion has quit [Quit: Ded]
Deele has joined #ruby
hgl has joined #ruby
Igorshp has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
silentpost has quit [Ping timeout: 248 seconds]
diegoviola has joined #ruby
Aswebb_ has joined #ruby
kwd has quit [Remote host closed the connection]
silentpost has joined #ruby
djbkd has joined #ruby
maximski has quit []
Igorshp has quit [Remote host closed the connection]
lidenskap has joined #ruby
<kubunto>
my god classes are a pain in the ass
<kubunto>
nothing should be this difficult
markholmes has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
nym has quit [Quit: Connection closed for inactivity]
<Nuck>
classes are difficult?
<kubunto>
for me it is
<Nuck>
I hope you mean learning-classes and not object-classes
<kubunto>
i mean object classes in rb
<Nuck>
What's the problem? Understanding how they work in Ruby or understanding classes as a concept? o_o
<kubunto>
Ruby
<kubunto>
i can do objects in java in my dreams
<kubunto>
or C#
<Nuck>
Oh. That would explain why you have trouble in Ruby
<diegoviola>
isn't classes just a way to group methods to a specific context?
<kubunto>
diegoviola: yes
<Nuck>
C# and Java hail from the C++ line of OOP while Ruby hails from the Smalltalk camp
<kubunto>
Nuck: i can even do it in python
<diegoviola>
what's so difficult to understand about that?
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Nuck>
I think Python hails from the C++ camp too, but I don't use Python enough to say for sure
<kubunto>
diegoviola: ok, full disclosure i am a 5th year software engineering student
<kubunto>
i understand a lot about comp sci
<kubunto>
any way i think i am going to shelf this and attack it in a few days
<kubunto>
i am clearly frustrated beyond help
<Nuck>
Ruby classes are simple enough in premise as long as you don't try to dig too deep into eigenclasses and such
<diegoviola>
so think of a class as a context?
<kubunto>
Nuck: i am having initialization issues
<Nuck>
Once you accept that every class is an instance of the Class class, pretty much everything falls into place
<Nuck>
initialization issues? o_o
<Nuck>
But... it's just def initialize?
<kubunto>
not def new?
<Nuck>
Nope
<Nuck>
If you override the 'new' method, you'll remove the Ruby runtime's own allocation stuff
<Nuck>
So it's 'initialize' inside the class and 'new' outside (because new calls the initialize method itself)
<kubunto>
pardon my language but FOR FUCKS SAKE
<kubunto>
tis reaction of a senior programming student when it finally works
<Nuck>
haha
<Nuck>
Doesn't matter how old you are, you'll always make mistakes like that
<kubunto>
esp if you get into a new language
<Nuck>
Or worse ones. I almost committed a sentence about golden showers into our codebase the other day
<kubunto>
hahahahaha
<Nuck>
It wasn't even legal code, it just got in there when my focus was wrong
Aswebb_ has quit [Remote host closed the connection]
willharrison has joined #ruby
<Nuck>
I once actually *did* commit a couple extremely offensive expletives I put into the codebase when I got pissed at it and started throwing debugger logs everywhere
Aswebb_ has joined #ruby
<Nuck>
That was embarassing to explain to the boss
<kubunto>
damn
<Nuck>
Learned my lesson real fast about using stuff like that
<Nuck>
Now my log messages are single letters
ajpocus has joined #ruby
apoplexy has quit [Ping timeout: 246 seconds]
sankaber has quit [Read error: Connection reset by peer]
<kubunto>
Nuck: should mention, there is no real documentation associated with classes that suggest anything about initialize
<Nuck>
There's still better stuff like java.plaf.nimbus.InternalFrameTitlePaneInternalFrameCloseButtonBoxInternalFrameInternalFrame
<Nuck>
Don't remember the exact class
gr33n7007h has quit [Ping timeout: 256 seconds]
<lemur>
Yeah, but you get the general point in it.
<Nuck>
yeah lol
hmnhf has joined #ruby
<lemur>
that's why I straight refuse to touch Java
hmnhf__ has quit [Ping timeout: 264 seconds]
<Nuck>
I find the biggest thing I struggle with in Ruby is hiding things
<c-c>
what
<lemur>
send :D
<Nuck>
I've always been rather meticulous about what methods I expose where
<lemur>
private not working?
<zubov_>
that was what I was wondering
<c-c>
sound like you shouldn't expose the things in the first place
ramfjord has joined #ruby
<Nuck>
Well, in a Class that's find and dandy, but now I'm trying to break up Classes into pieces
ItSANgo_ has quit [Ping timeout: 264 seconds]
<Nuck>
encapsulated pieces of code in Modules
fabrice31 has joined #ruby
<c-c>
variables in modules are fine
<Nuck>
Yeah but, what about helper methods?
<lemur>
private is not class exclusive.
<jud>
anyone done a hack day at their company?
<c-c>
imo, one's "app" should declare one single global
<Nuck>
But aren't the private methods accessible in the Class?
<c-c>
no matter if js or ruby
<Nuck>
the class that mixes in the thing?
<c-c>
one, max
<Nuck>
c-c: One global is one too many
<c-c>
one global is fine
<lemur>
jud: Yeah, why?
robbyoconnor has joined #ruby
<lemur>
c-c: don't start a flame war on that one.
<jud>
lemur, looking for ideas on what worked and what didn't. plenty of blogs but they all come with an implied corporate filter
<c-c>
well, one global will not cause any measurable negative effect
<Nuck>
c-c: Technically JavaScript only has one global
<Nuck>
It's called "window"
<c-c>
no
<Nuck>
We see how well that worked for them
<Nuck>
:P
<lemur>
c-c: then you're designing it poorly, and that's all I'm saying on the matter.
<Nuck>
People have this horrible tendency to tack all kinds of riders onto the global, just to cram it through
<lemur>
Now then, hackathons
<c-c>
technically, thats off topic here, but last I used node, it didn't have "window"
<Nuck>
Yeah node has "global" instead
<lemur>
What we ended up going with was giving engineers 2-3 days off normal work (unless they were critical ops)
<Nuck>
And I think they don't let it automatically hit the global when you forget var
<lemur>
and basically said free reign as long as it relates to the company in some way. Gave out cash prizes at the end for best projects out there.
<Nuck>
But yeah, encapsulation. How could I hide methods inside a mixin'd module, from the class it's mixed into?
<lemur>
Though really it depends on what you're wanting to know.
hmnhf has quit [Quit: Konversation terminated!]
fabrice31 has quit [Ping timeout: 250 seconds]
pontiki has quit [Ping timeout: 250 seconds]
<Nuck>
The level of encapsulation needs to ensure at least that the class's subclasses cannot access those methods since this is a subclass-based DSL
<lemur>
Honestly not sure on that one, I'd be inclined to say it doesn't matter too much though.
<Nuck>
I've seen approaches varying from ye old JS approach of _prefix
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Nuck>
To a private module full of helper methods
<jud>
lemur, were the results good, was business impressed with what was delivered? besides that one restriction on free-reign would you do the same again or add any others? some co's talk about submitting their idea a week prior to the event
<jud>
basically im trying to make it fun for engineers and impress business when it's all over
<c-c>
I'd try to think of it as organizing things, instead of "hiding" or "no access"
<lemur>
Making it worth their while without having to spend extra work time is the best way.
zorak8 has quit [Read error: Connection reset by peer]
<Nuck>
c-c: Well, it's just helper methods to extract common or complex things
<lemur>
cash / product prizes tend to get attention fairly quickly.
mitchellhenke has joined #ruby
zorak8 has joined #ruby
<Nuck>
So it's not really "organization" that matters so much as, I don't want to accidentally have clobbering
<Nuck>
I guess it's not _too_ big a deal though
<c-c>
Nuck: see, you say "just", but you fret over the irrelevant
St1gma has quit [Read error: Connection timed out]
<dudedudeman>
weaksauce: that's what i attempted earlier, but it gave me the same error
<weaksauce>
doesn't matter if it did. that's the correct way to write it
<weaksauce>
so write it that way
lewix has quit [Remote host closed the connection]
<dudedudeman>
now, obvisouly i can go to my models and add an 's' to end of each of my classes, but i'm trying to stick with AR naming conventions where the class is singular of the table name
<dudedudeman>
roger
sid_ has joined #ruby
<weaksauce>
find where it says class Monitor < something in your project
<dudedudeman>
standby while i grep
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dudedudeman>
it only says that in my model
Sgeo has joined #ruby
<dudedudeman>
where i'm calling class Monitor < ActiveRecord::Base
<dudedudeman>
at this point, it is literally the class, and my requires
dfinninger has joined #ruby
<dudedudeman>
the require './idea' at the top just points to a file with code that is commented out, so it's not pulling in anything
<weaksauce>
I am going to guess that Monitor is being defined by a gem that you have
<weaksauce>
above class Monitor. put this
<dudedudeman>
huh
<dudedudeman>
that's entirely possible
<weaksauce>
puts Monitor.superclass
teddyp1cker has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<weaksauce>
dudedudeman this is why having genericish classnames is not the best idea
riotjones has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
maloik has quit [Ping timeout: 252 seconds]
<dudedudeman>
i'll need to get a little more clever. i truly just used that because i am calibrating monitors
<dudedudeman>
and when i puts that, it just says 'Object'
thumpba_ has joined #ruby
maloik has joined #ruby
<weaksauce>
yep that means that someone already created the class definition
mlev has quit [Read error: Connection reset by peer]
<weaksauce>
otherwise it would say something like uninitialized constant Monitor
kitkat- has joined #ruby
<dudedudeman>
i've learned so much today
<weaksauce>
ComputerMonitor Might be a better name
dfinninger has quit [Remote host closed the connection]
<weaksauce>
monitor is a bad name by itself anyway
<dudedudeman>
i'm going to go with AddMonitor
<weaksauce>
that's a bad model name
<weaksauce>
a model is a noun not a verb
<dudedudeman>
!
<dudedudeman>
i can't get it right
<weaksauce>
it's a thing not an action
<dudedudeman>
ah, ok that's some good guidance
kitkat- has quit [Client Quit]
<c-c>
or perhaps its MonitorDevice
thumpba has quit [Ping timeout: 276 seconds]
<dudedudeman>
can a model be a three word camel case?
<weaksauce>
yes
<dudedudeman>
such as, DreamColorMonitor?
<weaksauce>
that's not a great name either but hey it's up to you.
<weaksauce>
:P
<c-c>
"monitor" always reminds me of CreamColorMonitor
Guest1886 has joined #ruby
<c-c>
CreamColorCRTMonitor even
<weaksauce>
the brand called "dream"?
<Guest1886>
Taken 3
<dudedudeman>
psh. you're making me blush at my ignorance
<dudedudeman>
:P
icebourg has quit []
<weaksauce>
if so it's better to be a column in your monitor class
<weaksauce>
s/class/table/
<dudedudeman>
so if i change my model name, do i need to change my table name then?
<Guest1886>
#iceman
bim has joined #ruby
<weaksauce>
yes and no.
<Guest1886>
yes
dfinninger has joined #ruby
<weaksauce>
it's better to follow the conventions
<Guest1886>
ok
<weaksauce>
but you can set an attribute to tell AR to use a different name
<Guest1886>
me?
<weaksauce>
huh?
<dudedudeman>
i'd rather follow convention
<weaksauce>
rename the table to be plural of your model name
<weaksauce>
separated by underscores and lowercase.
<dudedudeman>
let me drop my tables in my db and do new migrations with all of this. i want to beat it in to my head to make sure i'm doing this right from the ground up
<Guest1886>
#action movies
krisquigley has joined #ruby
oo_ has quit [Remote host closed the connection]
Guest1886 has quit [Quit: -a- IRC for Android 2.1.23]
<dudedudeman>
weaksauce; annnnnnddd we have liftoff!
<weaksauce>
:)
krisquigley has quit [Ping timeout: 250 seconds]
<dudedudeman>
rake test passes and all things look like they did before i started dicking around with this this afternoon
<dudedudeman>
things to take away from this: 1) be more strategic in my class naming 2) can call .superclass on stuff object means it's been called before 3) classes withing classes are weird and they smell funny
oo_ has joined #ruby
<weaksauce>
a tip is to make the test fail to make sure it's actually running then make it pass
<dudedudeman>
things to take away from this: 1) be more strategic in my class naming 2) can call .superclass on stuff object means it's been called before 3) classes withing classes are weird and they smell funny
<dudedudeman>
sorry, submitted twice :(
<dudedudeman>
break the code, fix the code
<dudedudeman>
i'm still getting used to testing and even figuring out what to test
<weaksauce>
you can have a test that's the same name as another test and it will overwrite the first test
sid__ has quit [Client Quit]
<weaksauce>
so you want to make sure you are not testing nothing :(
<dudedudeman>
there is so much learning to do! i am much excited
ajpocus has quit [Ping timeout: 250 seconds]
<dudedudeman>
can i ask one more question?
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/20150402191859]]
yh has quit [Ping timeout: 276 seconds]
<weaksauce>
sure
<dudedudeman>
i now have my two classes and they have a has_many relationshipo
<dudedudeman>
DCMonitor has_many Calibrations
<dudedudeman>
and Calibration belongs to DCMonitor
<dudedudeman>
Would it be DCMonitor.Calibration.new(foo stuff) to create a new row in my tables?
gabeh has quit [Remote host closed the connection]
ponga has joined #ruby
<dudedudeman>
i'm currently looking through the API but i figured i would just shove that out there
<weaksauce>
yeah that will make one but you need to save it
<dudedudeman>
.save
<weaksauce>
well you would create a DCMonitor first then call calibration.new on that
<weaksauce>
to attach it to that object
<shevy>
I just realized
<dudedudeman>
foo = DCMonitor.new
<shevy>
I hate chinese symbols in youtube comments
mlev has joined #ruby
<dudedudeman>
foo.calibration.new?
<weaksauce>
there are many ways to create objects dudedudeman but yeah that's one.
<dudedudeman>
ok. i'm just irb'ing
<weaksauce>
create is another way it builds and saves
<dudedudeman>
i'll leave you be, thank you so much again
<weaksauce>
all at once
x1337807x has joined #ruby
<dudedudeman>
.create
fabrice31 has joined #ruby
Spami has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<weaksauce>
yep.
<weaksauce>
play with it in irb. press foo.<tab> and see what methods are there
Vile` has joined #ruby
<dudedudeman>
all 582 of them!
<dudedudeman>
huzzah. this is nice
ramfjord has quit [Ping timeout: 250 seconds]
anaeem1_ has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 255 seconds]
_1_suresh has joined #ruby
<_1_suresh>
hii good morning
charliesome has quit [Quit: zzz]
A205B064 has joined #ruby
RegulationD has joined #ruby
knikolov has quit [Quit: WeeChat 1.2-dev]
_1_suresh has quit [Remote host closed the connection]
amdbcg1 has joined #ruby
Mon_Ouie has joined #ruby
lethosor|away has quit [Quit: Connection closed for inactivity]
RegulationD has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
amdbcg1 has quit [Ping timeout: 256 seconds]
musashi1 has quit [Ping timeout: 250 seconds]
weemsledeux has joined #ruby
charliesome has joined #ruby
Morkel has joined #ruby
knikolov has joined #ruby
roolo has joined #ruby
juanpablo____ has joined #ruby
lavros has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Zamerick has quit [Read error: Connection reset by peer]
amdbcg has joined #ruby
juanpablo____ has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: zzz]
User458764 has joined #ruby
gr33n7007h has quit [Ping timeout: 250 seconds]
gsd has joined #ruby
doodlehaus has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
makepkgnotwar has joined #ruby
The_Phoenix has joined #ruby
iotouch has joined #ruby
workmad3 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevvie has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
beat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
Spami has joined #ruby
Spami has quit [Client Quit]
Hijiri has quit [Ping timeout: 265 seconds]
Darryl___ has joined #ruby
Hijiri has joined #ruby
dangerousdave has joined #ruby
deavidsedice has joined #ruby
deavid has quit [Ping timeout: 246 seconds]
lordkryss has joined #ruby
teddyp1cker has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
akurilin2 has joined #ruby
roshanavand has joined #ruby
akurilin has quit [Read error: Connection reset by peer]
KC9YDN has quit [Ping timeout: 245 seconds]
akurilin3 has joined #ruby
TinkerTyper has quit [Ping timeout: 245 seconds]
shadoi has quit [Ping timeout: 245 seconds]
jheg has joined #ruby
akurilin2 has quit [Ping timeout: 256 seconds]
TinkerTyper has joined #ruby
oo_ has quit [Remote host closed the connection]
shadoi has joined #ruby
yh has joined #ruby
Nuck has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
lobolars has joined #ruby
yh has quit [Ping timeout: 250 seconds]
yh has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
Hijiri has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
Pupeno has quit [Remote host closed the connection]
WajidKagzi has joined #ruby
agent_white has quit [Quit: Goodnightmoon.]
KC9YDN has joined #ruby
KC9YDN has joined #ruby
anaeem1 has quit [Remote host closed the connection]
doodlehaus has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
mengu has joined #ruby
WajidKagzi has quit [Ping timeout: 255 seconds]
ponga has joined #ruby
niko has quit [Remote host closed the connection]
niko has joined #ruby
Soda has quit [Remote host closed the connection]
ponga has quit [Ping timeout: 250 seconds]
mengu has quit [Ping timeout: 272 seconds]
sevenseacat has joined #ruby
lidenskap has quit [Remote host closed the connection]
noname has quit [Quit: WeeChat 1.1.1]
DexterLB has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danielfeng has joined #ruby
dangerousdave has joined #ruby
Peetooshock has left #ruby ["Leaving"]
bim has joined #ruby
Rachok has joined #ruby
Rachok has left #ruby [#ruby]
mostlybadfly has joined #ruby
dfinninger has joined #ruby
ponga has joined #ruby
iamjarvo has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
danielfeng has quit [Quit: Leaving]
iamjarvo has quit [Client Quit]
bim has quit [Ping timeout: 250 seconds]
dfinninger has quit [Ping timeout: 265 seconds]
lkba has quit [Read error: Connection reset by peer]
DexterLB has quit [Quit: So long and thanks for all the fish]
roshanavand has quit [Remote host closed the connection]
DexterLB has joined #ruby
DexterLB has quit [Client Quit]
doritostains has quit [Quit: WeeChat 1.0.1]
juanpablo____ has joined #ruby
niko has quit [Quit: leaving]
DexterLB has joined #ruby
DexterLB has quit [Remote host closed the connection]
niko has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
data-cat has quit [Ping timeout: 265 seconds]
dangerousdave has joined #ruby
lavros_ has joined #ruby
anaeem1 has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
lavros has quit [Ping timeout: 252 seconds]
DexterLB has joined #ruby
dangerousdave has quit [Client Quit]
juanpablo____ has quit [Ping timeout: 245 seconds]
lidenskap has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
DexterLB has quit [Client Quit]
diegoviola has quit [Quit: WeeChat 1.1.1]
sevvie has joined #ruby
A205B064 has quit [Ping timeout: 252 seconds]
SouL_|_ has quit [Ping timeout: 250 seconds]
riotjones has joined #ruby
kaspernj has joined #ruby
mengu has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
mengu has joined #ruby
jheg has quit [Quit: jheg]
freestyl3r has joined #ruby
vedu has joined #ruby
riotjones has quit [Ping timeout: 245 seconds]
pandaant has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
<vedu>
Hello. Apparently rpush is delaying sending of GCM notifications. In the logs something or the other keeps running and the actual notification is processed after some (~10sec) delay
lobolars has quit [Remote host closed the connection]
krisquigley has joined #ruby
bMalum has quit [Quit: bMalum]
vudew has quit [Quit: Lost terminal]
sinkensabe has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 250 seconds]
<jhass>
never used rpush, but maybe we can find something in the docs. what backend?
SouL_|_ has joined #ruby
ghr has joined #ruby
<vedu>
jhass: backend as in active record?
jeromelanteri has joined #ruby
<jhass>
well yes, it supports redis, AR etc apparently
<vedu>
jhass: oh. I am running it with rails so active record
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phale>
it comes from a game and it should be an image format
fabrice31 has joined #ruby
<jhass>
you're on windows still?
<phale>
what?
tosbourn has joined #ruby
<jhass>
I wonder if you can let the file util run it
c_nick has joined #ruby
<c_nick>
Hi I need to package my ruby Framework for distribution. The Package should 1. SVN checkout my framework to a particular path and install RunTimes. I was looking at NSIS which could invoke an MSI but i couldnt find anything for SVN Checkout there. Can you help me in the right direction
doodlehaus has quit [Remote host closed the connection]
doodlehaus has joined #ruby
ixti has joined #ruby
ta has joined #ruby
riotjones has quit [Ping timeout: 245 seconds]
_ixti_ has quit [Ping timeout: 250 seconds]
zapata has quit [Remote host closed the connection]
zapata has joined #ruby
dfinninger has joined #ruby
jimms has quit [Ping timeout: 240 seconds]
jayeshsolanki has joined #ruby
lidenskap has joined #ruby
Aswebb_ has joined #ruby
sankaber has quit [Ping timeout: 272 seconds]
dfinninger has quit [Ping timeout: 244 seconds]
lidenskap has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Write error: Connection reset by peer]
Aswebb_ has quit []
reinaldob has quit [Remote host closed the connection]
tgunr has joined #ruby
tgunr has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
tgunr has joined #ruby
tgunr has quit [Client Quit]
LJT_ has joined #ruby
tgunr has joined #ruby
krisquigley has quit [Ping timeout: 256 seconds]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
LJT has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
giuseppesolinas has joined #ruby
stef204 has quit [Ping timeout: 252 seconds]
cpt_yossarian has joined #ruby
sinkensabe has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
weemsledeux has joined #ruby
DaniG2k has quit [Quit: leaving]
fabrice31 has joined #ruby
reinaldob has joined #ruby
sinkensabe has quit [Ping timeout: 252 seconds]
doodlehaus has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 255 seconds]
Takle has quit [Remote host closed the connection]
phale has joined #ruby
stef204 has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
nonnatus has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
reinaldob has quit [Remote host closed the connection]
chipotle has quit [Read error: Connection reset by peer]
lethosor|away has quit [Quit: Connection closed for inactivity]
WajidKagzi has joined #ruby
chipotle has joined #ruby
bim has quit [Remote host closed the connection]
stef204 has quit [Ping timeout: 240 seconds]
WajidKagzi has quit [Ping timeout: 244 seconds]
<jhass>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<jhass>
DeBot: :#_
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [:#_] 3/12
<jhass>
uh
<jhass>
DeBot: ensta
<DeBot>
␣␣␣a␣␣␣␣␣E␣␣␣␣ [:#_nst] 6/12
<jhass>
DeBot: h
<DeBot>
␣␣␣a␣␣␣␣␣E␣␣␣␣ [:#_nsth] 7/12
<jhass>
DeBot: iuo
<DeBot>
␣o␣a␣␣u␣␣E␣␣o␣ [:#_nsthi] 8/12
<jhass>
DeBot: r
<DeBot>
␣o␣a␣␣u␣␣Error [:#_nsthi] 8/12
Takle has joined #ruby
<phale>
StandardError
tkuchiki has joined #ruby
<jhass>
not really
<phale>
DeBot: V
<DeBot>
␣o␣a␣␣u␣␣Error [:#_nsthiv] 9/12
<phale>
what is Error
<phale>
is that part of the hangman?
<jhass>
yeah
<jhass>
it's a ruby thing (class this time)
<jhass>
DeBot: l
<DeBot>
Lo␣al␣u␣␣Error [:#_nsthiv] 9/12
<phale>
DeBot: LocalJumpError
<DeBot>
LocalJumpError [:#_nsthiv] 9/12 You won!
<phale>
yeah it works
<Mon_Ouie>
>> return 3
<ruboto>
Mon_Ouie # => unexpected return (LocalJumpError) ...check link for more (https://eval.in/311977)
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<jhass>
DeBot: :
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [:] 1/12
<DeBot>
␣␣␣␣␣␣␣␣#␣␣␣␣␣␣␣␣␣ [:] 1/12
<jhass>
DeBot: #
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<phale>
DeBot: String
<DeBot>
StringI␣#r␣␣␣␣in␣s [:] 1/12
<Mon_Ouie>
DeBot: O
<DeBot>
StringIO#r␣␣␣␣in␣s [:] 1/12
<phale>
DeBot: StringIO#readlines
<DeBot>
StringIO#readlines [:] 1/12 You won!
<jhass>
phale: stop cheating :P
<arup_r>
DeBot: go to hale!
<phale>
alright hehe
<phale>
wait how am i cheating
<jhass>
too late ;)
<jhass>
DeBot: !hangman gems
<DeBot>
␣␣␣ [] 0/12
<arup_r>
Why he didn't respond to me... :(
<jhass>
figuring that out is part of the game ;P
kubunto has joined #ruby
<jhass>
DeBot: eioua
<DeBot>
␣a␣ [eiou] 4/12
<phale>
DeBot: ban
<DeBot>
␣a␣ [eioubn] 6/12
<phale>
DeBot: g
<DeBot>
␣a␣ [eioubng] 7/12
<phale>
i give up
<wasamasa>
DeBot: r
<DeBot>
ra␣ [eioubng] 7/12
<Mon_Ouie>
DeBot: y
<DeBot>
ra␣ [eioubngy] 8/12
<kubunto>
DeBot: t
<DeBot>
rat [eioubngy] 8/12 You won!
<kubunto>
hehehe
<phale>
I still haven't figured out this darn format
<phale>
even if there's a cpp code of it
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/2015040300]]
<kubunto>
?
<jhass>
"Ruby interface to Unix "at" command. (Not compatible with Windows' "at".)"
<phale>
DeBot: !
<Mon_Ouie>
The bot itself should print the gem's summary
<jhass>
yeah
<jhass>
send a pull request :P
<phale>
DeBot: !help
<phale>
just has hangman?
<jhass>
in this channel, yeah
<phale>
oh
amystephen has joined #ruby
workmad3 has joined #ruby
Spami has joined #ruby
lxsameer has quit [Quit: Leaving]
iotouch has quit [Ping timeout: 264 seconds]
VBlizzard has joined #ruby
yh has quit [Ping timeout: 256 seconds]
VBlizzard is now known as _blizzard_
_blizzy_ has quit [Disconnected by services]
_blizzard_ is now known as _blizzy_
User458764 has joined #ruby
iotouch has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
bkxd has joined #ruby
<phale>
i'm making a ruby server
<phale>
for my MMORPG
<phale>
the client is going to be in C
<phale>
will ruby be good for a server?
<undeadaedra>
it can be used as a server, if it’s your question
<phale>
phale> will ruby be good for a server?
xenokiller has joined #ruby
yh has joined #ruby
<undeadaedra>
it depends on what you mean by ”be good”
aswen has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
<kq_away_>
I have a list of phrases and a list of text files. For each phrase I want any (as in, one random) occurrence of that phrase + its location + some context (say, 50 characters before and after). Extra problem: the files are in vietnamese and the text in them needs to be downcased first (I have a mapping prepared)
hmsimha has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
stef204 has joined #ruby
dfinninger has joined #ruby
juanpablo____ has joined #ruby
<phale>
undeadeadra: reliable, fast
<kq_away_>
I guess my problem is what'd be the best way to do this
roolo has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
<c-c>
hi phale
<phale>
c-c: hey
<c-c>
have you looked at jruby
<jhass>
kq_away_: what orders of magnitude are we talking?
<phale>
not really
bluOxigen has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
<c-c>
look at it
<phale>
alright
<c-c>
jruby could give you more options when deploying
Spami has quit [Quit: This computer has gone to sleep]
<c-c>
warbler, also
<phale>
i see
<phale>
i just want to know if ruby's general perfomance will affect people connecting to the server
dfinninger has quit [Ping timeout: 250 seconds]
endash has joined #ruby
<kq_away_>
jhass: <5MB of files, ~3k phrases
<undeadaedra>
depends on how many connections, how many commands
juanpablo____ has quit [Ping timeout: 248 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<undeadaedra>
and the infrastructure below
<phale>
don't have a VPS yet
<jhass>
kq_away_: mh, without experience on my own, that seems close to but below the border of using a dedicated fulltext search engine, depends on the amount of growth (if any) you expect I guess
<undeadaedra>
it will not match C performance, but may be efficient enough to handle things
<phale>
okay
<c-c>
ruby or jruby will be great for prototyping and a small scale MMORPG with less than 100k users, roughly
<phale>
yeah
<phale>
~100k
<jhass>
kq_away_: I think you can still get away with scan, /.{,50}#{phrase}.{,50}/i and $~ though
decoponio has joined #ruby
<kq_away_>
jhass: I have no idea, I'm doing this for my cousin
<kq_away_>
mhm
<phale>
kq_away_: tell him to learn ruby
<phale>
and to leave you alone
<kq_away_>
I did, phale, and I'm tutoring him a little
<kq_away_>
but he's a linguist, not a programmer by trade
cpt_yossarian has quit [Ping timeout: 245 seconds]
lethosor|away has joined #ruby
mbff has joined #ruby
<mbff>
Hello! I just discovered Ruby does not support method overloading. What then is the standard alternative then? Different method names like method1 and method1WithExtraThing?
<mbff>
or arg detection inside of a single method?
<phale>
mbff: define methods with the same name
<mbff>
I thought ruby only used the last one that was defined....
<phale>
it does i think
<phale>
ask jhass
<mbff>
right so if i have two methods..... method(thisVarShouldBeAStr) and method(thisVarShouldBeAnArray) .... ruby will only use the second one i define
<phale>
yes
<mbff>
jhass, any ideas? I am looking for the agreed on community standard
<phale>
I don't know why you want to overload a method with a different name
mostlybadfly has joined #ruby
<mbff>
the names are the same, didn't you see my example above
<mbff>
both called "method"
<phale>
yes
<phale>
then it should work
<mbff>
it doesn
<jhass>
mbff: both is done equally, depending on usecase/context
<ruboto>
phale # => /tmp/execpad-9641011f29a5/source-9641011f29a5:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/312042)
<phale>
something like that
<phale>
not sure how to define methods on the interpreter here atm
<Coraline>
I believe it works if the method args are different
<jhass>
mbff: as a rule of thumb, if the overload would just transform the parameter and call another overload, you would usually perform input detection, if the behavior is significantly different, that's a good indicator (and that's not only true for Ruby) those are two different methods anyway
<mbff>
i think I have my answer... thank you for your help everyone
kubunto is now known as kubunto|afk
RegulationD has joined #ruby
mjuszczak has joined #ruby
bim has joined #ruby
simplyaubs has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
freerobby has quit [Quit: Leaving.]
phale has left #ruby ["Leaving"]
baroquebobcat has quit [Quit: baroquebobcat]
arrnas has joined #ruby
jheg has quit [Quit: jheg]
lolmaus_ has joined #ruby
zz_AlphaTech is now known as AlphaTech
Joufflu has joined #ruby
maximski has quit []
lolmaus has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
claw_ has quit [Ping timeout: 255 seconds]
claw_ has joined #ruby
SHyx0rmZ has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
SHyx0rmZ has quit [Remote host closed the connection]
claw has joined #ruby
casadei has quit [Remote host closed the connection]
claw_ has quit [Client Quit]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lidenskap has joined #ruby
claw has quit [Client Quit]
casadei has joined #ruby
SHyx0rmZ has joined #ruby
sankaber has joined #ruby
<willharrison>
if I want to write a function in C and use in in a small ruby program, how do I go about that?
jheg has joined #ruby
bim has quit [Remote host closed the connection]
bim has joined #ruby
bim has quit [Remote host closed the connection]
claw has joined #ruby
riotjones has joined #ruby
<Mon_Ouie>
Read Ruby's README.EXT for information about writing C extensions for Ruby
<Mon_Ouie>
You could also use FFI if you prefer
lidenskap has quit [Ping timeout: 256 seconds]
jheg has quit [Client Quit]
<willharrison>
I will do that, what is FFI though?
Takle has quit [Remote host closed the connection]
ascarter has joined #ruby
pullphinger has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ju_les_ has left #ruby [#ruby]
pullphinger has joined #ruby
dc has joined #ruby
<Mon_Ouie>
Stands for Foreign Function Interface. There's a Ruby library of the same name that allows you to open shared libraries, and you just give it the prototypes of the functions you need (by calling a method in Ruby) and it will create a thin wrapper for you.
<willharrison>
ok cool, thanks
_1_chat has joined #ruby
<_1_chat>
hii
<havenwood>
?whatschat _1_chat
<ruboto>
_1_chat, WhatsChat is a crappy app that abuses IRC for something it is not: a dating chat. Please remove this app.
casadei has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
_1_chat has left #ruby [#ruby]
krisquigley has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
OtterCoder has quit [Ping timeout: 256 seconds]
dc has quit [Remote host closed the connection]
<irc-learner>
Do you think that someday ruby with be the same speed as javascript?
<willharrison>
javascript is slow
<willharrison>
ruby is faster
<centrx>
wha
<irc-learner>
incredible!
pontiki has joined #ruby
dc has joined #ruby
<irc-learner>
you're really a fan of ruby!
<centrx>
yeah that doesn't sound right, in the context of V8 and post-V8 JS
<willharrison>
?
<c-c>
my ruby is 0 speed - it has absolutely no velocity or acceleration
<irc-learner>
ams.js
<willharrison>
maybe I just don't know much about javascript
dc has quit [Remote host closed the connection]
<c-c>
irc-learner: at what speed does your javascript move?
gauke has joined #ruby
<c-c>
irc-learner: did you put it in a car or an airplane?
bim has joined #ruby
<c-c>
irc-learner: or did you just make up this notion of "speed"?
<irc-learner>
c-c don't know the speed, but I learned that speed can be increased when good programmers are at it
<centrx>
irc-learner, Ruby is quite fast, and there is e.g. JRuby, but Javascript gets a huge amount of optimizing attention as the language of the web
pika_pika has joined #ruby
<c-c>
irc-learner: there is no such thing as "speed" in programming language
oo_ has joined #ruby
<irc-learner>
javascript will be more and more powerful since the web is getting more important
aryaching has joined #ruby
bim has quit [Remote host closed the connection]
<c-c>
javascript outputs 0 W of power
bim has joined #ruby
<irc-learner>
coffee script is like a son
krisquigley has quit [Ping timeout: 264 seconds]
<c-c>
well trolled
bim has quit [Remote host closed the connection]
<havenwood>
irc-learner: While we wait for browsers to support nice languages there's Opal: http://opalrb.org/
jottr has quit [Ping timeout: 245 seconds]
<irc-learner>
I read news.ycombinator.com and opalrb has received a lot of praise
<irc-learner>
some people think that javascript will evolve to become the next java (bloated), I don't know if it will evolve into something like ruby or lisp
oo_ has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 250 seconds]
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
jottr has joined #ruby
Igorshp has quit [Remote host closed the connection]
<irc-learner>
Do you think that the number of ruby jobs is increasing or is going down?
<havenwood>
irc-learner: Or maybe it'll evolve into a slightly less sucky JavaScript.
<havenwood>
JavaScript will never be Ruby or a LISP.
<irc-learner>
but you know that there are the good parts
pullphinger has quit []
<irc-learner>
but javascript is sweet
axl_ has joined #ruby
oo_ has joined #ruby
<irc-learner>
Do people that know ruby program in several languages or they only use ruby?
<c-c>
yes
<jhass>
^
baroquebobcat has joined #ruby
<irc-learner>
Recently I solve a rota (praetorian challenge in Lisp and use ruby for the http part)
kerrizor has joined #ruby
oo_ has quit [Client Quit]
<KrzaQ>
I use ruby at work, but only about 1-3% of the time, for scripting
<jhass>
I hope that every programmer realizes that programming languages aren't like religion, at some point at least
<havenwood>
They exist!
<irc-learner>
sometime I use python, for example I find findall very useful,
<havenwood>
irc-learner: Then go straight to the get a job part.
<irc-learner>
1.upto(10) {|i| puts "hello #{i}"}
<jhass>
KrzaQ: in my style, I'd use do/end for the each, but keep { for the .maps and such
<jhass>
it's style, ruby only cares about the precedence
<irc-learner>
yes each
<KrzaQ>
can you tack .somethign at the end of end?
<jhass>
yup
<KrzaQ>
okay, reading your link
<jhass>
but it's ugly, hence the weirich rule ,)
<KrzaQ>
Use { } for blocks that return values
<KrzaQ>
Use do / end for blocks that are executed for side effects
fabrice31 has quit [Ping timeout: 245 seconds]
<KrzaQ>
I can live with that
Channel6 has joined #ruby
<irc-learner>
do end for side effects is a good rule
<irc-learner>
but you know TIMTIWTDI
tosbourn has quit [Ping timeout: 250 seconds]
LJT has joined #ruby
bim has quit [Remote host closed the connection]
bim has joined #ruby
<irc-learner>
10.5.8 imac doesn't has application store, so you have to pay apple to get an upgrade to 10.6 and then all is free, but 20 dollars for a system with a known vulnerability is no use
gauke has quit [Quit: gauke]
bim has quit [Remote host closed the connection]
Porfirium has joined #ruby
User458764 has joined #ruby
<mbff>
I am using minitest and I want to pass if a line of code causes a raise
jheg has joined #ruby
<jhass>
assert_raise iirc?
macoecho has joined #ruby
<mbff>
how can I do that? In all the examples I have seen, they reference "proc"... I don't know what proc is
Spami has quit [Read error: Connection reset by peer]
mjuszczak has quit []
<mbff>
when i ran it with VCR at all and it still failed
<mbff>
StrikeTorrentTest#test_find_404:
<mbff>
NoMethodError: undefined method `assert_raises' for nil:NilClass
apoplexy has joined #ruby
<mbff>
without VCR*
jeff_laplante has quit [Ping timeout: 256 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
juanpablo____ has joined #ruby
lewix has joined #ruby
<jhass>
guess that syntax only works for the rspec-style syntax then
<jhass>
use assert_raises
<mbff>
NoMethodError: undefined method `assert_raise' for #<Proc:0x00000003c44bd8@test/torrent/torrent_test.rb:28>
<jhass>
assert_raises
<jhass>
and not on the proc
<jhass>
assert_raises RuntimeError do raise end
<mbff>
{ result = Strike::Torrent.find("156B69B8643BD1184D041")[0] }.assert_raises(NoMethodError) ?
<jhass>
no
<jhass>
assert_raises RuntimeError do raise end
JoshGlzBrk has joined #ruby
<jhass>
where raise is your code
<mbff>
in the torrent class
baroquebobcat has joined #ruby
apoplexy has quit [Ping timeout: 245 seconds]
<mbff>
ayyy! It worked
<mbff>
what if I want to target a particular message ?
ponga has quit [Quit: Leaving...]
<mbff>
i found an example for must_raise but not assert_raises
cpt_yossarian has quit [Ping timeout: 255 seconds]
ebbflowgo has joined #ruby
juanpablo____ has quit [Ping timeout: 252 seconds]
mengu has quit [Read error: Connection reset by peer]
Soda has quit [Remote host closed the connection]
mengu has joined #ruby
Porfa has quit [Quit: porfa]
<jhass>
dunno, I don't use minitest
<jhass>
what did the example for must_raise look like?
ponga has joined #ruby
<mbff>
div_by_zero = lambda { my_method(6,0) }
<mbff>
div_by_zero.must_raise RuntimeError
<mbff>
error = div_by_zero.call rescue $!
<mbff>
error.message.must_equal 'bla'
<jhass>
well, that method has nothing to do with must_raises then
Takle has joined #ruby
<jhass>
it's just calling it twice
<jhass>
I'd do a proper begin / rescue => e /end and do an assertion on e.message
lolmaus_ has quit [Quit: Konversation terminated!]
freerobby has joined #ruby
<mbff>
ok thanks
DexterLB has joined #ruby
maximski has joined #ruby
DexterLB has quit [Client Quit]
DexterLB has joined #ruby
cpt_yossarian has joined #ruby
reinaldob has joined #ruby
lemur has joined #ruby
bttf has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
<bttf>
hello, new to rails and trying to set up my first app on a fresh linux vm ... Just a little frustrated but trying to work through this. I'm using rbenv and I am running into libraries that I need to rebuild my ruby installation for; first it was openssl, and now I need to rebuild again for readline lib. My question is how can I include all possible libraries
<bttf>
that I'll need so that I won't need to rebuild ruby again?
reinaldob has joined #ruby
VBlizzard has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
_blizzy_ has quit [Disconnected by services]
VBlizzard is now known as _blizzy_
lidenskap has joined #ruby
charliesome has quit [Quit: zzz]
samarjeet has joined #ruby
charliesome has joined #ruby
lidenskap has quit [Remote host closed the connection]
maximski has quit []
charliesome has quit [Client Quit]
d10n-work has joined #ruby
reinaldob has quit [Ping timeout: 240 seconds]
<havenwood>
bttf: ruby-install/chruby or RVM will install package manager deps for you, or you could manually install them
beat has joined #ruby
LJT has joined #ruby
<havenwood>
bttf: rbenv's ruby-build actually ships its own openssl instead of using the package manager's, which is its own bag of hurt
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
casadei has joined #ruby
<bttf>
i don't mind manually installing them, but is there a single source of truth on which libraries are needed?
<kubunto>
at least id imagine it would be a lot of system level work
<kubunto>
python is likely too slow too
<kubunto>
(or at least i would think)
<shevy>
HAL ... isn't that the crazy computer that killed people
<eam>
it's too variable in its behavior; hard to prove correctness
<eam>
speed isn't the biggest issue
lewix has quit [Remote host closed the connection]
<eam>
lack of unhandled failure scenarios is the #1 issue
delianides has joined #ruby
<shevy>
hmm
<shevy>
like what... alien attack?
<Nilium>
Say you had an office and I covered every square inch of its floor with garden gnomes designed to face you as you walk into it
<Nilium>
How likely are you to be traumatized?
<shevy>
garden gnomes scare me
anaeem1 has quit [Ping timeout: 248 seconds]
<shevy>
have you seen chucky? the doll that kills?
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Nilium>
I saw a few of the movies as a kid.
<shevy>
only japanese pranks are worse than garden gnomes
<Nilium>
Japan is a huge asshole when it does pranks and reality TV.
<shevy>
from chasing people in realistic dinosaur-costumes, to catapulting them into the air as they sleep, to toss them out into the snow when they are naked... that's psychological torture
<Nilium>
Like that guy they locked in a room and forced him to fill out sweepstakes things for food
yh has quit [Ping timeout: 246 seconds]
doodlehaus has joined #ruby
<shevy>
if the japanese did not also create ruby, I'd very much wonder about them
lewix has joined #ruby
Channel6 has joined #ruby
mjuszczak has joined #ruby
<Nilium>
Most Japanese software I've seen is awful, so I don't know, I'd still wonder.
ta has joined #ruby
starless has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jheg has quit [Quit: jheg]
mitchellhenke has joined #ruby
redlegion has joined #ruby
grilllo has quit [Quit: Page closed]
baroquebobcat has quit [Quit: baroquebobcat]
mtakkman has joined #ruby
ebbflowgo has joined #ruby
mtakkman has quit [Remote host closed the connection]
yh has joined #ruby
Evan- has quit [Quit: Oh shit the geek died!]
Evan_ has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
deject3d has quit [Remote host closed the connection]
krisquigley has joined #ruby
Megtastique has quit []
Porfirium has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
pontiki has joined #ruby
mtakkman has joined #ruby
Igorshp has joined #ruby
deject3d has joined #ruby
lidenskap has quit [Remote host closed the connection]
ponga has joined #ruby
yh has quit [Ping timeout: 265 seconds]
<shevy>
heeh
riotjones has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
Ellis has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Megtastique has joined #ruby
<Ellis>
i’m trying to tetst my code. my code is set up to raise an argument error if the argument supplied is empty, is there a way to test this with puts?
{orb} has joined #ruby
<Ellis>
i tried this but it doesn’t work puts initialize([]) == raise ArgumentError
<Ellis>
i’m trying to get it to return true
shevy has quit [Quit: ""]
sevvie has quit [Ping timeout: 272 seconds]
hiall has quit [Quit: hiall]
pontiki has quit [Ping timeout: 264 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
aswen has joined #ruby
greenbagels has joined #ruby
roolo has joined #ruby
ponga has quit [Ping timeout: 276 seconds]
doodlehaus has joined #ruby
<jhass>
Ellis: test as in programatically with a test framework?
<Ellis>
no just using puts. an example is i write a variable called hello and set it to 1 - hello = 1, then say puts hello = 1 and it should return true
simplyaubs has joined #ruby
jheg has joined #ruby
casadei has joined #ruby
lewix has quit [Remote host closed the connection]
fabrice31 has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkulbida has quit [Quit: leaving]
User458764 has joined #ruby
horsecowdog has joined #ruby
casadei has quit [Ping timeout: 252 seconds]
AlphaTech is now known as zz_AlphaTech
ta has quit [Remote host closed the connection]
greenbagels has quit [Quit: Leaving]
aswen has quit [Ping timeout: 248 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
simplyaubs has quit [Quit: simplyaubs]
riotjones has quit [Ping timeout: 264 seconds]
wottam has joined #ruby
<jhass>
Ellis: just let your program error out then
<Ellis>
i have to return true, it’s for an assignment
wottam has quit [Client Quit]
<jhass>
if you raise, the return value is irrelevant
maximski has joined #ruby
<Ellis>
ok thanks
freerobby has quit [Quit: Leaving.]
kblake has joined #ruby
horsecowdog has quit [Remote host closed the connection]
mjuszczak has quit []
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
mjuszczak has joined #ruby
techietrash has quit [Quit: Bye! <(^_^<)]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lewix has joined #ruby
cpt_yossarian has quit [Ping timeout: 245 seconds]
juanpablo____ has joined #ruby
yfeldblum has joined #ruby
simplyaubs has joined #ruby
omosoj has joined #ruby
freerobby has joined #ruby
omosoj is now known as sohrab
yfeldblum has quit [Client Quit]
mjuszczak has quit []
sohrab has quit [Client Quit]
wottam has joined #ruby
lidenskap has joined #ruby
yfeldblum has joined #ruby
juanpablo____ has quit [Ping timeout: 250 seconds]
omosoj has joined #ruby
shevy has joined #ruby
RegulationD has joined #ruby
dfinninger has joined #ruby
sevvie has joined #ruby
rixius has quit [Ping timeout: 255 seconds]
Igorshp has quit [Remote host closed the connection]
simplyaubs has quit [Quit: simplyaubs]
RegulationD has quit [Ping timeout: 264 seconds]
jimms has joined #ruby
_honning_ has joined #ruby
vozcelik has joined #ruby
ascarter has joined #ruby
kirun has joined #ruby
lemur has quit [Remote host closed the connection]
jaygen has joined #ruby
Echoes-- has quit [Read error: Connection reset by peer]
kblake has quit [Remote host closed the connection]
iamninja has joined #ruby
cpt_yossarian has joined #ruby
vozcelik has quit [Max SendQ exceeded]
pushpak has joined #ruby
djbkd_ has joined #ruby
Lingo_ has joined #ruby
charliesome has joined #ruby
rixius_ has joined #ruby
longfeet has joined #ruby
n80 has quit [Quit: n80]
doodlehaus has quit [Remote host closed the connection]
bluOxigen has joined #ruby
apoplexy has joined #ruby
WajidKagzi has joined #ruby
reinaldob has joined #ruby
ChoiKyuSang has joined #ruby
djbkd_ has quit [Ping timeout: 250 seconds]
reinaldob has quit [Remote host closed the connection]
lemur has joined #ruby
WajidKagzi has quit [Client Quit]
Igorshp has joined #ruby
Lingo_ has quit [Read error: Connection reset by peer]
rixius_ has quit [Ping timeout: 255 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ismaelga has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lingo_ has joined #ruby
Sirupsen has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
<swills>
can anyone tell me when 2.0 and 2.1 will be end of life'd?
dfinninger has quit [Remote host closed the connection]
<swills>
1.8 and 1.9 were EOLd a while ago, but there hasn't been any word on 2.0 or 2.1 as far as I know
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
swills: 2.0 is set to EOL end of february 2016
<jhass>
no date for 2.1 yet afaik
lele is now known as Guest24
Porfa has joined #ruby
<swills>
jhass: url?
<swills>
jhass: and thanks!
<jhass>
uh, I think it was announced in the 1.9 EOL news
<ytti>
and downgrading to 1.8.7 would be ill-adviced
ismaelga has quit [Remote host closed the connection]
ujihisa has quit [Ping timeout: 272 seconds]
<havenwood>
Rafalski: Ruby 1.8 is past end-of-life. Even Ruby 2.0 is in maintenance mode. If possible use Ruby 2.1 or better yet 2.2.
<c-c>
hm, I think rails no longer supports 1.8
rixius has joined #ruby
<Rafalski>
I know.. But have a project in 1.8.7 that needs some udpating
axisys has quit [Remote host closed the connection]
<havenwood>
Rafalski: 1.8 doesn't even compile any longer without patches.
<Rafalski>
hmmm
<weaksauce>
Rafalski use a VM
<havenwood>
Rafalski: Probably just use RVM to get the patches.
<Rafalski>
ok… Might have to upgrade the project..
MotherClucker has joined #ruby
<havenwood>
Rafalski: or i like weaksauce's idea
<MotherClucker>
the only constant is change my niggas
<Rafalski>
In this case, do you guys have a good resources on how to setup RVM on a production server?
<jhass>
!mute MotherClucker
<c-c>
rvm has great documents
<Rafalski>
Ya, VM might be a good solution for now
<weaksauce>
1.8 to 1.9 was a big change in how ruby operated yeah?
MotherClucker has left #ruby [#ruby]
<c-c>
Rafalski: just read it, it takes 15 minutes
<Rafalski>
k thanks guys
Pharaoh2 has joined #ruby
Rickmasta has joined #ruby
byprdct has joined #ruby
yqt has joined #ruby
Rafalski has quit [Quit: Rafalski]
axisys has joined #ruby
rixius has quit [Client Quit]
rixius has joined #ruby
charliesome has quit [Quit: zzz]
axisys has quit [Client Quit]
xiq has quit [Remote host closed the connection]
charliesome has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
axisys has joined #ruby
axisys has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axisys has quit [Changing host]
axisys has quit [Client Quit]
chintanparikh has joined #ruby
axisys has joined #ruby
<chintanparikh>
This is a long shot, but does anyone know of any ruby implementations of a reliable data protocol (like TCP) over UDP?
<chintanparikh>
So like TCP packets being sent in the UDP body
<jhass>
why don't you use TCP...
kblake has joined #ruby
bobbrez has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n80 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<ytti>
chintanparikh, minimalt or quic would be pretty good candidates, but i don't think either has ruby implementation yet
maximski has joined #ruby
krisquigley has joined #ruby
<jhass>
chintanparikh: I'm really curious, if you can freely define the udp body, you seem to have control over both, server and client. Why don't you use TCP if you want TCPs features?
<chintanparikh>
jhass: School assignment
<chintanparikh>
No practical use of implementing TCP over UDP
<chintanparikh>
But its interesting
<jhass>
ah
kblake has quit [Ping timeout: 245 seconds]
mtakkman has quit [Ping timeout: 265 seconds]
<jhass>
I'm not sure yet if I think that's a useful one :P
<shevy>
yeah
<ytti>
if it's for school project, then what use would be ready implementation be
<shevy>
you always have to convince jhass
<shevy>
before he approves
pontiki has joined #ruby
RegulationD has joined #ruby
<jhass>
yep, what ytti said came to my mind too, using an already ready implementation seems to defeat the only point I could see in that assignment
<ytti>
i'd write something with xsalsa20, curve25519 (nacl has ruby library) and some uber trivial bandwith estimator for packet pacing, instead of tcp bursting
ascarter has joined #ruby
<ytti>
it'll be hella slow
charliesome has quit [Quit: zzz]
<ytti>
at least if you use UDPSocket instead of some pcap library
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rixius has quit [Read error: Connection reset by peer]
rixius has joined #ruby
<ytti>
not sure if there are netmap/pc_ring/dpdk et.al. libraries to ruby, probably not
<ytti>
s/pc/pf/
krisquigley has quit [Ping timeout: 250 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
vudew has quit [Quit: Lost terminal]
RegulationD has quit [Ping timeout: 240 seconds]
aswen has joined #ruby
pontiki has quit [Ping timeout: 265 seconds]
tus has joined #ruby
zorak8 has joined #ruby
rixius has quit [Ping timeout: 255 seconds]
Hijiri has quit [Ping timeout: 272 seconds]
lewix has joined #ruby
Hijiri has joined #ruby
jimms has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
Jiyuhen has quit [Ping timeout: 272 seconds]
casadei has joined #ruby
Jiyuhen has joined #ruby
aryaching has quit []
sevvie has quit [Ping timeout: 250 seconds]
oktexan has quit [Quit: Leaving]
MatthewsFace has joined #ruby
fabrice31 has joined #ruby
psy_ has quit [Ping timeout: 240 seconds]
tosbourn has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
OtterCoder has joined #ruby
Lingo_ has quit [Quit: (null)]
lewix has quit [Ping timeout: 246 seconds]
riotjones has joined #ruby
MatthewsFace has quit [Client Quit]
casadei has quit [Ping timeout: 255 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
doodlehaus has quit [Remote host closed the connection]
mbff has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
tosbourn has quit [Ping timeout: 264 seconds]
Dreamer3 has quit [Remote host closed the connection]
<mbff>
Hello, I just found out my gem name "strike" is already taken. I changed my folder name, spec.name and github remote to reflect my new name "strike_api" and I am getting an error when I test my gem locally in a different project
<mbff>
what else do i need to change inorder to get the name change to work
<havenwood>
mbff: what's the error?
<mbff>
can I keep the Module name the same?
<jhass>
You shouldn't
<mbff>
/home/marshall/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- strike_api (LoadError)
<ruboto>
jhass # => /tmp/execpad-b558c0e5faf8/source-b558c0e5faf8:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/312097)
<water-watered>
what is the name of the system to update ruby, I don't remember at the moment, something like brew
<water-watered>
Brightbox very smart indeep
sevvie has joined #ruby
iamjarvo has joined #ruby
<havenwood>
water-watered: `brew` is a popular OS X package manager. `apt` for Ubuntu, just use the Brightbox repository.
<water-watered>
I recall that the book of rails gave indications how to build a rail application from scratch, and use a system to update your ruby or use any version
<water-watered>
google: how to update ruby, first link use rvm ok now I know
shevy has quit [Remote host closed the connection]
<water-watered>
in ubuntu ruby2.0, the program is not installed use apt-get install ruby2.0 to install ruby
<havenwood>
water-watered: If you want just the latest Ruby, I'd suggest just using the Brightbox package through apt-get.
lidenskap has quit [Ping timeout: 246 seconds]
robertt_dex has joined #ruby
<havenwood>
water-watered: If you want to switch between different Rubies then consider ruby-install/chruby or RVM.
<water-watered>
now irb2.0 gives RUBY_VERSION = 2.0.0
water-watered is now known as firewood
firewood is now known as masternick
<havenwood>
water-watered: 2.0 is currently in maintenance mode. You can switch between apt versions of Ruby with update-alternatives or ruby-switch.
Soda has joined #ruby
<a5i>
>> puts [1, 2, 3].map { |x| x + 1 }.select { |x| x > 2 }.sum #=> 7
<ruboto>
a5i # => undefined method `sum' for [3, 4]:Array (NoMethodError) ...check link for more (https://eval.in/312105)
<a5i>
>> puts [1, 2, 3].map { |x| x + 1 }.select { |x| x > 2 }.sum
<ruboto>
a5i # => undefined method `sum' for [3, 4]:Array (NoMethodError) ...check link for more (https://eval.in/312106)
<masternick>
shuffle doesn't work for string at 2.0
<masternick>
there is no sum method
<a5i>
Oh...
wingedsnake has quit [Ping timeout: 264 seconds]
<havenwood>
wasamasa: There's a good explanation of the Brightbox package route on the link I gave. RVM or ruby-install/chruby docs if you go that route.
<masternick>
use inject
sevvie has quit [Ping timeout: 272 seconds]
<masternick>
inject is not an intuitive name for reduce or fold
<Mon_Ouie>
Then use reduce
<apeiros>
reduce and fold are not intuitive names for inject…
<a5i>
that was crystal code thinking it was compatible with Ruby
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
<workmad3>
nickjj: the error is that you're passing a URI without a scheme to URI.parse... as such, you're getting back a generic URI object, and then trying to use HTTP-specific methods on it (like request_uri)
mitchellhenke has joined #ruby
<havenwood>
nickjj: Yeah, no #request_uri for relative URIs. Hmm, maybe check if it's #relative?
bkxd has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
<nickjj>
workmad3, yep exactly
<nickjj>
havenwood, yeah i suppose i could
<nickjj>
thanks
rixius has quit [Ping timeout: 255 seconds]
<workmad3>
nickjj: your could also just ensure that you have a protocol, and by extension ensure that you have a valid HTTP URL