bashusr has quit [Read error: Connection reset by peer]
wookiehangover has quit [Ping timeout: 258 seconds]
olivier_bK has joined #ruby
studiotate has quit [Ping timeout: 240 seconds]
oleo has quit [Quit: Verlassend]
bashusr has joined #ruby
Beoran_ has joined #ruby
Mikke has joined #ruby
dc_ has quit [Remote host closed the connection]
asmodlol has quit [Read error: Connection timed out]
wookiehangover has joined #ruby
Beoran has quit [Ping timeout: 245 seconds]
<Mikke>
> [1.0 .. ]
asmodlol has joined #ruby
ptrrr has quit [Quit: ptrrr]
marr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
zacts has joined #ruby
<Mikke>
There are a few oddball error messages that *sometimes* come up; "CPU Arch invalid for this device", "com.google,process.gapps has stopped"... that sort of thing.
Timgauthier has joined #ruby
DadoCe has joined #ruby
Timgauthier has quit [Client Quit]
oleo has joined #ruby
oleo has quit [Read error: Connection reset by peer]
coderhs has quit [Quit: This computer has gone to sleep]
lemur has joined #ruby
coderhs has joined #ruby
Menorah has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
mary5030 has joined #ruby
VBlizzard is now known as blizzy
coderhs has quit [Client Quit]
bashusr has joined #ruby
<shevy>
cool
<bradland>
Mikke: got a link?
oleo has joined #ruby
lemur has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 258 seconds]
dc_ has joined #ruby
barderer has joined #ruby
bigmac has joined #ruby
nicolastarzia has joined #ruby
jack_rabbit has quit [Ping timeout: 244 seconds]
dx7iso has joined #ruby
DLSteve has quit [Quit: Leaving]
ponga has joined #ruby
coderhs has joined #ruby
<Mikke>
vonnegut, it works in there
marens_ has quit [Remote host closed the connection]
dx7iso has quit [Remote host closed the connection]
nicolastarzia has quit [Ping timeout: 240 seconds]
pandaant has quit [Remote host closed the connection]
coderhs has quit [Client Quit]
olivier_bK has quit [Ping timeout: 258 seconds]
pu22l3r has joined #ruby
coderhs has joined #ruby
ponga has quit [Ping timeout: 265 seconds]
bigmac has quit [Ping timeout: 244 seconds]
bashusr has quit [Read error: Connection reset by peer]
dotix has quit [Ping timeout: 244 seconds]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
dx7iso has quit [Remote host closed the connection]
behrz has joined #ruby
tus has joined #ruby
bashusr has joined #ruby
tuxdna has joined #ruby
hiyosi has joined #ruby
fantazo has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
poetazus has joined #ruby
havenwood has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
robustus has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
Deele has quit [Ping timeout: 244 seconds]
jack_rabbit has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 272 seconds]
bashusr has joined #ruby
cmarques has quit [Remote host closed the connection]
coderhs has quit [Quit: This computer has gone to sleep]
robustus has joined #ruby
pharpend has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bashusr has quit [Read error: Connection reset by peer]
pharpend has quit [Client Quit]
poetazus has quit [Remote host closed the connection]
rpag has joined #ruby
poetazus has joined #ruby
bashusr has joined #ruby
boadie has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
commmmodo has joined #ruby
ponga has joined #ruby
hamakn has joined #ruby
coderhs has joined #ruby
chrishough has joined #ruby
poetazus has quit [Quit: Leaving...]
Mongey has quit [Ping timeout: 240 seconds]
zen_ has quit [Ping timeout: 250 seconds]
bashusr has joined #ruby
comm64 has joined #ruby
Channel6 has joined #ruby
zacts has quit [Quit: leaving]
ponga has quit [Ping timeout: 240 seconds]
<comm64>
I've read online that you should put require statements at the top of your ruby files but what if the file you need to require depends on conditions
<apeiros_>
it's a "should", not a "must"
spastorino has quit [Quit: Connection closed for inactivity]
bashusr has quit [Read error: Connection reset by peer]
<shevy>
comm64 it makes it easier to know what is required in said file at one glance
Aswebb_ has joined #ruby
siaw has left #ruby [#ruby]
Mongey has joined #ruby
<shevy>
comm64 if you need conditional requires then they can often happen on the top of the file too right?
<shevy>
begin
<shevy>
require 'readline'
<shevy>
rescue LoadError; end
<shevy>
well, and setting some constant like READLINE_IS_AVAILABLE in a module
<shevy>
module MyGame; end
<comm64>
yeah I suppose
coderhs has quit [Quit: This computer has gone to sleep]
<shevy>
and above: rescue LoadError; MyGame::READLINE_IS_AVAILABLE = false; end
<shevy>
if MyGame.has_readline_support?; user_input = Readline.readline(' >', true)
DadoCe has quit [Remote host closed the connection]
jamto11 has joined #ruby
jack_rabbit has joined #ruby
<comm64>
is there a rule of thumb to breaking a program up into multiple files
DadoCe has joined #ruby
<zenspider>
I generally do one file per class, broken down by namespace.
<apeiros_>
^ +1
bashusr has joined #ruby
<zenspider>
but sometimes it gets absurd and you just lump everything together at the top of the namespace (lots of tiny classes, for example)
Aswebb_ has quit [Ping timeout: 256 seconds]
<zenspider>
lib/a.rb instead of lib/a/b.rb lib/a/c.rb lib/a/d.rb etc.
coderhs has joined #ruby
AlexRussia has joined #ruby
<zenspider>
just depends on maintainability
<shevy>
yeah one file <-> one class is a nice convention
dorei has quit []
<apeiros_>
makes finding code easy without even using advanced tools. A::B::C -> a/b/c.rb -> a/b.rb -> a.rb (first which exists contains it)
Areessell has quit [Ping timeout: 240 seconds]
<apeiros_>
comm64: also check the guide on how to name rubygems
<zenspider>
tldr is <underscore_name> or <parent_gem>-<extension_name>
jamto11 has quit [Ping timeout: 258 seconds]
DadoCe has quit [Ping timeout: 258 seconds]
bashusr has quit [Read error: Connection reset by peer]
<shevy>
comm64 I have found that it greatly depends on the size of the code/project in question
AUS3RIS has joined #ruby
<comm64>
arrgggh the freedom!!! lol
coderhs has joined #ruby
marr has quit [Ping timeout: 244 seconds]
<apeiros_>
freedom also allows you to relinquish freedom.
msmith_ has joined #ruby
<shevy>
comm64 yeah but freedom is also based on decisions and there are always pros and cons to some decisions. I found that my brain works much better when code is short - code files that are like +2000 lines long really burden my brain immensely when I did not look at it for some weeks
sambao21 has joined #ruby
<apeiros_>
hey zenspider, when targeting exclusively ruby 2.2, would you represent decimals with BigDecimal or with Rational?
bashusr has joined #ruby
Cache_Money has joined #ruby
coderhs has quit [Quit: This computer has gone to sleep]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacts has joined #ruby
zacts has quit [Changing host]
zacts has joined #ruby
msmith_ has quit [Ping timeout: 256 seconds]
hamakn has quit [Remote host closed the connection]
coderhs has joined #ruby
sambao21 has quit [Ping timeout: 244 seconds]
bashusr has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
AUS3RIS has quit [Quit: ZZZzzz…]
fantazo has quit [Quit: Verlassend]
sambao21 has joined #ruby
Areessell has joined #ruby
zen has joined #ruby
chrishough has joined #ruby
zen is now known as Guest76987
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulfm has joined #ruby
bashusr has joined #ruby
jack_rabbit has quit [Ping timeout: 265 seconds]
coderhs has quit [Quit: This computer has gone to sleep]
<apeiros_>
I guess I'll stick to bigdecimal for the moment
rshetty has joined #ruby
zorak8 has quit [Ping timeout: 258 seconds]
basex has joined #ruby
Guest76987 has quit [Ping timeout: 245 seconds]
tuxdna has quit [Ping timeout: 250 seconds]
eka has joined #ruby
sambao21 has quit [Ping timeout: 245 seconds]
barderer has quit [Ping timeout: 244 seconds]
coderhs has joined #ruby
basex has quit [Ping timeout: 244 seconds]
paulfm has quit [Quit: Goodbye]
<shevy>
big is good
Musashi007 has quit [Quit: Musashi007]
coderhs has quit [Client Quit]
sambao21 has joined #ruby
charliesome has joined #ruby
coderhs has joined #ruby
sambao21_ has joined #ruby
Takle_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
sambao21 has quit [Ping timeout: 250 seconds]
bashusr has quit [Read error: Connection reset by peer]
<godd2>
I feel like Ruby is implicit in all the right places
bashusr has joined #ruby
razieliyo has quit [Quit: Saliendo]
<shevy>
godd2 what does that behaviour test? it tests whether an instance of class Dog will have a method called .legs that would return an @instance variable that will be equal to 4?
<godd2>
technically no instance variables are needed for that test to pass
<godd2>
it only requires some method named #legs which always returns 4
msmith_ has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
<shevy>
right
<godd2>
but you can always add context to a spec and, say, pass params to Dog.new without breaking existing tests
<godd2>
But I'm more enamoured with the fact that rspec could have gotten written
kfwqt43535 is now known as memxi
agjacome has quit [Quit: leaving]
<godd2>
you do something like that in, say, javascript (which is also considered an expressive language), and it's going to look a lot more verbose
<godd2>
at least, relative to Ruby
Photism has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
memxi has quit [Client Quit]
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
hmsimha has joined #ruby
jeff-ooh has joined #ruby
dopie has joined #ruby
XCVB has joined #ruby
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
basex has joined #ruby
jenrzzz has joined #ruby
josephndenton has joined #ruby
<shevy>
yeah I can imagine
basex has quit [Ping timeout: 258 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
bashusr has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
<shevy>
if only we could use non javascript languages directly!
jamto11 has quit [Remote host closed the connection]
pu22l3r has joined #ruby
anskeit has joined #ruby
icebourg has quit []
studiotate has quit [Quit: Computer has gone to sleep.]
jenrzzz has quit [Ping timeout: 265 seconds]
josephndenton has quit [Ping timeout: 252 seconds]
studiotate has joined #ruby
jeff-ooh has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
cajone1 has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tejas-manohar has joined #ruby
nicolastarzia has joined #ruby
<tejas-manohar>
ruby SOAP clients?
<tejas-manohar>
i've used net:http and rest-client and faraday but what about SOAP APIs
dseitz has joined #ruby
<tejas-manohar>
havenwood: you there?
<havenwood>
tejas-manohar: Soap is for tubs!
<shevy>
do you guys happen to know if for webpages the last content will be "</html>"?
bashusr has joined #ruby
<shevy>
the last outputted string, rather
<tejas-manohar>
havenwood: ikr SOAP APIs are awwwwful to deal with
bashusr has quit [Read error: Connection reset by peer]
<tejas-manohar>
havenwood: any good gem?
<havenwood>
tejas-manohar: RestClient seems like a reasonable NetHTTP wrapper.
hamakn has joined #ruby
<tejas-manohar>
havenwood: wait so netHTTP can deal w/ SOAP APIs?
chinmay_dd has joined #ruby
<havenwood>
tejas-manohar: For HTTP clients I do like HTTPClient a lot and it's pure Ruby. I do like the design of the HTTP gem. Faraday is nice if you might need to vary your adapter or add middleware.
<tejas-manohar>
havenwood: i use faraday and rest-client when dealing w/ REST APIs but never tried SOAP APIs in ruby wanted to know good gems for those
Menorah has joined #ruby
<tejas-manohar>
havenwood: but SOAP?
<havenwood>
tejas-manohar: I've never used a soap gem. I think I've heard of savon.
<tejas-manohar>
havenwood: ok yeah thats what i found still sucks cuz soap
<tejas-manohar>
is the source code for eval-in__ bot somewhere i can see?
<tejas-manohar>
i wanna see the API for eval.in
<tejas-manohar>
havenwood: shevvy: godd2: active users here? any idea?
shuber_ has joined #ruby
<godd2>
have you tried googling "irc ruby bot"
<sparr>
I've got two versions of ruby installed. The version I want is first on my path, but bundle still calls the other one. How can I convince it to use the one I want?
<tejas-manohar>
godd2: yes
<tejas-manohar>
godd2: not trying to write an IRC bot in ruby
<sparr>
porkys is spamming people as they join this channel
<tejas-manohar>
ikr
<tejas-manohar>
godd2: I want to see how `eval-in__` bot works so i can investigate the API of eval.in for my personal use
shuber_ has quit [Remote host closed the connection]
jimmyhoughjr has joined #ruby
phutchins has quit [Ping timeout: 258 seconds]
kevr has quit [Ping timeout: 240 seconds]
armyriad has quit [Quit: Leaving]
agrinb has quit [Remote host closed the connection]
shuber_ has quit [Remote host closed the connection]
zen_ has joined #ruby
shuber_ has joined #ruby
<shevy>
hmm can someone explain this:
<shevy>
$stdout.close; $stdout = STDOUT
<shevy>
in particular, why the .close is applied - I understand the $stdout = STDOUT part
mityaz has joined #ruby
barderer has quit []
<godd2>
shevy my explanation would be that $stdout was set to some other io stream and that strem was closed, and THEN they responsibly set $stdout back to STDOUT
shuber_ has quit [Remote host closed the connection]
<tejas-manohar>
>> stuff that errors
<eval-in__>
tejas-manohar => undefined local variable or method `errors' for main:Object (NameError) ... (https://eval.in/237334)
bashusr has quit [Read error: Connection reset by peer]
<havenwood>
sparr: The Ruby gem bin/ dir needs to be in the PATH as well, unless you're using a switcher (and of course the Bundler gem needs to be installed).
<havenwood>
sparr: How'd you install the Ruby you're trying to setup? A package or built yourself or otherwise?
<tejas-manohar>
havenwood: ah so basically two constants?
<tejas-manohar>
havenwood: yeah i understand
josephndenton has joined #ruby
<havenwood>
tejas-manohar: Rack should be preferring Rack::Handler::HTTP not ::HTTP.
psyprus has joined #ruby
<tejas-manohar>
havenwood: well in reality ive developed a preference for faraday now! so im just gonna switch :) -- worked on this project weeks ago coming back now
x1337807x has joined #ruby
<havenwood>
tejas-manohar: or if you really wanna use WEBrick: set :server, 'webrick'
<havenwood>
tejas-manohar: or just go ahead and setup Puma or Thin
<havenwood>
or Unicorn
<havenwood>
or Passenger
<tejas-manohar>
havenwood: lol
<tejas-manohar>
havenwood: got it covered!
<havenwood>
tejas-manohar: k ;)
mary5030 has quit [Ping timeout: 258 seconds]
CrazyM4n has joined #ruby
pu22l3r has quit [Remote host closed the connection]
bashusr has joined #ruby
x1337807x has quit [Client Quit]
bashusr has quit [Read error: Connection reset by peer]
<tejas-manohar>
havenwood: ^ results in https://api.github.com/gists/f9fa5b9cc52c08e9b29b which has correct data but that line highlighted in gist is erroring i commented rest and tried until reaching this which was trigger of errror
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claptor has joined #ruby
ylluminarious_ has joined #ruby
lemur has joined #ruby
<havenwood>
tejas-manohar: what is `id` when it fails?
<tejas-manohar>
havenwood: f9fa5b9cc52c08e9b29b
bashusr has joined #ruby
shuber_ has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
<havenwood>
tejas-manohar: Can you Gist the full error?
<havenwood>
I don't see the issue right off.
ishikawa91 has joined #ruby
ylluminarious has quit [Ping timeout: 240 seconds]
ylluminarious_ has quit [Ping timeout: 240 seconds]
<tejas-manohar>
havenwood: i dont use slim -- also TypeError - no implicit conversion of Faraday::Response into String: -- trying to figure out how to do this res = JSON.parse(Faraday.get('https://api.github.com/gists/' + id)) code = res.body['files'].values.map { |h| h['content'] } tried res.body still no luck
<tejas-manohar>
havenwood: im 99% sure i used res.body when i used faraday last
bashusr has quit [Read error: Connection reset by peer]
<godd2>
every class inherits from Object by default, and Object includes Kernel
<godd2>
(that's why #puts works inside your classes)
<shevy>
hmm
<godd2>
I don't have a dog, no. In fact I'm a cat person
<shevy>
haha
<godd2>
It's just that the letters of the word dog take alternating fingers per hand to type
<shevy>
but you always bring class Dog as example
<godd2>
well everyone knows what a dog is
<shevy>
the reason why I wondered about the inclusion was
<godd2>
when you teach logic, you learn how to tap into knowledge for analogies
Kellin has quit [Ping timeout: 258 seconds]
<shevy>
I was working on a module called Hitpoints, which obviously should give support for hitpoints - as in how much structural damage some object can take
AndyBotwin has quit [Quit: Leaving]
<shevy>
so here I'd go and happily add that module to some objects
<shevy>
[to be continued at a later point as shevy is presently a bit confused]
duncannz has joined #ruby
bashusr has joined #ruby
rshetty has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
pengin has joined #ruby
oo_ has quit [Remote host closed the connection]
fenzyl has joined #ruby
studiotate has joined #ruby
goddamnit2 has joined #ruby
goddamnit2 is now known as godd2
_5kg has joined #ruby
fenzil has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
bashusr has joined #ruby
gf3_ has joined #ruby
fenzyl has quit [Quit: Leaving]
bashusr has quit [Read error: Connection reset by peer]
gf3 has quit [Ping timeout: 264 seconds]
claptor has quit [Ping timeout: 264 seconds]
dx7iso has quit [Ping timeout: 264 seconds]
Zamyatin has quit [Ping timeout: 264 seconds]
claptor has joined #ruby
dionysus69 has joined #ruby
pengin has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weeb1e>
Basically, the ractor pattern works as follows: It is a infinite while loop which calls a system function calls select() which checks every socket and returns those which are readable, writable and in an error state
Seich has joined #ruby
<weeb1e>
So each iteration of the loop, the reactor knows which sockets are ready to perform which operations, and it can simply handle them accordingly
<shevy>
hey atmosx
govg has joined #ruby
TgMts has joined #ruby
commmmodo has joined #ruby
<weeb1e>
There are further kernel-specific optimizations supported by certain platforms, but that is the core concept you should understand when working with eventmachine
jdj_dk has quit [Ping timeout: 264 seconds]
<atmosx>
that's single threaded, smart.
<atmosx>
shevy: how's life? :D
<atmosx>
awesome EM is perfect for what I need to do.
<weeb1e>
Using threads for IO is simply unnecessary overhead and complication
St_Marx has quit [Quit: WeeChat 1.0.1]
gfawcettpq has joined #ruby
<weeb1e>
Single threaded reactor based platforms are far better suited for IO-heavy applications
TDJACR has joined #ruby
St_Marx has joined #ruby
<weeb1e>
I have easily built 40 such applications over the past few years, so feel free to ask questions if you get stuck on anything
mattwildig has joined #ruby
fandi has quit [Ping timeout: 255 seconds]
krz has quit [Quit: WeeChat 1.0.1]
gfawcettpq has quit [Client Quit]
_2_chop1234 has joined #ruby
<_2_chop1234>
hi
TgMts has quit [Quit: No Ping reply in 180 seconds.]
<felltir>
hi
<_2_chop1234>
:D
St_Marx has quit [Client Quit]
<felltir>
:DD
St_Marx has joined #ruby
<atmosx>
weeb1e: okay, will do if need further help, thanks
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
<_2_chop1234>
I'm 10
St_Marx has quit [Client Quit]
St_Marx has joined #ruby
byaruhaf has quit [Remote host closed the connection]
pu22l3r has quit [Read error: No route to host]
<_2_chop1234>
hi
despai has joined #ruby
<_2_chop1234>
:D
<shevy>
_2_chop1234 is a bot
<shevy>
same old _number_ pattern
<_2_chop1234>
yes
despai has quit [Client Quit]
<shevy>
atmosx dunno, lots todo and read
<_2_chop1234>
ok
<atmosx>
shevy: I see
byaruhaf has joined #ruby
<_2_chop1234>
$$$
pu22l3r has joined #ruby
fabrice31 has joined #ruby
giuseppesolinas has joined #ruby
<shevy>
atmosx do you still have to wait for your degree?
nomadic_ has quit [Ping timeout: 240 seconds]
<atmosx>
shevy: sure, till summer 2016 :-(
<_2_chop1234>
:'(
<arup_r>
why are you crying ?
jalcine has quit [Remote host closed the connection]
JDHankle has quit [Quit: awe shucks]
jalcine has joined #ruby
weaksauce has quit [Ping timeout: 245 seconds]
<shevy>
arup_r it's a bot, don't mind it
<arup_r>
Ohh!
JDHankle has joined #ruby
jaequery has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
<apeiros_>
it cries because it doesn't have a heart
TgMts has joined #ruby
<arup_r>
atmosx: What degree you are planning ?
<arup_r>
apeiros_: What is the link between heart and cry ? :)
<atmosx>
arup_r: pharmacy degree
Guest16071 has quit [Ping timeout: 258 seconds]
_2_chop1234 has quit [Remote host closed the connection]
<arup_r>
Ok.. You are Rubying.. as You love programming ?
nomadic has joined #ruby
<arup_r>
atmosx: ^^
<atmosx>
arup_r: yes, I was in love with Linux actually so I dug as far as I could, but kept myself away from programming... from 1999 to 2007/8 ... then I started slowly with ruby and I'm still going slow :-P
phutchins has joined #ruby
nicolastarzia has joined #ruby
dx7iso has joined #ruby
<arup_r>
me slow too
TgMts has quit [Quit: No Ping reply in 180 seconds.]
C0deMaver1ck_ has joined #ruby
<shevy>
hmm
btcctf_ has quit [Ping timeout: 245 seconds]
<shevy>
when I switched to linux, I used perl
<arup_r>
shevy: +1
<shevy>
one mistake I often made was that I would forget a trailing ;
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<arup_r>
that's why you switched to Ruby?
<shevy>
nah
<arup_r>
no traling `;`.............
<shevy>
I switched to php from perl
<arup_r>
:)
<atmosx>
shevy: hahaha that's torture
<shevy>
which had the same problem
<shevy>
however had I was more productive in php than I was in perl
<arup_r>
since when you are playing with computer brain ?
gilmour has quit [Remote host closed the connection]
<shevy>
computer brain?
gilmour has joined #ruby
giuseppesolinas has joined #ruby
<arup_r>
When I write (1..5).each do p "Say Hi!" end.. It is after all computer understand and do print
TgMts has joined #ruby
dx7iso has quit [Ping timeout: 252 seconds]
<arup_r>
Ruby is just a middle-ware
<arup_r>
:p
<atmosx>
I need to save from info into the FS. It's for a queue system I'm designing, would you use an SQL database or a some YML file? I need to know which numbers are 'reserved', say I have a queue from 1 to 100 and numbers 69, 59 and 89 are preserved, so when the queue reaches that number will skip it.
<shevy>
arup_r ah ok; well I would not use the word brain or understand, it just seems to analyse a stream of tokens and turns it into something else or?
<shevy>
as it is often said, Ruby is just syntactic sugar over C
<shevy>
atmosx yaml files! because I can read them!
jaequery has joined #ruby
<atmosx>
shevy: but I already have a DB and I won't have to read anything.
<shevy>
yaml files!
<shevy>
hehehe
<atmosx>
okay :-P
<shevy>
you have to ask apeiros_
<shevy>
he is designing a new ORM in ruby
jdj_dk has joined #ruby
<atmosx>
cool
druznek has quit [Ping timeout: 272 seconds]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
<shevy>
hmm we can make a directory sticky
<shevy>
File.chmod 01666, 'test'
<shevy>
but I am surprised that we have to use the file permission there
<shevy>
is there some way to use some character to chmod perhaps? "+t" or something like that?
<bradland>
i’m too lazy to remember what’s what, so I nearly always wrap method calls with paren
<shevy>
yeah
Hanmac has quit [Ping timeout: 250 seconds]
<shevy>
I noticed that I am doing that a lot when I do stuff like this:
<shevy>
if File.exist?('bla') and ! File.directory?('bla') and File.awesome?('bla')
Seich has joined #ruby
ericwood has quit [Ping timeout: 240 seconds]
<mr_george>
I would like to invert every color reference in a file. How do I keep track of what has been replaced and what needs to be? I can't even just create an Array of colors to replace, because #000000 => #FFFFFF, and then I don't want to run turn it back into #000000. Any ideas?
<mr_george>
I guess I could make a table of every index in the file that needs to be replaced, since these replacements won't change file positions, but that seems hard.
tkuchiki has quit [Ping timeout: 252 seconds]
ponga has quit [Ping timeout: 255 seconds]
ericwood has joined #ruby
atmosx_ has joined #ruby
wallerdev has joined #ruby
<shevy>
sounds as if you need to use one or two Hashes
<apeiros_>
bradland: correct, to_i(8) uses base8, which is the base 01666 uses
<Mon_Ouie>
Just use gsub?
atmosx has quit [Ping timeout: 240 seconds]
mattwildig has quit [Remote host closed the connection]
fandi has joined #ruby
Kondro has quit [Read error: Connection reset by peer]
davedev2_ has joined #ruby
<bradland>
apeiros_: oh yeah, chmod. derp.
Sawbones has joined #ruby
davedev24_ has quit [Ping timeout: 264 seconds]
Takle_ has quit [Ping timeout: 244 seconds]
mattwildig has joined #ruby
felltir has quit []
n80 has quit [Quit: n80]
DrCode has joined #ruby
C0deMaver1ck_ has quit [Ping timeout: 258 seconds]
jeff-ooh has joined #ruby
Zai00 has quit [Quit: Zai00]
fandi has quit [Ping timeout: 250 seconds]
Asher has quit [Quit: Leaving.]
C0deMaver1ck has joined #ruby
C0deMaver1ck is now known as Guest84062
jrhe_ has joined #ruby
Takle has joined #ruby
Hanmac has joined #ruby
matled- has joined #ruby
<shevy>
wasn't that difficult as I thought to make something sticky while preserving the old permissions
paramourne has quit [Remote host closed the connection]
matled has quit [Read error: Connection reset by peer]
jrhe has quit [Ping timeout: 240 seconds]
crdpink has quit [Excess Flood]
Luyt_ has quit [Ping timeout: 240 seconds]
LiquidInsect has quit [Ping timeout: 240 seconds]
jrhe_ is now known as jrhe
matled- is now known as matled
crdpink has joined #ruby
LiquidInsect has joined #ruby
<mr_george>
Mon_Ouie: that won't handle #000000 being converted to #FFFFFF, and then back into #000000
<shevy>
mr_george well just keep track of it in your hash?
wolf4ood has joined #ruby
susmus has quit [Ping timeout: 240 seconds]
Jameser` has joined #ruby
<Blackhol_>
I'm working on a pretty simple sinatra + datamapper app, and it was launching and working just fine yesterday. I attempted to introduce some seed data into the db, and started getting this strange error on launch. I reverted back to pre-seed code, and the error persists. I've noticed that commenting out the include DataMapper::Resource in my model makes the app run again. here's the error: /.rbenv/versions/2.1.5/lib/rub
<Blackhol_>
y/gems/2.1.0/gems/dm-serializer-1.2.2/lib/dm-serializer/to_yaml.rb:15:in `included': undefined method `add_domain_type' for Psych:Module (NoMethodError) ... Any ideas?
msmith_ has joined #ruby
<mr_george>
I guess I can gsub(#000000, prefix000000) on all colors first, then gsub(prefix00000, #FFFFFF)
susmus has joined #ruby
Jameser has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 244 seconds]
rippa has quit [Ping timeout: 244 seconds]
shuber_ has joined #ruby
<apeiros_>
mr_george: gsub can gsub all values in one go
byprdct has joined #ruby
<apeiros_>
mr_george: either by using a hash as second argument, or by using a block
msmith_ has quit [Read error: Connection reset by peer]
gfawcettpq has quit [Quit: Leaving.]
<apeiros_>
no need for prefix or dozens of gsub calls.
msmith_ has joined #ruby
Blackhol_ was kicked from #ruby by apeiros_ [if you cross-post, inform all places where you ask, that you're asking in multiple places.]
gfawcettpq has joined #ruby
rshetty has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
<mr_george>
apeiros_, wow, that was too easy. Sorry for the noob question. Thanks
Blackhol_ has joined #ruby
<shevy>
oh
shuber_ has quit [Ping timeout: 258 seconds]
<shevy>
.gsub accepts a Hash?
msmith_ has quit [Ping timeout: 244 seconds]
Zai00 has joined #ruby
oleo has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
oo_ has joined #ruby
hamakn has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 244 seconds]
oleo has joined #ruby
oleo has quit [Read error: Connection reset by peer]
<mr_george>
shevy, no, but I ultimately want to call a function invert(color="#000000")#=>"#FFFFFF", I don't need to create the hash at all. That was just a workaround because I was imagining many gsub calls. (I originally started writing this with bash and sed)
testcore has quit [Ping timeout: 250 seconds]
oleo has joined #ruby
<mr_george>
shevy, with only a single gsub call and a proc, I don't need to worry about my problem of #000000 => #FFFFFF and getting converted back again
testcore has joined #ruby
oleo has quit [Read error: Connection reset by peer]
fandi has joined #ruby
Pupeno has joined #ruby
<bradland>
shevy: it can, yes. it performs a looup in the hash that looks like this: myhash[match]
<bradland>
roughly speaking
Pupeno has quit [Changing host]
Pupeno has joined #ruby
oleo has joined #ruby
oleo has quit [Read error: Connection reset by peer]
chinmay_dd has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 265 seconds]
codecop has joined #ruby
oleo has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
_ixti_ has joined #ruby
shinnya has joined #ruby
oleo has quit [Read error: Connection reset by peer]
jeff-ooh_ has joined #ruby
cmarques has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 264 seconds]
oleo has joined #ruby
oleo has quit [Read error: Connection reset by peer]
cmarques has joined #ruby
jeff-ooh has quit [Ping timeout: 256 seconds]
oleo has joined #ruby
cmarques has quit [Remote host closed the connection]
oleo has quit [Read error: Connection reset by peer]
mattwildig has quit []
oleo has joined #ruby
rippa has joined #ruby
oleo has quit [Read error: Connection reset by peer]
dx7iso has joined #ruby
<shevy>
aha
AlexRussia has joined #ruby
oleo has joined #ruby
Asher has joined #ruby
AlSquire has joined #ruby
studiotate has joined #ruby
oleo has quit [Read error: Connection reset by peer]
jeff-ooh_ has quit [Remote host closed the connection]
anskeit has quit [Ping timeout: 272 seconds]
anskeit has joined #ruby
Soda has joined #ruby
rkornmeyer has joined #ruby
claymore has joined #ruby
jeff-ooh_ has joined #ruby
yfeldblum has joined #ruby
diegoviola has joined #ruby
hamakn has joined #ruby
arietis_ has joined #ruby
oleo has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has joined #ruby
<shevy>
hmm
despai has joined #ruby
<shevy>
if I define the same method in 3 modules
arietis_ is now known as arietis
<shevy>
and include these 3 modules in my class
<shevy>
only the last defined method will prevail
jeff-ooh_ has quit [Client Quit]
yfeldblum has quit [Ping timeout: 255 seconds]
<shevy>
is there a way to obtain and keep all three methods? let me show the example
<shevy>
so I guess Array must have redefined #inspect
nicolastarzia has quit [Remote host closed the connection]
<shevy>
so what you show above seems perfectly valid insaneinside for pp output
<insaneinside>
no, i mean
<insaneinside>
literally an ellipsis
<shevy>
an ellipsis?
<insaneinside>
"#<MyObject:0xXXXXXXX ...>"
<insaneinside>
"..."
<shevy>
ah
yfeldblum has joined #ruby
<shevy>
weird
hiyosi has quit [Read error: Connection reset by peer]
<insaneinside>
but that thing about redefining #inspect -- helped.
hiyosi has joined #ruby
jphenow has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
it0a has quit [Ping timeout: 265 seconds]
AndyBotwin has quit [Quit: Leaving]
<insaneinside>
so Pry thinks that the default #inspect is useless? Bah! Humbug.
randiman has joined #ruby
jack_rabbit has joined #ruby
Takle has joined #ruby
<shevy>
no idea, I don't use it. If you think it is a bug or a faulty behaviour then you could consider filing an issue at https://github.com/pry/pry/issues
Takle_ has quit [Ping timeout: 258 seconds]
basex has joined #ruby
<insaneinside>
will consider, thanks. Are you a developer?
<insaneinside>
(i.e., of pry)
DaniG2k has quit [Ping timeout: 272 seconds]
weaksauce has joined #ruby
<shevy>
nah, I used it only initially
jimmyhoughjr has joined #ruby
<shevy>
but I recall that back then too there were other issues about redefining (or using abbreviations) for common commands
towski_ has joined #ruby
gregf has joined #ruby
basex has quit [Ping timeout: 250 seconds]
arup_r has quit [Quit: Leaving.]
pdlug has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
elaptics is now known as elaptics`away
DaniG2k has joined #ruby
rkalfane has joined #ruby
rbrs has quit [Quit: Leaving]
gja has quit [Quit: This computer has gone to sleep]
chrishough has joined #ruby
chrishough has quit [Client Quit]
havenwood has joined #ruby
elaptics`away is now known as elaptics
delsol has quit [Ping timeout: 246 seconds]
hamakn has quit [Remote host closed the connection]
Cache_Money has joined #ruby
ponga has joined #ruby
<bradland>
tools like pretty print and awesome print actually maintain “formatting” styles for certain types of known objects.
josephndenton has joined #ruby
<bradland>
so not everything can be formatted nicely without additional information
heeton has joined #ruby
<bradland>
although the choice of truncating an object id seems like an odd default
<insaneinside>
bradland: but this is a problem with Pry directly -- and no, the obj. ID wasn't being truncated
<insaneinside>
that was for my example
<bradland>
oh, sry. i thought you meant it was.
<insaneinside>
but the object data WAS being truncated.
<insaneinside>
yeah, i'm doing poorly at explaining things today.
ptrrr has quit [Quit: ptrrr]
ptrrr has joined #ruby
ptrrr has quit [Remote host closed the connection]
ptrrr has joined #ruby
<Mon_Ouie>
Pry doesn't redefine anything in PP, all it does is subclass it to add colors
Cache_Money has quit [Client Quit]
<insaneinside>
yeah, so it's something outside of that.
<insaneinside>
The problem was fixed when I manually defined #inspect on the object I was having trouble with.
josephndenton has quit [Ping timeout: 240 seconds]
Sgeo has joined #ruby
<havenwood>
insaneinside: What was the problem?
msmith_ has joined #ruby
<bradland>
insaneinside: do you have a code snippet that will reproduce the problem?
ponga has quit [Ping timeout: 272 seconds]
<insaneinside>
havenwood: it appears to be that Pry treats the output of #inspect differently depending on where #inspect is defined -- Kernel or your own class...
<havenwood>
insaneinside: Different result in irb?
<insaneinside>
bradland: not at the moment, unless you want an entire WIP LR(1) parser implementation.
<Mon_Ouie>
That's not the source code of this bot btw, it's a clone I made when the bot wasn't there anymore
<bradland>
thx Mon_Ouie
<tejas-manohar>
oh
<tejas-manohar>
Mon_Ouie: it works tho, right?
<insaneinside>
bradland: starting to think it might be something to do with having greater than a certain number of member variables.
<Mon_Ouie>
Yes. And that backslash at the end is used to escape the newline, so that the two strings are concatenated
wolf4ood has quit [Excess Flood]
<tejas-manohar>
Mon_Ouie: im trying to write an app to make gists executable and im making use of eval.in (has many language support) https://github.com/tejasmanohar/pasterunner/blob/master/app.rb#L22 why is my code erroring dynamic constant assignment at the line highlighted here
<tejas-manohar>
Mon_Ouie: the actual bot isn't open source?
<Mon_Ouie>
I don't think it is
<bradland>
insaneinside: that’s likely. these pretty printers (pry included) don’t treat all objects equally.
wolf4ood has joined #ruby
<Mon_Ouie>
tejas-manohar: You can't assign a constant inside a method like that
<tejas-manohar>
Mon_Ouie: ohhh constants ill put at top
<tejas-manohar>
sorry (newer one of the devs here)
Sawbones has joined #ruby
<Mon_Ouie>
I get an HTML page back from the server, which I parse to find the part that contains the program output (I just looked at what the HTML code looked like to write the xpath expression)
<tejas-manohar>
ah
bashusr has quit [Read error: Connection reset by peer]
<tejas-manohar>
Mon_Ouie: so in a way, web scraping
<tejas-manohar>
?
<Mon_Ouie>
Yup
<tejas-manohar>
Mon_Ouie: do you know of any ruby gems similar to npmjs.com/package/cheerio that package is OP
fandi has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
I don't know what that is, but libraries like Mechanize can help doing web scraping
bashusr has joined #ruby
Zai00 has joined #ruby
<tejas-manohar>
Mon_Ouie: https://www.npmjs.com/package/cheerio basically implements jQuery in the server side so i can GET a page and then load its html into $ and then perform any jQ operations on it!
yfeldblum has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<tejas-manohar>
Mon_Ouie: can you explain the purpose behind needs_ellipsis ?
oo_ has joined #ruby
<Mon_Ouie>
That's just because you can't send (or don't want to, anyway) very long messages on IRC, so I only keep the first N characters of the first line and add '...' at the end to indicate there's more on the web page
<tejas-manohar>
Mon_Ouie: ah
timonv_ has joined #ruby
jphenow has joined #ruby
mxrguspxrt has joined #ruby
<tejas-manohar>
Mon_Ouie: so i guess in my case since im a website that'll provide the output of code in a gist, pastebin, etc. given the language i can just do `output_title.next_element.text` under the `if output_title = body.at_xpath("*//h2[text()='Program Output']")` to return all the output?
Sawbones has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
byprdct has quit [Ping timeout: 244 seconds]
<Mon_Ouie>
That's just so I can run code with Ruby 1.0 and other very old versions, Ruby has changed since then so I wrote two versions of the template
<tejas-manohar>
Mon_Ouie: will rising an error stop my server?
<tejas-manohar>
oh ok im just gonna screw those versions :P
<tejas-manohar>
lol
bashusr has joined #ruby
hamakn has joined #ruby
raphaelrk has quit [Quit: Lost terminal]
heeton has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mon_Ouie>
Write a regular expression to select the part you're interested in or change the template so that the output only contains that part in the first place
<tejas-manohar>
>> qwoineiqwenqe
<eval-in__>
tejas-manohar => undefined local variable or method `qwoineiqwenqe' for main:Object (NameError) ... (https://eval.in/237575)
<tejas-manohar>
Mon_Ouie: oh ok hmm doesn't your IRC Bot do this?
<tejas-manohar>
Mon_Ouie: i only saw regex for the the >> part when i looked at irc bot
ebbflowgo has quit [Ping timeout: 240 seconds]
insaneinside has left #ruby ["byebye"]
<Mon_Ouie>
As far as I can tell it should catch all exceptions and not print the backtrace at all
Sawbones has joined #ruby
<tejas-manohar>
Mon_Ouie: Hmmm where are you stripping backtrace? i see first line thing
Takle_ has quit [Remote host closed the connection]
<toothe>
I don't know what I'm doing wrong that this isn't working.
<toothe>
done.
Sawbones has quit [Remote host closed the connection]
<toothe>
when I try to run this program now, it says 'run bundle install' to install missing gems.
<toothe>
let me try this...one sec
n80 has joined #ruby
Sawbones has joined #ruby
<toothe>
wow...it worked
zacts has joined #ruby
zacts has quit [Changing host]
zacts has joined #ruby
FooMunki has quit [Quit: FooMunki]
Takle has joined #ruby
knikolov has quit [Ping timeout: 244 seconds]
Sawbones has quit [Remote host closed the connection]
knikolov has joined #ruby
reset has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
amundj has joined #ruby
bigmac has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
DaniG2k has joined #ruby
Pupeno has quit [Remote host closed the connection]
Pattt has quit [Ping timeout: 240 seconds]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
rpag has joined #ruby
Sawbones has joined #ruby
bashusr has joined #ruby
josephndenton has joined #ruby
Sawbones has quit [Remote host closed the connection]
<Karunamon>
is anyone familiar enough with testing frameworks to answer some newbie questions? I'm trying to do a unit test for a few functions in a pure console app, and I'm not sure how to instantiate a class that my function depends on
jenrzzz has joined #ruby
bigmac has joined #ruby
n80 has quit [Quit: n80]
<Karunamon>
since instantiating it does a great deal of setup nonsense (connecting to a server and whatnot)
_djbkd has quit [Remote host closed the connection]
Sawbones has joined #ruby
Soda has quit [Remote host closed the connection]
havenwood has quit []
<Karunamon>
I can't just define a 'fake' version of the class, since there are a handful of functions mixed into the class I'm actually writing the tests for
havenwood has joined #ruby
reset has quit [Quit: Leaving...]
bigmac is now known as i8igmac
yaroslav has joined #ruby
Sawbones has quit [Remote host closed the connection]
zorak8 has quit [Read error: Connection reset by peer]
<apeiros_>
Karunamon: YourClass.allocate
keen__________15 has joined #ruby
<apeiros_>
does not trigger initialize
mjuszczak has quit []
mjuszczak has joined #ruby
josephndenton has quit [Ping timeout: 252 seconds]
bashusr has quit [Read error: Connection reset by peer]
reset has joined #ruby
zorak8 has joined #ruby
mjuszczak has quit [Client Quit]
keen__________14 has quit [Ping timeout: 245 seconds]
reset has quit [Client Quit]
basex has joined #ruby
Sawbones has joined #ruby
havenwood has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
Timgauthier is now known as timgauthier_away
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
reset has joined #ruby
havenwood has joined #ruby
bashusr has joined #ruby
basex has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
gr33n7007h has joined #ruby
Sawbones has quit [Remote host closed the connection]
fandi has joined #ruby
phutchins has quit [Ping timeout: 252 seconds]
Sawbones has joined #ruby
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
bashusr has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 244 seconds]
jphenow has joined #ruby
ptrrr has quit [Quit: ptrrr]
jphenow has quit [Quit: leaving]
gr33n7007h has quit [Ping timeout: 265 seconds]
bashusr has joined #ruby
josephndenton has joined #ruby
Kellin has joined #ruby
Kellin has quit [Changing host]
Kellin has joined #ruby
<shevy>
I luckily did not get a virus
AlexRussia has quit [Ping timeout: 240 seconds]
<shevy>
but it is really kinda sad how they try to generate revenue
<shevy>
you don't get that kind of stuff from github but most importantly, the usability of those two sites is soooo different
jonphenow has joined #ruby
<shevy>
procedure for github: since I am logged in already, I can just jump to something like https://github.com/mruby/mruby/issues and make a new issue
<dtordable>
well
<shevy>
that's literally one or two clicks
<dtordable>
is sane to code Ruby on Windows better than FreeBSD?
<shevy>
so you go to Tickets (after having to log in and of course I forgot several passwords or user combinations; on gmail I can just login with my email...)
<pontiki>
into Mordor, obviously
Takle_ has joined #ruby
<shevy>
then you get into ANOTHER submenu, with four possibilites: "Bugs Support Requests Patches Feature Requests"
AlexRussia has joined #ruby
<shevy>
finally you click on bugs, so you get the listing of the bugs
<shevy>
now you have to read through some useless information until you spot the "Create ticket" line
Takle has quit [Ping timeout: 272 seconds]
<dtordable>
a hello world program has a bad bug
<shevy>
then the textarea there is chaotic as hell, but you still manage to write stuff, then you click on "save"
<shevy>
phew
<timgauthier_away>
man, swift is nice :D
josephndenton has quit [Ping timeout: 256 seconds]
<shevy>
such an experience makes me want to never report any bugs to sourceforge based projects again
jonphenow has quit [Client Quit]
<pontiki>
shevy: i never even started to share code until i started using github
jphenow has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphenow has quit [Client Quit]
jphenow has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
oo_ has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
<shevy>
no wonder if you look at the ways of how things used to be!
<shevy>
freshmeat ... sourceforge... belios ...
<shevy>
I think git was the one to actually change the whole development model massively
bashusr has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
chipotle has quit [Max SendQ exceeded]
claudiuinberlin has joined #ruby
jenrzzz has joined #ruby
wallerdev has quit [Quit: wallerdev]
jdj_dk has joined #ruby
zorak_ has joined #ruby
jphenow has quit [Quit: leaving]
jphenow has joined #ruby
Asher has joined #ruby
zorak8 has quit [Ping timeout: 250 seconds]
ta has quit [Remote host closed the connection]
zacts has quit [Quit: Lost terminal]
TgMts has quit [Read error: Connection reset by peer]
DadoCe has quit [Remote host closed the connection]
nicolastarzia has joined #ruby
<bradland>
dtordable: are you asking if the experience of writing Ruby is better on Windows than on FreeBSD?
reset has quit [Quit: Leaving...]
oleo is now known as Guest66245
oleo__ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
fandi has joined #ruby
jphenow has quit [Quit: leaving]
Guest66245 has quit [Ping timeout: 240 seconds]
nicolastarzia has quit [Ping timeout: 240 seconds]
jphenow has joined #ruby
toothe has quit [Quit: leaving]
rockdon has quit [Ping timeout: 258 seconds]
BTRE has quit [Remote host closed the connection]
BTRE has joined #ruby
kotk_ has joined #ruby
bashusr has joined #ruby
fandi has quit [Ping timeout: 252 seconds]
DadoCe has joined #ruby
kotk has quit [Ping timeout: 255 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kotk has joined #ruby
rockdon has joined #ruby
jack_rabbit has quit [Ping timeout: 272 seconds]
ishikawa91 has joined #ruby
KnownSyntax has joined #ruby
elaptics is now known as elaptics`away
kotk_ has quit [Ping timeout: 245 seconds]
jack_rabbit has joined #ruby
basex has joined #ruby
wallerdev has joined #ruby
timonv_ has joined #ruby
Menorah has quit [Quit: This computer has gone to sleep]
basex has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
commmmodo has joined #ruby
rkazak has joined #ruby
ponga has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
<apeiros_>
wow, working reeeeally slow today
<apeiros_>
but finally reworked how my orm invokes insert & update.
<shevy>
dtordable ruby is good on any plattform; on windows you have to setup the machine more e. g. get cygwin + mingw + msys and the unix main tools like coreutils and such
jdj_dk has joined #ruby
<dtordable>
bradland: yeah
reset has joined #ruby
<bradland>
i’ll be less subtle than shevy and say no, the experience on Windows is not as good for a couple of reasons.
<dtordable>
aha
<bradland>
many ruby libraries include extensions developed in C. compiling these on Windows is possible, but in my experience, it’s a little less fun.
tkuchiki has quit [Ping timeout: 252 seconds]
<dtordable>
but I'll install Windows now
<bradland>
why?
<dtordable>
but with a OVM inside
<bradland>
i’m saying it’s *not* as good
pawanspace has quit [Remote host closed the connection]
<dtordable>
then have FreeBSD inside
<shevy>
bradland why do you want to dive into insanity
<bradland>
shevy: i’m asking myself that very question right now
<bradland>
dtordable: are you on freebsd?
<dtordable>
yeah
<shevy>
don't worry, I have 3 days of dtordable behind me now :-)
<bradland>
and you’re experiencing an error with a simple “hello world" script?
timgauthier_away has quit [Read error: Connection reset by peer]
rkazak has left #ruby [#ruby]
<dtordable>
no no
ponga has quit [Ping timeout: 245 seconds]
<dtordable>
I just say the typical hello world scrit
<dtordable>
has a bug
<bradland>
@_@
jenrzzz has quit [Ping timeout: 272 seconds]
Timgauthier has joined #ruby
<shevy>
he is luring you into insanity bradland
<shevy>
resist!
<bradland>
i feel like i’m in the middle of a turing test
<shevy>
refuse the urge to ask what bug it is
<tobiasvl>
what's the bug dtordable
<tobiasvl>
I'll bite
<tobiasvl>
no comma?
<tobiasvl>
capital W?
<dtordable>
the bug is about unusability or whatever
<dtordable>
doesn't serve for anything
<tobiasvl>
ok
codecop has quit [Remote host closed the connection]
Akuma has joined #ruby
<bradland>
i feel like i’m staring in to the void
<bradland>
and it’s sucking my brain out through my eyeballs
<dtordable>
if I was seeing a window showing "hello world" then it will be amazing
<bradland>
dtordable: post your script and a stacktrace to pastie or gist
Techguy305 has joined #ruby
<bradland>
or go shave some yaks (install windows and ovm, er whatever)
reset has quit [Quit: Leaving...]
fandi has joined #ruby
hamakn has joined #ruby
diegoviola has quit [Remote host closed the connection]
DadoCe has quit [Remote host closed the connection]
tus has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oleo__ has quit [Quit: Verlassend]
lkba_ has joined #ruby
adriancb has joined #ruby
hamakn has quit [Ping timeout: 244 seconds]
adriancb has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 244 seconds]
mrshu has joined #ruby
<mrshu>
I have a very strange problem with setting up travis-ci
<mrshu>
and the travis channel was not very helpful
<mrshu>
the problem is with the nokogiri library
<mrshu>
although it's installed via bundle install
DrCode has quit [Remote host closed the connection]
<mrshu>
later on my script fails with `require': cannot load such file -- nokogiri (LoadError)