sklik has quit [Read error: Connection reset by peer]
booly-yam-4014 has quit [Max SendQ exceeded]
dimaursu16 has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
booly-yam-4014 has joined #ruby
bashusr has joined #ruby
dimaursu16 has joined #ruby
martinium has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
mloveless has quit [Remote host closed the connection]
<Salatfreak>
Oh, there is "Agile web development with Rails 4" from 2013 as well which includes ruby as well. That pretty much seems to be what I need. Can anyone recommend that one?
tkuchiki has joined #ruby
leonshalimov has quit [Ping timeout: 240 seconds]
fgo_ has joined #ruby
Trieste has quit [Ping timeout: 276 seconds]
timanema has quit [Quit: leaving]
russt has quit [Quit: russt]
timanema has joined #ruby
bklane has quit []
timanema has quit [Client Quit]
timanema has joined #ruby
oo_ has joined #ruby
<mozzarella>
just read the official guides
timanema has quit [Client Quit]
ddd has joined #ruby
timanema has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
timanema has quit [Client Quit]
martinium has joined #ruby
timanema has joined #ruby
<dimaursu16>
and learn ruby, not "rails" ;)
Channel6 has joined #ruby
<dimaursu16>
devdocs.io is a pretty good resource to get documentation
martinium has quit [Remote host closed the connection]
timanema has quit [Client Quit]
martinium has joined #ruby
booly-yam-4014 has quit [Remote host closed the connection]
sevenseacat has joined #ruby
<mischief>
i don't get why this is so hard
<dimaursu16>
devdocs itself is written in Ruby. There are also several big Rails projects around, like Gitlab, Gitorious, Discourse, Diaspora*
<dimaursu16>
try to contibute to one of them - it will be more valuable than 3 books ;)
booly-yam-4014 has joined #ruby
charliesome has joined #ruby
dc has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Tricon has joined #ruby
bronson has joined #ruby
Voyage has joined #ruby
techietrash has joined #ruby
<Voyage>
whats the difference between ruby and ruby on rails
sklik has joined #ruby
<dimaursu16>
:))
sklik has quit [Read error: Connection reset by peer]
DadoCe has joined #ruby
<dimaursu16>
rails is web framework on top of ruby
<dimaursu16>
a web *
sklik has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
mr_rich101 has joined #ruby
techietrash has quit [Ping timeout: 245 seconds]
martinium has quit [Remote host closed the connection]
sklik has quit [Client Quit]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenn>
Salatfreak: Learn Ruby then decide if Rails is even the gem you want to go with for whatever project you're working on. You might want to say use Roda or Volt. Or for something really simple use Hobbit. There's a lot to Ruby beyond web dev, and a lot to Ruby web dev beyond Rails.
booly-yam-4014 has joined #ruby
j0n3 has quit [Quit: Leaving]
martinium has quit [Remote host closed the connection]
Channel6 has quit [Ping timeout: 240 seconds]
<havenn>
Salatfreak: Chris Pine's Learn to Program just covers the very basics. I'd recommend going beyond its scope to get a good grounding.
mjuszczak has joined #ruby
<havenn>
Well-Grounded Rubyist or The Ruby Programming Language cover a lot more ground.
tvw has quit [Ping timeout: 245 seconds]
havenn has quit []
martinium has joined #ruby
havenwood has joined #ruby
michaeldeol has joined #ruby
frem has joined #ruby
<Salatfreak>
Ok, so I'll try to get one of those... Good night everybody!
chipotle has quit [Quit: cheerio]
Voyage_ has joined #ruby
ta has joined #ruby
Voyage has quit [Ping timeout: 256 seconds]
icbm has joined #ruby
<havenwood>
Voyage: Ruby is a programming language. Rack is a popular Ruby webserver interface gem. Rails is a Rack adapter. There're other nice Rack adapters like Sinatra, Roda, Cuba, Lotus, Hobbit and many others.
<mischief>
how can i write multiprocess code in ruby?
blizzy has quit [Ping timeout: 264 seconds]
n008f4g_ has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 264 seconds]
uptownhr has quit [Quit: uptownhr]
pietr0 has quit [Quit: pietr0]
booly-yam-4014 has quit [Max SendQ exceeded]
<havenwood>
mischief: Threading with some caveats on GVL-bound Rubies. Forking on Rubies that support fork.
ta has quit [Ping timeout: 265 seconds]
<mischief>
what is gvl-bound?
<mischief>
what is a 'ruby' other than the language itself
blackmesa has quit [Ping timeout: 264 seconds]
<havenwood>
mischief: Global VM Lock
<havenwood>
there're multiple implementations of Ruby
booly-yam-4014 has joined #ruby
<mischief>
ah, that's rather unfortunate
dimaursu16 has quit [Ping timeout: 244 seconds]
martinium has quit [Remote host closed the connection]
<mischief>
so it's not possible to write threaded code without contending on this global lock?
Salatfreak has left #ruby [#ruby]
veduardo has quit [Ping timeout: 245 seconds]
kaspertidemann has quit []
mjuszczak has quit []
Tricon has quit [Ping timeout: 264 seconds]
paulfm has joined #ruby
<havenwood>
mischief: The reference implementation, known as CRuby or MRI, happens to have a GVL. There're plans to remove the GVL from CRuby in Ruby 3. You can still write threaded code, and lots of stuff doesn't acquire the global lock, but some stuff does.
martinium has joined #ruby
martinium has joined #ruby
martinium has quit [Changing host]
<mischief>
does cruby support fork and message passing?
mloveless has quit []
<pipework>
mischief: 'message passing'? As in interprocess communication?
<mischief>
yes
<pipework>
Ruby supports fork if the OS does.
<pipework>
It also has various IPC mechanisms.
<havenwood>
mischief: The upside is that on non-GVL Rubies like JRuby and Rubinius you can thread freely. And with CRuby yes you can fork and message pass. The standard library has a thing called dRuby or DRb.
marr has quit [Ping timeout: 272 seconds]
kstuart has quit [Quit: WeeChat 1.1]
startupality has quit [Quit: startupality]
dimaursu16 has joined #ruby
<mischief>
alright. i'm looking for a way to do csp-style programming in ruby. should i look at druby?
booly-yam-4014 has quit [Remote host closed the connection]
jerematic has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
<pipework>
I'm not familiar with the particular meaning of csp here.
kstuart has joined #ruby
booly-yam-4014 has joined #ruby
<mischief>
communicating sequential processes, like a pipeline.
<havenwood>
It's surprisingly easy to use Clojure STM or whatever else with JRuby.
sinkensabe has joined #ruby
<mischief>
sweet, channels/select is exactly what i was looking for
Megtastique has quit []
<havenwood>
mischief: there's one in concurrent-ruby too
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shime_ has quit [Ping timeout: 265 seconds]
jerematic has joined #ruby
<mischief>
i'll take a peek. thanks.
tokik has joined #ruby
adriancb has quit [Ping timeout: 245 seconds]
startupality has quit [Quit: startupality]
sinkensabe has quit [Ping timeout: 272 seconds]
leonshalimov has joined #ruby
paulfm has quit [Quit: Zzzzz...]
astrobunny has joined #ruby
paulfm has joined #ruby
Sawbones has joined #ruby
Sawbones has quit [Remote host closed the connection]
Voyage_ is now known as Voyage
paulfm has quit [Client Quit]
Hobogrammer has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
x1337807x has joined #ruby
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
seal has quit [Ping timeout: 245 seconds]
n008f4g_ has joined #ruby
AlexRussia has joined #ruby
leonshalimov has quit [Ping timeout: 276 seconds]
astrobunny has quit [Ping timeout: 265 seconds]
<Voyage>
dimaursu16 thanks. I see a LOT of jobs of ruby, ruby on rails, python thesedays. whats so hot about these?
n80_ has joined #ruby
hephaestus_rg has quit [Ping timeout: 264 seconds]
znst has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
iamjarvo has joined #ruby
booly-yam-4014 has quit [Max SendQ exceeded]
<dimaursu16>
dunno. what's so great about Justin Bieber?
<Voyage>
well, php is build for web. java is multip functional and enterprise level. whats python and ruby / ruby on rails for?
<dimaursu16>
just popular :)
booly-yam-4014 has joined #ruby
<dimaursu16>
ruby is build for programmer satisfaction :)
Sawbones has quit [Remote host closed the connection]
<dimaursu16>
I'm serious, btw.
Dolphi has quit [Read error: Connection reset by peer]
<dimaursu16>
rails is good for rapid prototyping, and if you are careful, you end up with a nice application
<dimaursu16>
python - they promote the idea that there is only one good way to solve a problem
CpuID has joined #ruby
echevemaster has joined #ruby
symbol has joined #ruby
jerematic has quit [Read error: Connection reset by peer]
shime has joined #ruby
echevemaster has quit [Client Quit]
<dimaursu16>
and they have indendation based scoping (or..whatever the word is) which I find nic
<dimaursu16>
nice
<symbol>
If you were tasked to teach OOD to a new programmer, would you bother starting with the SOLID principles or go directly into actual patterns like dependency injection?
Megtastique has joined #ruby
mrmargolis has joined #ruby
znst has quit [Ping timeout: 240 seconds]
uptownhr has joined #ruby
pdoherty has joined #ruby
<pipework>
symbol: I'd start with theory of encapsulation and message passing.
Sawbones has joined #ruby
<symbol>
pipework: Ah, that's a good one. O
CpuID has quit [Client Quit]
<dimaursu16>
i'd start with encapsulation, and single responsibility principle :) it think that's very important, to make clear separation between your objects
athan has joined #ruby
<pipework>
SRP is hard to nail down, imo.
<symbol>
I planned on adding those to the OOD overview - trying to decide where to go from there.
mjuszczak has joined #ruby
<symbol>
I'll probably use Sandi Metz's spaceship analogy, tends to make things click. Just can't decide where to go from there as far as practicalality
mac__ has quit [Quit: This computer has gone to sleep]
scripore has quit [Quit: This computer has gone to sleep]
<symbol>
*practicality
<Voyage>
last question: honestly, which dev is better paid (considering same experience) in java, php, ruby, python
martinium has quit [Remote host closed the connection]
<pipework>
Voyage: On average, ruby and python
PanzerModern has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<Voyage>
pipework ruby and python are more paid than java even?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
x1337807x has joined #ruby
<pipework>
Voyage: Usually. look at websites about reported incomes.
x1337807x has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 264 seconds]
<Voyage>
k
CpuID has joined #ruby
<pipework>
Look at job offerings. It also depends on your area, so in a global view, it's my experience that the average of any of those languages tends to leave ruby and python higher.
<dimaursu16>
Voyage, it all comes down to how well can you negotiate ;)
<symbol>
^
booly-yam-4014 has quit [Remote host closed the connection]
klmlfl has joined #ruby
mjuszczak has quit [Ping timeout: 256 seconds]
<dimaursu16>
I would not choose my programming language based on what's the highest paying
<pipework>
There's a market that influences how much you can expect to make though.
<symbol>
Neither would I - my brother just went from Ruby to Java and is earning more but hates his daily work.
AWizzArd has joined #ruby
<dimaursu16>
of course you should pick a language that had demand on the market, but don't base your final decision on that
<symbol>
I make less but I smile on my way to work.
booly-yam-4014 has joined #ruby
<AWizzArd>
Guys, is it okay to ask RoR questions in this chan?
<dimaursu16>
isn't there a dedicate one?
<symbol>
There is
<symbol>
#rubyonrails
<AWizzArd>
I tried #Rails and ##Rails
<havenwood>
AWizzArd: #RubyOnRails is a better place
mjuszczak has joined #ruby
<AWizzArd>
Ah okay, thanks!
mjuszczak has quit [Max SendQ exceeded]
bronson has quit [Ping timeout: 244 seconds]
<AWizzArd>
In #Rails they talked a lot about trains. Really dunno why.
mjuszczak has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
mjuszczak has quit [Max SendQ exceeded]
<dimaursu16>
:D
<symbol>
So, the consensus seems to stick to encapsulation and single responsiblity over delving into SOLID (which, I find to be a bit academic and meh)
<dimaursu16>
it's not bad to give introduction into solid - at least mention it
pawprint has joined #ruby
Voyage has quit [Ping timeout: 265 seconds]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<dimaursu16>
if he/she will be interested, at least will know what to look for
reset has quit [Quit: Leaving...]
juanpablo_ has joined #ruby
robustus|Off has joined #ruby
<dimaursu16>
those principles are not that hard to grasp, the problem is applying them in practice :)
josephndenton has joined #ruby
mjuszczak has joined #ruby
klmlfl has quit [Ping timeout: 256 seconds]
<symbol>
Very true - I really love Practical Object Oriented Design by Metz but I don't want my entire lesson to be that book.
robustus|Off is now known as robustus
mjuszczak has quit [Max SendQ exceeded]
<symbol>
Yeah, the thought of thinking up an example for each SOLID is not appealing
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
vdamewood has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<dimaursu16>
one thing that would be great - is a sort of pair programming - or live coding, if you have more "pupils"
<pipework>
symbol: I'd do what I suggested. SRP is a little fuzzy for a beginner.
<pipework>
Toss the idea their way, but don't try to hammer in an approach of determining what the R is.
mjuszczak has joined #ruby
<symbol>
I'll definitely be doing some live coding. Probably show bad code, refactor and what not. Might even show some specs.
mjuszczak has quit [Max SendQ exceeded]
<dimaursu16>
seeing how someone thinks in term of those principles, and how you make tradeoffs is very valuable
<symbol>
pipework: I enjoyed your input, I'll definitely consider that route.
mjuszczak has joined #ruby
<Xnfu>
I need a project right now. It's been a while since I've programmed something worth programming.
<symbol>
They give you project details and you go off on your happy with with pseduo requirements
Voyage has joined #ruby
<dimaursu16>
Xnfu, dig into diaspora* :) those guys could use some helping hands
<dimaursu16>
that project is way underpowered, unfortunately :-/
<Xnfu>
I'll take a look into this stuff
<pipework>
Yeah they could. They made a mess in a hurry back when it was still cool to talk about.
<Xnfu>
hmm
<Voyage>
pipework can i cross post if no one answers me in the other channel?
<sevenseacat>
we'd answer if you werent asking meaningless questions
<Voyage>
for example, a desktop application should not be written in php, a shell script if written in python or bash woudl be a better idea than to write in java. So what things can be done in ruby and python; respectively?
<Voyage>
sevenseacat ok
CpuID has quit [Quit: This computer has gone to sleep]
CpuID has joined #ruby
ta has joined #ruby
claptor has joined #ruby
mac__ has joined #ruby
scripore has joined #ruby
mjuszcza_ has joined #ruby
mjuszcza_ has quit [Max SendQ exceeded]
Voyage has left #ruby [#ruby]
<Xnfu>
Actually python and bash wouldn't always be the best choice
mjuszcza_ has joined #ruby
<Xnfu>
for a 'shell script'
booly-yam-4014 has quit [Max SendQ exceeded]
mjuszcz__ has joined #ruby
booly-yam-4014 has joined #ruby
mjuszczak has quit [Ping timeout: 256 seconds]
<pipework>
Clearly you should only write code using brainfuck.
<Xnfu>
++
<pipework>
That way you can preserve 97% of your keys from wear and tear.
<Xnfu>
Not a bad idea
<symbol>
Speaking of keys. Any of you use mechanical keyboards?
<Xnfu>
Nah, I use a gaming keyboard
amclain has joined #ruby
<Xnfu>
pipework: The true thing to do is be a man and use a virtual keyboard
<mozzarella>
symbol: I do
<symbol>
I use speech to text when I program. :P
ta has quit [Ping timeout: 276 seconds]
n80_ has quit [Quit: n80_]
<pipework>
I use generational programming techniques.
<symbol>
mozzarella: Are you forever sold? Everyone I talk to raves about them.
klmlfl has joined #ruby
ta has joined #ruby
einarj has joined #ruby
<pipework>
Write what I want to see and wait for the compiler to generate the code that satisfies the need.
<Xnfu>
He wrote penis
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<mozzarella>
symbol: yeah, they're better than normal keyboards that's for sure
<symbol>
heh
<mozzarella>
they're kind of addictive, though
<mozzarella>
I have 5 of them
mjuszcza_ has quit [Ping timeout: 276 seconds]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<pipework>
Five of what?
<symbol>
lol - nice. I might order the cherry mx switch tester
<pipework>
Oh mechanical keyboards.
<sevenseacat>
i thought he meant... never mind
mjuszczak has joined #ruby
<symbol>
massdrop has them on sale
<pipework>
I've got both revisions of the das keyboard ultimate.
<pipework>
Plus a couple other mechanicals that are soft key. I prefer cherry blues.
upsell5 has joined #ruby
mjuszcz__ has quit [Ping timeout: 272 seconds]
<symbol>
I really like having my thumbs hover over my trackpad.
<pipework>
I love the blank keys and the second revision's metal base.
<mozzarella>
my favorite is topre ;p
<symbol>
But i've gotten better at not needing it.
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
<sevenseacat>
i think i would like a mechanical keyboard, but people whinge enough about the volume of me typing on a normal one... just because i dont use one of their little mac keyboards
<symbol>
sevenseacat: likewise, I use a mac one and people still look over at me when I type
<pipework>
sevenseacat: I think you should make them grateful for the old keyboard by getting a new one and switching between them.
<Xnfu>
You are only cool when you have the ascii/hex/dec chart on your mousepad
<symbol>
I'm an angry chaotic typer
oo_ has quit [Remote host closed the connection]
<mozzarella>
sevenseacat: there are switches that are just as "quiet" as normal keyboards
djbkd has quit [Remote host closed the connection]
<pipework>
A lot of people botttom out the keys on mechanical keyboards, that's not good.
<sevenseacat>
i don't think i type especially loudly, but other people disagee >_>
<mozzarella>
topre, cherry mx brown, cherry mx red, etc.
<pipework>
Whether the switch is quiet or not, bottoming out can make a lot of noise and it's not good for you.
<symbol>
I want to type so loud that all my coworkers can hear me from their noise canceling headphones.
<Xnfu>
I just type really fast
ta has quit [Ping timeout: 276 seconds]
einarj has quit [Ping timeout: 245 seconds]
<mozzarella>
pipework: there's nothing wrong with bottoming out…
<pipework>
mozzarella: Yes there is.
<mozzarella>
no
<symbol>
I never thought of it as bottoming out. I most certainly do. It's therapy.
<pipework>
The force feedback is bad for your wrists.
<mozzarella>
and with some switches it's unavoidable
<pipework>
They're actually measured for the force required to actuate the switch, and you'll find information about not bottoming out the key.
<sevenseacat>
i really need noise cancelling headphones
<Xnfu>
So you can either guess if I type really fast or just manipulate flaws
<symbol>
I love mine. I wear them even with no music.
<mozzarella>
as I said, sometimes it's unavoidable
<pipework>
mozzarella: Only for a couple of the switches.
<sevenseacat>
i work in an open plan office, so
<mozzarella>
try not bottoming out buckling springs or topre
<symbol>
mozzarella: Did you test drive before buying the keys?
<pipework>
Those are the soft keys, iirc.
<mozzarella>
no
<Xnfu>
You guys should just get a pair of Astro A40's
<Xnfu>
They cancel all the noise
<pipework>
I have a50's
<Xnfu>
Yeah, good except the wireless
<Xnfu>
I heard some issues with those
<pipework>
Xnfu: Even that's nice.
<mozzarella>
pipework: buckling springs are far from being soft
* sevenseacat
looks them up
<pipework>
Because I can go wired easily and everything works.
<mozzarella>
symbol: not really
<Xnfu>
Ah, nice didn't know that
mjuszczak has quit [Ping timeout: 246 seconds]
<pipework>
mozzarella: The best way to use a mechanical keyboard is to have switches that don't require bottoming out if they have a high impact.
<symbol>
I've got some...bose despite their bad rap. They were free and they're super comfortable.
<pipework>
The healthiest thing for your hands and wrists is to not bottom out.
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sevenseacat>
i'm saving up for a pair of bose quietcomforts
<Xnfu>
My hand health has been shot from factory jobs
<symbol>
That's what I have, the new ones fold up real small too.
jenrzzz has quit [Ping timeout: 245 seconds]
<Xnfu>
Everyone finds out I program, do infosec, and bitch at me about how I'm stupid for working at a factory
<mozzarella>
pipework: not really
zacstewart has quit [Ping timeout: 245 seconds]
<pipework>
No, really.
<mozzarella>
unless you're usually using full force, it doesn't change anything
booly-yam-4014 has quit [Remote host closed the connection]
CpuID has quit [Quit: This computer has gone to sleep]
<pipework>
mozzarella: It does. Maybe you don't have carpal tunnel.
timanema has quit [Ping timeout: 265 seconds]
<symbol>
If a mechanical keyboard has the same feels as getting a brand new pen. Then I'm doing it.
<Xnfu>
or fibromyalgia on top of it
<mozzarella>
uh, I've had it, and never because of my keyboard
<pipework>
Because I know that the difference is 30m-1h of typing if I bottom out keys, or 8 hours.
booly-yam-4014 has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
<pipework>
It's not really something to not have because of your keyboard. You have it if you have it, and some activities cause it to flare up more.
<pipework>
And as it progresses, more things cause more pain.
<pipework>
I'm glad you get to enjoy bottoming out the keys for the maximum louds though. I do it on purpose occasionally, but not very long.
CpuID has quit [Client Quit]
iamjarvo has joined #ruby
krz has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
<symbol>
heh pipework that was mildly passive agressive.
<pipework>
symbol: Not really. I'm actually happy for him. Have you heard what it's like to type furiously while bottoming out the keys? It's pretty awesome sounding.
djbkd has joined #ruby
<symbol>
Ah, I must have misread your tone. The short comings of IRC.
<pipework>
I used to listen to a stream of that sound. Just continuous clackery.
<mozzarella>
uh? I don't think you have a clear idea of how I type
<Xnfu>
You guys hear that? So sekc
leonshalimov has joined #ruby
<mozzarella>
you know there's a middle ground between slowing your speed of 20 wpm just to make sure not to hit the bottom, and to bang on the keyboard, right?
pontiki has joined #ruby
<pipework>
Who said you have to slow down?
<Xnfu>
I don't slow down
<Xnfu>
"I don't get tired" - Kevin Gates
<pipework>
I guess you haven't mastered not bottoming out, because my speed is the same it was before I stopped bottoming out, it just took practice.
<pipework>
Guess you don't have a clear idea of how I type either.
<pontiki>
hello, all
<pipework>
pontiki is awake!
ta has joined #ruby
<pontiki>
indeed, and spent a whole day at work, too!
<pipework>
pontiki: What a waste.
<pontiki>
p.much, yeah
oo_ has quit [Remote host closed the connection]
<mozzarella>
I probably bottom out 20% of the time with cherry mx brown, and 100% of the time with bucklink springs
<pontiki>
what is it with you people and having your bottoms out?
leonshalimov has quit [Ping timeout: 246 seconds]
<Xnfu>
Easy access
<pipework>
If you can manage the feedback from the impact, I say all power to you, but as someone with more sensitive hands I'll have to refrain and stick with the healthy choice.
<mozzarella>
have you ever tried o-rings? or topre
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework>
No, I haven't tried o-rings, seems like an interesting idea. I'd have to get some to try on my sampler set to see if they'd be bearable.
<pipework>
Never heard of topre.
<mozzarella>
it has a soft landing
<pontiki>
sounds like pudding
<pipework>
The bottoming out part seems scary, but I'll try to order a sample to play with for the topre.
oo_ has joined #ruby
ta has quit [Ping timeout: 255 seconds]
mrdtt has joined #ruby
astrobunny has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<symbol>
pipework: where are these sampler sets?
<pipework>
The 0.2mm ones look nice.
shime has quit [Ping timeout: 264 seconds]
josephndenton has quit [Ping timeout: 272 seconds]
<pipework>
symbol: I usually get them off massdrop, but you can find them on the googs.
<mozzarella>
does it hurt your finger tips?
<pipework>
No, mostly my joints. Wrist and knuckle.
<symbol>
nice - yeah there's one for cmsstorm up right now. I'll keep an eye out for others
deric_skibotn has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework>
mozzarella: These o-rings looks fantastic.
<pipework>
s/looks/look/
fandi has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
upsell5 has left #ruby [#ruby]
amclain has quit [Quit: Leaving]
shivamib has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
mrmargol_ has joined #ruby
booly-yam-4014 has quit [Max SendQ exceeded]
Sawbones has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
ponga has quit [Read error: No route to host]
alkoma has quit [Ping timeout: 255 seconds]
roolo has joined #ruby
ponga has joined #ruby
ndrei has joined #ruby
anarang has quit [Quit: Leaving]
iamninja has quit [Quit: ZZZzzz…]
roolo has quit [Ping timeout: 265 seconds]
ponga has quit [Ping timeout: 265 seconds]
_Andres has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
withnale_ has joined #ruby
rdark has joined #ruby
g-nom3 has joined #ruby
g-nom3 has quit [Max SendQ exceeded]
blindsight has quit [Ping timeout: 244 seconds]
jheg has quit [Ping timeout: 276 seconds]
giuseppesolinas has joined #ruby
giuseppesolinas has quit [Remote host closed the connection]
g-nom3 has joined #ruby
thsig has joined #ruby
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
anarang has joined #ruby
dc has joined #ruby
commmmodo has joined #ruby
arup_r has quit [Remote host closed the connection]
blindsight has joined #ruby
ponga has joined #ruby
Doow has joined #ruby
blindsight is now known as Guest27213
blackmesa has quit [Ping timeout: 255 seconds]
josephcs has quit [Quit: (null)]
arup_r has joined #ruby
oo_ has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
commmmodo has quit [Ping timeout: 240 seconds]
josephcs has joined #ruby
ponga has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
chinaski has quit [Quit: Leaving]
dc has quit [Ping timeout: 255 seconds]
ponga has joined #ruby
leonshalimov has joined #ruby
booly-yam-4014 has joined #ruby
kitofr has joined #ruby
rdark has quit [Ping timeout: 245 seconds]
timanema has joined #ruby
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
dawkirst has joined #ruby
zwer_e has joined #ruby
<panga>
hey
leonshalimov has quit [Ping timeout: 246 seconds]
roshanavand has quit [Quit: Leaving.]
yokel has quit [Ping timeout: 272 seconds]
dawkirst has quit [Client Quit]
gfawcettpq1 has joined #ruby
jerematic has joined #ruby
zwer has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
roshanavand has quit [Max SendQ exceeded]
timanema has quit [Ping timeout: 252 seconds]
gfawcettpq1 has quit [Client Quit]
Tricon has joined #ruby
roshanavand has joined #ruby
yokel has joined #ruby
roshanavand has quit [Max SendQ exceeded]
roshanavand has joined #ruby
roshanavand has quit [Max SendQ exceeded]
kitofr has quit [Ping timeout: 245 seconds]
roshanavand has joined #ruby
roshanavand has quit [Max SendQ exceeded]
roshanavand has joined #ruby
jerematic has quit [Ping timeout: 276 seconds]
pdoherty has joined #ruby
roshanavand has left #ruby [#ruby]
mostlybadfly has joined #ruby
workmad3_ has joined #ruby
Lobosque has joined #ruby
kamilc__ has joined #ruby
hephaestus_rg has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
giuseppesolinas has joined #ruby
<Lobosque>
one quick best practice/code style question. Let's say I have a module named Computer. It has two classes named Mouse and Keyboard. So I have in my project a folder named computer/ with files mouse.rb and keyboard.rb inside. Now, I have some constants that are visible to every class in this module. Should I declare them in a separate file, lets say computer/constants.rb?
oo_ has joined #ruby
pdoherty has quit [Ping timeout: 255 seconds]
thsig has quit [Remote host closed the connection]
<waxjar>
put them in a module Computer::Constants and include it in Computer::Mouse/Keyboard (or reference them directly)?
Zai00 has joined #ruby
JohnBat26 is now known as JohnBat26|NotHer
JohnBat26|NotHer is now known as JohnBat26
JohnBat26 is now known as JohnBat26|NotHer
liamkeily1 has joined #ruby
lsmola_ has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
liamkeily has quit [Ping timeout: 264 seconds]
AlSquire has quit [Ping timeout: 240 seconds]
suy is now known as disperso
suy_ is now known as suy
troubadour has joined #ruby
rdark has joined #ruby
juanpablo_ has joined #ruby
Lobosque has quit [Quit: Page closed]
Jetchisel has joined #ruby
workmad3_ is now known as workmad3
lsmola has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troubadour has quit [Client Quit]
thsig has joined #ruby
Tricon has quit [Ping timeout: 246 seconds]
juanpablo_ has quit [Ping timeout: 244 seconds]
kalz has quit [Ping timeout: 245 seconds]
shime has quit [Ping timeout: 272 seconds]
bahamans has joined #ruby
shime has joined #ruby
amundj has joined #ruby
chthon has quit [Ping timeout: 264 seconds]
francisfish has quit [Ping timeout: 246 seconds]
<bahamans>
hello, I have this line in a Vagrantfile: config.vm.network :private_network, ip: "192.168.33.10" how can I reference the value of "ip" afterwards?
yokel has quit [Ping timeout: 264 seconds]
vdamewood has quit [Quit: Computer has gone to sleep.]
yokel has joined #ruby
wald0 has quit [Quit: Lost terminal]
alkoma has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Kruppe has quit [Ping timeout: 245 seconds]
goddamnit2 has joined #ruby
godd2 has quit [Disconnected by services]
goddamnit2 is now known as godd2
jusmyth has quit [Quit: Leaving.]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
timanema has joined #ruby
giuseppesolinas has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
alkoma has quit [Ping timeout: 264 seconds]
francisfish has joined #ruby
giuseppesolinas has quit [Client Quit]
tkuchiki has quit [Ping timeout: 240 seconds]
Morkel has quit [Quit: Morkel]
fjfish has joined #ruby
kitofr has joined #ruby
SparkMasterTape has quit [Quit: Leaving]
yokel has quit [Ping timeout: 245 seconds]
Kruppe has joined #ruby
startupality has joined #ruby
francisfish has quit [Ping timeout: 245 seconds]
jusmyth has joined #ruby
yokel has joined #ruby
Timgauthier has joined #ruby
atmosx has quit [Quit: Let him that would move the world first move himself. - Socrates]
roshanavand has joined #ruby
roshanavand has quit [Max SendQ exceeded]
roshanavand has joined #ruby
roshanavand has quit [Max SendQ exceeded]
DadoCe has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 245 seconds]
zarubin has quit [Remote host closed the connection]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
giuseppesolinas has joined #ruby
znst has quit [Ping timeout: 246 seconds]
<scottstamp>
config.vm.network[:ip]
<scottstamp>
er,
<scottstamp>
I think.
codecop has quit [Remote host closed the connection]
giuseppesolinas has quit [Client Quit]
fgo has joined #ruby
liamkeily1 has quit [Ping timeout: 244 seconds]
kl has quit [Ping timeout: 256 seconds]
<scottstamp>
hate that bloody syntax. not sure bahamans -- have you tried asking over in #vagrant? I'm sure someone in there would have an answer at hand.
kl__ has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
fedalto has quit [Quit: Leaving]
<bahamans>
scottstamp: well, this is ruby, that's why I asked here
<bahamans>
or isn't the syntax proper ruby?
yokel has quit [Ping timeout: 244 seconds]
<scottstamp>
It is, but it also sounds like you're trying to do something that'd be pretty common in a Vagrantfile. :P
<scottstamp>
it is
<bahamans>
scottstamp: actuall, I realized that vagrant doesn't expect the IP lower. I had to put "default"
kl has joined #ruby
kl__ has joined #ruby
liamkeily1 has joined #ruby
<scottstamp>
Just meant *I* don't like it, setting things with that sort of key/val feels clumsy to me, it's very akin to how a rack config file defines things. And oh?
yokel has joined #ruby
lurkmaster has joined #ruby
<ddv>
scottstamp: #vagrant
<lurkmaster>
guys i need some help
<scottstamp>
ddv: not me. ;)
<bahamans>
yeah, they don't actually give examples. I had to guess
jerematic has joined #ruby
<ddv>
scottstamp: sorry :(
<scottstamp>
haha, it's okay, #youtried
jokke has quit [Quit: ninja vanish]
<lurkmaster>
I'm trying to create a calendar with 19 weeks, each with 19 days. so i wrote a ruby script which creates arrays with the days of the month and then iterates through those arrays, every time it gets to a multiple of 19 its supposed to push that day to an array. so for january it pushed 19 to an array. for february it pushes 7 to the array
cablanchard has joined #ruby
<DefV>
seems your script is wrong, then
<lurkmaster>
because there are 31 days in february. so 19 * 2 = 38. 38 - 31 = 7. therefore february 7th
<scottstamp>
um
<DefV>
februari has 28 or 29 days
<lurkmaster>
assuming non leap year
<scottstamp>
^
Spami has quit [Quit: This computer has gone to sleep]
<lurkmaster>
it incorrectly prints out february 25, rather than february 26th
giuseppesolinas has joined #ruby
maximski has joined #ruby
<scottstamp>
*phew*, I was hoping it was a typo when you said feb=31 days
<lurkmaster>
it was a typo lol
* scottstamp
did not want to learn another calendar locale
<lurkmaster>
31 days in january
jerematic has quit [Ping timeout: 276 seconds]
fedalto has joined #ruby
jokke has joined #ruby
n1lo has quit [Ping timeout: 245 seconds]
roolo has joined #ruby
fandi has quit [Remote host closed the connection]
seal has quit [Quit: Ex-Chat]
jerematic has joined #ruby
claptor has quit [Quit: this channel is bakas]
giuseppesolinas has quit [Client Quit]
timonv_ has quit [Remote host closed the connection]
ferr_ has joined #ruby
<lurkmaster>
the only part of that code thats relevant is the very end. the each method on february
timonv_ has joined #ruby
<lurkmaster>
if you look at the output, it iterates through february 25, the counter marks 18, and then the next iteration should be february 26, the counter should be at 19 and it should then push 26 to the array
<lurkmaster>
but it doesn't
<lurkmaster>
instead it pushes 25 to the array because it hates me :)
Aswebb_ has quit [Read error: Connection reset by peer]
n80_ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lurkmaster>
if anyone can tell me why it gets stuck on 25 you have my eternal gratitude and good karma
bmichelsen has joined #ruby
<scottstamp>
it doesn't hate you, math hates you. it's always math.
bmichelsen has quit [Read error: Connection reset by peer]
roolo has quit [Ping timeout: 265 seconds]
<scottstamp>
also, you're adding 1 to c then checking if the remainder is zero in the month of january
<scottstamp>
if it doesn't, subtract 19
chrisja has joined #ruby
<scottstamp>
problem - subtract 19 from a number you just added a one to
<lurkmaster>
in that edit it prints out february 8
<lurkmaster>
the correct output should be january 19 february 7 and february 26
<lurkmaster>
that edit also puts out january 7
<scottstamp>
huh.
Pharaoh2 has joined #ruby
oo_ has joined #ruby
aclearman037 has joined #ruby
<scottstamp>
you're right. unno then D:
Aswebb_ has joined #ruby
<lurkmaster>
its so weird
<lurkmaster>
it puts out february 25 counter 18, and then the next step should be february 26 counter 19, but for some reason thats not what it does. the each loop stays on february 25 but increments the counter by +1
giuseppesolinas has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
timonv_ has quit [Remote host closed the connection]
Spami has joined #ruby
krzkrz has quit [Quit: WeeChat 1.0.1]
<scottstamp>
Any particular reason you're not just using the Date class?
<lurkmaster>
but I'm still curious why my original code didn't work
<lurkmaster>
why did the each iterator get stuck on february 25 for two iterations
panga has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
giuseppesolinas has joined #ruby
bjornar has quit [Ping timeout: 252 seconds]
ponga has joined #ruby
<lurkmaster>
glory for anyone who can figure that out
znst has joined #ruby
alkoma has joined #ruby
ponga has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
ponga has joined #ruby
giuseppesolinas has quit [Client Quit]
<lurkmaster>
going to have to sign up at stack overflow apparently
<scottstamp>
Lol, you'll get the same answer re: Date
bjornar has joined #ruby
ndrei has joined #ruby
timonv_ has joined #ruby
<jhass>
if I'm honest, I'd need to throw a debugger at that code and step through it to understand it
dfinninger has joined #ruby
oo_ has quit [Remote host closed the connection]
commmmodo has quit [Quit: commmmodo]
oo_ has joined #ruby
dblessing has joined #ruby
alkoma has quit [Ping timeout: 246 seconds]
giuseppesolinas has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
MasterPiece has quit [Quit: Leaving]
dimaursu16 has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
<jhass>
lurkmaster: you're coming from C I guess? :P
ferr_ has quit [Ping timeout: 245 seconds]
msrty has joined #ruby
dfinninger has quit [Remote host closed the connection]
rebcabin has joined #ruby
<lurkmaster>
jhass: nope i'm just a noob and picked the most laborious way of doing it. didn't even realize i could just use date lol
<shevy>
that's the beauty of ruby
<shevy>
the documentation is so well hidden that you discover the better way after years of using it!
mattp_ has joined #ruby
<lurkmaster>
yea that documentation is not fun to read through
lolmaus has quit [Ping timeout: 240 seconds]
lolmaus_ has joined #ruby
<jhass>
maybe a couple of style notes anyway: make calendar return the array, do not pass it in and modify it. also name it days_for_month or the like and implement just like 1.upto(n).to_a
athan has quit [Remote host closed the connection]
<jhass>
do not choose names like c, x and d
<jhass>
always be descriptive
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<jhass>
one, two are too things that tell me noting about their purpose
djbkd has quit [Ping timeout: 256 seconds]
n008f4g_ has joined #ruby
msrty has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
Photism has joined #ruby
<jhass>
you're assigning a ton of locals (the months) you're probably going to do the same operation to, I'd use an array of arrays there I guess
<jhass>
which then could also make the generation a bit smarter (by combining Array#map and Array#new)
<jhass>
try to use things like .times, .upto, .downto instead of while loops
<jhass>
try to use .map and maybe .select/.reject if you find yourself pushing things to an array in a loop
tkuchiki has joined #ruby
earfin has joined #ruby
<jhass>
if that doesn't apply, check Enumerable#each_with_object and Enumerator#with_object
ndrei has quit [Ping timeout: 246 seconds]
russt has joined #ruby
<lurkmaster>
ok
<lurkmaster>
whats a good debugger to use with ruby
leonshalimov has joined #ruby
ponga has quit [Remote host closed the connection]
timanema has quit [Ping timeout: 276 seconds]
ponga has joined #ruby
<jhass>
I use pry with pry-byebug, pry-resuce, pry-stack_explorer, pry-doc
<certainty>
i hear byebug is quite good
msrty has joined #ruby
msrty has quit [Read error: Connection reset by peer]
blackoperat has quit [Ping timeout: 245 seconds]
blizzy has joined #ruby
dimaursu16 has joined #ruby
dkphenom has joined #ruby
dkphenom has quit [Client Quit]
blizzy has quit [Client Quit]
chthon has quit [Ping timeout: 255 seconds]
blizzy has joined #ruby
atmosx has quit [Quit: WeeChat 0.4.4-dev]
decoponio has joined #ruby
leonshalimov has quit [Ping timeout: 264 seconds]
giuseppesolinas has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
juanpablo_ has joined #ruby
dstarh has joined #ruby
postmodern has quit [Remote host closed the connection]
giuseppesolinas has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
_5kg has quit [Ping timeout: 276 seconds]
dkphenom has joined #ruby
tesuji has joined #ruby
juanpablo_ has quit [Ping timeout: 245 seconds]
giuseppesolinas has quit [Client Quit]
roshanavand has quit [Ping timeout: 245 seconds]
az7ar is now known as az7ar_away
astrobunny has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jefus__ is now known as jefus
lurkmaster has quit [Ping timeout: 246 seconds]
Guest93143 has quit [Quit: leaving]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
slawrence00 has joined #ruby
nfk has joined #ruby
chthon has joined #ruby
freerobby has joined #ruby
martinium has quit [Remote host closed the connection]
metadave has joined #ruby
spider-mario has joined #ruby
roshanavand has joined #ruby
Asher has quit [Read error: Connection reset by peer]
<shevy>
certainty so is ur mom!
Asher has joined #ruby
pdoherty has joined #ruby
yokel has quit [Ping timeout: 276 seconds]
giuseppesolinas has joined #ruby
hiyosi has joined #ruby
silkfox has joined #ruby
yokel has joined #ruby
giuseppesolinas has quit [Client Quit]
<certainty>
shevy: too early for mum jokes
Asher has quit [Read error: Connection reset by peer]
Asher2 has joined #ruby
<shevy>
yeah, we need the late jokes
ferr has joined #ruby
pdoherty has quit [Ping timeout: 245 seconds]
ascarter has joined #ruby
<ddv>
yo momma
davedev24_ has joined #ruby
brb3 has joined #ruby
kl has joined #ruby
kl__ has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
roolo has joined #ruby
byprdct has joined #ruby
n1lo has quit [Quit: Leaving]
byprdct has quit [Max SendQ exceeded]
joonty has joined #ruby
ndrei has joined #ruby
giuseppesolinas has joined #ruby
<shevy>
no ddv
<shevy>
I said jokes
<shevy>
so not about ur momma
giuseppesolinas has quit [Client Quit]
LouisRoR has quit [Ping timeout: 245 seconds]
josephcs has quit [Quit: (null)]
metadave has quit [Ping timeout: 240 seconds]
LouisRoR has joined #ruby
bluOxigen has joined #ruby
msrty has joined #ruby
klmlfl has joined #ruby
blackoperat has joined #ruby
livcd has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
<jhass>
yo mama makes yo mama jokes about yo mama
JDiPierro has joined #ruby
anaeem1 has quit [Remote host closed the connection]
Tricon has quit [Ping timeout: 245 seconds]
anaeem1 has joined #ruby
juanpablo_ has joined #ruby
msrty has quit [Ping timeout: 264 seconds]
<mostlybadfly>
Yo man I heard i you like yo mama jokes so I made yo mama jokes about yo mama while in yo mama
psy_ has quit [Quit: Leaving]
Flcn has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
<mostlybadfly>
OK it was too early for that
martinium has joined #ruby
martinium has quit [Changing host]
martinium has joined #ruby
startupality has quit [Quit: startupality]
anaeem1 has quit [Ping timeout: 264 seconds]
revoohc has joined #ruby
lxsameer has quit [Quit: Leaving]
anaeem1 has joined #ruby
alkoma has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zorak8 has quit [Ping timeout: 264 seconds]
msrty has joined #ruby
anaeem1 has quit [Remote host closed the connection]
msrty has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
ta has joined #ruby
<olivier_bK>
i try to load all of my file in lib directory
thsig has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
joonty has joined #ruby
iwishiwerearobot has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
fryguy9 has quit [Quit: Leaving.]
giuseppesolinas has joined #ruby
zacstewart has joined #ruby
crueber has joined #ruby
uptownhr has quit [Quit: uptownhr]
sambao21 has joined #ruby
jokke has quit [Quit: ninja vanish]
dojobo has joined #ruby
mattwildig has joined #ruby
<dojobo>
hi guys
ypasmk has left #ruby [#ruby]
<dojobo>
newb question, i've been trying to get sharepoint to work as a frontend for a sql server db, for staff to enter data
bal has quit [Quit: bal]
tkuchiki has quit [Remote host closed the connection]
<dojobo>
and after trying/checking everything i can think of, i can't get it to work
jokke has joined #ruby
<dojobo>
instead i'm considering trying to write a rails app with either mysql or sql server as the data backend
tkuchiki has joined #ruby
<dojobo>
(but i've only just started learning ruby this weekend)
<dojobo>
how hard is this to do?
booly-yam-4014 has quit [Ping timeout: 265 seconds]
uptownhr has joined #ruby
anaeem1 has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
kitofr has quit [Ping timeout: 264 seconds]
rvchangue has joined #ruby
evanjs has quit [Remote host closed the connection]
mikepack has joined #ruby
icebourg has joined #ruby
Photism has quit [Quit: Leaving]
tkuchiki has quit [Ping timeout: 245 seconds]
uptownhr has quit [Client Quit]
evanjs has joined #ruby
anaeem1 has quit [Ping timeout: 240 seconds]
ddd has joined #ruby
<avril14th>
dojobo: seems like a overkill
fedalto has joined #ruby
<avril14th>
dojobo: look at active_admin gem though, if your editing is plain is simple, it will ease your work by a ton
bronson has joined #ruby
<Timgauthier>
you don't need to interface with the database directly, thus letting you be able to switch and upgrade things more easily! i love that part of rails
_tpavel has quit [Quit: Leaving]
jusmyth has quit [Quit: Leaving.]
^wald0 has joined #ruby
speaking1ode has joined #ruby
<dojobo>
thanks guys
iwishiwerearobot has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 264 seconds]
Doow has quit [Quit: Leaving]
speakingcode has quit [Ping timeout: 264 seconds]
oivoodoo has joined #ruby
terlar has joined #ruby
Channel6 has quit [Quit: Leaving]
uptownhr has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
kapil__ has quit [Quit: Connection closed for inactivity]
thsig_ has quit [Remote host closed the connection]
<shevy>
hmm one of you guys showed me how to put a random class into a specific module's namespace
baroquebobcat has joined #ruby
<shevy>
module Foo; end; class Bar; end <--- how to put Bar into Foo at run-time again?
pandaant has joined #ruby
sambao21 has joined #ruby
<workmad3>
shevy: class Fizz; end; module Foo; Bar = ::Fizz end
<workmad3>
shevy: something like that?
<shevy>
hmm
<shevy>
that confuses me I think
<workmad3>
shevy: you won't change the lexical scope of the class or module though
<shevy>
you use three different constants?
zacstewart has quit [Remote host closed the connection]
troubadour has quit [Ping timeout: 245 seconds]
bashusr has quit [Ping timeout: 255 seconds]
<workmad3>
shevy: well, I could have done 'class Bar; end; module Foo; Bar = ::Bar; end' ;)
maletor has quit [Quit: Computer has gone to sleep.]
<workmad3>
shevy: but I figured the different constant would make it clearer :P
JURCZ91 has joined #ruby
<shevy>
hehe
ta has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
ponga has quit [Quit: Leaving...]
bashusr has joined #ruby
<workmad3>
shevy: but yeah... you can put an arbitrary class into an arbitrary namespace by simply assigning the constant... but it won't change the 'automatic' features, like the name of the class, or it's lexical scope
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<shevy>
hmm
thiagovsk__ has joined #ruby
fgo has joined #ruby
<shevy>
ok
<shevy>
are Bar and Foo::Bar the same otherwise though? in the above example: class Bar; end; module Foo; Bar = ::Bar; end
<Xeago>
shevy: you don't know for sure if it confuses you? Are you confused whether it confuses you?
<shevy>
no I got it now
<shevy>
the 3 constants tripped me up
<shevy>
the example with the two constants is ok :)
<Xeago>
but were you at least confused whether you were confused or not? :D
<shevy>
I wondered where Bar came from in workmad3's first example
<Xeago>
the level of indirection is more important than whether it persisted
<shevy>
I am no longer confused right now
<Xeago>
That does not answer the question! AAAH
startupality has quit [Quit: startupality]
<Xeago>
it's vitally important to the discussion as to know whether you were confused about being confused!
<Xeago>
:>
<shevy>
I am trying to find out the difference between module Foo; class Bar ... and class Bar; end; module Foo; Bar = ::Bar; end
<shevy>
obviously one difference is that class Bar in the second example will be available on the top scope
grn has quit [Remote host closed the connection]
<shevy>
so I guess to be more equivalent, I would have to kill class Bar from the second example somehow
<shevy>
(in the top scope)
<shevy>
Bar = nil ?
<Xeago>
It's supposedly a constant right?
<Xeago>
and that would still leave it defined
thsig has joined #ruby
<Xeago>
module Foo; Bar= Class.new("Bar") { }; end
rbennacer has quit [Remote host closed the connection]
thumpba_ has joined #ruby
tus has joined #ruby
terlar has joined #ruby
thumpba has quit [Remote host closed the connection]
bronson has joined #ruby
kenneth has joined #ruby
leafybasil has quit [Remote host closed the connection]
agjacome has joined #ruby
atmosx has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
thumpba_ has quit [Client Quit]
thumpba has joined #ruby
allcentury has joined #ruby
rbennacer has joined #ruby
ptrrr has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
Zai00 has quit [Quit: Zai00]
whoisjake has quit []
sambao21 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
tkuchiki has joined #ruby
wpp has quit [Quit: ZZZzzz…]
oivoodoo has joined #ruby
xewuvu has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
NivenHuH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
longfeet has joined #ruby
longfeet_ has joined #ruby
crueber has joined #ruby
uptownhr has quit [Quit: uptownhr]
asmodlol has joined #ruby
wallerdev has joined #ruby
oivoodoo has quit [Ping timeout: 255 seconds]
msgodf has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
martinium has quit [Remote host closed the connection]
josephnd1nton has joined #ruby
giuseppesolinas has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
revoohc has quit [Quit: revoohc]
sambao21 has joined #ruby
rbennacer has quit [Remote host closed the connection]
lamasnik has joined #ruby
RandyT has quit [Ping timeout: 240 seconds]
psy_ has joined #ruby
revoohc has joined #ruby
failshell has joined #ruby
rbennacer has joined #ruby
fgo has joined #ruby
blackmesa has joined #ruby
Ankhers has joined #ruby
rajeshchawla has joined #ruby
rbennacer has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
revoohc has quit [Client Quit]
cody-- has quit []
roshanavand has joined #ruby
dumdedum has quit [Quit: foo]
n008f4g_ has joined #ruby
rkalfane has joined #ruby
kl has joined #ruby
kl__ has joined #ruby
Hijiri has joined #ruby
larissa has joined #ruby
Tricon has joined #ruby
EminenceHC has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
Meeh has quit [Ping timeout: 272 seconds]
davidhq has joined #ruby
rbennacer has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dkphenom has joined #ruby
grn has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Megtastique has joined #ruby
adamski2600 has joined #ruby
chthon has quit [Ping timeout: 264 seconds]
godd2 has quit [Remote host closed the connection]
muhendees has joined #ruby
<EminenceHC>
I am looking for a command that when given date, rounds to the previous July 1st. For example: Date.new(2014,12,30).mystery_command >> 2014,07,01 What would I use to accomplish this?
josephnd1nton has quit [Ping timeout: 256 seconds]
giuseppesolinas has joined #ruby
|\|370 has joined #ruby
thatslifeson_ has joined #ruby
<jhass>
don't think there's a premade method for that
grn has quit [Remote host closed the connection]
Meeh has joined #ruby
ranjib has joined #ruby
<jhass>
I'd dig out the components and do manual checks, then reconstruct the date
<EminenceHC>
jhass: I was thinking it would probably be a simple custom method but I am not sure how to go about it.
msgodf has quit [Remote host closed the connection]
LouisRoR has quit [Ping timeout: 264 seconds]
paulfm has quit [Quit: Zzzzz...]
yokel has quit [Ping timeout: 276 seconds]
<apeiros>
EminenceHC: you'll have to check first whether this year's july 1st already passed
paulfm has joined #ruby
<centrx>
FYI it's January
Pharaoh2 has quit [Ping timeout: 240 seconds]
<apeiros>
or rather, the given date's
yokel has joined #ruby
srnty has joined #ruby
ta has joined #ruby
rodfersou has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
cablanchard has quit []
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
roshanavand has quit [Ping timeout: 246 seconds]
SparkMasterTape is now known as DigitalDayTrader
Pharaoh2 has joined #ruby
<EminenceHC>
aperios: That makes sense.
DigitalDayTrader is now known as SparkMasterTape
mikepack has quit [Remote host closed the connection]
ta has quit [Ping timeout: 272 seconds]
Sawbones_ has joined #ruby
kitofr has joined #ruby
failshell has quit []
ixti has quit [Ping timeout: 244 seconds]
TL has joined #ruby
djbkd has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
timonv_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
m8 has joined #ruby
mikepack has joined #ruby
josephnd1nton has joined #ruby
Porfirium has quit [Quit: Porfirium]
Sawbones_ has quit [Ping timeout: 245 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 264 seconds]
iamninja has joined #ruby
recurrence has joined #ruby
giuseppesolinas has joined #ruby
<recurrence>
Hello, I need to pass a class into a function. eg: do_something(StuffClass) . Then call StuffClass.create in the function. How would I go about doing that?
startupality has quit [Quit: startupality]
roshanavand has joined #ruby
silkfox has quit [Ping timeout: 276 seconds]
srnty has quit [Quit: srnty]
<recurrence>
oh whoops, I had a different problem altogether. Fixed that and it’s working great, nevermind :)
<jenrzzz>
it sounds like it's finding the library but it's not what it expects
arup_r has quit [Quit: Leaving.]
recurrence has quit [Quit: recurrence]
startupality has joined #ruby
tkuchiki has quit [Ping timeout: 276 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
marr has joined #ruby
<crack_user>
I tried reinstall too, and install with brew option —HEAD
<crack_user>
but nothing work
daqo has joined #ruby
jheg has joined #ruby
JDiPierro has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
pdoherty has quit [Remote host closed the connection]
JDiPierro has joined #ruby
<jheg>
o/
<jheg>
Is it possible to configure rvm so that when I go into an app dir it loads the ruby version and gemset and when I exit it returns to the default ruby and gemset?
workmad3 has quit [Ping timeout: 264 seconds]
SixiS has joined #ruby
rbennacer has quit [Ping timeout: 272 seconds]
n80_ has quit [Quit: n80_]
josephnd1nton has quit [Ping timeout: 276 seconds]
tyfighter has quit [Quit: tyfighter]
ndrei has joined #ruby
<jenrzzz>
jheg: you can do that with `rbenv local` in rbenv... not sure if rvm does the same
anarang has joined #ruby
<crack_user>
you can put put the .rvmrc file in your dir, or .ruby-version and .ruby-gemset
<jenrzzz>
jheg: yeah, you can do rbenv with .ruby-version and .ruby-gemset
CpuID has quit [Quit: This computer has gone to sleep]
evanjs has joined #ruby
fdelacruz has quit [Quit: ircII EPIC5-1.1.10 -- Are we there yet?]
pandaant has quit [Remote host closed the connection]
zacstewart has quit [Remote host closed the connection]
OrbitalKitten has quit [Read error: Connection reset by peer]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfinninger has quit [Ping timeout: 276 seconds]
OrbitalKitten has joined #ruby
mikepack has joined #ruby
yokel has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 245 seconds]
yokel has joined #ruby
Sawbones_ has quit [Ping timeout: 252 seconds]
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
Ilyas has quit [Read error: Connection reset by peer]
pdoherty has joined #ruby
ta has quit [Ping timeout: 252 seconds]
whoisjake has quit []
msgodf has quit [Remote host closed the connection]
<shevy>
I feel like breaking and shaking
jenrzzz has joined #ruby
antgel has joined #ruby
OrbitalKitten has quit [Ping timeout: 272 seconds]
dimaursu16 has joined #ruby
CpuID has quit [Client Quit]
baweaver has joined #ruby
giuseppesolinas has joined #ruby
commmmodo has joined #ruby
commmmodo has quit [Client Quit]
ascarter has joined #ruby
JDiPierro has quit [Read error: Connection reset by peer]
dseitz has joined #ruby
JDiPierro has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
commmmodo has joined #ruby
n1lo has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
bronson has joined #ruby
last_staff has quit [Remote host closed the connection]
tyfighter has joined #ruby
silkfox has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
goshdarnyou has joined #ruby
ghr has joined #ruby
tyfighter has quit [Client Quit]
baroquebobcat has joined #ruby
triple_b has joined #ruby
defrang has quit [Quit: defrang]
Megtastique has joined #ruby
silkfox has joined #ruby
defrang has joined #ruby
OrbitalKitten has joined #ruby
baweaver has quit [Remote host closed the connection]
govg has quit [Ping timeout: 264 seconds]
roshanavand has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
buzzer_ has joined #ruby
<buzzer_>
anyone get this error ? /var/lib/gems/1.9.1/gems/mixlib-shellout-2.0.1/lib/mixlib/shellout/unix.rb:337:in `kill': no implicit conversion from nil to integer (TypeError)
ghr has quit [Ping timeout: 244 seconds]
Peter__ is now known as PNDPO
<buzzer_>
just updated mixlib::shellout from 1.4, but same problem....
giuseppesolinas has quit [Quit: This computer has gone to sleep]
govg has joined #ruby
OrbitalKitten has quit [Client Quit]
startupality has quit [Quit: startupality]
thumpba has joined #ruby
GaryOak_ has quit []
PNDPO has quit [Remote host closed the connection]
dfinning_ has quit [Remote host closed the connection]
dfinninger has joined #ruby
mloveless has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 245 seconds]
<shevy>
hmm the beach boys sung wouldn't it be mice
defrang has quit [Quit: defrang]
hrs has joined #ruby
GaryOak_ has joined #ruby
SixiS has quit [Quit: SixiS]
delianid_ has quit [Remote host closed the connection]
reset has quit [Ping timeout: 255 seconds]
recurrence has joined #ruby
dfinninger has quit [Ping timeout: 255 seconds]
shime has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
wodla00 has joined #ruby
lamasnik has quit [Ping timeout: 272 seconds]
decoponio has quit [Quit: Leaving...]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grubernaut has joined #ruby
n1lo has quit [Quit: Leaving]
tercenya has joined #ruby
TL has quit [Ping timeout: 265 seconds]
<grubernaut>
hello LazyWeb... I need to stringify hash keys before dumping to yaml. Any good ways to do this other than mapping the keys to strings manually before dumping the new hash?
Spami has quit [Quit: This computer has gone to sleep]
<grubernaut>
is what I have so far... And it works
<grubernaut>
haha
<centrx>
it looks like JSON already stringifies symbol keys? is this some other kind of key
claw has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
<apeiros>
json? they said yaml, no?
<centrx>
oh
<centrx>
u guyz r smrt
<grubernaut>
yeah, I'm parsing in YAML into a hash. This is done in a gem that's out of scope. So I have a local hash that is in the form of ":key => value" instead of "string" => "value"
<apeiros>
grubernaut: if it's rails: hash.stringify_keys
<apeiros>
if it's not rails: get the source of rails' stringify_keys
<centrx>
grubernaut, stringify_keys is in ActiveSupport, you can use the ActiveSupport gem separately from Rails, just add that to your project if you want
<grubernaut>
hoping to not add any gems, as it's for remote hosts through TK
martinium has quit [Ping timeout: 240 seconds]
OrbitalKitten has joined #ruby
<apeiros>
IMO hash.map { |k,v| [k.to_s, v.to_s] }.to_h is fine (or as you did with Hash[])
<grubernaut>
ya, was just hoping for an "easier softer way"
<grubernaut>
to_h is only avail on >2.0 I think
treehug88 has quit [Ping timeout: 244 seconds]
hyperdrive has joined #ruby
zacstewart has joined #ruby
hyperdrive has quit [Changing host]
hyperdrive has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
fgo has joined #ruby
treehug88 has joined #ruby
vdamewood has joined #ruby
giuseppesolinas has joined #ruby
Urocyon is now known as sfiggins
commmmodo has quit [Quit: commmmodo]
kitofr has quit [Ping timeout: 244 seconds]
omosoj has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
djbkd has joined #ruby
julio has joined #ruby
julio has quit [Client Quit]
mattwildig has quit []
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anarang has quit [Quit: Leaving]
zacstewart has quit [Remote host closed the connection]
PNDPO has joined #ruby
PNDPO has quit [Client Quit]
cpruitt has quit [Quit: cpruitt]
ByronJohnson has joined #ruby
ixti has joined #ruby
leonshalimov has quit [Ping timeout: 245 seconds]
olivier_bK has joined #ruby
Adran has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
OrbitalKitten has joined #ruby
<ByronJohnson>
Hypothetical Ruby question: If module Mod has singleton methods (module Mod; class << self; def foo; ...), is it possible to include the module's *singleton methods* into another module, Foo? (In this hypothetical case, the singleton methods aren't moved into instance methods inside a module, e.g. with the ClassMethods idiom.)
yokel has quit [Ping timeout: 240 seconds]
Porfirium has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
defrang has joined #ruby
kaspertidemann has joined #ruby
Hijiri has quit [Ping timeout: 264 seconds]
<wallerdev>
good question
asmodlol has quit [Quit: Leaving]
Hijiri has joined #ruby
alex88 has joined #ruby
<apeiros>
ByronJohnson: no
<wallerdev>
good answer
<wallerdev>
lol
<apeiros>
include/extend both only work on instance methods
leonshalimov has joined #ruby
<apeiros>
well, and prepend
* apeiros
keeps forgetting about that
workmad3 has joined #ruby
jerius has quit [Remote host closed the connection]
<apeiros>
there's only one thing which can share singleton methods: classes, through inheritance.
jerius has joined #ruby
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
DrCode has quit [Read error: Connection reset by peer]
St_Marx has quit [Write error: Connection reset by peer]
iamninja has quit [Read error: Connection reset by peer]
havenwood has quit [Read error: Connection reset by peer]
zwer_e has quit [Write error: Connection reset by peer]
Ankhers has quit [Write error: Connection reset by peer]
ishikawa has quit [Write error: Connection reset by peer]
<argoneus>
is there anything like SDL for Ruby? something that'd let me draw to a canvas, I need to draw a small tilemap
nanoyak has quit [Quit: Computer has gone to sleep.]
liamkeily has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
buzzer_ has quit [Ping timeout: 246 seconds]
zwer has joined #ruby
<Cat_1>
in a browser or client-side?
<wasamasa>
argoneus: gosu wraps sdl
conniemj_ has joined #ruby
<argoneus>
actually, it doesn't matter
<argoneus>
I'm fine with both
workmad3 has quit [Ping timeout: 246 seconds]
<argoneus>
maybe browser could be cool
<argoneus>
but then I'd probably rather use javascript, no?
<argoneus>
or is ruby viable as a front end language
conniemj has quit [Read error: Connection reset by peer]
orangerobot has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<argoneus>
wasamasa: but that's a game engine
<argoneus>
so it probably has things I don't need
<argoneus>
but thanks, I'll check it out if there's nothing better
ta has joined #ruby
<wasamasa>
generally, you'll probably find wrappers for sdl
<wasamasa>
maybe cairo (which is a 2d drawing API with lots of backends supported)
<argoneus>
oh, I can use Ruby/SDL
<argoneus>
nice!
<argoneus>
thanks
<argoneus>
is there anything good for browser btw?
bronson has joined #ruby
DadoCe has joined #ruby
paulfm has quit [Quit: Goodbye]
jimmyhoughjr has joined #ruby
blackoperat has quit [Ping timeout: 264 seconds]
ishikawa has joined #ruby
Hijiri has quit [Ping timeout: 240 seconds]
soxet has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
tkuchiki has joined #ruby
<orangerobot>
Hello. I need something to define what parameters a class's constructor can take. I 've built a module called HashInit (where I define what attributes this constructor takes, whether or not they're required, what types they should be and so on) but I wonder whether there's something else in ruby that more people use. Any one got any suggestions?
C1V0 has quit []
zacstewart has joined #ruby
mrmargolis has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
<wasamasa>
argoneus: hmm, I've heard of opal
dkphenom has joined #ruby
dkphenom has quit [Client Quit]
bronson has quit [Ping timeout: 244 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kamilc__ has joined #ruby
kamilc__ has quit [Client Quit]
DadoCe has quit [Ping timeout: 264 seconds]
tyfighter has joined #ruby
mrmargolis has quit [Read error: Connection reset by peer]
spider-mario has quit [Read error: Connection reset by peer]
Porfirium has quit [Quit: Porfirium]
mrmargolis has joined #ruby
aclearman037 has quit [Quit: I'm out!]
evanjs has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 264 seconds]
<crack_user>
hello guys
spyderman4g63 has quit [Ping timeout: 240 seconds]
iamninja has joined #ruby
Ankhers has joined #ruby
postmodern has joined #ruby
Prometheian has joined #ruby
<havenwood>
Nice to see JRuby 9.0.0.0.pre1 released! \o/
icarus has quit [Remote host closed the connection]
<crack_user>
I actualy could install therubyrace with "gem install therubyracer -v '0.10.2"
<crack_user>
but when I put in bundle with the same version it raise the error "Make sure that `gem install therubyracer -v '0.10.2'` succeeds before bundling."
DrCode has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
kitofr has quit [Ping timeout: 245 seconds]
<crack_user>
for me it does not make much sense
thesheff17 has joined #ruby
<orangerobot>
crack_user: replace it by nodejs
diegoviola has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
werelivinginthef has quit [Ping timeout: 245 seconds]
diegoviola has quit [Client Quit]
diegoviola has joined #ruby
recurrence has quit [Quit: recurrence]
odin22 has quit [Read error: Connection reset by peer]
PhilK_ is now known as PhilK
dc has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
totimkopf is now known as garbagepailkid
garbagepailkid is now known as GarbagePailKid
jerius has quit []
kitofr has joined #ruby
Joufflu has joined #ruby
odin22 has joined #ruby
n80_ has quit [Quit: n80_]
baweaver has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
Tricon has joined #ruby
nfk has quit [Quit: yawn]
it0a has quit [Quit: WeeChat 1.1]
<orangerobot>
i need a gem that can help me parse arguments passed to a method via *args. I have a system in place but I've made it myself so I thought there could be a more stable version in a gem or something. Basically I want to do with method arguments the same that is done with command-line arguments with the various command line options parsers.
<orangerobot>
For example, define what arguments are required, which are optional, what types they should be and so on. It's for a DSL.
djbkd has quit [Remote host closed the connection]
<orangerobot>
shortdudey123: I know trollop but this project i'm working on is no CLI project. There are a few methods with undefined parameter lists (*args) and I need to parse whatever arguments are used in that method call
martinium has quit [Ping timeout: 256 seconds]
<shortdudey123>
so an arg parser for internal code use?
<orangerobot>
yes! shortdudey123
<shortdudey123>
ah
kenneth has joined #ruby
<orangerobot>
i can make my own but i wanted to see whether someone has come across this already
<jhass>
why not define a proper API
<jhass>
easier for both sides
<apeiros>
+1
<shortdudey123>
+1
thiagovsk__ has quit [Quit: Connection closed for inactivity]
shime has joined #ruby
<orangerobot>
i think I'm too early in the project to cement things like that
<orangerobot>
i'm still experimenting to see what are good parameters
brb3 has quit [Quit: <.<]
<shortdudey123>
if you don't start early, its a pain to do later on when you have stuff already coded in :)
ali__ has joined #ruby
<jhass>
defined != cemented
<jhass>
you can always change stuff
<wallerdev>
i just use *args for everything, very flexible
<wallerdev>
:p
<jhass>
and with a proper API you get errors messages in places you forgot to update as a bonus
<wallerdev>
really your unit tests should verify that you pass the right parameters
byteoverfl0w has joined #ruby
elfuego has joined #ruby
ghr has joined #ruby
<elfuego>
does ruby typically behave the same on mac os and ubuntu?
_2_gamer has quit [Remote host closed the connection]
<jhass>
ellisTAA: the last expression of a method is its return value
<jhass>
in your case idx += 1
tzero has left #ruby ["WeeChat 0.4.3"]
<jhass>
whatever that's doing there anyway
kitofr has quit [Ping timeout: 264 seconds]
<wallerdev>
probably meant to put idx += 1 inside the map
<ellisTAA>
jhass: that’s what i figured, i’m trying to get the idx variable to increment. do u know where i’m going wrong with this? thanks for taking the time to look at it
<jhass>
I just said where you are going wrong
Eiam_ has joined #ruby
<ellisTAA>
do u know where i’d put the idx += 1
djbkd has joined #ruby
<wallerdev>
lol
byteoverfl0w has quit [Ping timeout: 244 seconds]
<ellisTAA>
i tried several areas and got various error messages
daqo has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
<wallerdev>
you understand the map do .. end is a loop right?
<wallerdev>
it will run once per item in your list
monq has joined #ruby
crack_user has quit [Quit: Leaving.]
leonshalimov has quit [Ping timeout: 272 seconds]
<ellisTAA>
yeah i understand it is a loop, but if i put idx += 1 after end.join(“ “) will it not see it until after?
pdoherty_ has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
<wallerdev>
yeah if you had 100 items in your list, map would run 100 times, then call join on the results, and then call idx += 1
devdazed has quit [Quit: Computer has gone to sleep.]
<ellisTAA>
ah thanks …
n80_ has joined #ruby
<wallerdev>
you might want to split it up into more lines of code while you figure out the concepts
<wallerdev>
just any book on data structures and algorithms
<benlieb>
I was just asked a question in an interview to write an algorithm to calculate all elements which equal a number sum2([2,4,3,1,5,7],6) = [[2,4],[1,5]]
fgo has joined #ruby
<wallerdev>
choosing the right data structure is where most performance gains come from
<vandemar>
ellisTAA: yeah forgot parens sorry
<wallerdev>
so learning those and when to apply them is best
djbkd has joined #ruby
<benlieb>
The interviewer said I should use a hash to keep track of what numbers I had "seen", as that's faster than looking up values in an array.
<wallerdev>
yeah storing things in hashes is pretty much the answer to 99% of interview questions
<wallerdev>
lol
Sawbones_ has joined #ruby
<jhass>
benlieb: just use Crystal :P
nanoyak has quit [Quit: Computer has gone to sleep.]
<wallerdev>
dat O(1) lookup
<wallerdev>
you could read up on memoization for problems like that though
<wallerdev>
ive read through some of that one i think
m8 has quit [Quit: Sto andando via]
<benlieb>
ellisTAA: that sounds like a good thing to read
<wallerdev>
yeah thats a good book
<wallerdev>
especially all the nontechnical stuff it goes over
<wallerdev>
really enjoyed reading through that to prep
omosoj has quit [Quit: leaving]
fgo has quit [Ping timeout: 264 seconds]
nanoyak has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sawbones_ has quit [Ping timeout: 244 seconds]
benlieb has quit [Quit: benlieb]
freerobby has quit [Quit: Leaving.]
oleo is now known as Guest88962
oleo__ has joined #ruby
freerobby has joined #ruby
djbkd has quit [Remote host closed the connection]
scripore has joined #ruby
charliesome has joined #ruby
nateberkopec has quit [Quit: Leaving...]
mac__ has joined #ruby
djbkd has joined #ruby
<ellisTAA>
i’m trying to get my code to not capitalize articles unless they are the first word in a string. can anyone help me add this exception to my code?? https://gist.github.com/ellisTAA/10239726d030a474239d i can’t seem to figure it out
Guest88962 has quit [Ping timeout: 245 seconds]
scripore has quit [Client Quit]
mac__ has quit [Client Quit]
scripore has joined #ruby
freerobby has quit [Client Quit]
leafybasil has joined #ruby
codecop has quit [Remote host closed the connection]
marr has quit [Ping timeout: 245 seconds]
<wallerdev>
ellisTAA: you were close before
<ellisTAA>
><
baweaver has joined #ruby
<wallerdev>
try adding some puts statements in your method
<wallerdev>
like output the value of idx inside map and things likethat
<ellisTAA>
hmm ok
<wallerdev>
youll get a good understanding of where things might be going wrong
Xeago_ has quit [Remote host closed the connection]
Ulrike_Rayne is now known as Ulrk_Ryn
evanjs has joined #ruby
Ulrk_Ryn is now known as Lrk_Ryn
hiyosi has joined #ruby
<ellisTAA>
what do u mean half tested? like half passed?
Guest58270 is now known as bakis
Lrk_Ryn is now known as Ulrike_Rayne
zorak8 has joined #ruby
bakis has quit [Changing host]
bakis has joined #ruby
<wallerdev>
vandemar: ???
_djbkd has joined #ruby
<wallerdev>
what is line 6 doing
<wallerdev>
lol
adriancb has quit [Remote host closed the connection]
ddd has quit [Quit: goddamn I hate dual booting sometimes. unclean windows fs, can't mount when I need it]
Xeago has joined #ruby
diegoviola has quit [Remote host closed the connection]
<vandemar>
it's only redundant if it's not an article.
icebourg has quit []
djbkd has quit [Read error: Connection reset by peer]
evanjs has quit [Read error: Connection reset by peer]
<wallerdev>
line 6 does nothing
evanjs has joined #ruby
<vandemar>
sigh. capitalize!
Xeago has quit [Remote host closed the connection]
elfuego has quit [Quit: elfuego]
<wallerdev>
lol
<wallerdev>
dont use ! methods
kaspertidemann has quit []
<vandemar>
well I haven't seen any other great ideas other than ugly use of indices
<wallerdev>
.map.with_index would work
<wallerdev>
simple enough
snath has quit [Ping timeout: 245 seconds]
francisfish has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CpuID has joined #ruby
benlieb has joined #ruby
akas has joined #ruby
Tricon has quit [Ping timeout: 255 seconds]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
Joufflu has quit [Quit: Peace]
ghr has joined #ruby
vdamewood has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
benlieb has quit [Quit: benlieb]
_djbkd has quit [Remote host closed the connection]
bronson has joined #ruby
<ellisTAA>
how does with_index work?
ghr has quit [Ping timeout: 245 seconds]
scripore has quit [Quit: This computer has gone to sleep]
nuck has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
djbkd has joined #ruby
<otertore>
>> articles = %w(to and in the of a an); "the man in the iron mask".split(' ').with_index.map{|w,i| i == 0 || !articles.include?(w) ? w.capitalize : w }
<otertore>
>> articles = %w(to and in the of a an); "the man in the iron mask".split(' ').map.with_index{|w,i| i == 0 || !articles.include?(w) ? w.capitalize : w }