<pipecloud>
Globals are things that ruby uses, not you.
maletor has quit [Quit: Computer has gone to sleep.]
musl has joined #ruby
<pipecloud>
MrZYX: Yours fails the test because it doesn't maybe use env! :p
predator217 has quit [Ping timeout: 245 seconds]
<LiohAu>
MrZYX: the thing is that i'm writing that in the hooks.rb of cucumber (if you know), and I don't know what scope is this file
mansi has joined #ruby
maletor has joined #ruby
<MrZYX>
pipecloud: I rarely even read comments, they are like whitespace to me and whitespace needs to be stripped! :P
carif has joined #ruby
lfox has quit [Quit: ZZZzzz…]
<LiohAu>
I don't know if I am in a class, and I don't even understand what are their hooks, if they are method of a given class or if they kind of anonymous methods
jerius has joined #ruby
<LiohAu>
it's like if I was coding in a C "int main() { }" function without knowing that my code belongs to that function scope, so everything sounds like a global here
zeade has quit [Quit: Leaving.]
awarner has quit [Remote host closed the connection]
<MrZYX>
you mean you want to do something like foo = "bar", After do; do_something_with foo; end ?
pel_daniel has left #ruby [#ruby]
<LiohAu>
for example yes
<MrZYX>
then just do, no need for a global
emocakes has quit [Quit: Leaving...]
<LiohAu>
but in your example what is the scope of "foo" ?
mdev has joined #ruby
pragmatism has quit [Quit: Leaving...]
<MrZYX>
blocks inherit the scope (and thus all locals) they're defined in
<mdev>
what are some big sites that are ruby powered?
<LiohAu>
MrZYX: the cucumber hooks are what ruby calls blocks ?
echevemaster has quit [Remote host closed the connection]
<pipecloud>
MrZYX: So you write your ruby like this:
awarner has quit [Remote host closed the connection]
<MrZYX>
pipecloud: sure, all day!
echevemaster has joined #ruby
<MrZYX>
LiohAu: stuff between do end and { code } are called blocks, After is just a method that happens to look like a constant
awarner has joined #ruby
klaut has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
<LiohAu>
ok so when I see a "def" keyword it's a method, but when I see the "do" keyword, it's a block, right?
<MrZYX>
pipecloud: I was to lazy to type superfluous and found it might be superfluous to type superfluous ;)
<LiohAu>
I should read "ruby for dummies" :D
vikhyat has quit [Remote host closed the connection]
<MrZYX>
LiohAu: yep
awarner_ has joined #ruby
troyready has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
<agent_white>
LiohAu: do..end == {..}
awarner_ has quit [Remote host closed the connection]
<agent_white>
LiohAu: You should read _why's guide and the pickaxe, for starters!
awarner has quit [Read error: Connection reset by peer]
awarner has joined #ruby
<LiohAu>
ok that explains the different .each syntax I saw .each { |x| } and .each do |x| end
Lewis has quit [Remote host closed the connection]
Aryasam_ has quit [Quit: Bye]
<MrZYX>
yeah, ruby doesn't care which one you choose. Many people choose the convention of using { } when the return value of the block matters and do end if it doesn't
<ddd>
LiohAu: The Well-Grounded Rubyist. excellent book by David Black
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
nwertman has joined #ruby
almarshall has joined #ruby
fella6s has quit [Ping timeout: 245 seconds]
baroquebobcat has joined #ruby
anderson has quit [Ping timeout: 246 seconds]
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
pzula has quit [Ping timeout: 260 seconds]
shime has quit [Ping timeout: 260 seconds]
Bry8Star{T2 has joined #ruby
<LiohAu>
when I execute a ruby script like this : "X=1 my_script" is X stored in the ENV ?
mansi has quit [Remote host closed the connection]
<MrZYX>
it should be
jonahR has joined #ruby
<LiohAu>
in the ENV of the shell and also in the ruby env right
<LiohAu>
?
<MrZYX>
with that syntax only in the environment of the program you invoke
<waxjar>
if your shell supports that feature it does :) to be safe you could use env
pragmatism has joined #ruby
joast has quit [Ping timeout: 272 seconds]
hiyosi has joined #ruby
pzula has joined #ruby
ahawkins has quit [Ping timeout: 246 seconds]
angusigu1ss has joined #ruby
mikecmpbll has joined #ruby
VTLob has quit [Quit: VTLob]
mikeric has quit [Ping timeout: 240 seconds]
robustus has quit [Ping timeout: 264 seconds]
jrhorn424 is now known as zz_jrhorn424
robustus has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
nhhagen has joined #ruby
jkhwan has quit [Remote host closed the connection]
m__s has quit [Ping timeout: 260 seconds]
jkhwan has joined #ruby
baroquebobcat has joined #ruby
ehaliewicz has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrZYX is now known as MrZYX|off
baroquebobcat has quit [Client Quit]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<troyready>
Trying to figure out why a chef (knife) plugin isn't working, and I think I'm running into an issue with my ruby ignorance: in irb, if I can successfully do "requires 'graphviz'", why does "g = GraphViz.new(...)" cause a "NameError: uninitialized constant GraphViz" error?
tylersmith has quit [Remote host closed the connection]
Jdubs has joined #ruby
asteros has quit [Ping timeout: 260 seconds]
magoo has quit [Ping timeout: 260 seconds]
ner0x has quit [Remote host closed the connection]
Lewis has joined #ruby
Atrophius has quit [Ping timeout: 252 seconds]
jerius has quit []
Lewis has quit [Ping timeout: 240 seconds]
_maes_ has joined #ruby
nfk has quit [Quit: yawn]
sergicles has quit [Quit: sergicles]
nwertman has quit [Ping timeout: 240 seconds]
almarshall has quit [Quit: almarshall]
<aces1up>
how would i pipe a system command to an io object so that i could read the long running system command output from the io as it happens?
nhhagen has joined #ruby
jamesaanderson has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
<bnagy>
check out the open3 stdlib
troyready has quit [Quit: Leaving]
lyanchih has joined #ruby
ahawkins has joined #ruby
SteveBenner9 has quit [Quit: Leaving]
Voodoofish430 has quit [Quit: Leaving.]
fdelacruz has joined #ruby
nhhagen has quit [Ping timeout: 240 seconds]
mmcdaris has quit [Quit: mmcdaris]
blinks has joined #ruby
ahawkins has quit [Ping timeout: 240 seconds]
KS has quit [Ping timeout: 240 seconds]
blinks has quit [Client Quit]
raphaelivan has joined #ruby
heidi has quit [Quit: Leaving.]
LiohAu has quit [Quit: LiohAu]
fijimunkii has quit [Ping timeout: 240 seconds]
tylershipe has joined #ruby
nobitanobi has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
cpruitt has joined #ruby
werdnativ has quit [Ping timeout: 260 seconds]
jamesaanderson has joined #ruby
cpruitt has quit [Client Quit]
Barrin6 has joined #ruby
pragmatism has quit [Ping timeout: 246 seconds]
wildroman2 has quit [Ping timeout: 246 seconds]
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
Lewix has joined #ruby
Guedes0 has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
tylershipe has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
tylershipe has joined #ruby
mr_red has quit [Quit: Bye :)]
DouweM has joined #ruby
Reach has quit [Read error: Connection reset by peer]
Reach has joined #ruby
mr_red has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
jkhwan has joined #ruby
randomnick_ has quit [Quit: Leaving]
ner0x has joined #ruby
jkhwan has quit [Remote host closed the connection]
raphaelivan has quit [Quit: Leaving.]
jkhwan has joined #ruby
shadoi has quit [Quit: Leaving.]
fdelacruz has quit [Quit: EPIC5-1.1.5[1683] - amnesiac : Candy is dandy, but chloroform keeps them little bastards quiet while I shag 'em]
tylershipe has quit [Ping timeout: 246 seconds]
DouweM has quit [Client Quit]
yw0 has joined #ruby
<yw0>
Hi, is there a standard parser in ruby implementation? I saw something called Ripper, but not sure if it is the best one to use. I need accurate location information for all names in ruby files.
julweber has joined #ruby
Stevo123 has joined #ruby
<Stevo123>
Does Nokogiri or Open-URI have built in caches that are turned on by default?
thelorax123 has quit [Remote host closed the connection]
<Stevo123>
I am loading a webpage for path scrape using Open-URI and nokogiri, but often the page will load but the scape will return the same results even though when viewing in the browser its different
nobitanobi has quit [Ping timeout: 260 seconds]
<bnagy>
I am pretty bad at web stuff, but you might have better results with a JS enabled scraper
<bnagy>
or cookies or who the hell knows
thelorax123 has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
Kricir has joined #ruby
SirFunk has quit [Remote host closed the connection]
capicue has quit [Quit: Leaving...]
michaeldeol has joined #ruby
browndawg has joined #ruby
<pipecloud>
Stevo123: I would figure out if it's because your target is using JS to change the page, or if it's perhaps something with your user agent. There's a number of things it could be. I would suggest that you use phantomjs to automate scraping though.
<Stevo123>
So it seems to be intermittent. So after a few min it would pick up the change
<bnagy>
celerity is also awesome, if you use jruby
Arzaga has joined #ruby
<bnagy>
I've done capybara with phantom, which has a really great dsl, and Celerity, which has better naive performance because of jruby parallel threads
michaeldeol has quit [Ping timeout: 252 seconds]
<bnagy>
you could just process out on capybara/phantom though and get the same
aces1up has quit [Read error: Connection reset by peer]
aces1up has joined #ruby
joast has joined #ruby
<Stevo123>
would the url being https have any effect?
noob101 has joined #ruby
robbyoconnor has joined #ruby
<noob101>
How do you use your method? Do I have to put a gets.chomp in my code??? How?
Kabaka has quit [Ping timeout: 264 seconds]
<bnagy>
oh no :(
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
psyl0n has joined #ruby
Hanmac1 has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
frankperez87 has joined #ruby
Atrophius has joined #ruby
eka has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
eka has quit [Client Quit]
<frankperez87>
Hi everyone,
<frankperez87>
from anyones experience. I'm looking to get into GUI programming for desktop applications and was curious as to which way I should steer. I've seen info regarding Shoes4 and WxRuby, but what from everyones experience would be the best way to create gui applications cross platform (windows, mac, linux)
aces1up has quit []
magoo has joined #ruby
nhhagen has joined #ruby
rudisimo has joined #ruby
SirFunk has joined #ruby
KS has joined #ruby
tomzx_mac has joined #ruby
Kabaka has joined #ruby
KS has quit [Client Quit]
pzula has quit [Ping timeout: 260 seconds]
radic has joined #ruby
nhhagen has quit [Ping timeout: 260 seconds]
pzula has joined #ruby
dhruvasagar has joined #ruby
radic_ has quit [Ping timeout: 252 seconds]
Spami has quit [Quit: This computer has gone to sleep]
pwh has joined #ruby
davedev24 has joined #ruby
davedev24 has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 252 seconds]
davedev24 has joined #ruby
pzula has quit [Ping timeout: 240 seconds]
Stevo123 has quit [Quit: Stevo123]
tomzx_mac has quit [Quit: return 0;]
CaptainJet has quit []
synergy_ is now known as doIevenLift
julweber has quit [Remote host closed the connection]
dmyers has quit [Quit: Connection closed for inactivity]
magoo has quit [Quit: WeeChat 0.4.2]
zeade has joined #ruby
Tectonic has joined #ruby
freerobby has quit [Quit: Leaving.]
Tectonic has quit [Client Quit]
reset has quit [Ping timeout: 240 seconds]
Tectonic has joined #ruby
zcreative has joined #ruby
mojjojo has joined #ruby
kofno has joined #ruby
snath has quit [Ping timeout: 240 seconds]
marcgg_ has quit [Read error: Connection reset by peer]
Leighton has joined #ruby
marcgg has joined #ruby
ner0x has quit [Remote host closed the connection]
maletor has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
Olipro has quit [Ping timeout: 246 seconds]
frankperez871 has joined #ruby
<pipecloud>
frankperez87: Shoes is a pretty neat one, but I think your best bet for a full framework is bundling gtk.
ner0x has joined #ruby
frankperez87 has quit [Read error: Connection reset by peer]
<frankperez871>
pipecloud: Thanks, ill read up on that.
<pipecloud>
frankperez871: If you don't mind JRuby, there's more choices there.
<frankperez871>
pipcloud: I'm new to gui development, so im trying to read up on as many as possible to see whats the best option. I'm looking for something full featured that will work cross platform
heidi has joined #ruby
amoli has quit [Ping timeout: 246 seconds]
timonv has quit [Ping timeout: 246 seconds]
iliketur_ has quit [Quit: zzzzz…..]
olivier_bK has quit [Ping timeout: 252 seconds]
znode has joined #ruby
Monie has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 246 seconds]
Monie has quit [Max SendQ exceeded]
mdev has joined #ruby
Monie has joined #ruby
Monie has quit [Client Quit]
<mdev>
is there something ruby excels in, in paticular? like perl is know for scripting/regexp parsing, php for easy webdev development, c for cross platform and speed etc...
anunakki has joined #ruby
dhruvasagar has joined #ruby
jacobsmith has joined #ruby
gigetoo has quit [Remote host closed the connection]
noob101 has quit [Ping timeout: 250 seconds]
almarshall has joined #ruby
pu22l3r has joined #ruby
zeade has quit [Quit: Leaving.]
JBlazeCoder21 has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
<stevenhaddox>
mdev: Ruby is probably most known for it's ease of understanding as a human and the community being strong advocates of testing
<stevenhaddox>
mdev: and Rails
anunakki has quit [Read error: Connection reset by peer]
davedev24 has quit []
yfeldblum has quit [Remote host closed the connection]
<mdev>
twitter was made in it, interesting
anunakki has joined #ruby
snath has joined #ruby
funburn has joined #ruby
zz_jrhorn424 is now known as jrhorn424
shedd has quit [Remote host closed the connection]
rudisimo has quit []
agent_white has quit [Quit: leaving]
mojjojo has quit [Quit: mojjojo]
maletor has quit [Quit: Computer has gone to sleep.]
rezzack has quit [Ping timeout: 260 seconds]
LiquidInsect has quit [Read error: Connection reset by peer]
crus has quit [Ping timeout: 245 seconds]
yw0 has quit [Quit: yw0]
xk_id has quit [Quit:
iliketur_ has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
shedd has joined #ruby
<spike|spiegel>
mdev: and twitter no longer uses it.
kofno has joined #ruby
dmyers has joined #ruby
bkparso has quit [Quit: bkparso]
crus has joined #ruby
IceDragon has quit [Ping timeout: 264 seconds]
<mdev>
spike why not?
capicue has joined #ruby
amritanshu_RnD has joined #ruby
akonny has joined #ruby
nhhagen has joined #ruby
<jacobsmith>
mdev: I think it was because twitter got so big for it--because it's an interpreted language, there's only so much optimization you can do before you have to start writing custom solutions, or in compiled languages (Arduino, et al. use C for more or less the same reason)
fijimunkii has joined #ruby
agent_white has joined #ruby
mattattaque has joined #ruby
<mdev>
makes sense read they switched to scala and use some VM
kitak has quit [Remote host closed the connection]
Reach has quit [Remote host closed the connection]
braincra- has quit [Quit: bye bye]
nhhagen has quit [Ping timeout: 252 seconds]
<jacobsmith>
yeah, ruby definitely can scale to fairly large sizes before you have to start doing things like that, especially on a JRuby implementation, because it allows true multitasking
<JBlazeCoder21>
I think they had trouble with scaling at the time, yet this was awhile ago that they made the switch
Kricir has joined #ruby
<JBlazeCoder21>
and from what I read, Ruby does not have the same issues now
<JBlazeCoder21>
I am not sure what version of Ruby it was, yet it was a much older version then whats out now
havenwood has joined #ruby
braincrash has joined #ruby
<JBlazeCoder21>
I was reading about the same topic on ROR group on LinkedIn
dhruvasagar has quit [Ping timeout: 240 seconds]
Atrophius has quit [Ping timeout: 260 seconds]
<JBlazeCoder21>
it was a pretty good thread
Kricir has quit [Ping timeout: 246 seconds]
kofno has quit [Ping timeout: 246 seconds]
aces1up has joined #ruby
Spami has joined #ruby
kofno has joined #ruby
Spami has quit [Remote host closed the connection]
Barrin6 has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
<mdev>
link me if you happen to have it on hand
<mdev>
I knowo facebook had to do similar with php, now they run off a VM as well
xk_id has joined #ruby
<jacobsmith>
once you get to those scales, it's hard not to just write your own personal implementation
<jacobsmith>
(of whatever technology it is, ruby, php, whatever)
<mdev>
yeah I bet
<mdev>
I doubt i'll have that problem though, if I do that'll be a good problem to have :)
<mdev>
did you guys become proficient in ruby via tuts+trial and error or did you buy books? and if the latter can you recommend any?
<mdev>
i'm rather suprised to read ruby is as old as php and a few years younger than python, only ever really heard about it these last few years
<jacobsmith>
it's definitely taken off in the last 8-10 years
<existensil>
its older than php
<existensil>
wasn't PHP 1998?
<jacobsmith>
I'm still more or less a beginner myself, but I've learned from lots of online tutorials and then making small projects for myself--they've progressively gotten better and also bigger in scale which has definitely helped me piece together a better understanding of the langauge
<jacobsmith>
I also got involved in a local Ruby group which has helped a lot--just getting to talk with people who work professionally in the language has let me see some of what they still work on, so I kind of "see the path up ahead" if that makes sense
<existensil>
i still kind of think of PHP 3 as being the first real attempt at something you'd call a language
<existensil>
which was 1998
kofno has quit [Ping timeout: 250 seconds]
kofno has joined #ruby
schoel has joined #ruby
<mdev>
well the ruby tut i'm checking out seems pretty straight forward, so i'll dabble with tuts for now and search amazon for ruby books. I'm a freelance dev and see clients request ruby sometimes, and since I know various other languages I figure i'd add it to my repertoire
sergicles has joined #ruby
Kricir has joined #ruby
frankperez871 has left #ruby [#ruby]
dhruvasagar has joined #ruby
Atrophius has joined #ruby
<existensil>
it is the most fun :-) i have done lots of PHP and a bit of Python (which is a close second for me, in joy, to Ruby), and lots of Java and others. whenever it makes even a little sense I'll choose ruby
kofno has quit [Read error: Operation timed out]
pu22l3r has quit [Remote host closed the connection]
<existensil>
that chart isn't very good
<jacobsmith>
Yeah, it's fairly easy to pick up if you have a little bit of background -- once you get Ruby style blocks down and combine that with OO programming, it is a ton of fun to work with--and if you're just starting out (or want to brush up on just a few concepts) CodeAcademy.com has some great Ruby stuff
sergicles has quit [Ping timeout: 246 seconds]
<existensil>
what's odd, is the charts provided show ruby as having more jobs than python, and more jobs per developer than PHP, yet they make the conclusion that both of those languages are better for a job seeker. ridiculous.
funburn has joined #ruby
yw0 has joined #ruby
lyanchih has joined #ruby
<existensil>
though, regardless of language (mostly) its a great time to be a developer :-)
kofno has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
<jacobsmith>
existensil: I hope so--I'm graduating in May with a Spanish degree and going into Ruby programming =P
<mdev>
Thanks JBlazeCoder21 i'll check it out
zcreative has quit [Quit: Computer has gone to sleep.]
<existensil>
mdev: I used a couple books, but mostly for reference, and ended up just picking up most of it as i needed it while working on a project.
funburn has quit [Client Quit]
decoponio has joined #ruby
dhruvasagar has joined #ruby
<existensil>
i was a java developer who fell in love with ruby after helping my girlfriend with some, and got a startup to give me a chance to switch tech to ruby. knew very little really before starting, but new languages aren't hard after you know your first couple well
<existensil>
just lots of google and docs
<existensil>
railscast and some other screencasts also
michael_lee has quit [Ping timeout: 246 seconds]
pu22l3r has joined #ruby
<existensil>
and lots of reading other people's gems
Seich has joined #ruby
michael_lee has joined #ruby
danshult_ has quit [Read error: Connection reset by peer]
<JBlazeCoder21>
can someone explain what writing a gem is in Ruby
<JBlazeCoder21>
is it the same as plug-in
danshultz has joined #ruby
<JBlazeCoder21>
and is it easy to do?
<mdev>
nice, well I usually use php since it's so incredibly easy but if ruby solves my problems or makes sense will have to incorporate it, I read companies sometimes want a ruby dev because it indicates they can work well with others
almarshall has quit [Quit: almarshall]
<existensil>
JBlazeCoder21: yes, basically, and yes
end_guy has joined #ruby
sheap has joined #ruby
danshult_ has joined #ruby
mary5030 has joined #ruby
<existensil>
easy way to create a skeleton gem: bundle gem the_name_of_your_gem
znode has quit [Quit: Computer has gone to sleep.]
<existensil>
will create a skeleton gem in a directory named after your gem
<JBlazeCoder21>
you need to include the word "gem" first right
MrLinuxSwigger has joined #ruby
<existensil>
right
<JBlazeCoder21>
ok
<existensil>
this assumes you have the bundler gem installed
<MrLinuxSwigger>
:-*Other public logging is prohibited ?
kofno has quit [Ping timeout: 246 seconds]
<existensil>
how you install gems (just in case): gem install gem_name
<JBlazeCoder21>
you can pretty much have do what you want
<existensil>
rubygems.org is the (generally accepted and default) repository of gems
<JBlazeCoder21>
by installing a gem just means you can access it via the command line also
lyanchih has quit [Quit: lyanchih]
<JBlazeCoder21>
going to check that out
kofno has joined #ruby
<existensil>
installing a gem installs that library so its available to your applications
danshultz has quit [Ping timeout: 240 seconds]
<existensil>
so if you `gem install nokogiri` you can then do `require "nokogiri"` in your app
freerobby has joined #ruby
<existensil>
and not have to worry about load paths and what not
<JBlazeCoder21>
I see, into your current working project
banghouse has quit [Remote host closed the connection]
banghouse has joined #ruby
<existensil>
which you'd have to do if you installed the gem by hand. not to mention dealing with C extensions by hand are a pain. rubygems doesn't totally solve that pain, but it helps and solves it if you have a sane build environment and the required libraries for the gems you're building
<existensil>
no, into your system
banghouse is now known as Guest82188
<existensil>
gem install gem_name makes it available to ALL your ruby apps
<existensil>
unless you are using something to isolate gems, like rvm with gemsets, but i'm sure you're not
<JBlazeCoder21>
oh, so when you say my system my computer
rubyracer has quit [Quit: Konversation terminated!]
<existensil>
rubygems is like the app store for ruby libraries
<JBlazeCoder21>
oh ok
<existensil>
except everything is free
<existensil>
so its installed for ruby, and anything you write in ruby can use that library
<JBlazeCoder21>
it sounds like an alacart for building API
<JBlazeCoder21>
*an
<existensil>
yeah, that's pretty accurate
Hanmac has joined #ruby
<JBlazeCoder21>
so its available to all your apps, you don't actually use it
<JBlazeCoder21>
unless you chose too, correct
s2013 has joined #ruby
<existensil>
also, there are dependencies, so if one gem depends on a few others, rubygems takes care of that for yoyu
<JBlazeCoder21>
if I have 200 gems
<JBlazeCoder21>
I might not need them on each project I build
<JBlazeCoder21>
right
<existensil>
if you have 200 gems, then 200 gems are in your load path, but aren't actually loaded into memory unless you `require` them
Hanmac1 has quit [Ping timeout: 250 seconds]
<existensil>
you can even have multiple versions of a gem installed, if different projects need different versions. Bundler takes care of making sure your app only sees the right gems
<existensil>
that's what Gemfile's are for. they are the list of gems (and their versions) for a specific project
ElasticElephant has quit [Read error: Connection reset by peer]
<JBlazeCoder21>
Cool, stuff
<JBlazeCoder21>
It like word press on steroids
<pontiki>
hey
kofno has quit [Ping timeout: 241 seconds]
<JBlazeCoder21>
lol
kofno has joined #ruby
<existensil>
gem's can also be whole programs. try `gem install earthquake` for a great little (if buggy) command line twitter client
s2013 has quit [Remote host closed the connection]
<JBlazeCoder21>
I was told that bundler is used to either create or bundle the gem
<JBlazeCoder21>
file
<existensil>
`gem install gist` is another favorite of mine. so i can do `gist file_name.txt` on the command line and it makes a gist for me. i can also pipe STDOUT to it
<JBlazeCoder21>
how much experience do you have with ruby existensil?
<existensil>
JBlazeCoder21: creating gems is just one, minor, function of bundler. it's primary function is managing the gems for a project
<pontiki>
i believe that is the first time i've read ruby's gem system, and bundler in particular, compared to wordpress...
<existensil>
I'm a full time ruby developer of almost 3 years
<existensil>
been a developer for longer, but that's how long with ruby specifically
echevemaster has quit [Quit: Leaving]
capicue has quit [Quit: Leaving...]
vikhyat has joined #ruby
znode has joined #ruby
<JBlazeCoder21>
pontiki they are different, yet I feel they have certain traits that remind me of the other
sheap has quit [Quit: Lost terminal]
echevemaster has joined #ruby
Guest82188 has quit [Quit: What if the hokey pokey really is what it's all about?]
nhhagen has joined #ruby
<pontiki>
no, i get it, JBlazeCoder21
mmcdaris has joined #ruby
kofno has quit [Ping timeout: 250 seconds]
kofno has joined #ruby
ewnd9 has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
nhhagen has quit [Ping timeout: 252 seconds]
dawkirst has joined #ruby
kitak has joined #ruby
phipes has quit [Remote host closed the connection]
rubyracer has joined #ruby
wildharvest has quit [Quit: Connection closed for inactivity]
freerobby has quit [Quit: Leaving.]
yfeldblum has quit [Remote host closed the connection]
<Lewix>
what do you guys think of DDD
phipes has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
lyanchih has joined #ruby
s2013 has joined #ruby
<existensil>
death driven development?
<rjhunter>
Lewix: Which DDD? the debugger? the design approach? another one?
<existensil>
it sounds motivating
kofno has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
xk_id has quit [Quit:
<existensil>
ah, debugger driven? that makes a little more sense. that sounds like repackaging of something many of us have been doing for many years
<existensil>
even if we call it something else
<existensil>
i use binding.pry a ton, both in my tests and in my code
<rjhunter>
If you're talking about Eric Evans' "Domain Driven Design", then it's terribly misunderstood -- everyone thinks it just means building repositories for data access
digital-ghost has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
aantix has joined #ruby
<jacobsmith>
i love pry (:
<Lewix>
rjhunter: sorry. I meant the design approach domain driven design
<Lewix>
rjhunter: Is it worth it?
Seich has quit [Ping timeout: 240 seconds]
araujo has quit [Quit: Leaving]
Seich has joined #ruby
mmitchell has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
<rjhunter>
Lewix: I think it's a valuable way to think about the architecture of large software ecosystems. But it's hard to understand the trade-offs if you're not familiar with the architecture of large software ecosystems and what tends to happen by default
kofno has joined #ruby
<Lewix>
rjhunter: ok so off my reading list.
<rjhunter>
Lewix: come back to it in a few years -- it's really good if you're at that level, but mind-numbing if you're not
pzula has joined #ruby
davy has joined #ruby
foredoomed has joined #ruby
<Lewix>
rjhunter: thanks for your feedback
perl_or_ruby has joined #ruby
<perl_or_ruby>
hi
<rjhunter>
perl_or_ruby: your nickname is already a leading question :-)
<rjhunter>
remember that you'll get biased answers in here
<Lewix>
s/feedback/advice
<Lewix>
perl_or_ruby: perl
phipes has quit [Remote host closed the connection]
<perl_or_ruby>
Lewix, Support your choice by facts
<havenwood>
perl_or_ruby: perl is true, so `perl or ruby` returns `perl`
<havenwood>
perl_or_ruby: ruby_or_perl would be ruby
<Lewix>
perl_or_ruby: what havenwood said
<perl_or_ruby>
is ruby false then?
<havenwood>
perl_or_ruby: everything but false and nil is true
<perl_or_ruby>
Oh
<rjhunter>
perl_or_ruby: it doesn't matter, it doesn't get evaluated
clamstar has quit [Quit: Computer has gone to sleep.]
kofno has quit [Ping timeout: 246 seconds]
wykydtron has joined #ruby
<easy_framework>
perl/ruby/python all have frameworks but the easiest is what you choose or could get it to work
<existensil>
my least favorite thing about ruby is the inability to make custom falsey objects
Reach has joined #ruby
<lagweezle>
falsey is an evil, evil word.
kofno has joined #ruby
<rjhunter>
lagweezle: an evil concept with an appropriate word? or a reasonable concept with a terrible word?
<lagweezle>
Hmm.
<lagweezle>
That is a very good question.
Megtastique has quit []
<lagweezle>
I may be mistaken, but I dislike the concept.
<lagweezle>
At least, my understanding of it. Something is true, or it is false. I don't really see a middle ground, excepting undefined.
duggiefresh has quit [Remote host closed the connection]
macmartine has joined #ruby
<existensil>
if there are already two different objects that evaluate false, i think it'd be nice if i could define a third or a fourth, etc
<easy_framework>
Guys I always under y don't we have a programming lang yet where you could just run the program the same way in on the pc or on a server .. i mean there should be no difference.. If it asks for an input on pc .. it shud ask for it on the server too
<existensil>
whether or not non-booleans should be used in conditinals is kind of a side issue. seems like doing won, so i'd like to be able to make more falsies.
<lagweezle>
Er, in what case does htis not happen, easy_framework ?
<Lewix>
existensil: what do you mean by custom falsey objects
<easy_framework>
lagweezle, if I make program which ask for an input on my pc when i run it .. it doesn't have a input bx on the server
<existensil>
Lewix: I'd like be able to do like class NullObject; def to_bool; false; end; end
<easy_framework>
I have to create one using a form if i use cgi
<existensil>
or something like that
<lagweezle>
easy_framework: OH! You refer to GUIs?
<rjhunter>
easy_framework: you're still going on about CGI
<existensil>
then i could implement a possibly more ideal null object pattern in ruby
<existensil>
does any language let you create your own false-y types?
<rjhunter>
existensil: yeah, lots
<existensil>
like?
<easy_framework>
no lagweezle like if I make a program that adds two num on pc .. it ask for two numbers on my pc i input them n then the result but when i put it on the server .. it has no input box it won't take my input ..
<lagweezle>
easy_framework: "input box" = a graphical element? Or a web page thing? Or ... a command line ASCII box thing?
<existensil>
i'm curious to see how custom false-y types work in other languages
<existensil>
i don't remember anything like that in Python (though i never went super far down that rabbit hole), and PHP didn't have anything
<easy_framework>
lagweezle, you are not able to get me .. We make a simple program and then run it on pc .. which add two num .. when i do ruby program.rb it runs .. but on server .. it don't have a input box by itself
<rjhunter>
existensil: smalltalk for sure, haskell, ioke, self i think, java in its own weird way
<existensil>
hmm. what does that look like in java?
<easy_framework>
Is Smalltalk/lisp/scheme yet in vogue ?
<rjhunter>
easy_framework: they're all older than ruby
<easy_framework>
ok
<easy_framework>
rjhunter, are you not able to get me ? We make a simple program and then run it on pc .. which add two num .. when i do ruby program.rb it runs .. but on server .. it don't have a input box by itself
<lagweezle>
Is easy_framework a troll? <.<
<existensil>
clearly you are correct easy_framework. we are not able to get you.
Atrophius has quit [Ping timeout: 250 seconds]
<existensil>
especially since you have not answered additional followup questions that have been asked or provided any details at all surrounding what your code looks like, what steps you have taken to run it locally, and what steps you have taken to run it on your server.
<easy_framework>
existensil, if i make program for example in c++ or ruby that add two digits .. when i run it on a server .. like host it on a server using cgi or something .. it don't take the input like it does in cli
<easy_framework>
It says Enter you first number: on the server but can't input anythign
<rjhunter>
easy_framework: if you thought hard about what you mean by "input box by itself" -- *really* hard, you'll realise the problem is either impractical or trivial
<existensil>
easy_framework: right, CGI != CLI.
<easy_framework>
are you able to get me now ?
<lagweezle>
What rjhunter and existensil said, easy_framework ...
<existensil>
its going to your browser. you need to build a HTML form youself and deal with the values submitted with the form is sent back to your server
kofno has quit [Ping timeout: 252 seconds]
<easy_framework>
ya right .. that thing .. but i want to avoid it .. can't it be done?
<existensil>
you should really get that working locally first. getting something working on the CLI is useless when building something that works in the browser
<existensil>
you could ssh into the server and run the CLI there on your ssh session
<easy_framework>
locally it works
<existensil>
does it work locally THROUGH THE BROWSER?!
<existensil>
no
kofno has joined #ruby
<easy_framework>
ya right it doesn't
jacobsmith has quit [Ping timeout: 260 seconds]
codeFiend has quit [Quit: codeFiend]
<h0rrorvacui>
I think he is trolling.
<existensil>
yeah, probably
<easy_framework>
i want what is the most modern way to dev an app which adds two digits or a program which does similar things
vikhyat has quit [Remote host closed the connection]
<existensil>
the browser is not a command line interface. you built your program to listen to inputs from a command line interface. why do you not see the problem?
<h0rrorvacui>
but you want to do that on a server?
<rjhunter>
probably, but I like to think that he's trying hard and just not very good at listening
<existensil>
easy_framework: i highly recommend you check out sinatra or rails if you want to interface with your ruby apps through a browser
michaeldeol has joined #ruby
<existensil>
you can go lower level than that, but CGI is mostly dead
<existensil>
and rack apps are not a great place to start
<existensil>
if you want super simple, go sinatra
<easy_framework>
guys i want to make numberical calc based apps on web also on pc .. both ..
<lagweezle>
rjhunter: My wife does that. It drives me nuts. Not lsitening well, that is.
<rjhunter>
sure
sergicles has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<easy_framework>
existensil, what is lower level than that ?
<h0rrorvacui>
that still won't be doing what he is asking :P
<existensil>
if you can't get that working, you shouldn't be concerned with what is lower level
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<existensil>
everything "lower" than that is more complex, not less
<h0rrorvacui>
lower than sinatra is rack
<h0rrorvacui>
lol
<easy_framework>
existensil, ok
phipes has joined #ruby
<existensil>
right. rack apps are pretty simple for someone who understands the stack, but its not a place for beginners
<h0rrorvacui>
rack is so simple though
<easy_framework>
WOuld this Sinatra create the forms by itself ?? or it is a complete web app where you don't need such forms anymore?
<h0rrorvacui>
no it wouldn't
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<existensil>
easy_framework: no. sinatra makes it easy for your app to respond with HTML
<existensil>
and it makes it easy to deal with the form data once its submitted back to you
<easy_framework>
ok..
<existensil>
but you still have to write the HTML
<easy_framework>
So if I want to host a program online i would need a lang + framework + html + aything else ?
<existensil>
well, you'd need a web server
<easy_framework>
ya
<easy_framework>
client side programming needed ?
yfeldblum has joined #ruby
charliesome has joined #ruby
<existensil>
not for an HTML form, no
<h0rrorvacui>
easy_framework what EXACTLY are you doing? Maybe that would help.
znode has quit [Remote host closed the connection]
<h0rrorvacui>
Describe the problem you are trying to solve.
<easy_framework>
h0rrorvacui, I told you i want to host complex calculation based programs online .. on my own server so that people can use it even on their mobile devices
<lagweezle>
Confusing us. ;)
<h0rrorvacui>
Ohh you are the same guy from yesterday
<easy_framework>
ya
<existensil>
so its a calculator. it sounds like first you just want it to add two numbers?
browndawg has joined #ruby
<easy_framework>
existensil, I said so .. because i wanted to see how simple it is to do this simple task on a server
<easy_framework>
rest i would have to learn i know
Lewix has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
<existensil>
sure. well, i think we can help you get that far. you just want a simple HTML form with two inputs. when the form is submitted, your server app should add the two numbers and return the result
kitak has quit [Remote host closed the connection]
<easy_framework>
existensil, ya but i wanted to ask .. what is the most modern way to dev such calc based apps ?
<easy_framework>
I did that in CGI but it requires a lot of time .. and my real apps would have about 14-15 set of calc as per the user's net and then the final result
shedd has quit [Remote host closed the connection]
<rjhunter>
easy_framework: you're asking a room of Ruby developers, so the answers will be biased based on the kind of applications we usually build.
thelorax123 has quit [Remote host closed the connection]
<easy_framework>
it is ok .. doesn't matter .. i want to know a easy way to develop what i m going to do in CGI cuz it is getting more complex than I thought i would be
Seich has joined #ruby
<rjhunter>
it'll help if you stop saying CGI
nhhagen has joined #ruby
<rjhunter>
CGI is a low-level technology that you shouldn't be touching if you're not working deep down the stack
<existensil>
easy_framework: it doesn't sound like any of those calculations NEED to be done on the server, so I would say the most modern way would be to use javascript
pu22l3r has joined #ruby
<easy_framework>
javascript can do it all ??
<existensil>
yeah, why not?
<easy_framework>
ok wait
<existensil>
you've got math and if you want to graph you've got canvas and all sorts of cool visual libraries
<existensil>
wrote that while we were talking. it sends the user an HTML form with two inputs. if that form is submitted it then calcs the results and sends the user back both the form and the results
thelorax123 has quit [Remote host closed the connection]
<h0rrorvacui>
that is where sinatra shines
<existensil>
that would actually be most similar to the calculator you linked to
<existensil>
obviously simpler
<existensil>
though you could build something much faster and more responsive with javascript
<easy_framework>
existensil, ok
<easy_framework>
html + js = dont think about web programming ?
thelorax123 has joined #ruby
<easy_framework>
*html - js = dont think about web programming ?
<existensil>
huh?
coder_neo has joined #ruby
<existensil>
anyways, if you need help with getting that example sinatra app running so you can build on it, let me know
coder_neo has quit [Client Quit]
vikhyat has joined #ruby
<existensil>
if you want to go the javascript route (recommended) there are probably better venues for help with that (#javascript)
<easy_framework>
I am going to do it .. in ruby or perl .. I like these too
<rjhunter>
easy_framework: if you want to start making Web applications, you'll need to learn at least a couple of Web technologies (HTML, forms, HTTP) but probably more (JavaScript, DOM, CSS)
xuefl has joined #ruby
<easy_framework>
ok
<existensil>
easy_framework: if you want to go ruby i would suggest making sure you understand how that example app i made you works
mmcdaris has quit [Quit: mmcdaris]
<existensil>
that would be a good start
<existensil>
then you can build on it
<existensil>
there is only a few lines of code. most of them are actually HTML
<easy_framework>
one last question, i won't bug you more, is HTML5 app an alt to js or ruby on rails etc?
xue has quit [Ping timeout: 260 seconds]
Monie has joined #ruby
<h0rrorvacui>
no
pu22l3r has quit [Remote host closed the connection]
jacobsmith has joined #ruby
Monie has quit [Max SendQ exceeded]
<easy_framework>
ok
<existensil>
HTML5 is the latest HTML standard. an "HTML5 app" almost certainly refers to an app that makes use of HTML5+JS, and likely some server side stuff too
Monie has joined #ruby
<rjhunter>
easy_framework: HTML is a presentation layer, alternative to a command line interface, or a desktop GUI, or a mobile touch-screen UI
<easy_framework>
So web programming is HTML5 + Ruby on Rails if you choose ruby
<easy_framework>
ok
Monie has quit [Client Quit]
<easy_framework>
I get it a bit
<easy_framework>
Thanks
yw0 has joined #ruby
maroloccio has joined #ruby
<easy_framework>
a zillion
<existensil>
if you are building a calculator, you could do it all with HTML+JS (and probably should for the calculator bits)... but if you want to do something like save those calculators in a user profile... the user profile and saved calculations and all that logic and data would live on the server
Vivekananda has quit [Quit: Ex-Chat]
<easy_framework>
you all are far too kind
yw0 has quit [Client Quit]
kofno has quit [Ping timeout: 246 seconds]
Jdubs has quit [Remote host closed the connection]
<existensil>
maybe that server would be in ruby or perl or js, maybe the data is in mysql or redis or flat files. all depends on what your needs are, what you're comfortable with, etc.
<easy_framework>
i would make something like this + a few more options to it
<h0rrorvacui>
sounds like to me you could just static host the website and just learn js and html
kofno has joined #ruby
<existensil>
right. that's similar to the example i provided easy_framework. you should understand that app completely and then build on it to add all the calculations you need.
<existensil>
or find the right resources to do that in javascript
<existensil>
either one
<easy_framework>
Sinatrea is a mini framework unlike Rails which is for bigger apps?
<existensil>
right
<easy_framework>
ok
<easy_framework>
I will have to install sinatra first ..
Spami has quit [Quit: This computer has gone to sleep]
<easy_framework>
bye for now ..
jrhorn424 is now known as zz_jrhorn424
<existensil>
if the amount of logic and "stuff" you need to do on the server is small, sinatra makes sense. if the server side of your app will be large, rails makes more sense.
Jdubs has joined #ruby
<existensil>
easy_framework: should just be able to clone that repository, go to its directory, do "bundle install" and then do "ruby app.rb"
<h0rrorvacui>
I really think he should just do a html + js page.
<existensil>
and then you should see sinatra "taking the stage" and it will tell you where to point your browser... and viola, the app is running on your machine through your browser
<existensil>
h0rrorvacui: yes, probably, and I told him so... but this is #ruby and i'll keep explaining how that works as long as he wants :-)
mmitchell has quit [Remote host closed the connection]
<existensil>
well, or until i've smoked too much
<rjhunter>
i think he'd be better off not building an app, instead finding a domain-specific tool that fits "publishing excel calculations on the web" -- i just don't know the names of any of those
<rjhunter>
and this is #ruby
Spami has joined #ruby
<h0rrorvacui>
I think google docs is a great solution
<h0rrorvacui>
:P
<rjhunter>
it probably is, you know
<existensil>
there was that spreadsheet in 30 lines of js thing going around on HN recently
<existensil>
that could work :-)
<easy_framework>
Google docs is ok .. but the problem is not all phones have it .. I can use a CGI app on my symbian phone too.. hence I think sinatra app with ruby would be fun and universal
<rjhunter>
please stop saying CGI
<h0rrorvacui>
I don't think you know what cgi is...
<rjhunter>
it is not a relevant technology to your problem, and just confuses matters
<existensil>
easy_framework: i think when you say CGI you really mean HTTP or HTML
Baluse has quit [Read error: Connection reset by peer]
Baluse has joined #ruby
doIevenLift is now known as synergy_
<easy_framework>
For me CGI = I can run my py/rb/pl on a server
<existensil>
easy_framework: you are correct. a ruby/sinatra app would be super portable since anything that can render HTML, even an ancient flip phone, can fill out an HTML form and submit it just fine
<easy_framework>
I don't know much
<existensil>
though JS is nearly as portable now since smartphones with decent browsers have all but taken over
gianlucadv has joined #ruby
jacobsmith has quit [Ping timeout: 260 seconds]
Paradox has quit [Ping timeout: 240 seconds]
<easy_framework>
but JS = issues on most low powered machines if JS is too much for a system
_HolyCow1 has joined #ruby
<existensil>
for a calculator that would never be an issue
<easy_framework>
ya
<easy_framework>
:]
echevemaster has quit [Quit: Leaving]
<easy_framework>
But i would be using more complex things in future if i get to learn it
shedd has joined #ruby
Paradox has joined #ruby
<easy_framework>
I ve made program in high school with c++ .. similar one which even used local fonts in it and colors etc which was new here :p
<existensil>
i fully support trying ruby to solve this, even if it is possibly not the best tool for the job. its possibly the second best (to JS) though :-)
<easy_framework>
kk
<existensil>
well, depends on how complex the calcs are i guess. python has better scientific libraries
_HolyCow has quit [Ping timeout: 265 seconds]
<easy_framework>
I know the formulas
<easy_framework>
I would make a neat app
<h0rrorvacui>
I'm pretty sure he is a troll.
<existensil>
yeah, but even so, the problem is mostly solved now :-)
gnu_is_bad has joined #ruby
* easy_framework
L e g i o n
habanany has quit [Ping timeout: 240 seconds]
kofno has quit [Remote host closed the connection]
<h0rrorvacui>
That's what you think. He was on here all night last night with no avail.
kofno has joined #ruby
<rjhunter>
... and a different nick
shedd has quit [Ping timeout: 260 seconds]
<h0rrorvacui>
whats the legion thing about?
<rjhunter>
makes me think of anonymous
SHyx0rmZ has joined #ruby
<easy_framework>
H e h e
<existensil>
i don't get it. were you trolling? i never think people are trolling until they get mean
<gnu_is_bad>
easy_framework: I want a framework to get started .. is easy a framework too ?
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
<existensil>
lol
<easy_framework>
gnu_is_bad, Oh no. what lang do you use?
* easy_framework
X p e c t U S ! !
<gnu_is_bad>
What is easy then?
* h0rrorvacui
do I need to save a spot at the table then?
habanany has joined #ruby
<existensil>
lesson learned
rubyracer has quit [Ping timeout: 246 seconds]
ewnd9 has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
pzula has quit [Ping timeout: 246 seconds]
* easy_framework
Sinatra Installed up and running ..
gnu_is_bad has quit [Ping timeout: 250 seconds]
havenwood has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 246 seconds]
<h0rrorvacui>
easy_framework is from Indonesia that much is true.
sayan has joined #ruby
kofno has quit [Ping timeout: 260 seconds]
kofno has joined #ruby
<existensil>
i'm not sure what conclusions can be drawn from that
<h0rrorvacui>
easy_framework what jawa barat?
<h0rrorvacui>
language barrier?
<h0rrorvacui>
His english is not to bad though.
* easy_framework
Who is the maker of bentobox.io? He has done a great job!
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrLinuxSwigger is now known as RumpledElfTroll
emocakes has joined #ruby
nari has joined #ruby
rippa has joined #ruby
breefield has quit [Quit: Connection closed for inactivity]
CoderCR has joined #ruby
havenwood has joined #ruby
h0rrorvacui has quit [Quit: Leaving]
kofno has quit [Ping timeout: 260 seconds]
<CoderCR>
I am trying to find some fun work to do over the weekend. Any one need a ruby dev to help with any of their projects?
kofno has joined #ruby
<rjhunter>
CoderCR: you might be interested in 24pullrequests.com
<Tectonic>
Also I agree with rjhunter that 24pr is great.
Spami has quit [Read error: Connection reset by peer]
<CoderCR>
rjhunter: very nice.. thanks mate
<existensil>
that's cool rjhunter
Spami has joined #ruby
<existensil>
err, i mean tectonic
<existensil>
24pullrequests.com is cool too of course
<Tectonic>
thx :)
<existensil>
but i like huginn
<Tectonic>
Would love your help too, existensil ;)
<Tectonic>
and thanks
heidi has quit [Quit: Leaving.]
<rjhunter>
tectonic: i hadn't seen huginn before -- looks like a very interesting project.
<CoderCR>
tectonic: Explain huginn to me.. I am not fully understanding the reason for the project.
shedd has joined #ruby
<Tectonic>
Sure thing.
RumpledElfTroll is now known as MrLinuxSwigger
<MrLinuxSwigger>
:)
<Tectonic>
Huginn is a system for monitoring the world however you want.
<CoderCR>
private me to not flood the channel
<Tectonic>
Make Agents to tell you if it'll rain tomorrow, look for news that will interest you, consume RSS feeds, or whatever.
mary5030 has quit [Remote host closed the connection]
<Tectonic>
Honestly, it's cron with a good GUI and some tooling.
<Tectonic>
and a network topology
<existensil>
i might do that instead of what i was going to work on this weekend :-)
<rjhunter>
"cron with a good GUI and some tooling" is still a pretty attractive sell
jonahR has quit [Quit: jonahR]
<existensil>
indeed
anon_lives has joined #ruby
<existensil>
add in a ruby DSL and it sounds like a fun way to spend a few hours
<Tectonic>
it's a strange hybrid of ITTT, Cron, and Siri
<Tectonic>
IFTTT
<Tectonic>
rather
<existensil>
it already has voice recognition?
<Tectonic>
haha, no
<existensil>
hmm... i just wrote a gem a few weeks ago that integrates with a voice rec API
plotter has quit [Remote host closed the connection]
<Tectonic>
I have a branch where I'm playing with creating mechanical turk tasks from events and then creating events from their results
<Tectonic>
which has been intriguing
nhhagen has joined #ruby
Yan__ has joined #ruby
<Tectonic>
It's open ended, but there are a small group of committers besides myself adding stuff to it.
kofno has quit [Ping timeout: 260 seconds]
<Tectonic>
And I know Huginn is being used internally in a couple of companies.
<Tectonic>
To monitor competitors, check for advertising conditions, etc.
ppppaul has joined #ruby
shedd has quit [Ping timeout: 260 seconds]
amacgregor has joined #ruby
kofno has joined #ruby
amacgregor__ has quit [Ping timeout: 246 seconds]
anon_lives has quit [Quit: Page closed]
nhhagen has quit [Ping timeout: 252 seconds]
iidot has quit [Ping timeout: 250 seconds]
iidot has joined #ruby
CoderCR has quit [Quit: CoderCR]
plotter has joined #ruby
hiall has joined #ruby
mmcdaris has joined #ruby
ppppaul has quit [Ping timeout: 246 seconds]
<existensil>
i'm going to try and use it for something first :-)
angusigu1ss has joined #ruby
<Tectonic>
existensil awesome, please post an issue if you have any problems or questions!
Al_ has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
Al_ is now known as Guest88673
kofno has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
angusigu1ss has quit [Ping timeout: 260 seconds]
maroloccio has quit [Quit: WeeChat 0.4.1]
nari has quit [Read error: Connection reset by peer]
cina has joined #ruby
nari has joined #ruby
phipes has quit [Remote host closed the connection]
emocakes has quit [Ping timeout: 260 seconds]
ppppaul has joined #ruby
<shevy>
dumdedum
marr has joined #ruby
<MrLinuxSwigger>
i pooped my self
<MrLinuxSwigger>
:)
ppppaul has quit [Max SendQ exceeded]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
thelorax123 has quit [Remote host closed the connection]
ppppaul has joined #ruby
ppppaul has quit [Max SendQ exceeded]
shedd has joined #ruby
thelorax123 has joined #ruby
jgrevich has quit [Quit: jgrevich]
<shevy>
MrLinuxSwigger and did you also write ruby code
ppppaul has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
ppppaul has quit [Max SendQ exceeded]
mmcdaris has quit [Quit: mmcdaris]
<shevy>
guys
<shevy>
for red in 0 .. 1256
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
is effectively the same as:
<shevy>
(0..1256).each {|red|
<shevy>
right?
ppppaul has joined #ruby
shedd has quit [Ping timeout: 260 seconds]
mmcdaris has joined #ruby
arietis has joined #ruby
ppppaul has quit [Max SendQ exceeded]
<Hanmac>
shevy: and nearly the same as 0.upto(1256) {|red|
cju-pp has joined #ruby
<cju-pp>
I am using EC2 to host an Ubuntu server. After a few hours of running, the SSH crashes. If I stop and start the server it works again, I can't figure out why this is happening, anyone have any ideas what logs I should look through to start figuring it out? I have googled online for the past few hours already.
gh has joined #ruby
Guest88673 has quit [Read error: Connection reset by peer]
<existensil>
cju-pp: you might be in the wrong room for that. you might also want to checek out your logs in /var/log, like /var/log/auth.log and /var/log/sys.log ... assuming you have those
<existensil>
cju-pp: #ubuntu
falood has joined #ruby
Yan__ has quit [Ping timeout: 246 seconds]
<existensil>
there might even be a special room for server
goshakkk has joined #ruby
kofno has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 246 seconds]
OdNairy has joined #ruby
kofno has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
<shevy>
Hanmac hmmm
<shevy>
I think I like #each more, I use it like all the time
l3ck has joined #ruby
<cju-pp>
existensil: yeah no one is answering, and I'm using a lot of ruby program so I thought I'd ask around here too
Seich has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
gh has quit [Quit: Leaving]
amacgregor_ has joined #ruby
amacgregor__ has joined #ruby
cina has quit [Remote host closed the connection]
amacgregor_ has quit [Read error: Connection reset by peer]
amacgregor has quit [Ping timeout: 246 seconds]
dseitz has joined #ruby
<Hanmac>
shevy what also works: for red in 0.upto(1256) ;P
kofno has quit [Ping timeout: 250 seconds]
thelorax123 has quit [Remote host closed the connection]
LadyRainicorn has joined #ruby
robbyoconnor has joined #ruby
kofno has joined #ruby
cina has joined #ruby
thelorax123 has joined #ruby
valesk has quit [Remote host closed the connection]
cina has quit [Client Quit]
awarner_ has joined #ruby
agent_white has quit [Quit: leaving]
mercwithamouth has quit [Ping timeout: 260 seconds]
awarner has quit [Ping timeout: 246 seconds]
iidot has quit [Read error: Connection reset by peer]
iidot has joined #ruby
iidot has joined #ruby
iidot has quit [Changing host]
l3ck has quit [Quit: Bye!]
ewnd9 has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
shedd has joined #ruby
Bosox20051 has quit [Quit: Leaving]
nhhagen has joined #ruby
kofno has quit [Ping timeout: 250 seconds]
zkc has joined #ruby
JBlazeCoder21 has quit [Remote host closed the connection]
kofno has joined #ruby
iidot has quit [Read error: Connection reset by peer]
aantix has quit [Quit: aantix]
iidot has joined #ruby
iidot has joined #ruby
iidot has quit [Changing host]
shedd has quit [Ping timeout: 246 seconds]
spergy has quit [Ping timeout: 240 seconds]
nhhagen has quit [Ping timeout: 246 seconds]
spergy has joined #ruby
habanany has quit [Ping timeout: 252 seconds]
kofno has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
Seich has joined #ruby
phansch has joined #ruby
angusigu1ss has joined #ruby
Seich has quit [Read error: Connection reset by peer]
aces1up has left #ruby [#ruby]
Seich has joined #ruby
ahawkins has joined #ruby
claymore has joined #ruby
stevenhaddox has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
swingha has joined #ruby
swingha has quit [Client Quit]
angusigu1ss has quit [Ping timeout: 246 seconds]
Seich has quit [Ping timeout: 246 seconds]
Spami has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Remote host closed the connection]
Spami has joined #ruby
teoric has joined #ruby
_5kg has quit [Ping timeout: 246 seconds]
vikhyat has quit [Remote host closed the connection]
<narekb>
hey people, got a small question, are there DirectX bindings for Ruby?
<Hanmac>
why should someone care about directX bindings when we have opengl stuff?
r0bby_ has joined #ruby
<narekb>
hmmm, makes sense
rjhunter has joined #ruby
michaeldeol has quit [Ping timeout: 240 seconds]
<Hanmac>
hm it may possible ... somewhere i have an Ogre binding but i didnt work on it long time ago ... and ogre itself has an DirectXRenderer ... so its possible to use directx -> ogre -> ruby ... but i didnt see a real directX binding before (as i said i dont know any reason why some one wants like that)
<Leighton>
flatr0ze_: are you on ubuntu? Not sure your use but maybe try $stdout.flush
Seich has quit [Ping timeout: 246 seconds]
mengu has quit [Remote host closed the connection]
<Hanmac>
flatr0ze_: how do you "echo" into termial?
jokke1 is now known as jokke
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
Lewix has joined #ruby
mengu has quit [Remote host closed the connection]
<kostine>
$stdout.print "blargh"
<kostine>
maybe
<flatr0ze_>
thanks!
<kostine>
def clear
<kostine>
if output.tty?
<kostine>
output.print clear_string
<kostine>
output.print "\r"
<kostine>
end
<kostine>
end
<kostine>
this is how he clears it
yfeldblum has quit [Ping timeout: 240 seconds]
<kostine>
output = $stdout
<flatr0ze_>
interesting... thank you very much!
kofno has quit [Ping timeout: 250 seconds]
<kostine>
np
kofno has joined #ruby
<shevy>
what is an elegant way to
<shevy>
define a method if it does not yet exist?
<kostine>
when will it exist?
<Leighton>
when it exists you can define it : )
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamakn has joined #ruby
<shevy>
kostine the class I have right now has a way to automatically define a bunch of methods based on input (a bunch of yaml files, i.e. yaml file 'bla.yml' creates a method called bla() on that class)
<kostine>
i see
<shevy>
right now I try to add a debug= method, but I get a warning that it was already defined in one sub-project
<kostine>
and you don't know what they are going to be called?
<shevy>
right now there is no limitation, no
rootshift has quit [Quit: rootshift]
hamakn has quit [Remote host closed the connection]
lyanchih has joined #ruby
hamakn has joined #ruby
olivier_bK has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
kostine has quit [Quit: kostine]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
niklasb has joined #ruby
timonv has joined #ruby
ewnd9 has joined #ruby
shedd has joined #ruby
havenwood has quit [Remote host closed the connection]
eldariof has joined #ruby
schaerli has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
alekst has quit [Quit: Computer has gone to sleep.]
Seich has quit [Ping timeout: 250 seconds]
caveat- has quit [Ping timeout: 245 seconds]
<devians>
TheDick just updated that gist with my gemfile.lock
wildroman2 has joined #ruby
petey has joined #ruby
tonni has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
heidi has joined #ruby
shime has joined #ruby
ml242 has quit [Ping timeout: 250 seconds]
enape_101 has quit [Ping timeout: 250 seconds]
wildroman2 has quit [Ping timeout: 252 seconds]
petey has quit [Ping timeout: 240 seconds]
<shevy>
wow
<shevy>
we got a dick here
<devians>
shevy?
<shevy>
TheDick <---
<TheDick>
yep
<shevy>
:D
caveat- has joined #ruby
<TheDick>
devians: this is happening when you run bundle install?
kofno has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
<devians>
no, bundle install works, that error is when passenger runs the software
<TheDick>
So this file exists? /var/www/gollum/vendor/bundle/ruby/2.0.0/gems/gollum-2.5.2/lib/gollum/templates/searchbar.mustache
vikhyat has quit [Remote host closed the connection]
aantix has joined #ruby
<TheDick>
I don't think this is a bundler issue ... More like something missing from your gem ... ex: the path/to/file above.
petey has joined #ruby
<devians>
well, the gem is not in that path
<devians>
because its pulled via git
<devians>
see the gemfile.lock
<devians>
the gem is in bundler/gems/gollum-somehash rather than gems/gollum-2.5.2
phipes has joined #ruby
vikhyat has joined #ruby
RoryHughes has quit []
<TheDick>
You should still have a local gem for the app to work from ... Pulling from git just installs it to your local machine ... So, when the app goes to reference that particular template, it doesn't find it. At least, that's what I believe is happening.
<devians>
yeah, i get that. what I dont get is why the app is not looking where it actually exists?
michaeldeol has joined #ruby
icrazyhack has quit [Ping timeout: 256 seconds]
sayan has joined #ruby
vikhyat has quit [Remote host closed the connection]
<TheDick>
I would look into the gem code ... Looks like sinatra isn't having an issue finding the other parts of that gem ... See lines below last error. Maybe the gem is referencing the template path incorrectly.
kofno has quit [Ping timeout: 246 seconds]
<devians>
sorry, starting to get a little frustrated here, as I think I'm being quite clear on the bug but you dont seem to be grokking it?
havenwood has joined #ruby
<devians>
however ruby works with paths, i have no idea. i dont understand it, especially with bundler magic
shedd has joined #ruby
<devians>
but when I forked this gem to modify it, and then pointed bundler at my git repo of said gem, it broke
kofno has joined #ruby
<devians>
as far as i can see, its broken because it puts 'git' gems in a different place to 'normal' gems, and its looking for the parts of this gem in the 'normal' gems place.
<elux>
what is Rack::Lock for..? i noticed this shows on rake middleware on a rails 4 app.. it feels like a big mutex but I thought rails 4 is threadsafe by default?
pskosinski has joined #ruby
jragon has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
Seich has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
<TheDick>
devians: Not sure why it's doing that ... I've never dealt with an app placing gems in the wrong folder.
<devians>
... but its not doing that
shedd has quit [Ping timeout: 246 seconds]
<devians>
its clearly placing the gem in the correct folder, but theres some kind of pathing bug
<MrZYX>
elux: that's more a #rubyonrails question ;)
<devians>
ruby does my head in man, so much more complicated than php :/
rootshift has quit [Quit: rootshift]
kostine has joined #ruby
<MrZYX>
php is confusing :/
fijimunkii has quit [Quit: leaving]
obs has joined #ruby
<devians>
it's probably an experience thing, but php feels 10000 times more easy to extend and monkey patch things.
fijimunkii has joined #ruby
cbetta_afk is now known as cbetta
<shevy>
with #scan I can find matches in a string, substrings
<MrZYX>
shevy: hm, can't really come up with anything elegant, so I guess you have to do something like offset = 0; matches << (offset = sequence.index(/abc/, offset+1) while offset
<shevy>
whoa
anderson has joined #ruby
<shevy>
that works? the "while offset" part?
<MrZYX>
well, Fixnums are truthy, index returns nil when there's no match
<shevy>
I've never seen while used that way before
goto has joined #ruby
jragon has quit [Ping timeout: 260 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
rjsamson has joined #ruby
heidi has joined #ruby
coca_rails has joined #ruby
goto has quit [Read error: Connection reset by peer]
randomnick_ has quit [Read error: Connection reset by peer]
tonni_ has quit [Ping timeout: 250 seconds]
<MrZYX>
do until offset.nil? if that's too scary for you
jjbohn has joined #ruby
kofno has quit [Ping timeout: 250 seconds]
MetaCosm has quit [Ping timeout: 240 seconds]
rjsamson is now known as stabby_lambda
jb41 has quit [Quit: leaving]
kofno has joined #ruby
batchitcray has quit [Ping timeout: 252 seconds]
rjhunter has joined #ruby
MetaCosm has joined #ruby
ml242 has joined #ruby
jjbohn has quit [Ping timeout: 240 seconds]
ml242 has quit [Client Quit]
ml242 has joined #ruby
<shevy>
hmm
elux has quit [Quit: Bye!]
leeurooi has joined #ruby
havenwood has joined #ruby
rjhunter has quit [Ping timeout: 260 seconds]
KS has joined #ruby
arietis has joined #ruby
leeurooi has quit [Client Quit]
KS has quit [Client Quit]
spike|spiegel has joined #ruby
kofno has quit [Ping timeout: 250 seconds]
ml242 has quit [Quit: leaving]
heidi has quit [Quit: Leaving.]
ehaliewicz has joined #ruby
kofno has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
aantix has quit [Quit: aantix]
KS has joined #ruby
TheDick has quit [Quit: TheDick]
KS has quit [Client Quit]
shedd has joined #ruby
coca_rails has quit [Remote host closed the connection]
goshakkk has joined #ruby
RoryHughes has quit []
coca_rails has joined #ruby
coca_rails has quit [Read error: Connection reset by peer]
petey has quit [Remote host closed the connection]
barratt has quit [Read error: Connection reset by peer]
petey has quit [Ping timeout: 260 seconds]
barratt has joined #ruby
mary5030 has joined #ruby
duggiefresh has joined #ruby
Czupa has quit [Remote host closed the connection]
Kricir has joined #ruby
Yan__ has joined #ruby
shedd has joined #ruby
yfeldblum has joined #ruby
Opettaja has joined #ruby
CaptainJet has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
RoryHughes has joined #ruby
michaeldeol has quit []
michaeldeol has joined #ruby
batchitcray has joined #ruby
jibi has quit [Ping timeout: 260 seconds]
mbreedlove has joined #ruby
IceDragon has quit [Ping timeout: 246 seconds]
sayan has quit [Ping timeout: 250 seconds]
IceDragon has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yan__ has quit [Ping timeout: 260 seconds]
Ogion has joined #ruby
fijimunkii has quit [Ping timeout: 260 seconds]
nomadic has quit [Ping timeout: 245 seconds]
shedd has quit [Remote host closed the connection]
gyre007 has joined #ruby
pzula has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
nomadic has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
IceDragon has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
kofno has joined #ruby
droptone has joined #ruby
jamesaanderson has joined #ruby
gyre007 has quit [Ping timeout: 252 seconds]
aspires has quit []
almarshall has quit [Quit: almarshall]
shime has quit [Ping timeout: 246 seconds]
dopie has quit [Quit: Leaving]
ewnd9 has quit [Ping timeout: 250 seconds]
<shevy>
alright
<shevy>
I think I am slowly hitting the end of bluefish 1 :(
<shevy>
it loads a 11.000 lines file of size 1.1 MB too slowly
kofno has quit [Ping timeout: 246 seconds]
Ox6abe has quit [Remote host closed the connection]
nari has joined #ruby
kofno has joined #ruby
Ox6abe has joined #ruby
Ox6abe_ has joined #ruby
Astralum has joined #ruby
tonni has joined #ruby
fijimunkii has joined #ruby
mojjojo has quit [Quit: mojjojo]
kofno has quit [Ping timeout: 260 seconds]
Ox6abe has quit [Ping timeout: 250 seconds]
tonni has quit [Ping timeout: 246 seconds]
Ox6abe has joined #ruby
Ox6abe_ has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
yfeldblum has joined #ruby
Ox6abe_ has joined #ruby
droptone has left #ruby [#ruby]
kayloos has joined #ruby
Ox6abe__ has joined #ruby
jjbohn has joined #ruby
mjs2600_ has joined #ruby
ddd has quit [Ping timeout: 272 seconds]
Ox6abe___ has joined #ruby
Ox6abe has quit [Ping timeout: 246 seconds]
jonathanwallace has joined #ruby
Ox6abe_ has quit [Ping timeout: 246 seconds]
Kricir has quit [Remote host closed the connection]
mjs2600_ has quit [Remote host closed the connection]
rjhunter has joined #ruby
Ox6abe__ has quit [Ping timeout: 246 seconds]
batchitcray has quit [Quit: leaving]
nouitfvf has joined #ruby
jjbohn has quit [Ping timeout: 260 seconds]
Ox6abe___ has quit [Ping timeout: 250 seconds]
nouitfvf_ has quit [Disconnected by services]
kofno has joined #ruby
petey has joined #ruby
mary5030 has quit [Remote host closed the connection]
rjhunter has quit [Ping timeout: 246 seconds]
robonerd has joined #ruby
<LiohAu>
what does this error : "undefined method `+@' for "Passed":String (NoMethodError) ./features/support/hooks.rb:116:in `AfterStep'" mean ?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ox6abe has joined #ruby
<LiohAu>
the line 116 just contains an "end", so i guess that it is the previous line that has a problem, but it is a simple assignment : " state = 'Passed' "
mjs2600_ has joined #ruby
Ox6abe_ has joined #ruby
capicue has joined #ruby
nhhagen has joined #ruby
Ox6abe__ has joined #ruby
kidoz has joined #ruby
mjs2600_ has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 240 seconds]
kofno has quit [Ping timeout: 246 seconds]
Genjikyosher has quit [Ping timeout: 246 seconds]
Ox6abe___ has joined #ruby
kofno has joined #ruby
jamesaanderson has joined #ruby
Ox6abe has quit [Ping timeout: 252 seconds]
wildroman2 has quit [Remote host closed the connection]
<canton7>
LiohAu, normally when there's an error on a line with just an 'end' on it, it means you're missing an 'end' somewhere earlier in the program
wildroman2 has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
<Hanmac>
LiohAu: why do you this "@step_index++" ?
<LiohAu>
incrementing the step_index var ?
carraroj has quit [Quit: Konversation terminated!]
<canton7>
yeah, that's not valid ruby
<LiohAu>
omg
<Hanmac>
who told you you can do it like that in ruby?
Ox6abe___ has quit [Ping timeout: 240 seconds]
<LiohAu>
my experience of the other languages :D
amacgregor__ has quit [Ping timeout: 246 seconds]
<canton7>
in ruby, numbers are immutable. so ++ is out
<Hanmac>
just do simply +=1
<LiohAu>
ok good to know :)
shedd has joined #ruby
<LiohAu>
immutable variable, what a paradoxal concept :D
wildroman2 has quit [Ping timeout: 260 seconds]
mjs2600_ has joined #ruby
<MrZYX>
immutable variables are common in functional languages, however here the object, not the variable, is immutable
<canton7>
it makes a lot of sense when you start throwing anonymous functions around the place
Ox6abe has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
<canton7>
and yeah, you can do 'x = x + 1' (which is the same as 'x += 1'), and 'x' gets a new object_id. so if you do 'y = x; x += 1', y won't change
IceDragon has joined #ruby
<MrZYX>
LiohAu: in Ruby even constants are mutable ;)
tirengarfio_ has joined #ruby
Ox6abe_ has joined #ruby
<tirengarfio_>
Im getting this error while trying to compile with compass: http://pastebin.com/fxzpKY16 any idea?
carraroj has joined #ruby
<tirengarfio_>
Im working with symfony2, a php framework, and I just get that error for the production environment, I dont have any problem for the development environment
Ox6abe__ has joined #ruby
nhhagen has joined #ruby
amacgregor has joined #ruby
Ox6abe has quit [Ping timeout: 252 seconds]
mjs2600_ has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
mary5030 has quit [Remote host closed the connection]
randomnick_ has joined #ruby
<valesk>
I'm writing a really simple 50/30/20 budgeting dealy that basically just gives me the exact amount of money I need to allocate each month/week. I've written everything out and it's working.. however I need to figure out a way to convert the decimals (3500.234234) to currency. Any suggestions?
<MrZYX>
store in cents, only convert for display
<brain_shim>
LadyRainicorn: had to change just one thing to make sure it only capture groups of tree integers my_file.gsub(/\\(\d..)/){$1.to_i(8).chr}
<brain_shim>
LadyRainicorn: :D
pabloh has joined #ruby
<valesk>
MrZYX: can you give me an example? I'm a newjack
<shevy>
LiohAu what is the encoding or character conversion table?
<LiohAu>
the file is a picture
k3asd` has quit [Ping timeout: 260 seconds]
mojjojo has quit [Quit: mojjojo]
<LiohAu>
so i don't think that it uses ascii or something like that :D
jkhwan has joined #ruby
mojjojo has joined #ruby
<MrZYX>
LiohAu: check #unpack
enape_101 has joined #ruby
Ox6abe has joined #ruby
<havenwood>
LiohAu: depends how large your images are, maybe try just reading it all into memory then converting to bytes?: File.read('example.jpg').bytes
petey has joined #ruby
<LiohAu>
nevermind, I have to send them to a web service, i'll just send them as base64 as I originally planned, and decode the base64 string in the backend
shedd has quit [Remote host closed the connection]
stabby_lambda has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
phansch has quit [Remote host closed the connection]
colonolGron has joined #ruby
duggiefresh has quit [Remote host closed the connection]
phansch has joined #ruby
Ox6abe has quit [Ping timeout: 246 seconds]
kofno has joined #ruby
zeropx has quit [Ping timeout: 245 seconds]
brian___ has joined #ruby
duggiefresh has joined #ruby
dhruvasagar has joined #ruby
Ox6abe has joined #ruby
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
xcv has quit [Ping timeout: 240 seconds]
barratt has quit [Quit: Leaving...]
michaeldeol has quit [Remote host closed the connection]
Ox6abe_ has joined #ruby
DouweM has joined #ruby
Lewix has joined #ruby
xcv has joined #ruby
Yan__ has quit [Remote host closed the connection]
Ox6abe__ has joined #ruby
icrazyhack has joined #ruby
pzula has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
Ox6abe has quit [Ping timeout: 250 seconds]
nhhagen has joined #ruby
Ox6abe_ has quit [Ping timeout: 260 seconds]
kofno has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
kofno has joined #ruby
wildroman2 has joined #ruby
Megtastique has quit []
kiwi_72772 has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
stabby_lambda has joined #ruby
Shidash has quit [Ping timeout: 246 seconds]
kiwi_72772 has quit [Client Quit]
kiwi_78724 has joined #ruby
pzula has joined #ruby
stabby_lambda has quit [Remote host closed the connection]
kiwi_85660 has joined #ruby
kiwi_78724 has quit [Read error: Connection reset by peer]
kiwi_85660 has quit [Read error: Connection reset by peer]
kofno has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
phansch has quit [Quit: Leaving]
mojjojo has quit [Quit: mojjojo]
bricker`LA has quit [Quit: leaving]
jjbohn has joined #ruby
kofno has joined #ruby
platzhirsch has left #ruby [#ruby]
capicue has joined #ruby
alekst has joined #ruby
whysomad has joined #ruby
motto has joined #ruby
schaerli has joined #ruby
rjhunter has joined #ruby
jjbohn has quit [Ping timeout: 248 seconds]
xea has quit [Ping timeout: 248 seconds]
enape_101 has quit [Ping timeout: 260 seconds]
jpinnix_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
platzhirsch has joined #ruby
aasirc has joined #ruby
echevemaster has quit [Quit: Leaving]
xea has joined #ruby
agjacome_ has joined #ruby
zzak_ has joined #ruby
jpinnix has quit [Ping timeout: 246 seconds]
whysosad has quit [Read error: Connection reset by peer]
m8 has quit [Read error: Connection reset by peer]
jacobsmith has quit [Read error: Connection reset by peer]
jacobsmith has joined #ruby
SeySayux has quit [Ping timeout: 246 seconds]
Catie has quit [Ping timeout: 246 seconds]
agjacome has quit [Ping timeout: 246 seconds]
conor_ has quit [Ping timeout: 246 seconds]
radic has quit [Ping timeout: 246 seconds]
zzak has quit [Ping timeout: 246 seconds]
gigetoo has quit [Ping timeout: 246 seconds]
Myk267 has quit [Ping timeout: 246 seconds]
jpinnix_ is now known as jpinnix
gigetoo_ has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
SeySayux_ has joined #ruby
rjhunter has quit [Ping timeout: 246 seconds]
Myk267 has joined #ruby
kofno has joined #ruby
kayloos has quit []
tylersmith has joined #ruby
Catie has joined #ruby
enape_101 has joined #ruby
conor_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
xk_id has joined #ruby
aspires has joined #ruby
tylersmith has quit [Ping timeout: 246 seconds]
schaerli has quit [Remote host closed the connection]
r0bby_ has quit [Read error: Operation timed out]
b00stfr3ak has quit [Ping timeout: 246 seconds]
mlpinit has joined #ruby
Ox6abe has joined #ruby
Kricir has joined #ruby
superscott[8] has joined #ruby
nhhagen has joined #ruby
mojjojo has joined #ruby
mojjojo has quit [Client Quit]
Ox6abe__ has quit [Ping timeout: 252 seconds]
r0bby_ has joined #ruby
_Andres has joined #ruby
s2013 has joined #ruby
nhhagen_ has joined #ruby
ddd has quit [Quit: Have to reboot. system problems]
LadyRainicorn has quit [Quit: Bye]
kofno has quit [Ping timeout: 260 seconds]
shedd has joined #ruby
Ox6abe has quit [Ping timeout: 260 seconds]
Briareos1 has quit [Remote host closed the connection]
kofno has joined #ruby
ehaliewicz has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
zombiebit has quit [Ping timeout: 260 seconds]
angusigu1ss has quit [Ping timeout: 240 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
lukec has quit [Quit: lukec]
Ox6abe has joined #ruby
zombiebit has joined #ruby
nhhagen_ has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 260 seconds]
shedd has quit [Ping timeout: 246 seconds]
r0bby_ has quit [Excess Flood]
psyl0n has quit [Remote host closed the connection]
r0bby_ has joined #ruby
aspires has quit []
Ox6abe has quit [Ping timeout: 250 seconds]
obs has quit [Remote host closed the connection]
mary5030 has joined #ruby
barratt has joined #ruby
Megtastique has joined #ruby
horieyui has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
r0bby_ has quit [Excess Flood]
r0bby_ has joined #ruby
Nanuq has joined #ruby
javon has joined #ruby
Ox6abe has joined #ruby
icrazyhack has quit [Ping timeout: 252 seconds]
phipes has quit [Remote host closed the connection]
rburton- has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
zeropx has joined #ruby
s2013 has quit [Ping timeout: 246 seconds]
pzula has quit [Ping timeout: 252 seconds]
Ox6abe has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
<PPH>
Hey guys, If I want to create a class using net/http to do request on an api, this class should inherit from it or require it?
Ox6abe has joined #ruby
<Jamo>
porbably require
pragmatism has quit [Quit: Leaving...]
kofno has joined #ruby
<Jamo>
it really depends how you want to do it (and is that spesific designed to be included)
<Jamo>
like with httparty - you can either include it or reguire it
<PPH>
Jamo, and do I require it inside the class or outside?
_Andres has quit [Ping timeout: 240 seconds]
<MrZYX>
there's no difference, so do it outside
<PPH>
that's a noob question I know but I don't know... lol
fijimunkii has quit [Ping timeout: 246 seconds]
<PPH>
aight thx
Ox6abe_ has joined #ruby
coca_rails has quit [Remote host closed the connection]
enape_101 has quit [Ping timeout: 250 seconds]
Ox6abe__ has joined #ruby
nhhagen has joined #ruby
icrazyhack has joined #ruby
horieyui has left #ruby [#ruby]
_Andres has joined #ruby
Ox6abe has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby
elvin57 has joined #ruby
Kricir has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Ox6abe_ has quit [Ping timeout: 240 seconds]
gigetoo_ has quit [Remote host closed the connection]
Ox6abe__ has quit [Ping timeout: 246 seconds]
superscott[8] has quit []
Ox6abe has joined #ruby
maletor has joined #ruby
michaeldeol has quit [Ping timeout: 246 seconds]
kofno has quit [Ping timeout: 240 seconds]
coca_rails has joined #ruby
nwertman has joined #ruby
Ox6abe_ has joined #ruby
kofno has joined #ruby
Jaclyn has joined #ruby
gigetoo has joined #ruby
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
s2013{Texas} has joined #ruby
Seich has joined #ruby
Ox6abe has quit [Ping timeout: 246 seconds]
enape_101 has joined #ruby
Ox6abe_ has quit [Ping timeout: 260 seconds]
mikesplain has quit [Ping timeout: 246 seconds]
pragmatism has joined #ruby
synergy_ is now known as sng|afk
elvin57 has quit [Quit: leaving]
Ox6abe has joined #ruby
Seich has quit [Ping timeout: 246 seconds]
lukec has joined #ruby
Ox6abe_ has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
javon has quit [Remote host closed the connection]
Nanuq has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
coca_rails has quit [Remote host closed the connection]
Nanuq has joined #ruby
Ox6abe__ has joined #ruby
Ox6abe has quit [Ping timeout: 260 seconds]
Ox6abe has joined #ruby
Ox6abe_ has quit [Ping timeout: 246 seconds]
gianlucadv has quit [Ping timeout: 260 seconds]
rjhunter has joined #ruby
Ox6abe__ has quit [Ping timeout: 260 seconds]
nhhagen has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]