quitobro_ has quit [Remote host closed the connection]
ghr has joined #ruby
mary5030 has quit [Remote host closed the connection]
dekz__ has joined #ruby
dekz__ is now known as dekz
jamto11 has quit [Remote host closed the connection]
rainmanjam has quit [Remote host closed the connection]
xeno has quit [Ping timeout: 245 seconds]
kevind has quit [Quit: kevind]
Stalkr_ has quit [Quit: Leaving...]
jorts has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 245 seconds]
IceDragon has quit [Ping timeout: 245 seconds]
tylersm__ has quit [Remote host closed the connection]
tylersmith has joined #ruby
nisstyre has quit [Ping timeout: 268 seconds]
dstynchula has quit []
shutch has quit [Ping timeout: 240 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
postmodern has quit [Quit: Leaving]
flowerhack has joined #ruby
pel_daniel1 has left #ruby [#ruby]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Sawbones has joined #ruby
bklane has quit [Quit: Leaving...]
tylersmith has quit [Ping timeout: 240 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
olivier_bK has quit [Ping timeout: 246 seconds]
pietr0 has quit [Quit: pietr0]
tvw has quit []
roolo has quit [Quit: Leaving...]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
zerun0 has joined #ruby
pinage404 has joined #ruby
Vlat- has quit [Quit: Vlat-]
kobain has joined #ruby
jamto11 has joined #ruby
zachallett has quit [Remote host closed the connection]
evenix has joined #ruby
monkegjinni has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
x1337807x has quit [Ping timeout: 265 seconds]
werdnativ_ has joined #ruby
coderxin has joined #ruby
CyborgCygnus has joined #ruby
mikepack_ has joined #ruby
newUser1234 has quit [Remote host closed the connection]
werdnativ_ has quit [Client Quit]
werdnativ has quit [Ping timeout: 264 seconds]
petey has joined #ruby
jzig has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
mikepack_ has quit [Remote host closed the connection]
mikepack_ has joined #ruby
mikepack_ has quit [Remote host closed the connection]
jzig has quit [Remote host closed the connection]
jzig_ has joined #ruby
juarlex has quit [Remote host closed the connection]
agent_white has joined #ruby
<agent_white>
Evenin folks
<havenwood>
g'eve
mikepack has quit [Ping timeout: 252 seconds]
<benzrf>
hej da
<benzrf>
havenwood: any luck o.o
<havenwood>
benzrf: nada
<benzrf>
dag
<havenwood>
didn't try of os x, but os x was abort, abort abort
<havenwood>
off of*
Beoran_ has quit [Ping timeout: 246 seconds]
yasushi has quit [Remote host closed the connection]
<havenwood>
benzrf: i get the concenpt, but yeah the OS X implementation just isn't quite there yet
<havenwood>
at least not on latest OS X
SCommette has joined #ruby
olivier_bK has joined #ruby
<benzrf>
:I
<havenwood>
benzrf: to be fair, i'm out and about and running a dev version of OS X
<benzrf>
right now you can do this:
nanoyak has quit [Quit: Computer has gone to sleep.]
<benzrf>
$ [run script for doing the thing]
<benzrf>
$ cd quick_test/SomeClass
dseitz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
$ vim some_methods.rb
<benzrf>
[write some methods, save]
<benzrf>
$ pry-remote-em
end_guy has quit [Ping timeout: 265 seconds]
kori has quit [Remote host closed the connection]
<havenwood>
em?
<benzrf>
> SomeClass.new.a_method
<benzrf>
havenwood: eventmachine
<benzrf>
it allows multiple conns
<havenwood>
right
<havenwood>
but i thought, nvm
<benzrf>
[this is what you can do atm]
<benzrf>
[not what it is complete]
ezrios has joined #ruby
arubin has joined #ruby
anoldhacker has joined #ruby
<havenwood>
benzrf: so whatcha gunna call the pry plugin?
coderxin has quit [Ping timeout: 264 seconds]
b00stfr3ak has quit [Ping timeout: 240 seconds]
<havenwood>
:)
end_guy has joined #ruby
a13x212 has left #ruby [#ruby]
f0ster has quit [Remote host closed the connection]
francisfish has quit [Ping timeout: 264 seconds]
LadyRainicorn has joined #ruby
<havenwood>
benzrf: i just took a code-spike stab at pry extensions with pry-drb, i need to give that some love and make it proper: https://github.com/havenwood/pry-drb#readme
jlast has quit [Remote host closed the connection]
<benzrf>
code-spike?
eynj has joined #ruby
<havenwood>
benzrf: a one-off script i wrote that i mentioned at a pry meetup at rubyconf in miami and cirwin convinced me to gemify the next day
<benzrf>
o=
<benzrf>
what do?
edwardly has joined #ruby
<havenwood>
benzrf: starts a drb server to persist hash-like values across pry sessions, nothing fancy
francisfish has joined #ruby
<benzrf>
neat.
luckyruby has quit [Remote host closed the connection]
<havenwood>
benzrf: but uses DRb's fanciness
Abyss__ has quit [Ping timeout: 265 seconds]
<benzrf>
anyway quick isnt gonna be a pry plugin
<havenwood>
aha
<havenwood>
benzrf: ah right, can be used for lots of things
<havenwood>
huh
<benzrf>
to be precise, you'll do `quick pry' and itll open a pry in the module your pwd corresponds toastyne_
<benzrf>
*to
Abyss__ has joined #ruby
<benzrf>
*each module will have a binding stored on it so that you can have persistent vars
<benzrf>
also planning on integration with dmtcp
<benzrf>
so that you can freeze and thaw projects
<havenwood>
nifty
<benzrf>
persisting state for the length of your usage
<benzrf>
:-)
<benzrf>
it's meant to be a dev env, not a tool
<benzrf>
smalltalk-style
<havenwood>
kinda reminds me of Maglev Gemstone, yeah smalltalk
<benzrf>
atm the way it works is that you can create .rb files in any dir
<benzrf>
dir structure corresponds to module-constant hierarchy
<benzrf>
plus special dirs for singleton classes
Beoran_ has joined #ruby
<havenwood>
i'm pretty curious if MagLev is going to go forward as a thriving project or die on the vine.
<benzrf>
whenever a .rb file is written, the code in it is module-exec'd in the module it's stored in
<havenwood>
hmm
<benzrf>
unless there's a syntax error
<benzrf>
it also disallows having anything except for method decls unless the file is called 'header.rb' atm
<benzrf>
to encourage having code that can be reloaded non-effectually
endash_ has joined #ruby
<benzrf>
it also spawns a read-only whatever.in_use.rb file that contains the last evalled version of whatever.rb
<benzrf>
so that you can see if it got loaded
rm_ has quit [Remote host closed the connection]
<benzrf>
presumably usable to make plugins or whatever
awarner has quit [Read error: Connection reset by peer]
<bawNg>
I just started getting weird rack errors when trying to do tiny file uploads via HTTP POST... Anyone ever seen errors like "No such file or directory - /tmp/RackMultipart20140327-59318-1cfcqyd.lock"?
rm__ has joined #ruby
<benzrf>
bawNg: dont suppose it could be a threading thing
awarner has joined #ruby
<benzrf>
wait no
<bawNg>
benzrf: No, this is a single threaded application
Sawbones has quit [Remote host closed the connection]
r0nin has joined #ruby
Sawbones has joined #ruby
<wallerdev>
your names are too similar
nisstyre has joined #ruby
<benzrf>
i saw bawNg and i first thought "bnagy's alt nick"
patrick99e99 has joined #ruby
<benzrf>
havenwood: also also planning to add some kind of simple api for evaluating code snippest
<benzrf>
*snippets
<benzrf>
that way, editor plugins for testing code as you write it
predator217 has joined #ruby
<hfp>
Hey guys
<benzrf>
within an actual env that has the vars you ned
<benzrf>
*nee
<benzrf>
d
<anoldhacker>
I've been looking into DCI (Data Context Interaction — http://www.artima.com/articles/dci_vision.html.) I don't like what I'm seeing out there, so I'm rolling my own. There is a problem, however. I have determined that I need to use wrapper objects, and these suffer from identity disorder. My solution is to make them VERY thin. In particular, I want to redefine all of the identity methods. ( https://gist.github.com/student/979729
<benzrf>
basically im just swiping as many Smalltalk/SLIME features as I can think of ways to impl
<benzrf>
=]
jamto11 has quit [Remote host closed the connection]
<bawNg>
I think I fixed the exception by resetting perms of /tmp
rm__ has quit [Ping timeout: 240 seconds]
<bawNg>
Strange that something messed with the /tmp perms
<anoldhacker>
Someone did a b….a….d thing….
r0nin has quit [Ping timeout: 245 seconds]
Sawbones has quit [Ping timeout: 240 seconds]
predator117 has quit [Ping timeout: 264 seconds]
patrick99e99 has quit [Ping timeout: 252 seconds]
<bawNg>
Still can't get my file uploads working for larger than microscopic files, but it seems to be something related to nginx
rm__ has joined #ruby
petey has quit [Remote host closed the connection]
<bawNg>
I always up the client upload file size limit on nginx when I install it, but for some reason it doesn't seem to be taking affect in this case
CaptainJet has quit [Ping timeout: 240 seconds]
<anoldhacker>
As in a config setting that limits file size?
petey has joined #ruby
<bawNg>
Which is odd, considering I'm pretty sure it works fine for other applications using nginx on this same box
<hfp>
Hi guys! In the following: https://eval.in/127491, in the method brightness_index, can I use @r, @g, @b and r, g, b as variable names interchangeably? Is one better than the other? It seems to work with both but would there be any subtlety I missed?
<anoldhacker>
I would try changing another parameter. See if it is reading the file that you think it is.
CaptainJet has joined #ruby
<bawNg>
It's not reading a file, it doesn't seem to be reaching my application code at all
<bawNg>
And it also doesn't log anything in nginx' error or access log
lolmaus has joined #ruby
<bawNg>
Nginx just gives a response 500 if the file is bigger than a few, or maybe even under a KB
<anoldhacker>
If it isn't getting to your application code, how does it know what to do with the request?
lukec has quit [Quit: lukec]
rh1n0 has joined #ruby
<anoldhacker>
Unless it is just choking on the request.
<bawNg>
Exactly... something very odd is going on
kitak has joined #ruby
<anoldhacker>
If so, then there is probably some config outside your application to adjust.
<havenwood>
hfp: There is indeed some subtlety, especially when multithreading. I guess it doesn't matter till it matters? I can't think of a concise explaination.
<bawNg>
A file under 1KB works fine
<bawNg>
Everything else doesn't even reach my application
<bawNg>
But like I said, my upload file size limit on nginx is file, and even by default it isn't anywhere close to as small as 1KB
<bawNg>
So something else is going on, something I've never seen before
zenojis has joined #ruby
petey has quit [Ping timeout: 264 seconds]
<hfp>
havenwood: I see. So I should be using the argument variables, not the instance variables? Why are they even set then if we don't need them? Is it so that I can access them from outside the class with Object.r, Object.g and Object.b ?
mikepack has joined #ruby
MattStratton has joined #ruby
gr33n7007h has quit [Ping timeout: 265 seconds]
<havenwood>
hfp: If the whole instance should know about it, an instance variable lets that happen without needing to pass local variables around as arguments.
Avahey_ has joined #ruby
<havenwood>
hfp: but sometimes passing them around is exactly what you need
<havenwood>
depends
yfeldblu_ has joined #ruby
juanmnl has joined #ruby
<hfp>
hmm...
dik_dak has quit [Quit: Leaving]
ioNull has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 265 seconds]
<havenwood>
hfp: You *can* access instance variables outside the class, but you have to do it manually unless they're exposed by method/attr.
<havenwood>
hfp: usually, you use public methods and don't dip in an get instance variables that aren't exposed - but ya can
<havenwood>
s/an/and
mikepack has quit [Ping timeout: 268 seconds]
<juanmnl>
hi, noob here, i'm trying to populate a db with an object "chapter" that has a "number" attribute. Each object should have only one number. I tried number = (0..12) but it doesn't work. What should i do? tx :)
<benzrf>
hfp: basically, store something in an ivar if it would make sense for the object to 'know' about it
vlad_starkov has quit [Remote host closed the connection]
<benzrf>
hfp: if you were to receive this object from an API, would you expect to have to put that data into it?
<benzrf>
or would it be already in there?
<bawNg>
Found the issue
lethjakman has quit [Quit: WeeChat 0.4.0]
<bawNg>
/dev/sda1 9.2G 8.8G 0 100% /
<benzrf>
bawNg: lol
<bawNg>
:P
<havenwood>
bawNg: hehe
<benzrf>
juanmnl: number attribute?
JJMalina has joined #ruby
ioNull has joined #ruby
mven_ has joined #ruby
<benzrf>
juanmnl: you mean with attr_accessor or the like?
<havenwood>
juanmnl: what ought `number ==`?
smathieu has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 268 seconds]
whomp has joined #ruby
smathieu has joined #ruby
<bawNg>
Best part is, it's nginx's log that filled up /
Davey is now known as Eomar
Ziarkaen has quit [Read error: Connection reset by peer]
<juanmnl>
i may have explained wrong. I have a chapter that has a title and a number:integer, i'm using a factory to populate the db. I want to create 12 chapters with the number filled up in sequence ch1(number=0)...ch12(number=11)
njs126 has quit [Ping timeout: 268 seconds]
<juanmnl>
hope it's clearer, doing my best with english :P
freeone3000 has quit [Quit: Konversation terminated!]
<hfp>
Kinda, what do you mean by the object should know about it or not?
matcouto has joined #ruby
Mapley has quit [Changing host]
Mapley has joined #ruby
<wallerdev>
dat netsplit lol
meatherly has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
r0nin has joined #ruby
ioNull_ has joined #ruby
r0nin has quit [Read error: Connection reset by peer]
yalue has joined #ruby
kpshek has joined #ruby
r0nin has joined #ruby
derek_c has quit [Ping timeout: 240 seconds]
ioNull has quit [Ping timeout: 268 seconds]
<benzrf>
hfp: well
<benzrf>
if you think of an object as an entity that you can ask questions and give commands (by sending messages, aka calling methods)
<hfp>
yes
<benzrf>
then the entity's knowledge is the data stored in its ivars
<benzrf>
so when considering whether to put something in an ivar or trust the user to provide it
whomp has quit [Ping timeout: 264 seconds]
<benzrf>
consider how you would expect to use it if you didn't know the internal bits
<benzrf>
or what you would expect the object to know
<wallerdev>
+1
CyborgCygnus has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
ValicekB has joined #ruby
yfeldblum has joined #ruby
<hfp>
Ah, I think I get it. If I set ivar in the initialize method, then the vars are passed when the object is created, as in `Foo = Bar.new(:a, :b, :c)`. Then I would have to turn these variables into ivars in the initialize method so other methods could be called as `Foo.coolmethod` rather than `Foo.coolmethid(:a, :b, :c)`, right?
<benzrf>
more or less
<benzrf>
any method can set ivars
spyderman4g63 has joined #ruby
<hfp>
Ok it's just that once you set an ivar with a particular method then other methods can access it yes?
<benzrf>
yep
<benzrf>
if you think of an object as a little box with methods as levers on the outside, ivars are like a filing cabinet on the inside
<hfp>
If you don't then you have to pass the variables for every method every time
<benzrf>
right
mr_snowf1ake has joined #ruby
ctp has joined #ruby
coderxin has joined #ruby
rvraghav93 has quit [Ping timeout: 245 seconds]
<benzrf>
if you don't store enough in ivars, you end up with a bunch of methods that might as well be global
<benzrf>
*dont store anything
cndiv has joined #ruby
<benzrf>
if you store all data ever in ivars, the object becomes single-use and inflexible
viscera has joined #ruby
n1tr0g has joined #ruby
CyborgCygnus has quit [Quit: Leaving]
<benzrf>
try to strike a happy medium :)
<hfp>
Ok. Just one thing doesn't addup yet in my mind. In the eval.in I pasted, whether I use ivars or r, g and b in the brightness_index method doesn't seem to make any difference. I don't understand why.
<wallerdev>
trying to scam more people with your virus benzrf ?
<wallerdev>
we all know its a dogecoin mining program
aspires has quit []
CyborgCygnus has quit [Quit: Rage Quit]
<LadyRainicorn>
DogeCoin.mkblock(reward: 10e20)
vlad_starkov has quit [Ping timeout: 252 seconds]
<benzrf>
read the src
CyborgCygnus has joined #ruby
<benzrf>
it's <300 lines
<benzrf>
so far
<benzrf>
also i refuse to touch dogecoin
quitobro has joined #ruby
<benzrf>
if i dont use it i can pretend its not real
<benzrf>
LadyRainicorn: u cloned =3
<wallerdev>
im pretty sure flash player is a secret bitcoin miner, no other reason for using the cpu it does
lukec has joined #ruby
<hfp>
benzrf: so what I understand so far. The initialize method of a class is the once that receives the arguments when you call new(), right? And if you don't assign these arguments to ivars in initialize, then other methods can't access them. attr_reader allows you to access the values of the variables without writing a specific method, attr_* does it for you. Did I get everything ok?
Guest96020 has quit [Remote host closed the connection]
<LadyRainicorn>
benzrf: Why would you do that? Dogecoin is such wow!
Port3M5[Work] has quit [Read error: Operation timed out]
<LadyRainicorn>
VERY COIN SUCH WOW
<wallerdev>
sounds right to me
<LadyRainicorn>
much moneyz
ehc has quit [Client Quit]
<benzrf>
hfp: almost
<wallerdev>
my 401k is in dogecoin
<CaptainJet>
conspiracy theory:
<benzrf>
hfp: you can read any ivar regardless of attr_*
<benzrf>
hfp: attr_* generates methods for accessing ivars
<CaptainJet>
ever since bitcoin was announced, adobe flash player was updated to mine from every user's computer
<CaptainJet>
adobe is now owner of 31% of the bitcoins in the world
<benzrf>
that way code outside of the object can see what's in ivars or set it
<hfp>
benzrf: so even without attr_* you can still call Foo.var and it will return whatever var is equal too within the object?
<wallerdev>
:p
Port3M5[Work] has joined #ruby
<benzrf>
hfp: no, that's what attr_* does
<benzrf>
but from _inside_ you can do @var regardless
njs126 has joined #ruby
<LadyRainicorn>
With the competence of Flash, they are probably mining a private altcoin.
<LadyRainicorn>
It is one of my new favorite subreddits.
smathieu has quit [Remote host closed the connection]
jeregrine has quit [Quit: Connection closed for inactivity]
smathieu has joined #ruby
dseitz has joined #ruby
n1tr0g has quit [Quit: n1tr0g]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
froy has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
toastynerd has joined #ruby
njs126 has joined #ruby
<benzrf>
LadyRainicorn: try quick already >:o
ghr has joined #ruby
MatthewsFace has joined #ruby
rahult has quit [Ping timeout: 268 seconds]
Slavox|AFK is now known as Slavox
toastynerd has quit [Remote host closed the connection]
sambao21 has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
jrendell has quit [Ping timeout: 252 seconds]
hobodave has joined #ruby
ioNull has joined #ruby
oso96_2000 has joined #ruby
eshy has joined #ruby
karupanerura has joined #ruby
cibs has joined #ruby
gstamp has joined #ruby
<benzrf>
LadyRainicorn: did u clone the repo
wald0 has quit [Quit: Lost terminal]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
<LadyRainicorn>
yes
dseitz has quit [Ping timeout: 255 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
m0s^away is now known as m0s
<benzrf>
k so bundle install o=
rm__ has quit [Remote host closed the connection]
rm__ has joined #ruby
quitobro has joined #ruby
skkeeper has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
<benzrf>
LadyRainicorn: ...any luck
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
<LadyRainicorn>
Oh, what is it supposed to do exactly?
njection has joined #ruby
thomasxie has joined #ruby
<benzrf>
did the gems install?
dx7 has quit [Remote host closed the connection]
skkeeper has joined #ruby
sambao21 has quit [Client Quit]
dx7 has joined #ruby
<benzrf>
LadyRainicorn: did the bundle install
m0s is now known as m0s^away
<LadyRainicorn>
What's brb and pry-remote-em for?
CyborgCygnus has quit [Ping timeout: 252 seconds]
quitobro has quit [Remote host closed the connection]
DouweM has quit [Ping timeout: 264 seconds]
<benzrf>
the former isnt used yet
<benzrf>
LadyRainicorn: the latter is for pry-remoting over emergion
<benzrf>
*EM
michael_lee has joined #ruby
<benzrf>
LadyRainicorn: if the bundle is installed u may proceed to 'cd lib/quick && mkdir quick_test && curl http://bpaste.net/raw/194161/ | ruby'
<LadyRainicorn>
Do you know about const_set?
sambao21 has joined #ruby
<benzrf>
no wait
<benzrf>
wrong link
<benzrf>
LadyRainicorn: yea
<benzrf>
why?
<benzrf>
w/e that link will work
<LadyRainicorn>
The first method defined is for setting constants.
<benzrf>
?
<benzrf>
in fs?
Spami has quit [Quit: This computer has gone to sleep]
<LadyRainicorn>
Yes.
<benzrf>
oh wait
<benzrf>
no these are constant methods
<LadyRainicorn>
And they're global constants too.
<benzrf>
no, they are not.
<LadyRainicorn>
oh nvm, just define is globalish
<benzrf>
;p
coderxin has joined #ruby
<benzrf>
10:23 < benzrf> LadyRainicorn: if the bundle is installed u may proceed to 'cd lib/quick && mkdir quick_test && curl http://bpaste.net/raw/194161/ | ruby'
oneawayman has quit [Ping timeout: 240 seconds]
kacperix has quit [Ping timeout: 264 seconds]
ephemerian has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
coderxin has quit [Ping timeout: 265 seconds]
JJMalina has quit [Quit: Leaving...]
snkcld has quit [Quit: leaving]
freerobby has joined #ruby
bline79_ has joined #ruby
circuit has joined #ruby
<bline79_>
I need to capture multi-line output from IO.popen.. is this possible?
<LadyRainicorn>
Yes.
<kies>
LadyRainicorn, omg /r/lolphp is hilarious
<LadyRainicorn>
I know :3
<bline79_>
I'm having trouble figuring out how to pull that off
<benzrf>
LadyRainicorn: does it mount proply
ziyadb_ has quit [Quit: Connection closed for inactivity]
sambao21 has quit [Quit: Computer has gone to sleep.]
chuk has quit [Quit: This computer has gone to sleep]
byprdct has joined #ruby
rh1n0 has quit [Quit: Hopefully you don't see this...]
<LadyRainicorn>
I haven't gotten to installing FUSE yet.
<bline79_>
I mean. I run a command IO.open ("tsung-recorder start") for example.. I want to evaluate the second line that is returned from that command and run some regex on it
saarinen has joined #ruby
Davedo has quit [Ping timeout: 264 seconds]
marcdel has joined #ruby
<benzrf>
pfft
Hanmac has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
unixpro1970 has joined #ruby
marcdel_ has joined #ruby
flowerhack has quit [Quit: Connection closed for inactivity]
bubblehead has quit [Remote host closed the connection]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar_ has quit [Remote host closed the connection]
mr_red has quit [Ping timeout: 264 seconds]
mr_red has joined #ruby
patrick99e99 has joined #ruby
rvraghav93_ has joined #ruby
krz has joined #ruby
rvraghav93 has quit [Ping timeout: 268 seconds]
jamto11 has joined #ruby
thomasxie has quit [Quit: Leaving.]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
byprdct_ has joined #ruby
<bline79_>
such a headache with this.. even io.popen hangs when I run my command.. in the cli, the command requires you to press return to get back to a usable shell
jlast has joined #ruby
<bline79_>
system runs it just fine, but it can't see the command output.. just returns bolean value
larissa has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
mikehaas763 has joined #ruby
<mikehaas763>
Hi, what's the difference between config.vm.network "private_network", ip: "192.168.33.10" and config.vm.network "private_network", :ip => "192.168.33.10"
<mikehaas763>
or will the 2nd one not even do what I want it to do
jamto11 has quit [Ping timeout: 240 seconds]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
m0s is now known as m0s^away
<bline79_>
wow, a friend gave me a nice solution :)
bline79_ has quit [Quit: leaving]
toastynerd has joined #ruby
mikepack has joined #ruby
wallerdev has quit [Quit: wallerdev]
LadyRainicorn has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
wallerdev has joined #ruby
<arubin>
mikehaas763: ip: is shorhand for :ip =>
<mikehaas763>
So it represents the same type of data structure, just syntactic sugar? I'm not a ruby person, just haven't had the time
<arubin>
Yes.
<benzrf>
mikehaas763: yea
doodlehaus has quit [Remote host closed the connection]
narcan has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
mansi has quit [Remote host closed the connection]
<mikehaas763>
Well now I'm just curious, what's the use case for the lengthier one?
Celm has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
jaywastaken has quit [Quit: This computer has gone to sleep]
jaywastaken has joined #ruby
<arubin>
mikehaas763: Hashes pairs are defined with key => value. Ruby 1.9 added sugar for keys that are symbols (:ip is a symbol).
endash_ has quit [Quit: endash_]
endash_ has joined #ruby
<arubin>
Using symbols as keys is common, and most people use the new syntax.
<benzrf>
mikehaas763: so if you wanted to use strings or numbers, you need to use =>
<benzrf>
{'foo' => 'bar'}
byprdct_ has quit [Quit: leaving]
<benzrf>
=> is sometimes known as a hash rocket
montyboy has joined #ruby
derek_c has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
<mikehaas763>
Ok. So in the reading I just did it seems like a symbol if it were compared to more traditional C like languages is sorta kinda like an enum?
byprdct_ has joined #ruby
<benzrf>
basically
charliesome has quit [Read error: Connection reset by peer]
<benzrf>
mikehaas763: the general idea is that sometimes you care about the actual contents of a string, and sometimes you just care what it's equal to
<benzrf>
i.e. like in an enum
nbezzala has quit [Remote host closed the connection]
charliesome has joined #ruby
<benzrf>
in ruby, strings are mutable and non-interned (because mutable)
<benzrf>
symbols are internally represented as ints, and there's a lookup table for the textual representation of each number
<benzrf>
symbols are immutable and automatically interned
jaywastaken has quit [Quit: This computer has gone to sleep]
quitobro has quit [Client Quit]
jaywastaken has joined #ruby
matcouto has joined #ruby
sayem has joined #ruby
meatherly has quit [Remote host closed the connection]
tomshafer has quit [Remote host closed the connection]
ioNull_ has joined #ruby
greggroth has joined #ruby
tomshafer has joined #ruby
havenwood has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
petey has joined #ruby
<mikehaas763>
Cool, thanks for the knowledge. Unfortunately I can guarantee because of all I've got on my plate ATM I won't be able to start using ruby for at least a year. I got probably ~5 hours into ruby monk once upon a time but feel like I forgot everything since.
Vlat- has joined #ruby
ioNull has quit [Ping timeout: 268 seconds]
CyborgCygnus has joined #ruby
byprdct__ has joined #ruby
<byprdct__>
.
tomshafer has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
maletor has joined #ruby
sayem has quit [Remote host closed the connection]
ioNull_ has quit [Ping timeout: 240 seconds]
beneggett has joined #ruby
yacks has joined #ruby
rezzack has quit [Quit: Leaving.]
Hobogrammer has joined #ruby
ioNull has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
axsuul has quit [Read error: No route to host]
spyderman4g63 has joined #ruby
derek_c has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
lukec has joined #ruby
coderxin has joined #ruby
terrellt has quit [Quit: Copywight 2007 Elmer Fudd. All wights wesewved.]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
crystal77 has joined #ruby
jaywastaken has quit [Quit: This computer has gone to sleep]
spyderman4g63 has quit [Ping timeout: 264 seconds]
coderxin has quit [Ping timeout: 268 seconds]
sailias has quit [Ping timeout: 245 seconds]
Solnse has quit [Ping timeout: 240 seconds]
Eomar is now known as Davey
radic has quit [Ping timeout: 246 seconds]
abdulsattar has joined #ruby
_justin has joined #ruby
chrisseaton has joined #ruby
ioNull_ has joined #ruby
radic has joined #ruby
sambao21_ has joined #ruby
Davedo has joined #ruby
agjacome has quit [Quit: leaving]
Sawbones has joined #ruby
ioNull has quit [Ping timeout: 268 seconds]
juanmnl has joined #ruby
newUser1234 has quit [Remote host closed the connection]
<juanmnl>
hello, anyone knows the channel for rails? #rubyonrails doesn't seem to work
<centrx>
juanmnl, You need register/identify your nick to enter #rubyonrails
emergion has quit [Quit: Connection closed for inactivity]
dekz has quit [Quit: Connection closed for inactivity]
bahar has quit [Ping timeout: 268 seconds]
lukec has quit [Quit: lukec]
toastynerd has quit [Remote host closed the connection]
charlies_ has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
bahar has joined #ruby
patrick99e99 has joined #ruby
lukec has joined #ruby
agent_white has joined #ruby
m104 has joined #ruby
m104 has quit [Max SendQ exceeded]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
rvraghav93 has quit [Ping timeout: 268 seconds]
mikehaas763 has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 240 seconds]
sambao21_ has quit [Quit: Computer has gone to sleep.]
rvraghav93 has joined #ruby
MatthewsFace has joined #ruby
m0s is now known as m0s^away
m104 has joined #ruby
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 240 seconds]
byprdct_ has quit [Quit: Lost terminal]
axsuul has joined #ruby
rvraghav93_ has joined #ruby
bahar has quit [Ping timeout: 245 seconds]
rvraghav93 has quit [Ping timeout: 245 seconds]
byprdct__ has quit [Quit: Lost terminal]
dukz has joined #ruby
saarinen has quit [Quit: saarinen]
zachallett has quit [Remote host closed the connection]
bahar has joined #ruby
browndawg1 has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dukz has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
patrick99e99 has joined #ruby
DallasG has joined #ruby
dukz has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
derek_c has joined #ruby
ghr has joined #ruby
juanmnl has joined #ruby
jorts has joined #ruby
rvraghav93 has joined #ruby
Sawbones has quit [Ping timeout: 252 seconds]
rvraghav93_ has quit [Ping timeout: 252 seconds]
Deele has quit [Ping timeout: 240 seconds]
braincrash has quit [Quit: bye bye]
chiw has joined #ruby
hakunin_ has joined #ruby
funburn has quit [Quit: funburn]
pagios has quit [Ping timeout: 246 seconds]
rcs has quit [Ping timeout: 246 seconds]
jorts has quit [Client Quit]
paulfm has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 264 seconds]
dukz_ has joined #ruby
bmn has quit [Ping timeout: 246 seconds]
kung has quit [Ping timeout: 240 seconds]
m104 has quit [Quit: bye]
paulfm has joined #ruby
hakunin has quit [Ping timeout: 246 seconds]
mikemac has joined #ruby
braincrash has joined #ruby
Hien_ has quit [Ping timeout: 246 seconds]
crazymykl has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 252 seconds]
pontiki has quit [Ping timeout: 260 seconds]
Hien has joined #ruby
robbyoconnor has joined #ruby
tomshafer has joined #ruby
pagioss has joined #ruby
rcs has joined #ruby
_justin has quit [Quit: _justin]
sambao21 has joined #ruby
decoponio has joined #ruby
Celm has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
Celm has quit [Remote host closed the connection]
michaeldeol has joined #ruby
_justin has joined #ruby
bmn has joined #ruby
1JTAAWMDK has quit [Remote host closed the connection]
andy___ has joined #ruby
andy___ is now known as Guest74198
tectonic has joined #ruby
dukz_ has quit [Remote host closed the connection]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lukec has quit [Quit: lukec]
dukz has joined #ruby
perldork has joined #ruby
perldork has quit [Remote host closed the connection]
tectonic has quit [Client Quit]
Guest74198 has quit [Ping timeout: 245 seconds]
perldork has joined #ruby
tectonic has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
unixpro1970 has quit [Quit: Computer has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
dukz has quit [Ping timeout: 240 seconds]
cover has quit [Read error: Connection reset by peer]
cover has joined #ruby
MatthewsFace has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
cover has quit [Remote host closed the connection]
funburn has joined #ruby
_justin has quit [Quit: _justin]
kidoz has quit [Quit: Ухожу я от вас]
coderxin has joined #ruby
unixpro1970 has joined #ruby
alexju has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
echointhemist has joined #ruby
echointhemist has left #ruby [#ruby]
chrisseaton has quit []
coderxin has quit [Ping timeout: 245 seconds]
rvraghav93_ has joined #ruby
rvraghav93 has quit [Ping timeout: 245 seconds]
kevinykchan has quit [Read error: Connection reset by peer]
rockosays has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rockosays has left #ruby [#ruby]
kevinykchan has joined #ruby
iliketurtles has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
CpuID2 has joined #ruby
CpuID2 has quit [Changing host]
CpuID2 has joined #ruby
<anoldhacker>
Anyone here from the core team?
vlad_starkov has joined #ruby
<viscera>
this has probably been asked a million times, but why are #ruby and #ruby-lang two distinct channels instead of one forwarding to the other?
yfeldblum has quit [Ping timeout: 265 seconds]
CpuID has quit [Ping timeout: 240 seconds]
<anoldhacker>
I would presume that #ruby-lang is oriented more towards language development.
greggroth has quit [Ping timeout: 245 seconds]
<anoldhacker>
I've posted a question to https://www.ruby-forum.com/topic/4484730. I would really appreciate it if someone familiar with ruby internals would answer.
<viscera>
that was my first thought, but there's nothing in the channel topics that indicates that. also, ruby-lang.org points to #ruby-lang as "a wonderful way to chat with fellow rubyists", yet #ruby is more popular
<agent_white>
^
<agent_white>
Kinda odd. I have no idea why they would split it up. We are cooler anyways.
vlad_starkov has quit [Ping timeout: 245 seconds]
<viscera>
it's going to irk me, i guarantee it ;)
tomshafer has quit []
<agent_white>
viscera: Largely though, lack-of-response is due to your timing joining the channel. It's bedtime for much of the US, and the Euro's don't hop on for another ~4 hours.
Slavox is now known as Slavox|AFK
<viscera>
agent_white: i haven't had a lack of response...
<agent_white>
viscera: Ohhh! Well then... I dunno!
<viscera>
i just noticed that both exist and are seeminly redundant
<viscera>
seemingly**
njection has quit [Remote host closed the connection]
njection has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
m0s^away is now known as m0s
<CaptainJet>
you could always just be in both irc channels
<CaptainJet>
like i am
<viscera>
that's what i'm doing
<CaptainJet>
makes it easier to time asking a question
<CaptainJet>
if one has people talking, use that one, if not, use #ruby
<CaptainJet>
i default to here over #ruby-lang
<viscera>
yeah, that's similar to what i do with debian channels (they're split over freenode and oftc networks)
afex has quit [Ping timeout: 268 seconds]
jorts has joined #ruby
jamto11 has joined #ruby
DallasG has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
DallasG has joined #ruby
Slavox|AFK is now known as Slavox
jamto11 has quit [Ping timeout: 240 seconds]
n1tr0g has joined #ruby
davedev24 has quit [Remote host closed the connection]
m0s is now known as m0s^away
ItS______ has quit [Quit: Leaving...]
mikepack has joined #ruby
connor_goodwolf has quit [Quit: Lost terminal]
gilcosson has joined #ruby
Lewix has joined #ruby
slawrence has joined #ruby
dseitz has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
viscera has quit [Quit: viscera]
diegoviola has joined #ruby
1JTAAWJ07 has quit [Ping timeout: 265 seconds]
freerobby has quit [Quit: Leaving.]
bjeanes has joined #ruby
endash has quit [Read error: No route to host]
endash_ is now known as endash
jorts has quit [Quit: jorts]
kpshek has quit []
muscle-man has quit [Quit: WeeChat 0.4.3]
mansi has quit [Ping timeout: 245 seconds]
rvraghav93_ has quit [Read error: Operation timed out]
peret has joined #ruby
endash_ has joined #ruby
zigomir has joined #ruby
rvraghav93 has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
Celm has joined #ruby
abdulsattar has quit [Ping timeout: 252 seconds]
njection has quit []
Burgestrand has joined #ruby
havenwood has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
njection has joined #ruby
petey has quit [Ping timeout: 240 seconds]
sincereness has joined #ruby
shadoi1 has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
<sincereness>
If I have an array of elements how to i remove the doubles or tripes of a certain entires?
<sincereness>
elements*
kevinykchan has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
Xiti` has joined #ruby
aagdbl has joined #ruby
Xiti` has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
compleatang has quit [Remote host closed the connection]
Xiti has quit [Ping timeout: 252 seconds]
michael_lee has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
<agent_white>
sincereness: arr = arr.uniq!
bahar has quit [Ping timeout: 265 seconds]
<agent_white>
sincereness: Though that will make sure ALL elements are unique.
<sincereness>
kk ill try it 1 sec
<agent_white>
sincereness: Rather, the assignment is not needed if you use the bang on the end. so either `arr = arr.uniq` or `arr.uniq!`
unixpro1970 has quit [Quit: Computer has gone to sleep. ZZZzzz…]
unixpro1970 has joined #ruby
CyborgCygnus has quit [Ping timeout: 268 seconds]
bahar has joined #ruby
havenwood has quit [Remote host closed the connection]
chris_thomson has quit [Quit: Zzz...]
thesheff17_ has joined #ruby
havenwood has joined #ruby
andy__ has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
spyderman4g63 has joined #ruby
thesheff17 has quit [Disconnected by services]
thesheff17_ is now known as thesheff17
abdulsattar has joined #ruby
coderxin has joined #ruby
<sincereness>
it worked when i did arr = arr.uniq but i cant append another method on that
<sincereness>
why?
idoru has quit [Read error: Connection timed out]
<sincereness>
for example arr.uniq.first throws method error
havenwood has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby
larissa has quit [Quit: Leaving]
andy__ has quit [Ping timeout: 252 seconds]
spyderman4g63 has quit [Ping timeout: 240 seconds]
saarinen has quit [Client Quit]
kenneth has joined #ruby
coderxin has quit [Ping timeout: 245 seconds]
<centrx>
sincereness, Is the array empty?
<centrx>
sincereness, Even if it's empty that shouldn't be an error. Show actual code
<sincereness>
no
<chichou>
even if the array is empty it should work
<sincereness>
ok
<sincereness>
gimmi a sec
freerobby has joined #ruby
<chichou>
maybe you typed arr.uniq!.first ?
<chichou>
if arr is already uniq it returns nil
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sincereness>
yea its late so ill fix it tomorrow lol
vlad_starkov has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
SCommette has joined #ruby
benlieb_ has joined #ruby
mrnugget has joined #ruby
evenix has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 268 seconds]
freerobby1 has quit [Ping timeout: 252 seconds]
evenix has joined #ruby
idiocrash has joined #ruby
benlieb has quit [Ping timeout: 240 seconds]
benlieb_ is now known as benlieb
rvraghav93 has quit [Ping timeout: 264 seconds]
tesuji has joined #ruby
nari has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
sincereness has quit [Quit: Page closed]
m0s^away is now known as m0s
jeffreyio has joined #ruby
rvraghav93 has joined #ruby
s3ri0us has joined #ruby
s3ri0us has quit [Quit: leaving]
tylersmith has quit [Remote host closed the connection]
pfg has joined #ruby
tylersmith has joined #ruby
sski has joined #ruby
eynj has left #ruby [#ruby]
DallasG has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GreatSUN>
I just came across some problem I have in Ruby 1.9.3p429
tagrudev has joined #ruby
<GreatSUN>
in ruby 1.8 I wrote some class/module that helps to install/load gems
<GreatSUN>
it was working like a charm
<GreatSUN>
now, I am doing the same in ruby 1.9, but I experience problems
unixpro1970 has quit [Quit: Computer has gone to sleep. ZZZzzz…]
<GreatSUN>
it seams the classes defined in the gems are not defined correctly
<GreatSUN>
any ideas why this could be?
freerobby has quit [Ping timeout: 240 seconds]
JasmeetQA has joined #ruby
toastynerd has quit [Ping timeout: 268 seconds]
armyriad has joined #ruby
<agent_white>
!code
<agent_white>
GreatSUN: We need your code to help you.
<agent_white>
GreatSUN: 1.8 is ancient and unsupported... you should DEFINITELY update.
<agent_white>
Like.. 2.1.0-kinda update.
unixpro1970 has joined #ruby
<GreatSUN>
agent_white: This is where I am out... I am not able to change given ruby version on my own :-(
<GreatSUN>
agent_white: there is lots of code....
<agent_white>
GreatSUN: Something-something due to work? :/
<agent_white>
GreatSUN: And that LOTS of code should be updated!
<GreatSUN>
agent_white: yeah
<chichou>
updating from 1.8 to 2.1 isn't a little bit rude ? :)
<agent_white>
chichou: Being stuck in 1.8 is :(
<GreatSUN>
chichou: I would have said, that they should have been updating all the time
sigurding has quit [Quit: sigurding]
Macaveli has joined #ruby
<agent_white>
GreatSUN: Well... shit. You really should inform your peers that 1.8 is unsupported... not "stable"
<GreatSUN>
but the topic was and is kinda "never touch a running system"
phansch has joined #ruby
<agent_white>
:/
<GreatSUN>
agent_white: no problem about 1.8
<chichou>
no problem ? do you use unofficial patch ?
<GreatSUN>
agent_white: but the 1.9.3p429 is doing something I don't understand
<agent_white>
GreatSUN: Anyways! Just a note. But if you post your code, code since if it's changed since porting it to 1.9, and a full stack trace, someone can help you!
<GreatSUN>
chichou: I don't have a lot of problems with it, a lot of workarounds in place, yes...
rvraghav93_ has joined #ruby
rvraghav93 has quit [Ping timeout: 252 seconds]
<GreatSUN>
agent_white: thats a really big thing then
diegoviola has quit [Quit: WeeChat 0.4.3]
<agent_white>
GreatSUN: Yep! Otherwise, we can't help!
<GreatSUN>
agent_white: I thought there might be some logical thing begind
<GreatSUN>
behind
<GreatSUN>
something that someone else experienced
<chichou>
a lot of things changed from 1.8 to 1.9
davy has quit [Remote host closed the connection]
slawrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GreatSUN>
agent_white: the thing is, that I just have problems with one gem atm...
m0s^away is now known as m0s
<GreatSUN>
chef
<agent_white>
GreatSUN: Well... you're basically saying "Hey! My knee hurts and I switched to Nike
<chichou>
chef support 1.8 ?
<agent_white>
"Can someone tell my why my knee hurts?!"
<agent_white>
GreatSUN: We just need code.
<agent_white>
to help you.
<GreatSUN>
and this seams to be cause it is loading sub-parts additionally, but ruby 1.9 loads everything again
anarang has joined #ruby
<GreatSUN>
and it has something like an Immutable class
<agent_white>
GreatSUN: Hold your breath until you have a gist with CODE for us, a STACK TRACE, and what you expect but are given.
<GreatSUN>
after this errors with a typeerror, it seams the gem is not in place correctly
<agent_white>
Otherwise, you are wasting your breath.
toastynerd has joined #ruby
<GreatSUN>
agent_white: I will try to create something more easy
<agent_white>
GreatSUN: Just make it reproduceable.
<GreatSUN>
cause if I just copy paste my code this is about 500 lines of code at least
<agent_white>
GreatSUN: Enough code to reproduce it will suffice.
<GreatSUN>
I bet
<agent_white>
GreatSUN: Anything less than that and we cannot help you.
<GreatSUN>
:D
<agent_white>
;)
jamto11 has joined #ruby
<Macaveli>
Morning Friends
cj3kim_ has joined #ruby
Mon_Ouie has joined #ruby
<chichou>
hi
toastynerd has quit [Remote host closed the connection]
derek_c has joined #ruby
dukz has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 240 seconds]
juanmnl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has quit [Quit: Leaving.]
jamto11 has quit [Ping timeout: 240 seconds]
thoraxe has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
sensen has joined #ruby
tvw has joined #ruby
<maletor>
In Ruby, how do i double fork out of a process so I'm reparented to init?
m0s is now known as m0s^away
rainmanjam has quit [Remote host closed the connection]
noop has joined #ruby
<chichou>
you mean as a daemon ?
jzig_ has quit [Remote host closed the connection]
zerun0 has quit [Read error: Connection reset by peer]
<maletor>
chichou: I want to run a process separate from my Ruby process so when I restart the other process it doesn't interfere. It doesn't necessarily have to run forever which is what daemons do, right?
<Hanmac1>
i think there is a gem for that called demonize or something similar
<chichou>
maybe Process.daemon can help you
<maletor>
chichou: I've been reading a little about it, but doesn't that daemonize the current process? I want a new process group.
mikepack has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
<maletor>
i.e. init
kitak has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
kitak has joined #ruby
Bounga has quit [Quit: Bounga]
zerun0 has joined #ruby
zerun0 has quit [Read error: Connection reset by peer]
mclee_ is now known as mclee
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jzig has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
hermanmunster has quit [Remote host closed the connection]
<chichou>
daemon attach it to daemon group
iliketurtles has quit [Quit: zzzzz…..]
whomp has joined #ruby
<chichou>
maletor: or system backgrounds or whatever, as far I understand
apeiros has quit [Ping timeout: 268 seconds]
luckyruby has joined #ruby
bal has joined #ruby
kung has joined #ruby
michaeldeol has joined #ruby
chiw has quit [Ping timeout: 264 seconds]
tesuji has quit [Ping timeout: 240 seconds]
coderxin has joined #ruby
derek_ has joined #ruby
cj3kim has joined #ruby
petey has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
CpuID3 has joined #ruby
Xeago_ has joined #ruby
CpuID2 has quit [Ping timeout: 265 seconds]
Celm has joined #ruby
derek_ has quit [Client Quit]
mrnugget has quit [Quit: mrnugget]
cj3kim_ has quit [Ping timeout: 240 seconds]
<agent_white>
<GreatSUN>
agent_white: I just found the problem
<agent_white>
GreatSUN: Good to hear!
Mon_Ouie has quit [Ping timeout: 268 seconds]
havenwood has joined #ruby
<GreatSUN>
not really dependent to the ruby version, but a recent change that ruby 1.8 seams not to error on
<GreatSUN>
so it was a developer issue which didn't appear in ruby 1.8 :D
petey has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
Xeago has quit [Ping timeout: 268 seconds]
<agent_white>
GreatSUN: :D Well make sure to prepare for the changes in 1.9, nonetheless.
tkuchiki has quit [Remote host closed the connection]
<GreatSUN>
agent_white: I am already
<agent_white>
Good deal :)
tkuchiki has joined #ruby
<GreatSUN>
agent_white: the main things I am really disappointed of are in the gems
<GreatSUN>
for example the mysql gem
<GreatSUN>
(mysql2 for 1.9)
<GreatSUN>
some methods are just deleted
olivier_bK has quit [Ping timeout: 246 seconds]
Celm has quit [Ping timeout: 265 seconds]
<GreatSUN>
so you have to make a switch for the gem installation, requirement, the connection building and the query actions
<GreatSUN>
a lot of if's
<agent_white>
maletor: So you mean forking?
workmad3 has joined #ruby
<maletor>
agent_white: maybe?
<agent_white>
maletor: NVM. Didn't see your previous text.
havenwood has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GreatSUN>
chichou: different things... basic automation stuff is done via chef, then we have ruby scripts and self written libraries for a lot of things
<GreatSUN>
I myself am maintaining about 16.000 lines of code
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<chichou>
omg :)
patrick99e99 has joined #ruby
<chichou>
sometime it's easier to restart from scratch
senayar has joined #ruby
coderxin has joined #ruby
_Andres has joined #ruby
mrnugget has joined #ruby
camt has joined #ruby
whomp has joined #ruby
<GreatSUN>
chichou: it's not, there is a lot of different stuff... for example a mysql server installation cookbook
<GreatSUN>
the libraries that are helping a lot if it comes to different OS and stuff
coderxin_ has quit [Ping timeout: 240 seconds]
<chichou>
GreatSUN: but why do you want to do your switch stuff ? you want to keep code compatible with multiple versions of ruby ?
dukz has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 265 seconds]
popl has joined #ruby
popl has joined #ruby
<GreatSUN>
chichou: I have to, else I have to write and maintain two different versions and explain the users which version to use and stuff
<GreatSUN>
so that would be a lot of more work to do
dukz has joined #ruby
<chichou>
For that, I would use git and support branch for example
<chichou>
I mean, it's not your code responsibility to manage version but I guess it's much more complex in your project :)
jzig has joined #ruby
whomp has quit [Ping timeout: 252 seconds]
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby
phansch has joined #ruby
coderxin_ has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
jzig has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
coderxin has quit [Ping timeout: 252 seconds]
sk87 has joined #ruby
oso96_2000 is now known as oso|away
olivier_bK has joined #ruby
havenwood has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
dukz has quit [Remote host closed the connection]
<GreatSUN>
chichou: yes, it is and there is lots of guys using the code that have no clue
nfk has joined #ruby
<GreatSUN>
that doesn't make things easier
lolmaus has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework>
GreatSUN: What versions of ruby are you using?
<chichou>
good luck then, I wish I never have to work on some project like that :)
lolmaus has joined #ruby
coderxin has joined #ruby
mbuf has joined #ruby
nvrch has joined #ruby
bas has quit [Quit: z]
connor_goodwolf has joined #ruby
coderxin_ has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
TMM has quit [Quit: Ex-Chat]
m0s^away is now known as m0s
<GreatSUN>
pipework: atm 1.8.7 and 1.9.3
Abyss__ has quit [Read error: Connection reset by peer]
<pipework>
GreatSUN: oh my.
poikon has joined #ruby
Abyss__ has joined #ruby
<GreatSUN>
chichou: I wished I could work on some nice project as lead architect ;-)
dukz has joined #ruby
<GreatSUN>
chichou: Have been writing at least 7000 lines of code in the last 1 1/2 year
jamto11 has joined #ruby
<GreatSUN>
pipework: yes, please, give me sympathy
AlexRussia has joined #ruby
<pipework>
You have a good amount of it.
<GreatSUN>
pipework: thanks :-)
obs has joined #ruby
havenwood has quit [Remote host closed the connection]
dukz has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
jeffreyio has joined #ruby
pfg has joined #ruby
timonv has joined #ruby
ghr has joined #ruby
abdulsattar has joined #ruby
m0s is now known as m0s^away
pfg has quit [Client Quit]
mikepack has quit [Ping timeout: 240 seconds]
ktosiek has joined #ruby
poikon has quit [Remote host closed the connection]
LiohAu has joined #ruby
LekeFly has joined #ruby
elaptics`away is now known as elaptics
mansi has joined #ruby
LiohAu has quit [Ping timeout: 240 seconds]
Merks has joined #ruby
mercwithamouth has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
CpuID has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 265 seconds]
LiohAu has joined #ruby
ikaros has joined #ruby
roolo has joined #ruby
dukz has joined #ruby
RealMarc is now known as Marc
petey has joined #ruby
Marc is now known as Guest76715
mercwithamouth has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
rm__ has quit [Remote host closed the connection]
Advocation has joined #ruby
rm_ has joined #ruby
shutch has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
Advocation has quit [Client Quit]
petey has quit [Ping timeout: 240 seconds]
<shevy>
pipework please give me sympathy
<pipework>
shevy: I have no more to give.
rm_ has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
nateberkopec has joined #ruby
dzhulk has left #ruby [#ruby]
Advocation has joined #ruby
TMM has joined #ruby
canton7 has quit [Remote host closed the connection]
rdark has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
heftig has joined #ruby
spyderman4g63 has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
klaut has quit [Remote host closed the connection]
<harshada>
Hey Plz Help FileHandler.loadDataSet not reading string value from input file showing "NaN"
<harshada>
=> {0=>NaN, 1=>NaN, 2=>1234.0}
spyderman4g63 has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
cj3kim has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
<shevy>
harshada what is FileHandler
mupkoo has joined #ruby
LekeFly has quit [Client Quit]
LekeFly has joined #ruby
AlSquire has joined #ruby
<harshada>
@shevy: Actually Its in JRuby
CyborgCygnus has quit [Quit: Rage Quit]
LekeFly has quit [Client Quit]
freerobby has joined #ruby
CyborgCygnus has joined #ruby
LekeFly has joined #ruby
jzig has quit [Ping timeout: 265 seconds]
timonv has quit [Remote host closed the connection]
mbuf has quit [Quit: Leaving]
flowerpot has joined #ruby
timonv has joined #ruby
flowerpot has quit [Client Quit]
hermanmunster has joined #ruby
ace_striker has quit [Ping timeout: 245 seconds]
cj3kim has quit [Ping timeout: 265 seconds]
<Hanmac1>
harshada: first there is #jruby channel, second what do you got and what do you want? NaN as Float is valid or do you want "NaN" as String?
Stalkr_ has joined #ruby
CaptainJet has quit []
<apeiros>
harshada: also note that "actually it's in jruby" does not answer the question of shevy.
<shevy>
harshada aha, can't help you there, I have only good old compiled-from-source mruby :)
freerobby has quit [Ping timeout: 265 seconds]
Advocation has quit [Quit: Advocation]
1JTAAWLWX has quit [Remote host closed the connection]
predator217 has quit [Ping timeout: 264 seconds]
timonv has quit [Ping timeout: 252 seconds]
jason__ has joined #ruby
<pipework>
shevy: You use mruby?
schaary|afk is now known as schaary
jason__ has quit [Remote host closed the connection]
<pipework>
So when can we expect RubyOS?
jason__ has joined #ruby
abdulsattar has quit [Quit: Leaving]
rahult has joined #ruby
aloshkarev has joined #ruby
<shevy>
pipework mruby ain't finished
<pipework>
so?
<pipework>
Actually, it's reached 1.9
pfg has joined #ruby
<pipework>
1.0
DouweM has joined #ruby
m0s^away is now known as m0s
<harshada>
@shevy: I asked same que in jruby but no body response der so I asked here.. I am expecting output as => {0=>Harshada, 1=>Ghodke, 2=>1234.0}
<shevy>
pipework nah, it is far from complete anywhere near
<pipework>
shevy: It's 1.0
<toretore>
harshada: show code
<tobiasvl>
harshada: do you mean {0=>"Harshada", 1=>"Ghodke", 2=>1234.0} ?
robbyoconnor has quit [Read error: Connection reset by peer]
<shevy>
it's at about 0.0.2
<harshada>
tobiasvl: Yes
<tobiasvl>
you want to get strings, unless it's a float
<pipework>
shevy: It's as complete as it should be for a release.
lolmaus_ has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby
<Hanmac>
i made something similar to for as a statement modifier
MindfulMonk has joined #ruby
SevereOverfl0w has joined #ruby
pfg has joined #ruby
hamakn has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
cj3kim has quit [Read error: Connection reset by peer]
mansi has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
freerobby has quit [Ping timeout: 252 seconds]
<rindolf>
apeiros: «for x in 1..10 { puts x }» ==> this does not appear to work either. Only «for x in 1..10 do puts x end»
<apeiros>
rindolf: so you discovered that your alternative syntax is not valid.
<apeiros>
rindolf: you might also go an search for how rubys syntax actually looks instead of randomly trying out ideas. just a suggestion.
<rindolf>
apeiros: I did, but I was under an impression that { ...} and do ... end were equivalent.
CyborgCygnus has quit [Remote host closed the connection]
<apeiros>
rindolf: they are - for blocks. for/in is not a method and does not take a block.
fgo has joined #ruby
<apeiros>
and most people use it without do
<apeiros>
same for while/until
mansi has quit [Ping timeout: 240 seconds]
<rindolf>
apeiros: OK, thanks.
klaut_ has joined #ruby
DouweM has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klaut has quit [Ping timeout: 240 seconds]
andy__ has joined #ruby
nomenkun_ has quit [Quit: Leaving...]
unixpro1970 has quit [Ping timeout: 265 seconds]
mupkoo has joined #ruby
mehlah has quit [Quit: Leaving...]
Speed has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
skammer_ has joined #ruby
skammer has quit [Ping timeout: 268 seconds]
jamto11 has joined #ruby
monkegji_ has joined #ruby
mupkoo has quit [Ping timeout: 255 seconds]
monkegjinni has quit [Ping timeout: 240 seconds]
mounibec has joined #ruby
mounibec has left #ruby [#ruby]
mikepack has joined #ruby
p8952 has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
mehlah has joined #ruby
browndawg has joined #ruby
AlexRussia has joined #ruby
roolo has joined #ruby
ktosiek has quit [Read error: Operation timed out]
tvw has quit []
evenix has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
evenix has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
mupkoo has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
deadlock has quit [Ping timeout: 264 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
poikon has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
yasushi has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
sski has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
JJMalina has quit [Quit: Leaving...]
sski has joined #ruby
evenix has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
evenix has joined #ruby
camilasan has joined #ruby
LekeFly has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
cj3kim has quit [Read error: Connection reset by peer]
yasushi has quit [Ping timeout: 255 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
DouweM has quit [Quit: Leaving...]
camilasan has joined #ruby
momomomomo has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
sski has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
mengu has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
petey has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
poikon has joined #ruby
camilasan has joined #ruby
fabrice31 has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
sensen has quit [Ping timeout: 265 seconds]
DouweM has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
camilasan has joined #ruby
petey has quit [Ping timeout: 265 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
Deele has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
perldork has quit [Remote host closed the connection]
camilasa_ has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
poikon has quit [Remote host closed the connection]
camilasan has joined #ruby
poikon has joined #ruby
jottr_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
camilasan has quit [Read error: Connection reset by peer]
WormDrink has quit [Ping timeout: 252 seconds]
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
browndawg1 has joined #ruby
jottr_ is now known as elementz
camilasa_ has quit [Read error: Connection reset by peer]
browndawg has quit [Ping timeout: 265 seconds]
camilasan has joined #ruby
fannye has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
poikon has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
monkegji_ has quit [Remote host closed the connection]
poikon has joined #ruby
camilasa_ has joined #ruby
monkegjinni has joined #ruby
spyderman4g63 has joined #ruby
poikon has quit [Remote host closed the connection]
ctp has joined #ruby
camilas__ has joined #ruby
poikon has joined #ruby
digifiv5e has joined #ruby
camila___ has joined #ruby
momomomomo has quit [Quit: momomomomo]
shaunbak_ has quit [Remote host closed the connection]
eka has joined #ruby
camil____ has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
camilasa_ has quit [Ping timeout: 240 seconds]
camilasa_ has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
spyderman4g63 has quit [Ping timeout: 255 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
jzig has joined #ruby
camilas__ has quit [Ping timeout: 240 seconds]
nvrch has quit [Quit: nvrch]
camilasa_ has joined #ruby
funburn has quit [Read error: Connection reset by peer]
Xeago_ has quit [Remote host closed the connection]
camilasa_ has quit [Read error: Connection reset by peer]
camila___ has quit [Ping timeout: 240 seconds]
camilasa_ has joined #ruby
Xeago has joined #ruby
viscera has quit [Quit: viscera]
funburn has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camil____ has quit [Ping timeout: 240 seconds]
camilasa_ has joined #ruby
WormDrink has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
mrnugget has quit [Quit: mrnugget]
camilasan has joined #ruby
jason_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<elementz>
Hi, I am having trouble understanding wether my javascript assets are properly loading when using sprockets.
camilasan has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
djancak has quit [Ping timeout: 252 seconds]
<elementz>
erm, wrong channel. sorry...
camilasan has joined #ruby
djancak has joined #ruby
djancak has quit [Changing host]
djancak has joined #ruby
Xeago has quit [Ping timeout: 255 seconds]
camilasa_ has joined #ruby
jzig has quit [Ping timeout: 265 seconds]
camilas__ has joined #ruby
shaunbaker has joined #ruby
<elementz>
I would like to run bower commands from within a rake task. How would I write a rake task which executes e.g. 'bower install'? I've tried like so http://sprunge.us/ZWEX . When running rake middleman:update I get the following error: "undefined local variable or method `clean' for main:Object"
freerobby has quit [Ping timeout: 268 seconds]
camila___ has joined #ruby
<elementz>
So I am obviously doing it wrong, but how would I run arbitrary commands from rake then?
endash has quit [Quit: endash]
endash_ is now known as endash
<canton7>
sh "arbitrary command"
<j416>
elementz: the Rakefile is ruby, so you can't just throw shell commands into it and assume them being run
<j416>
^
<canton7>
or system(), or exec(), or %x{..}, or `...`
<canton7>
sh is a method provided by rake which does some nice stuff iirc
camil____ has joined #ruby
<j416>
nice stuff
<elementz>
canton7: good to know
<j416>
like run shell commands? w
cj3kim has quit [Ping timeout: 240 seconds]
cami_____ has joined #ruby
danshultz has joined #ruby
camilasan has quit [Ping timeout: 268 seconds]
<elementz>
canton7: what about bundler commands? Would it be recommended to use 'sh' as well? Or would there be some method that I could run that would execute bundler tasks for me?
camilasan has joined #ruby
camilasa_ has quit [Ping timeout: 268 seconds]
<canton7>
bundler almost certainly exposes stuff for rake
<canton7>
let me have a look
strg has joined #ruby
camilasa_ has joined #ruby
jason_ has quit [Ping timeout: 255 seconds]
camilas__ has quit [Ping timeout: 268 seconds]
camilas__ has joined #ruby
doodlehaus has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
camila___ has quit [Ping timeout: 268 seconds]
camila___ has joined #ruby
funburn has quit [Quit: funburn]
<canton7>
hmm, they mainly seem to be to do with building gems
camil____ has quit [Ping timeout: 268 seconds]
cbreeze has joined #ruby
camil____ has joined #ruby
kaspergr_ has joined #ruby
camil____ has quit [Read error: Connection reset by peer]
camilasan has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
cami_____ has quit [Ping timeout: 268 seconds]
sski has joined #ruby
<elementz>
canton7: ok, I'll try via sh then. thx though
mrnugget has joined #ruby
camilasan has joined #ruby
camilasa_ has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilas__ has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camila___ has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
kaspergrubbe has quit [Ping timeout: 265 seconds]
lemonsparrow has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
<canton7>
to do a clean, try Bundler.load.clean ?
<canton7>
got that from trawling the sauce
<canton7>
probably safer to use sh though
camilasan has joined #ruby
tkuchiki_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
funburn has joined #ruby
DaniG2k has quit [Quit: leaving]
camilasan has joined #ruby
senayar_ has joined #ruby
skammer_ is now known as skammer|afk
camilasan has quit [Read error: Connection reset by peer]
skammer|afk is now known as skammer_
camilasan has joined #ruby
senayar_ has quit [Client Quit]
camilasan has quit [Read error: Connection reset by peer]
fbernier has joined #ruby
camilasan has joined #ruby
senayar_ has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 265 seconds]
senayar has quit [Ping timeout: 240 seconds]
<elementz>
yep. sh is working fine.
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
DallasG has joined #ruby
tkuchiki_ has quit [Ping timeout: 265 seconds]
northfurr has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
doodlehaus has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 252 seconds]
larissa has joined #ruby
<AlexRussia>
hm
<AlexRussia>
someone know solution for it: i should in intaller some ruby program for windows(with included mri and some lib).its possible?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cj3kim has joined #ruby
oneawayman has joined #ruby
nari has quit [Ping timeout: 245 seconds]
patrick99e99 has joined #ruby
roolo has quit [Quit: Leaving...]
cj3kim has quit [Ping timeout: 265 seconds]
spyderman4g63 has joined #ruby
andikr has quit [Remote host closed the connection]
dangerousdave has joined #ruby
mupkoo has quit []
sambao21 has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
aaronmcadam has quit [Quit: Leaving...]
mark_locklear has joined #ruby
aaronmcadam has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
aaronmcadam has joined #ruby
popl has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
geoffw8_ has joined #ruby
robbyoconnor has quit [Read error: Operation timed out]
robbyoconnor has joined #ruby
zerun0 has joined #ruby
spicerack has joined #ruby
MattStratton has joined #ruby
<benzrf>
hows it going ruby users
DouweM has quit [Quit: Leaving...]
rvraghav93 has joined #ruby
jollyy has joined #ruby
tkuchiki has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
scttnlsn has quit [Ping timeout: 246 seconds]
claymore has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
jollyy_ has joined #ruby
poikon has quit [Read error: Connection reset by peer]
linojon has joined #ruby
victorbjelkholm has joined #ruby
poikon has joined #ruby
jollyy has quit [Ping timeout: 265 seconds]
jollyy_ is now known as jollyy
nvrch has joined #ruby
anarang has quit [Ping timeout: 265 seconds]
scttnlsn has joined #ruby
harshada has quit [Remote host closed the connection]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
montyboy has joined #ruby
freerobby has joined #ruby
roolo has joined #ruby
noop has quit [Ping timeout: 252 seconds]
funburn has quit [Quit: funburn]
<benzrf>
hey
<benzrf>
is there any significant semantic difference between:
mansi has joined #ruby
cj3kim has joined #ruby
<benzrf>
Object.new.extend(some_class)
<benzrf>
*module
<benzrf>
Class.new.include(some_module).new
freerobby has quit [Ping timeout: 265 seconds]
chrisseaton has joined #ruby
flowerpot has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
sailias has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
flori has quit [Ping timeout: 240 seconds]
cj3kim has quit [Ping timeout: 265 seconds]
<apeiros>
benzrf: depends on what you consider significant :)
anarang has joined #ruby
<apeiros>
in both cases you will be able to use some_module's instance methods on the newly created object
kaspergrubbe has joined #ruby
jlast has joined #ruby
DallasG has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rmorello has joined #ruby
mercwithamouth has joined #ruby
rvraghav93_ has joined #ruby
rvraghav93 has quit [Read error: Operation timed out]
jkamenik has joined #ruby
kaspergr_ has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
flori has joined #ruby
jamto11 has joined #ruby
JBreit has joined #ruby
JasmeetQA1 has joined #ruby
rrios has joined #ruby
jollyy_ has joined #ruby
flowerpot has quit [Ping timeout: 265 seconds]
JasmeetQA has quit [Ping timeout: 240 seconds]
<rrios>
Hello. I was reading the inject documentation and it says that if "you do not explicitly specify an initial value for memo, then uses the first element of collection is used [sic] as the initial value of memo". But how do I specify an initial value for memo?
mikepack has joined #ruby
gilcosson has joined #ruby
<rrios>
inject, in the case, being a method from Enumerable
DouweM has joined #ruby
freerobby has quit [Ping timeout: 255 seconds]
jollyy has quit [Ping timeout: 255 seconds]
jollyy_ is now known as jollyy
noop has joined #ruby
kitak has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 255 seconds]
JasmeetQA has joined #ruby
northfurr has joined #ruby
northfurr has joined #ruby
northfurr has quit [Changing host]
abdulsattar has joined #ruby
Sawbones has joined #ruby
hamakn has joined #ruby
<apeiros>
rrios: by passing it as the first argument
robbyoconnor has quit [Read error: Connection reset by peer]
Avahey_ has quit [Quit: Connection closed for inactivity]
LekeFly has quit [Ping timeout: 252 seconds]
LekeFly has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yacks has joined #ruby
freerobby has quit [Quit: Leaving.]
makara has quit [Ping timeout: 264 seconds]
<maasha>
hi
LekeFly has quit [Client Quit]
shterrett has quit [Quit: shterrett]
kaspergrubbe has joined #ruby
camilasan has quit [Remote host closed the connection]
sailias has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_lee has joined #ruby
cj3kim has joined #ruby
camilasan has joined #ruby
Foo4 has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
bal has quit [Quit: bal]
camilasan has quit [Read error: Connection reset by peer]
kaspergr_ has quit [Ping timeout: 255 seconds]
camilasan has joined #ruby
bal has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
hermanmunster has quit []
sk87 has joined #ruby
mansi has joined #ruby
charliesome has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
rudisimo has joined #ruby
mounibec has joined #ruby
evenix has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
sailias has quit [Ping timeout: 268 seconds]
<maasha>
O_o
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
<maasha>
o_O
sprocket has joined #ruby
anoldhacker has quit [Quit: Leaving.]
<sprocket>
hello all
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<sprocket>
does anybody have any tips for debugging a SystemStackError (stack level too deep)?
crystal77 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<sprocket>
i was in the process of upgrading a rails 2 application to rails 4, and this error's popped up when the .save! method is called on one of my active record models
camilasan has joined #ruby
sski has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<apeiros>
benzrf: a) where the module ends up (class vs. singleton_class), b) the callback on the module (self.included vs. self.extended), c) the creation of a "throw-away" class
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<benzrf>
kk
LekeFly has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
Vlat- has quit [Quit: Vlat-]
spstarr_work has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
SCommette has joined #ruby
<spstarr_work>
Question: if I have a hash, say @myhash = { :city = "", :province = "" } and its inside a class, why doesn't ruby allow me to do this in a method in class: @myHash[:city] = "My New City" ?
camilasan has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<spstarr_work>
since the hash is an instance variable of the class why doesn't that work?
* spstarr_work
is new to ruby
<spstarr_work>
so im trying to understand why this is complex to update a hash value
camilasan has joined #ruby
<Mon_Ouie>
How does it not
arietis has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie>
How does it not work?*
camilasan has quit [Read error: Connection reset by peer]
<spstarr_work>
undefined method `[]' for nil:NilClass (NoMethodError) is the error
rahult is now known as rahult_
camilasan has joined #ruby
<shevy>
spstarr_work you dont have a hash there
mercwithamouth has joined #ruby
dx7 has joined #ruby
<spstarr_work>
shevy: er isn't that a hash with symbols w/ new style?
camilasan has quit [Read error: Connection reset by peer]
<Mon_Ouie>
First you're not setting if you get that error, you're just getting
geopet has joined #ruby
<Mon_Ouie>
Oh, that's true, your syntax is wrong too, but that should even be a syntax error
camilasan has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
ffranz has joined #ruby
<shevy>
spstarr_work you assign a hash somewhere else, sure. but in your given object, you simply do not have a hash at all
<Mon_Ouie>
"Old" style is {:city => "", :province => ""}, new style is {city: "", province: ""}
<spstarr_work>
oh NO '='
camilasan has quit [Read error: Connection reset by peer]
<spstarr_work>
@myHash = { city: "", ... }
yasushi has joined #ruby
<spstarr_work>
i have it w/o equals though
camilasan has joined #ruby
r_rios has joined #ruby
<Mon_Ouie>
And it says you're trying to call "[]" on nil, which means it hasn't been initialized the way you seem to expect it.
<Mon_Ouie>
Where is that line located, and where are you using it?
camilasan has quit [Read error: Connection reset by peer]
rrios has joined #ruby
<Mon_Ouie>
(where are you using the hash, I mean)
<spstarr_work>
oh in a method of this class
matcouto has quit [Ping timeout: 252 seconds]
camilasan has joined #ruby
<Mon_Ouie>
And where's @myHash = …?
Shidash has joined #ruby
<spstarr_work>
in the class
danman_ has joined #ruby
Merks has quit []
camilasan has quit [Read error: Connection reset by peer]
<Mon_Ouie>
Not in a method, in the class itself directly? i.e. class Foo; @myHash = …; end?
<spstarr_work>
class Foobar ---> @myHash = { city: "", .... } ............ end
<spstarr_work>
yes
<Mon_Ouie>
Yeah, that's your problem
<spstarr_work>
??
camilasan has joined #ruby
<Mon_Ouie>
You should do initialization in the initialize method
<shevy>
spstarr_work who taught you to put the hash outside of a method?
<Mon_Ouie>
@foo = bar sets the instance variable called '@foo' of self to bar
camilasan has quit [Read error: Connection reset by peer]
<spstarr_work>
shevy: just experimenting as i learn language
<Mon_Ouie>
But self within the class block is not an instance of the class, it is the class itself
lyanchih__ has quit [Quit: lyanchih__]
camilasan has joined #ruby
gilcosson has quit [Ping timeout: 268 seconds]
<shevy>
spstarr_work hmm but you must have read about @ivars somewhere
<spstarr_work>
so the hash should be just initialized as (0)
<Mon_Ouie>
(Also, that block is only ever run once, when you create the class)
<spstarr_work>
@myHash = Hash.new(0) ?
camilasan has quit [Read error: Connection reset by peer]
Jetchisel has quit [Ping timeout: 252 seconds]
<spstarr_work>
and then actually initialize it elsewhere?
lyanchih__ has joined #ruby
pu22l3r has joined #ruby
<spstarr_work>
well set the keys for it even
camilasan has joined #ruby
<spstarr_work>
i thought you'd want to create the hash with keys but have no values
<Mon_Ouie>
Hm? You just need to put initialization code in the initialize method, which is run every time you create a new instance of your class
JasmeetQA has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
<shevy>
spstarr_work you are making up things as you go :)
<spstarr_work>
yep
camilasan has joined #ruby
quatron has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<shevy>
for instance
<shevy>
why do you use Hash.new(0) suddenly
<spstarr_work>
yes it works if set in initialize()
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
<spstarr_work>
but that seems different in structure
<shevy>
sure it's different now
<shevy>
you invoke it inside of a method now
<spstarr_work>
ive typically set instance variables *IN* the class outside of any constructor...
camilasan has quit [Read error: Connection reset by peer]
<shevy>
no worries
<shevy>
we all do plenty of mistakes when we are young
<spstarr_work>
well to empty/null etc and any structs to null for the elements
camilasan has joined #ruby
<spstarr_work>
so ruby seems to say no to this ;)
<spstarr_work>
well to hashes
<shevy>
of course it does
camilasan has quit [Read error: Connection reset by peer]
<spstarr_work>
I mean this: class MyClass @myHash = { city: nil, province: nil, country: nil } ..................... end
<Mon_Ouie>
Your class itself *is* an object too, and by setting an ivar within the class block, you set an ivar of the class itself
<shevy>
god
camilasan has joined #ruby
<shevy>
why are you again doing this outside of a method
camilasan has quit [Read error: Connection reset by peer]
<spstarr_work>
because you can set instance variables like this and it works?
<spstarr_work>
@myVariable = nil
<shevy>
didn't we correct your earlier mistake already?
hrs has joined #ruby
camilasan has joined #ruby
dx7 has quit [Remote host closed the connection]
<shevy>
now you just repeat what we corrected already :(
<Mon_Ouie>
It's hard to tell the difference between @foo = nil and doing nothing
<spstarr_work>
so you should *not* put instance variables of any kind in the class body but in initialize() only
<shevy>
learning progress: 0%
monkegjinni has joined #ruby
<shevy>
you can of course
mary5030 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<shevy>
but it works on the class instance
claymore has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
<DouweM>
spstarr_work: it's no "you should not", it just doesn't do what you think it does
<Mon_Ouie>
Because if you try and read an ivar that hasn't been set before it just evaluates to nil
dx7 has joined #ruby
_Andres has quit [Quit: jazz]
vlad_starkov has joined #ruby
simono has joined #ruby
<benzrf>
Mon_Ouie: oh hey didnt you make pry-remote-em?
camilasan has joined #ruby
<benzrf>
or was it just pry-remote?
<Mon_Ouie>
benzrf: Nope, just pry-remote
<shevy>
spstarr_work think of it this way - you want your object to have certain values stored in @ivars, ok? so for this, you use these only inside of methods, ok?
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benzrf>
hmmm
<spstarr_work>
yes
gigetoo has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 240 seconds]
Solnse has joined #ruby
camilasa_ has joined #ruby
sailias has quit [Client Quit]
jollyy has joined #ruby
geoffw8_ has quit [Quit: Connection closed for inactivity]
Foo6 has quit [Ping timeout: 252 seconds]
<shevy>
the first method that will be called for you to use or change is the initialize() method, when an object is instantiated via .new
<spstarr_work>
and to me anything in the class body with @ is an @ivar so 'logically' I thought ruby would accept variable definitions
<shevy>
I usually have as one of the first methods one called reset(), which resets the object, but also initializes it
camilas__ has joined #ruby
garndt has joined #ruby
<Mon_Ouie>
>> class Foo; @foo = 3; end; Foo.instance_variables
<spstarr_work>
(why didn't we just use a different symbol for that!)
connor_goodwolf has quit [Quit: leaving]
<shevy>
spstarr_work, class Foo; @bla = x; end <--- is very rarely used, it is not very useful
<DouweM>
spstarr_work: it's similar to what's called static in other languages, I guess
camilasan has joined #ruby
camila___ has quit [Ping timeout: 268 seconds]
<spstarr_work>
!!!!
<DouweM>
spstarr_work: why would we? Foo and Foo.new re both objects
<Mon_Ouie>
Also what do you call "class instance variable"? Because a class instance variable in Ruby is the instance variable of a class itself, i.e. @foo = 3 (and not @foo = 10) in your example
camilasan has quit [Read error: Connection reset by peer]
connor_goodwolf has joined #ruby
<spstarr_work>
Mon: self
<DouweM>
classes aren't some special construct in Ruby, they're interfaced with just like objects.
<spstarr_work>
'this'
nateberkopec has joined #ruby
Foo7 has joined #ruby
danman__ has joined #ruby
<shevy>
spstarr_work ok but self depends on the context too
camilasan has joined #ruby
<DouweM>
they are of course special, but you can work with them like objects
<spstarr_work>
for each Foo instance you have a variable 'foo' which has a value per instance but separate
<apeiros>
shevy: I use class Foo; @bla = x; end quite often
<DouweM>
right
camilasan has quit [Read error: Connection reset by peer]
<apeiros>
shevy: and I find it very useful
camil____ has quit [Ping timeout: 268 seconds]
<shevy>
apeiros what for
<DouweM>
and because what you refer to as Foo is just an instance of the Class class, it can have instance variables as well
<apeiros>
most often, multiton patterns and config
camilasan has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
cami_____ has quit [Ping timeout: 268 seconds]
camilasan has quit [Read error: Connection reset by peer]
simono_ has joined #ruby
camilasan has joined #ruby
<spstarr_work>
right, but in every single language ive used, class Foo; @myInstanceVariable = 100; end ........... puts Foo.instance_variable_get(:@myInstanceVariable) 'should' print 100
<DouweM>
which it does
<shevy>
hehehe
<DouweM>
>> class Foo; @myInstanceVariable = 100; end; Foo.instance_variable_get(:@myInstanceVariable)
camilasan has quit [Read error: Connection reset by peer]
<DouweM>
spstarr_work: now you're calling a method called `myInstanceVariable=`.
<shevy>
spstarr_work that is just a method
<DouweM>
spstarr_work: but @ does indeed work on self
cami_____ has joined #ruby
<shevy>
spstarr_work you just called it myInstanceVariable :)
<shevy>
def this_is_not_a_method
cami_____ has quit [Remote host closed the connection]
<etqqkoiflwhb>
shevy: oh, isn;t it implicity passed as a method parameter?
cami_____ has joined #ruby
nolic has quit [Ping timeout: 252 seconds]
<etqqkoiflwhb>
implicitly*
<spstarr_work>
ok so thats very pythonisk
<shevy>
etqqkoiflwhb I don't know how it works internally
camilasan has quit [Ping timeout: 268 seconds]
<shevy>
some C guru can explain
<DouweM>
etqqkoiflwhb: that would still make it a keyword
rahult has joined #ruby
<spstarr_work>
but in python self.foobar may refer to a method or variable instance
<spstarr_work>
of the instance of a class
camilasa_ has quit [Ping timeout: 268 seconds]
<spstarr_work>
'this'
<shevy>
what do you mean with "refer"?
hobodave has quit [Quit: Computer has gone to sleep.]
<shevy>
in ruby you could return an @ivar or whatever another method returns
Mon_Ouie has quit [Ping timeout: 240 seconds]
camilas__ has quit [Ping timeout: 268 seconds]
<DouweM>
spstarr_work: you understand that `Foo` is an object just like some var `foo`? You understand that `self` is the class within the class def, and an instance within the methods? You understand that @ refers to that same `self`? You understand that any object can have ivars, and that because classes are objects too, so can they?
<DouweM>
If you understand all that, I don't see where any remaining confusion comes from
<shevy>
you can use class methods too, Foo.bla()
ahawkins_ has joined #ruby
mounibec has joined #ruby
ahawkins has quit [Read error: Operation timed out]
<shevy>
DouweM did you not say before that he is confused? :P
<spstarr_work>
I know that 'self' means 'this' or the current instance that is instantiated from a Foo object
camila___ has quit [Ping timeout: 268 seconds]
<shevy>
why does it have to be instantiated
Frank13760 has joined #ruby
<DouweM>
self just refers to the current context. it needs to be an object, which the class Foo is an example of
<spstarr_work>
if its not then its a static class
camil____ has quit [Ping timeout: 268 seconds]
<spstarr_work>
right
Frank13760 has quit [Client Quit]
<DouweM>
there's no "static" in Ruby
<shevy>
hehe
<DouweM>
there's just methods on objects
<shevy>
he likes the word
<DouweM>
a class method on a class is just a method on an object
<spstarr_work>
i come from a C world in past
<DouweM>
because the class is an object
<shevy>
it is hard coded in his neuronal CPU
<DouweM>
I know C, forget everything you know about C :P
meatherly has quit [Remote host closed the connection]
<spstarr_work>
hehe
<DouweM>
You don't need no stinking static keyword
meatherly has joined #ruby
<DouweM>
classes are objects
<DouweM>
methods are methods
<shevy>
DouweM is a class in ruby static?
meatherly has quit [Remote host closed the connection]
<DouweM>
nah
<shevy>
if he does not understand us
<spstarr_work>
so then what is this called:
<shevy>
we will try to understand him
<DouweM>
shevy: you know what static methods are?
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
<DouweM>
benzrf: you're aware that a lot of people have trouble understanding singleton classes, *especially* when they're just starting out with Ruby? :p
<shevy>
who mentioned singletons first anyway
<DouweM>
+1 shevy
<DouweM>
fucken benzrf
<spstarr_work>
class Foo; def Foo.myclassInstanceMethod end; end; ... Foo.myclassInstanceMethod ?
<spstarr_work>
or no
<benzrf>
spstarr_work: yes
<spstarr_work>
ooh
<shevy>
<spstarr_work> static == singleton class really
<DouweM>
spstarr_work: sure, but you could also use self. here
<shevy>
aha!
<benzrf>
spstarr_work: every object has its own special class separate from every other object's class
<DouweM>
shevy: but it's not!
<shevy>
spstarr_work was the first to mention singletons!
<spstarr_work>
or def self.myclassInstanceMethod ?
<spstarr_work>
same thing in this aspect ?
<shevy>
so he confused himself
<DouweM>
spstarr_work: either, because self == Foo at that point
<DouweM>
shevy: a skill I admire
* spstarr_work
smile
<shevy>
DouweM lol
<benzrf>
spstarr_work: when you say that foo is an instance of string, what you really mean is that foo is an instance of its own unique class that is a subclass of string
<benzrf>
spstarr_work: this lets objects have their own methods that other objects 'of the same class' dont
<benzrf>
spstarr_work: like a 'baz' method on only oen string
<benzrf>
*one
cj3kim has joined #ruby
<shevy>
btw spstarr_work are you at work?
<spstarr_work>
yes and about to get lunch ;)
<shevy>
ah ok
<benzrf>
spstarr_work: def foo.bar is defining bar in foo's 'real' class, which is a subclass of String
arietis has quit [Quit: Computer has gone to sleep.]
<DouweM>
shevy: good question
<shevy>
DouweM I just thought he has enough time to learn ruby at work, that would be quite a feat
<benzrf>
spstarr_work: in a class block, 'self' is the class
<shevy>
I never have enough time for anything at work :(
<spstarr_work>
benzrf: right for the singleton class of 'foo' only
<benzrf>
right
<spstarr_work>
an INSTANCE of foo would not have bar() as a method
<benzrf>
spstarr_work: so 'def self.something' defines the method 'something' on the singleton class of self, which is the class you're writing
<spstarr_work>
only the singleton ('static') class
* spstarr_work
runs
<spstarr_work>
'static :D
<spstarr_work>
i have static shock
<DouweM>
nonono
<benzrf>
never use static when talking about ruby
<DouweM>
lose hat
<DouweM>
eh
<benzrf>
it has nothing to do with anything
<DouweM>
*that
maletor has joined #ruby
<DouweM>
static != singleton
<benzrf>
and nothing in ruby is like static in java
<DouweM>
static isn't a thing in Ruby
kaspergr_ has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Read error: Operation timed out]
bluOxigen has quit [Read error: Connection reset by peer]
<benzrf>
lose the comparison o-o
<DouweM>
look what you've done, you broke him :(
<shevy>
damn it
<benzrf>
oh nooo
<shevy>
he uses the old word again
SCommette has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
<DouweM>
yeah all our hard work
* DouweM
hold shevy and sobs
<spstarr_work>
ok so let me ask you this
<benzrf>
spstarr_work: rubies are not like coffee
vlad_starkov has quit [Remote host closed the connection]
<spstarr_work>
why is singleton != static in ruby?
<mrgoodcat>
is rubygems.org broken right now? or does it frequently slow down?
<shevy>
!!!
<benzrf>
spstarr_work: they aren't related
<DouweM>
spstarr_work: there's no static in ruby
<shevy>
lol
<benzrf>
spstarr_work: that's like asking why isn't def like class
<benzrf>
they're just
<spstarr_work>
benzrf: what do you mean 'not related'
<DouweM>
spstarr_work: singleton class is a whole different concept
<benzrf>
different things
toastynerd has joined #ruby
<benzrf>
there's no reason why they SHOULD be related
<benzrf>
they have nothing to do with each other
<shevy>
spstarr_work singleton is unique
<spstarr_work>
but outside of ruby singleton == static is it not or am I mixing up something altogether?
<benzrf>
no
Foo1 has joined #ruby
<DouweM>
mixups all around
<shevy>
what is the difference
<benzrf>
spstarr_work: a singleton class is just a class for a specific object
<benzrf>
instead of a group of objects
werdnativ has joined #ruby
petey has quit [Remote host closed the connection]
doodlehaus has joined #ruby
<spstarr_work>
benzrf: right but a singleton is a class for when the class has NO instances
<DouweM>
NO
<benzrf>
no
<spstarr_work>
??
petey has joined #ruby
<benzrf>
11:20 < benzrf> spstarr_work: a singleton class is just a class for a specific object
<DouweM>
let's forget singleton classes for now...
<benzrf>
11:20 < benzrf> instead of a group of objects
<benzrf>
any object in ruby has its own class that no other object has
<benzrf>
every string is actually an instance of a special unique class just for that string
<DouweM>
I know experienced Ruby devs who have a hard time wrapping their head around the subject
<benzrf>
which is a subclass of String
<DouweM>
he really doesn't need to know that at this point
Vovko has joined #ruby
<benzrf>
kk
<DouweM>
spstarr_work: are you clear on the ivar thing from before?
<spstarr_work>
yes i have that working in my test code ;)
<DouweM>
spstarr_work: do you understand that a class is just another object?
maletor has quit [Client Quit]
<DouweM>
spstarr_work: an instance of Class, to be precise
mikecmpbll has joined #ruby
<bilbo_swaggins>
So what is it called when I do
<spstarr_work>
DouweM: an instance of a Class or of Class?
<DouweM>
spstarr_work: well, if you have any other questions on that, let us know. if you feel comfortable dealing with the class hierarchy stuff in Ruby, come back for benzrf's class on singleton classes
bluOxigen has joined #ruby
<bilbo_swaggins>
class Foo; def self.bar; :baz; end; end; Foo.bar
LekeFly has joined #ruby
<bilbo_swaggins>
>> class Foo; def self.bar; :baz; end; end; Foo.bar
<benzrf>
bilbo_bbl: haskell is fun the same way abstract math is fun
lw has quit [Client Quit]
<benzrf>
bilbo_bbl: do u like abstract math
nomenkun has joined #ruby
<DouweM>
anoldhacker: why do you think you need to override it?
<benzrf>
:-D
<DouweM>
anoldhacker: just leave it alone and come back when it gives you trouble
kevind_ has joined #ruby
<DouweM>
which it probably won't
alexju has joined #ruby
<benzrf>
anoldhacker: i keep reading ur nick as 'arnoldhacker'
<bilbo_bbl>
thanks benzrf.
<DouweM>
me too
<bilbo_bbl>
bbl
<anoldhacker>
:P
<freeone3000>
In a ruby script, Net::SSH.start() throws Errno::ETIMEDOUT, while in irb, with the same arguments, it does not. What is the difference?
<benzrf>
anoldhacker: maybe make it an_old_hacker
<bilbo_bbl>
benzrf: I loved discrete math
rippa has joined #ruby
hobodave has joined #ruby
<benzrf>
freeone3000: the rest of the script
<benzrf>
bilbo_bbl: learn haskell
<bilbo_bbl>
calculus I was always too lazy to get into
<benzrf>
it will explode your braincrash
<benzrf>
*brain
<bilbo_bbl>
but I've been more interested in lately
nari has quit [Ping timeout: 268 seconds]
<benzrf>
it has static typing but it doesnt suck
sigurding has joined #ruby
<freeone3000>
benzrf: That's an oddly specific error for some random line a few dozen lines up to interfere, especially with this being the first invocation of Net::SSH.
<bilbo_bbl>
Ruby is the most typed untyped language ever
<benzrf>
bilbo_bbl: 90% of errors in haskell are type errors
<anoldhacker>
There are times to wait & see & times to aggressively chase corner cases. Something weird like trying to add DCI to a language feels very much like a time to chase corner cases to me.
<bilbo_bbl>
I could stand some inferred static typing
<benzrf>
bilbo_bbl: haskell has nearly perfect inference
<benzrf>
:-D
<bilbo_bbl>
Most of my Ruby bugs are type errors
<benzrf>
it's good practice to write the types of top-level functions, but everything else is normally inferred
<DouweM>
anoldhacker: :) I've warned you, I'd stay away from __ methods. But hey, try it and maybe you won't crash and burn
<bilbo_bbl>
or, sorry, "class" errors
<benzrf>
bilbo_bbl: haskell has higher-order functions out the wazoo
<bilbo_bbl>
sweet
<benzrf>
your wazoo will be full of functions
<benzrf>
do you want this y/n
<bilbo_bbl>
I don't know
sigurding has quit [Client Quit]
kevind has quit [Ping timeout: 265 seconds]
kevind_ is now known as kevind
maletor has joined #ruby
Advocation has quit [Quit: Advocation]
freezey has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
<benzrf>
replicate <$> readLn <*> pure 'y'
<benzrf>
Prelude Control.Applicative> replicate <$> readLn <*> pure 'y'
<benzrf>
35
<benzrf>
"yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
<spstarr_work>
food == good
elementz has joined #ruby
tonni_ has quit [Quit: Leaving...]
nomenkun has quit [Ping timeout: 268 seconds]
lolmaus has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
lolmaus has joined #ruby
rvraghav93 has quit [Ping timeout: 255 seconds]
rvraghav93 has joined #ruby
timonv has joined #ruby
siwica has joined #ruby
bthesorc_ has quit [Remote host closed the connection]
<shlant>
basically I want to be able to handle no key, single key value and multiple key value
lolmaus has joined #ruby
<shlant>
in reference to up/down
<spstarr_work>
benzrf|offline: hehe
cami_____ has quit []
maletor_ has quit [Read error: Connection reset by peer]
zigomir has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 265 seconds]
juarlex_ has joined #ruby
maletor has joined #ruby
SCommette has quit [Quit: SCommette]
danman_ has quit [Quit: danman_]
zachallett has joined #ruby
SCommette has joined #ruby
juarlex has quit [Ping timeout: 252 seconds]
bklane has joined #ruby
cj3kim has joined #ruby
abdulsattar has joined #ruby
<bklane>
I am using a phantomjs gem for scraping and keep getting the error: 'OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read finished A: decryption failed or bad record mac', anyone know how to solve it?
gilcosson has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
senayar_ has quit [Remote host closed the connection]
<bklane>
I'm hosting on heroku, (unsure if that makes a difference)
yasushi has quit [Remote host closed the connection]
ffranz has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
toastynerd has joined #ruby
<xybre>
bklane: HAve you checked to see what the input its processing is?
davy has joined #ruby
<bklane>
xybre: yup, im scraping something thats identical for each page, on a single domain yet it will randomly run that error when the jobs are being processed in DelayedJobs
<bklane>
I just re-run the jobs and they will process but want to try to stop it from happening to begin with
bricker has joined #ruby
iliketurtles has joined #ruby
sabooky has joined #ruby
<sabooky>
If I have a method that takes arguments and a block, is there a way to pass the block using curly braces on one line?
<sabooky>
my_method arg1, arg2, {my block}
<xybre>
bklane: Basically what I'm asking is that since its an SSL decryption error, maybe you're not getting the payload you expect, so you should look at the raw payload.
davy_ has joined #ruby
<sabooky>
Or do i have to use do/end syntax
<xybre>
sabooky: Yeah, but you have to use parens.
<sabooky>
xybre: Thanks, yeah that worked. Had a brain glitch since it was a ruby dsl. Thanks!
<bklane>
xybre: yup thats the problem, the site redirects to https and when i do a request with https it works fine but on the http request it sometimes fails
wallerdev has joined #ruby
CaptainJet has quit [Ping timeout: 268 seconds]
<bklane>
thank you
crystal77 has quit [Quit: Computer has gone to sleep.]
<xybre>
bklane: :D
<xybre>
sabooky: Its all good :)
CreativeEmbassy has joined #ruby
Speed has joined #ruby
chuk_ has joined #ruby
papercode has joined #ruby
ce_afk is now known as cescalante
lolmaus has quit [Read error: Connection reset by peer]
dagobah has quit [Quit: Leaving...]
subbyyy_ has joined #ruby
jespada has quit [Quit: Leaving]
kitak has quit [Ping timeout: 260 seconds]
dkamioka has joined #ruby
greggroth has quit [Ping timeout: 265 seconds]
oneawayman has joined #ruby
iliketurtles has joined #ruby
maletor has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 255 seconds]
YamakasY has quit [Ping timeout: 268 seconds]
gilcosson has joined #ruby
Macaveli has joined #ruby
YamakasY has joined #ruby
danno1 has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
timonv has quit [Remote host closed the connection]
apeiros has joined #ruby
greenrose has quit []
freerobby has joined #ruby
timonv has joined #ruby
<havenwood>
f0ster: File.delete '-rf ~'
<havenwood>
:P
sailias1 has quit [Read error: Operation timed out]
andikr has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
cndiv has quit [Quit: WeeChat 0.4.3]
tvw has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
<f0ster>
haha, from ruby
tnk1 has joined #ruby
maletor has quit [Read error: Connection reset by peer]
petey_ has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 255 seconds]
tnk1 has quit [Client Quit]
northfurr has quit [Ping timeout: 268 seconds]
petey has joined #ruby
gilcosson has quit [Remote host closed the connection]
tgkokk has quit [Read error: Connection reset by peer]
tnk1 has joined #ruby
f0ster has quit [Changing host]
f0ster has joined #ruby
<RubyPanther>
I was building mruby for android yesterday and the android toolchain did indeed take a ~ literally, and created a dir called ~ in the localdir, I just took a deep breath and said rm -rf ./\~
<f0ster>
and that worked?
<RubyPanther>
yeah, the ./ is probably not needed but I wanted to protect myself from my own mistakes ;)
browndawg has quit [Read error: Connection timed out]
<matti>
RubyPanther: And then you by accident made space between . and /
<matti>
;]
rabeldable has joined #ruby
<RubyPanther>
matti: mistakes can be deadly, I did stare at the screen for a few seconds before pressing enter
<matti>
;]
<matti>
I am sure you did.
klaut_ has quit [Remote host closed the connection]
<RubyPanther>
What is worse on a new sysadmin is creating too many files in a dir for bash to list, because it breaks rm using wildcards
petey has quit [Ping timeout: 265 seconds]
browndawg has joined #ruby
<RubyPanther>
you can still delete them with a glob... using Ruby (or Perl)
<matti>
RubyPanther: Or using find, or using xargs.
centrx has joined #ruby
<RubyPanther>
xargs is less help unless you're also using find because you can't give ls a glob, bash still has to handle the args
alk_ has left #ruby [#ruby]
<RubyPanther>
They should succeed, but they'll probably also cry and worry they picked the wrong new job ;)
nanoyak has joined #ruby
<matti>
Its actually more fun to see a developer who is trying to troubleshoot issues on Linux box.
deadlock has joined #ruby
tcstar has joined #ruby
<RubyPanther>
Well, in that case you might stump them and waste a whole week
yacks has quit [Quit: Leaving]
<matti>
Indeed
<matti>
;]
dkamioka has quit [Remote host closed the connection]
cj3kim has joined #ruby
<RubyPanther>
You can probably do that much damage just with a carefully exported env var
<matti>
RubyPanther: Interesting would be also: make wchar literal file name and then flip back to LA_ALL/LANG = C
<matti>
RubyPanther: And ask people to remove it ;]
<apeiros>
I guess you meant MyClass.instance_variable_get(:@aHash)[:company]
ascarter has joined #ruby
<spstarr_work>
ahh
<spstarr_work>
interesting
<apeiros>
also, probably rather an_instance_of_my_class.instance_variable_get…
<DouweM>
spstarr_work: `:@aHash` is just a symbol argument to instance_variable_get, which will have it looked up the ivar by that name and return it
<apeiros>
(it's possible on the class too, but much less likely that that's what you actually want)
<DouweM>
spstarr_work: on that returned ivar value, the Hash in this case, you can call the :company lookup
<spstarr_work>
yeah that works
<spstarr_work>
interesting
greggroth has quit [Ping timeout: 264 seconds]
Burgestrand has joined #ruby
elaptics is now known as elaptics`away
<DouweM>
apeiros: this is related to what we were talking about with spstarr_work earlier today. he was actually looking for an ivar on the class then :)
tkuchiki has quit [Remote host closed the connection]
dkamioka_ has joined #ruby
<apeiros>
ok
<spstarr_work>
DouweM: that is interesting
<spstarr_work>
so could you set the ivar of a class within a method?
Ziarkaen has joined #ruby
rmorello has joined #ruby
sambao21 has joined #ruby
Jeticus has quit [Read error: Connection reset by peer]
lyanchih__ has quit [Ping timeout: 268 seconds]
Xeago_ has quit [Remote host closed the connection]
<spstarr_work>
@myHash[:company] = "Foobar" <-- set an instantiated instance variable myHash's w/ symbol company value Foobar
<DouweM>
spstarr_work: sure: `self.class.instance_variable_set(:@ivar_name, "value")` but don't do that :P
iliketurtles has quit [Quit: zzzzz…..]
olivier_bK has quit [Ping timeout: 268 seconds]
<spstarr_work>
DouweM: i mean within an instantiated class method though
Xeago has joined #ruby
<DouweM>
spstarr_work: you can't directly access any object's instance variables, so not your class's either
<spstarr_work>
I See, only via the approach you list above
<DouweM>
spstarr_work: if you want your instances to read one of their class's instance variables, use a getter method
juanmnl has joined #ruby
<spstarr_work>
or via a setter/getter method within the class
Xeago has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
<spstarr_work>
ya
<DouweM>
yup :)
CaptainJet has joined #ruby
rm_ has joined #ruby
* spstarr_work
is building up various examples so i can see how ruby does things
rh1n0 has joined #ruby
Xeago has joined #ruby
<spstarr_work>
ie
<spstarr_work>
def self.classInstanceMethod return "Only available as class method, singleton" end
<spstarr_work>
puts MyClass.classInstanceMethod()
<DouweM>
spstarr_work: side note: teach yourself now to use snake_case rather than camelCase
<DouweM>
for methods and variables that is
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM>
classes are still CamelCase
<sigurding>
short question: if I execute “bundle exec monitoring” I get a /forwardable.rb:186: stack level too deep (SystemStackError). Aborting with STRG + C shows me: https://gist.github.com/jhiemer/2a223fcd419b22a3cb44. Anyone has an idea?
<spstarr_work>
i noticed Ruby enforces CamelCase
<spstarr_work>
for ClassName
<DouweM>
and drop the () at the end of that method. No args, no parentheses
dkamioka_ has quit [Ping timeout: 255 seconds]
<spstarr_work>
thats a habit that dies hard :)
<spstarr_work>
()
<DouweM>
spstarr_work: it needs to have a capital initial letter, but the rest can be as ugly as you like
<Senjai>
spstarr_work: Sorry? You can do Classname if you really wanted.
<spstarr_work>
sure
rm__ has joined #ruby
<spstarr_work>
but 'C'
<Senjai>
Thats not camel case
<Senjai>
thats capitalization.
<Burgestrand>
sigurding: is monitoring trying to load monitoring?
<DouweM>
constants need a capital letter, and a classname is a constant
<spstarr_work>
DouweM: that explained the error ruby told me
poikon_ has quit [Remote host closed the connection]
<spstarr_work>
i always kept () at end of methods to indicate it is a method
<Senjai>
I mean afaik you could do something like: my_class = Class.new do ... end
<Senjai>
my_class.new
<spstarr_work>
not a variable
<Senjai>
but thats not a good idea
cj3kim has joined #ruby
osvico has joined #ruby
<Senjai>
spstarr_work: You should look up the ruby style guide on github
bklane has quit [Remote host closed the connection]
<Burgestrand>
sigurding: it’s not a lot to go on, but chances are that the generated file from bundler is not at fault, but the actual ruby script being executed by that load
rm___ has joined #ruby
<Senjai>
spstarr_work: Everything in ruby is an object. So there is no reason to differentiate a "variable" from a "method"
rm_ has quit [Ping timeout: 252 seconds]
<Senjai>
spstarr_work: my_class is an object that takes no arguments. my_class(thing) is an object that takes one argument
rm___ is now known as Guest22679
bklane has joined #ruby
<sigurding>
Burgestrand: I am able to run the execution script via ruby monitor.rb without any issue
<DouweM>
Senjai: I wouldn't go mixing objects with variables with methods
tjr9898 has joined #ruby
<spstarr_work>
Senjai: I guess thats the confusion Im trying to unconfuse
<Burgestrand>
sigurding: perhaps spelunking would be a good idea. If you replace the “load” at line 16 in that file with “puts”, should give you a hint of what file it is trying to load.
cj3kim has quit [Read error: Connection reset by peer]
<spstarr_work>
I mean I get that "foo bar".length()
<Senjai>
DouweM: Well, a variable in ruby is something =
<spstarr_work>
literal string is an object too
<Senjai>
something="hello"
<Senjai>
something is an object and a variable
<Burgestrand>
sigurding: (and run it again, of course, to have it print the file path)
<spstarr_work>
or 100.repeat(100)
<Senjai>
all variables in ruby are objects
circuit has quit [Quit: OHHHHHHH]
<DouweM>
variables refer to objects, the variable itself isn't an object :/
<DouweM>
methods aren't objects either
<Burgestrand>
sigurding: I am *guessing* that the path resolves to the same file, and if that is the case the reason is probably has to do with something else in your setup
<DouweM>
they're, well, methods
<sigurding>
Burgestrand: it references to itself
rm__ has quit [Ping timeout: 255 seconds]
<spstarr_work>
Senjai: but for code legibility
<Senjai>
DouweM: "hello".class ?
rm_ has joined #ruby
<Senjai>
DouweM: All methods return objects
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<DouweM>
that's not the same thing
<DouweM>
not trying to be pedantic, but you confused me
CaptainJet has quit [Ping timeout: 255 seconds]
<Burgestrand>
sigurding: some more context is necessary :)
banister has joined #ruby
jollyy has quit [Quit: jollyy]
<Senjai>
DouweM: Right, but for the sake of getting used to ruby, you can make that assumption
<spstarr_work>
seeing myClass.getThisString (while the name of the method may imply its a method or if ruby does like C++ does and denotes m_methodName)
<sigurding>
Burgestrand: ok, wait a sec
<Senjai>
DouweM: Given that a method in ruby will always return an object
mikecmpbll has joined #ruby
<DouweM>
Senjai: sure, but I'd make that distinction. a lot of things *are* objects, but not everything in the language syntax is
asteros has joined #ruby
<DouweM>
spstarr_work: is that a question?
<spstarr_work>
DouweM: yea
bklane_ has joined #ruby
<Senjai>
DouweM: A method is a block of reuseable code that always returns an object
<Burgestrand>
DouweM: do you have an example of that? I don’t disagree, I’m just curious about which kind of semantics you two are discussing.
Guest22679 has quit [Ping timeout: 268 seconds]
bklane has quit [Ping timeout: 240 seconds]
<DouweM>
Burgestrand: I was responding to Senjai's "spstarr_work: Everything in ruby is an object. So there is no reason to differentiate a "variable" from a "method"" and "spstarr_work: my_class is an object that takes no arguments. my_class(thing) is an object that takes one argument"
Macaveli has quit [Ping timeout: 252 seconds]
r_rios has quit [Ping timeout: 264 seconds]
rrios has quit [Ping timeout: 264 seconds]
Frank13760 has joined #ruby
certaint1 is now known as certainty
geopet has quit []
<DouweM>
Burgestrand: IMO those statements only make things more confusing to someone trying to wrap their head around Ruby syntax en semantics
<Senjai>
There is no reason to differentiate a method from a variable as a user, because they will both always return objects
<sigurding>
I updated it with all relevant information regarding bundler
Frank13760 has left #ruby [#ruby]
patrick99e99 has joined #ruby
jorts_ has joined #ruby
<Burgestrand>
I suppose a more correct way of saying it is: all expressions in ruby return an object
<spstarr_work>
Senjai: they might but visually looking at code
<Mon_Ouie>
Senjai: You can't assign a method to something. That makes them very different already.
<DouweM>
Burgestrand: +1
p8952 has quit [Quit: Leaving]
m0s is now known as m0s^away
juanmnl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Mon_Ouie>
Also variables are lexically scoped, methods are dynamically scoped
rrios has joined #ruby
r_rios has joined #ruby
jorts has quit [Ping timeout: 255 seconds]
jorts_ is now known as jorts
CaptainJet has joined #ruby
_tziOm has quit [Ping timeout: 252 seconds]
<Burgestrand>
sigurding: ah, you have a binstub for a gem you are actively developing?
<sigurding>
Burgestrand: yes!
chrisseaton has quit []
<DouweM>
spstarr_work: got a specific question?
Zai00 has quit [Quit: Zai00]
<spstarr_work>
DouweM: none right now, more experimenting :)
<Burgestrand>
sigurding: I’m not sure you’re intended to have a binstub for the same gem you’re developing, but I would say it’s enough to warrant a visit to the bundler issue tracker / IRC (if there is one) or similar. Why do you have a binstub for the project you are currently working on? ^^
heftig has quit [Quit: Quitting]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oneawayman has quit [Ping timeout: 265 seconds]
Hobogrammer has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
AlexRussia has quit [Remote host closed the connection]
<spstarr_work>
mixed up my plicits
<spstarr_work>
:P
patrick99e99 has quit [Ping timeout: 265 seconds]
<Burgestrand>
sigurding: I’ll have a quick read, see if I can follow :)
rdark has quit [Quit: leaving]
AlexRussia has joined #ruby
<Burgestrand>
sigurding: I can’t see anything about binstubs in it though!
sabooky has quit [Ping timeout: 245 seconds]
<sigurding>
Burgestrand: ok, perhaps I need to ask something: where to you see the binstubs etc?
greggroth has joined #ruby
michaeldeol has joined #ruby
Frank13760 has joined #ruby
crystal77 has quit [Client Quit]
sailias has quit [Client Quit]
mehlah has quit [Quit: Leaving...]
robbyoconnor has quit [Excess Flood]
gvhv has joined #ruby
bklane_ has quit [Quit: Leaving...]
gvhv has left #ruby [#ruby]
<Burgestrand>
sigurding: by binstubs I refer to the generated file by bundler (the one that contained “load Gem…”). Those files are generally generated using bundler when working in projects to ensure that when you type “some_command”, that “some_command” loads the right version of the gem from the start. Because you had such a file (that is causing the loading of itself), I assume that you’ve at some point generated binstubs using
<Burgestrand>
the bundler command
robbyoconnor has joined #ruby
<Burgestrand>
sigurding: i.e. something like “bundle install --binstubs”
Frank13760 has left #ruby [#ruby]
<sigurding>
Burgestrand: yes correct
<Burgestrand>
sigurding: doing the same with a new imaginary gem to try to get a feeling for what I should tell you to do ;)
<Burgestrand>
(I am doing the same…)
sailias has joined #ruby
jastora has joined #ruby
aaronmcadam has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
<Burgestrand>
sigurding: how are you executing the “monitoring” command, and from which folder?
wallerdev has quit [Quit: wallerdev]
_tpavel has quit [Quit: Leaving]
etqqkoiflwhb has quit [Read error: Connection reset by peer]
danshult_ has joined #ruby
rudisimo has quit []
<sigurding>
Burgestrand: I am executing from the project base dir
testcore has joined #ruby
<Burgestrand>
sigurding: alright! So you want your gem to install a command “monitoring” when somebody installs your gem?
<sigurding>
an in this directory I am starting it via “bundle exec monitoring”
<sigurding>
Burgestrand: exactly, this should be the project to executre
<sigurding>
execute
toastynerd has joined #ruby
jrendell has joined #ruby
jrendell has quit [Client Quit]
danshult_ has quit [Remote host closed the connection]
jrendell has joined #ruby
<Burgestrand>
sigurding: alright, I don’t think you should be using binstubs for this development. You can stop bundler from creating binstubs every time you do “bundle install” if you edit the file “.bundle/config” and remove the BUNDLE_BIN line
danshult_ has joined #ruby
rm_ has quit [Read error: Connection timed out]
greggroth has quit [Ping timeout: 240 seconds]
<Burgestrand>
sigurding: next up after that is removing all stuff inside your_gem/bin, except the “monitoring” file, which is the one where you should write your command code
VTLob has joined #ruby
rm_ has joined #ruby
noop has joined #ruby
danshultz has quit [Ping timeout: 268 seconds]
crystal77 has joined #ruby
sepp2k has joined #ruby
<sigurding>
Burgestrand: all done!
Patteh has quit [Quit: leaving]
timonv has quit [Remote host closed the connection]
Patteh has joined #ruby
<Burgestrand>
sigurding: finally, you should make sure your command file is executable by doing “chmod +x bin/monitoring”
doodleha_ has joined #ruby
timonv has joined #ruby
<Burgestrand>
sigurding: and at the top of the file, it is good practice to write the line “#!/usr/bin/env ruby”, which will use the current ruby from the environment if nothing else is specified somewhere else (for example, if your users are using bundler)
<sigurding>
Burgestrand: ok done!
<sigurding>
would you not recommend to use bundler?
<Burgestrand>
sigurding: you should can use bundler, but only for things that bundler should be used for :)
GreatSUN has quit [Ping timeout: 245 seconds]
<Burgestrand>
sigurding: when you do “bundle install --binstubs”, bundler will overwrite bin/monitoring with a bundler-generated file
<sigurding>
Burgestrand: ok, and that’s something bundler should not be used for?
brianpWins has joined #ruby
<spstarr_work>
ah
<spstarr_work>
@@
<Burgestrand>
sigurding: and if bundler overwrites bin/monitoring with it’s own file, you cannot place *your* code in it, because it will always be overwritten
benzrf|offline is now known as benzrf
Xeago has quit [Remote host closed the connection]
<spstarr_work>
class variables
<Burgestrand>
spstarr_work: be careful with those
<benzrf>
hej da
jorts has quit [Quit: jorts]
<Burgestrand>
spstarr_work: they are inherited :)
brianpWins has quit [Client Quit]
<benzrf>
spstarr_work: they have weird semantics that may be confusing at first
danshult_ has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
<spstarr_work>
Burgestrand: even singletons?
wallerdev has joined #ruby
danshultz has joined #ruby
brianpWins has joined #ruby
<Burgestrand>
spstarr_work: you can use regular @variables in the class scope as well
<spstarr_work>
yes
<Burgestrand>
spstarr_work: most of the time, that is also what you should be using ;)
doodlehaus has quit [Ping timeout: 268 seconds]
jorts has joined #ruby
<Burgestrand>
spstarr_work: I will give you an example with your singleton
<spstarr_work>
but i thought class variables were of scope at the class level like self.myMethod being a class method
freezey has quit [Remote host closed the connection]
jorts has quit [Client Quit]
maasha has joined #ruby
<sigurding>
Burgestrand: did all the stuff, but still getting the error
<Burgestrand>
sigurding: main interesting code is in bin/custom_command
maletor has joined #ruby
<Burgestrand>
sigurding: when users install that gem, they will have the custom_command command available
<Burgestrand>
sigurding: during development, to test it out yourself, you can use “bundle exec bin/custom_command”
shlant has quit [Read error: Operation timed out]
alexblackie has joined #ruby
kenneth has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
shlant has joined #ruby
<sigurding>
Burgestrand: thx, I will try it myself :)
rm_ has quit [Read error: Connection timed out]
<sigurding>
need to grab some food and a take a deeper look a it
<sigurding>
*at
<Burgestrand>
sigurding: I will go to the store real quick (5 min), but I’ll be here :)
jottr has joined #ruby
<sigurding>
Burgestrand: great! thx a lot for your patience
robbyoconnor has quit [Ping timeout: 255 seconds]
rm_ has joined #ruby
petey has joined #ruby
elementz has quit [Ping timeout: 255 seconds]
robbyoconnor has joined #ruby
roolo has quit [Quit: Leaving...]
shlant has quit [Ping timeout: 255 seconds]
djbender has quit [Quit: djbender]
CorySimmons has joined #ruby
djbender has joined #ruby
Xeago has joined #ruby
TheLarkInn has quit [Quit: Leaving.]
jastora has left #ruby [#ruby]
n1tr0g has quit [Quit: n1tr0g]
carraroj has joined #ruby
CorySimmons has quit [Client Quit]
Adawerk__ has joined #ruby
mven_ has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Excess Flood]
monkegji_ has joined #ruby
claymore has quit [Quit: Leaving]
robbyoconnor has joined #ruby
petey has quit [Remote host closed the connection]
diegoviola has joined #ruby
afex has joined #ruby
werdnativ has left #ruby [#ruby]
shlant has joined #ruby
petey has joined #ruby
root_empire has joined #ruby
monkegjinni has quit [Ping timeout: 268 seconds]
r0nin has quit [Remote host closed the connection]
Wolland has joined #ruby
bluenemo has joined #ruby
sigurding has quit [Quit: sigurding]
<shevy>
test
jprovazn has quit [Quit: Odcházím]
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<alexblackie>
yep
petey_ has joined #ruby
sepp2k1 has joined #ruby
michael_lee has quit [Ping timeout: 265 seconds]
renier has joined #ruby
sepp2k has quit [Ping timeout: 265 seconds]
petey has quit [Ping timeout: 268 seconds]
eynj has joined #ruby
<renier>
hey, looking for comments on this. https://gist.github.com/renier/9815009 Is there a better way to pick up files for rake package? Also, can the loop be better? Thanks!
AlSquire has quit [Quit: This computer has gone to sleep]
<Burgestrand>
renier: bundler uses git to list files. I’m not sure I think it’s a better way; it can be annoying at times, but I wanted to let you know that’s how they do it.
root_empire has quit [Read error: Connection reset by peer]
Bumptious has quit [Remote host closed the connection]
<Burgestrand>
renier: that way they can avoid the need to parse the .gitignore, and their way also respects the global .gitignore file.
Advocation has quit [Quit: Advocation]
TheLarkInn has joined #ruby
<renier>
Burgestrand, good point. thanks. they use git ls-files
Xeago has quit [Remote host closed the connection]
cpruitt has joined #ruby
rm_ has quit [Read error: Connection timed out]
smathieu has quit [Remote host closed the connection]
jorts has quit [Quit: jorts]
pfg has joined #ruby
rm_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
Frank13760 has joined #ruby
Frank13760 has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
jorts has joined #ruby
asteros has quit [Quit: asteros]
<renier>
Burgestrand, hey, so since my gemspec already uses the git method for filling out the files attribute, I can use spec.files and that's it
iceden|2 is now known as iceden
<renier>
saves a lot of code. thx for the pointer
<Burgestrand>
renier: :)
razibog has quit [Quit: Leaving.]
bline79 has joined #ruby
hiall has quit [Ping timeout: 265 seconds]
axl_ has joined #ruby
toastynerd has joined #ruby
aspires_ has quit []
rindolf has left #ruby ["Leaving"]
afex has quit [Ping timeout: 268 seconds]
alexju has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
<spstarr_work>
nice
<spstarr_work>
so just like python i can do crazy things...
bluenemo has quit [Read error: Connection reset by peer]
jorts has quit [Quit: jorts]
<spstarr_work>
shevy: what?
speakingcode has quit [Ping timeout: 252 seconds]
<spstarr_work>
:(
dkamioka has joined #ruby
asteros has joined #ruby
<RubyPanther>
They are assumed to exist, but Rubyists are smart enough to choose a quality API
Zai00 has joined #ruby
rm_ has quit [Ping timeout: 264 seconds]
lmickh has joined #ruby
bluenemo has joined #ruby
speakingcode has joined #ruby
<RubyPanther>
So nobody really knows for sure
* spstarr_work
snickers
Zai00 has quit [Client Quit]
<shevy>
spstarr_work it was rdale, he even was on freenode irc
<shevy>
#qtruby still exists
<shevy>
qtruby looked much better than ruby-gnome too
cpruitt has quit [Quit: cpruitt]
<shevy>
but without a developer, it is dead
noop has quit [Ping timeout: 265 seconds]
jorts has joined #ruby
<spstarr_work>
hmm
<pipework>
Unless somehow they wrote it in a way that's actually fairly complete.
<shevy>
the best would be to use an agnostic UI though
* spstarr_work
prepares to go $HOME
<pipework>
spstarr_work: ::1?
cpruitt has joined #ruby
greggroth has joined #ruby
afex has quit [Ping timeout: 255 seconds]
Bira has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
ctp_ has joined #ruby
cescalante is now known as ce_afk
sigurding has joined #ruby
decoponio has quit [Quit: Don't lose your way...(Kill La Kill OST)]
chichou has joined #ruby
atno has joined #ruby
jeebster has quit [Quit: Leaving.]
<AlexRussia>
hi people!
<AlexRussia>
I again should in your help!
newbie1r has joined #ruby
<shevy>
please no
<AlexRussia>
okay, target in it: i get big text, included some vcards....
<AlexRussia>
shevy: ???
ctp has quit [Ping timeout: 240 seconds]
YamakasY_ has joined #ruby
<AlexRussia>
question: how diffrent text to parts, if i know some string-diffrent?
michaeldeol has joined #ruby
ctp_ has quit [Ping timeout: 255 seconds]
camilasan has joined #ruby
<toretore>
lol
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AlexRussia>
maybe, some method for it....i don't have make own for and some tricks
<jhass>
I think he want's to extract vcards from a textblob
<toretore>
AlexRussia: show some code perhaps?
axsuul has joined #ruby
<jhass>
AlexRussia: can you provide example input?
ce_afk is now known as cescalante
ziyadb_ has joined #ruby
<toretore>
code > words
meatherly has joined #ruby
<AlexRussia>
jhass: i want diffrent text by some key.....to parts
tziOm has joined #ruby
havenwood has quit []
<jhass>
AlexRussia: provide example input and expected output at least
SonicX has joined #ruby
<toretore>
AlexRussia: explain with code and data
arietis has quit [Quit: Computer has gone to sleep.]
<AlexRussia>
jhass: you want see my now code?
<AlexRussia>
jhass: and example data input?
<jhass>
that and what you expect to have, for example the result array you would like to have
zigomir has joined #ruby
cpruitt has quit [Quit: cpruitt]
chuk_ has joined #ruby
geopet has joined #ruby
<AlexRussia>
jhass: now i get one string and using it like data, but i should in some string, where included not one data, should diffrent it, yah, i think, diffrent to array by data.
<AlexRussia>
jhass: shevy like it, ofc, is example :P
axsuul has quit [Read error: Connection reset by peer]
<toretore>
it's obvious you're trying to process a bunch of vcard files, extract a phone number and put the numbers into a new file
axsuul has joined #ruby
jollyy has joined #ruby
<AlexRussia>
toretore: toooo right
SiliconDon has joined #ruby
<toretore>
but i don't understand what you're asking about
<AlexRussia>
toretore: is for my some friend....
<toretore>
try explaining with code instead
jaywastaken has quit [Quit: This computer has gone to sleep]
sambao21 has joined #ruby
<toretore>
code is much easier to understand
<AlexRussia>
toretore: oh....every vrards concatenated in ONE file.But vcardigan unsupport this style, i think
<toretore>
you want to have one file with multiple vcards in it?
davy has joined #ruby
<AlexRussia>
toretore: one file with ultiple vcards is like input....
<jhass>
I think he has that and wants to parse it
<AlexRussia>
multiple*
CreativeEmbassy has joined #ruby
Squarepy has quit [Quit: Leaving]
<shevy>
lol
<AlexRussia>
jhass: yah, parse by vcards for using it in vcardigan
<shevy>
AlexRussia, write in simple english.
jaywastaken has joined #ruby
jaywastaken has joined #ruby
jaywastaken has quit [Changing host]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<AlexRussia>
shevy: O_O, i write in RUSSIAN english :P
asteros has joined #ruby
BuSerD has joined #ruby
jackneill has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<droptone>
Question: I have a hash and I want to set a value to the sum of two strings, with a space in between. For example, MyHash = { 'Value1" => AnotherVar["Address1"] + " " + AnotherVar["Address2"] }
<shevy>
yeah, that is bad, the way to think in russian is different to writing in english, it's like matz speaking english while he continues to think in japanese
<droptone>
What would the proper syntax be for that statement?
<AlexRussia>
jhass: we parsing by 'END:VCARD', in file 2 vcards, but in each 3!
kirun__ has joined #ruby
<AlexRussia>
jhass: lulz-lulz
freezey has joined #ruby
smathieu has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
kirun__ has quit [Client Quit]
jlast has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
kirun has quit [Ping timeout: 255 seconds]
nisstyre has quit [Quit: bai]
senayar has joined #ruby
petey has quit [Ping timeout: 240 seconds]
petey has joined #ruby
kirun_ has quit [Ping timeout: 264 seconds]
<AlexRussia>
jhass: don't worry, if vcard.tlf fix it
<AlexRussia>
'if vcard.tlf'
YamakasY_ has quit [Quit: The best revenge is massive success...]
derek_c has joined #ruby
michael_lee has joined #ruby
axl_ has quit [Quit: axl_]
sambao21 has joined #ruby
Xeago has quit [Ping timeout: 255 seconds]
smathieu has quit [Remote host closed the connection]
jlast has joined #ruby
smathieu has joined #ruby
mary5030_ has joined #ruby
abdulsattar has joined #ruby
mary5030_ has quit [Remote host closed the connection]
smathieu has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
mary5030_ has joined #ruby
sdelmore has joined #ruby
Xeago has joined #ruby
agjacome has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
Dreamer3 has joined #ruby
certainty is now known as certainty|vacati
klaas_ has joined #ruby
rh1n0 has quit [Ping timeout: 264 seconds]
Hobogrammer has joined #ruby
b00stfr3ak has quit [Ping timeout: 255 seconds]
klaas_ is now known as klaas
yalue has quit [Quit: Leaving]
weems has quit [Read error: Connection reset by peer]
weems has joined #ruby
robbyoconnor has quit [Read error: Operation timed out]
endash_ has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<AlexRussia>
File.exist?(file_name) returned bool, true if file exist, else false
<AlexRussia>
?
mr_snowf1ake has joined #ruby
<jhass>
it does that, yes
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
itadder has joined #ruby
jeebster has joined #ruby
chichou has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<shevy>
AlexRussia seems logical, doesn't it? :)
iceden has joined #ruby
<jhass>
probably not in russian english shevy
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
petey has quit [Remote host closed the connection]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<shevy>
lol
<shevy>
AlexRussia what is "logical" in russian?
petey has joined #ruby
funktor has joined #ruby
axsuul has joined #ruby
<AlexRussia>
shevy: logical?O_O you about boolean?
maximski_ has joined #ruby
<shevy>
AlexRussia no, the russian word
<Authenticator>
Is there a way to stop SimpleCov from reporting for a given process? It's failing my forking tests when I run them with coverage on. I'm already setting a CommandName based on the PID...
fieldfirst has quit [Ping timeout: 240 seconds]
lapinferoce has joined #ruby
<AlexRussia>
shevy: логический
<shevy>
I cant read that
<shevy>
ес
maximski has quit [Ping timeout: 268 seconds]
senayar_ has joined #ruby
patrick99e99 has joined #ruby
shutch has joined #ruby
petey has quit [Ping timeout: 268 seconds]
kirun has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
SiliconDon has quit []
patrick99e99 has quit [Ping timeout: 252 seconds]
tcstar has quit [Read error: Connection reset by peer]
SiliconDon has joined #ruby
pauld has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.3]
meatherly has joined #ruby
funktor has quit [Remote host closed the connection]
rezzack has joined #ruby
Vovko has quit []
<lapinferoce>
join #github
Hobogrammer has quit [Quit: WeeChat 0.4.3]
lapinferoce has left #ruby ["Konversation terminated!"]
shadoi1 has quit [Quit: Leaving.]
agjacome has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
cgore has quit [Remote host closed the connection]
r0nin_ has quit [Remote host closed the connection]
petey has joined #ruby
popl has joined #ruby
popl has joined #ruby
pontiki has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
agjacome has joined #ruby
Ziarkaen has quit [Remote host closed the connection]
mrnugget has quit [Quit: mrnugget]
dapz has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<sigurding>
what are alternatives to bundler?
skammer has joined #ruby
carif has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
carif has joined #ruby
itadder has quit [Remote host closed the connection]
carif has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
Hobogrammer has joined #ruby
wallerdev has quit [Quit: wallerdev]
meatherly has quit [Ping timeout: 265 seconds]
<centrx>
sigurding, To do what?
carif has joined #ruby
<sigurding>
centrx: I am trying to build an executable gem, which should automatically load all dependencies, when it’s installed
wallerdev has joined #ruby
danshult_ has quit [Remote host closed the connection]
<sigurding>
jhass: ok so the gemspec files is enough to resolve the dependencies during install?
<jhass>
yes
<sigurding>
jhass: sounds great, is there any way to test this in an rvm enviroment?
<jhass>
sure, just make a new gemset
<jhass>
(and empty / pristine your global one if you got related stuff installed there)
sambao21 has joined #ruby
greggroth has joined #ruby
freezey has quit [Remote host closed the connection]
cpruitt has joined #ruby
newbie|7 has joined #ruby
agarie has quit [Ping timeout: 255 seconds]
freezey has joined #ruby
chrisramon has quit [Quit: chrisramon]
Snafu777 has quit [Ping timeout: 240 seconds]
klaut has joined #ruby
tgkokk has quit [Ping timeout: 240 seconds]
cpruitt has quit [Client Quit]
fannye has quit [Read error: Connection reset by peer]
Speed has quit [Ping timeout: 240 seconds]
asteros has quit [Quit: asteros]
cpruitt has joined #ruby
chipotle has quit [Quit: cya]
funburn has joined #ruby
roolo has joined #ruby
greggroth has quit [Ping timeout: 265 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
pu22l3r has joined #ruby
dkamioka has joined #ruby
kirun has quit [Quit: Client exiting]
pu22l3r has quit [Read error: Connection reset by peer]
freezey has quit [Ping timeout: 264 seconds]
nowthatsamatt has joined #ruby
bline79 has quit [Quit: Lost terminal]
pu22l3r has joined #ruby
e^0 is now known as ffio
inkblots has quit [Read error: Connection reset by peer]
abdulsattar has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
freezey has joined #ruby
asteros has joined #ruby
maasha has quit [Quit: Page closed]
r_rios has quit [Read error: Operation timed out]
rrios has quit [Read error: Operation timed out]
newbie|7 has quit [Ping timeout: 268 seconds]
CorySimmons has joined #ruby
sailias has quit [Quit: Leaving.]
Cydrobolt has joined #ruby
benlieb has joined #ruby
THAiSi has joined #ruby
agjacome has quit [Quit: leaving]
Bira has quit [Ping timeout: 265 seconds]
garndt has quit [Quit: Connection closed for inactivity]
bthesorceror has quit [Remote host closed the connection]
ghr has joined #ruby
zachallett has quit [Remote host closed the connection]
derek_c has quit [Ping timeout: 265 seconds]
axsuul has quit [Ping timeout: 264 seconds]
THAiSi has left #ruby [#ruby]
<lex_functor>
AlexRussia: what sound is ч
<lex_functor>
I can at least sound out the other characters
mansi has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 268 seconds]
freggles has quit [Remote host closed the connection]
mansi has joined #ruby
jkamenik has quit [Quit: Leaving.]
hfp_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
bluenemo has quit [Ping timeout: 255 seconds]
S0da has quit [Read error: Connection reset by peer]
hfp has quit [Ping timeout: 245 seconds]
hfp_ is now known as hfp
popl has quit [Quit: Touch the frog.]
Shidash has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 252 seconds]
Killa has joined #ruby
kpshek has quit []
iliketurtles has joined #ruby
SiliconDon has quit []
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
wallerdev has quit [Quit: wallerdev]
oneawayman has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
mengu has joined #ruby
<Killa>
Hi. I am trying to measure memory footprint of my rails app, I'm measuring the overall kilobytes of the process with method found at https://gist.github.com/pvdb/6240788#file-process_rss, which is returning "203,628 kilobytes". I would expect all of that to be stored in objects, but ObjectSpace.count_objects[:TOTAL] returns only 792372 objects. Every object weights 40 bytes, which sums up to ~30 megabytes of objects. Do I calculate the obje
sambao21 has quit [Quit: Computer has gone to sleep.]
<Killa>
Can anyone tell where should I look for the missing memory?
Shidash has joined #ruby
<LiquidInsect>
where are you getting 40 bytes from?
CorySimmons has quit [Quit: Zzz...]
bluenemo has joined #ruby
<Killa>
LiquidInsect: I've read that somewhere. Is that not accurate?
<LiquidInsect>
40 bytes might be the overhead alone
echevemaster has joined #ruby
<LiquidInsect>
not counting additional instance variables, the actual data in each
zigomir has quit [Ping timeout: 265 seconds]
<RubyPanther>
objects take up a varying amount of memory. Fact.
lex_functor has quit [Quit: Leaving]
viscera has joined #ruby
<LiquidInsect>
having no idea what your objects are, I can't tell you how big each one would be
<LiquidInsect>
yes
chipotle has joined #ruby
nanoyak has joined #ruby
<Killa>
The page you mentioned and countless different, where they say, that ruby objects weight 5 words
<LiquidInsect>
ok
<LiquidInsect>
but that's just
<LiquidInsect>
Object.new
<toretore>
a string is a single object, but it's not going to be a constant 40 bytes
<LiquidInsect>
like, empty
<LiquidInsect>
right
<RubyPanther>
And many objects will only be represented in ObjectSpace by some overhead, a pointer, and a pointer to a C function that frees whatever memory the object uses.
cover has quit [Ping timeout: 265 seconds]
smathieu has quit [Remote host closed the connection]
<Killa>
allright than, so I am calculating the memory in a wrong way
<Killa>
cool, that's something : ]
smathieu has joined #ruby
eka has joined #ruby
<Killa>
so, that also means I can judge the memory footprint of methods by number of allocated objects, right?
<RubyPanther>
Killa: What I do for overall usage is I turn off all my swap, and then measure resident memory
<RubyPanther>
Right, you can't judge the memory footprint of methods through any sort of rule of thumb, only through measuring actual memory usage according to the operating system
smathieu has quit [Remote host closed the connection]
jackneill has quit [Ping timeout: 240 seconds]
chrisramon has quit [Client Quit]
derek_c has joined #ruby
smathieu has joined #ruby
<Killa>
I guess I will have to play with new features from 2.1.0
senayar_ has quit [Remote host closed the connection]
<Killa>
Thanks a lot, everyone
chipotle has quit [Client Quit]
CorySimmons has joined #ruby
beneggett has joined #ruby
chipotle has joined #ruby
asteros has joined #ruby
wallerdev has joined #ruby
chichou has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.2]
greggroth has joined #ruby
Jabberish has quit [Read error: Connection reset by peer]
djbender has quit [Quit: djbender]
alexju has quit [Remote host closed the connection]
alexju has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hobodave has quit [Quit: Computer has gone to sleep.]
alexju has quit [Remote host closed the connection]
dmead has joined #ruby
<dmead>
hey boys and girls
<Authenticator>
Does anyone know how to disable SimpleCov in a subprocess? My forking tests are dying with coverage on.
tjr9898 has quit [Remote host closed the connection]
<dmead>
if i want to call another process and collect it's output as it happens, whats the best thing to do?
CorySimmons has quit [Quit: Bye!]
<jhass>
dmead: IO.popen I guess
<apeiros>
dmead: or Kernel#spawn
tjr9898 has joined #ruby
<jhass>
that is if as it goes means you don't want to block until it exited
greggroth has quit [Ping timeout: 255 seconds]
<benzrf>
hmmmmmm
hopkin has quit []
<benzrf>
anybody know if there's a remote pry derivative that allows for multiple conns that DOESNT require eventmachine?
<benzrf>
id rather use celluloid i think
shlant has quit [Ping timeout: 255 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
<apeiros>
funny that a remote pry solution would use EM
<apeiros>
given that EM is pretty invasive
Lewix has joined #ruby
<benzrf>
yeah :[
<jamto11>
does anyone know how to turn a time like this "2014-03-19 05:00:00 +0100" to "2014-03-19 06:00:00" ?
<benzrf>
i would just use remote-pry but it doesnt really support doing anything but suspending
bluenemo has joined #ruby
<toretore>
pry-remote-em is made specifically for em apps
<benzrf>
hmmmm
<apeiros>
toretore: ah, lol, yeah ok, I guess that makes sense :D
<benzrf>
the thing is that if i spin off multiple remote-pry's in threads, they dont play well
<benzrf>
they take over each others stdouts, and stuff
<toretore>
jamto11: first, convert the string into a Time, then use Time#strftime to create the string you want
<dmead>
k thanks
<toretore>
benzrf: what are you using it for?
<benzrf>
Quick
chichou has joined #ruby
wallerdev has quit [Quit: wallerdev]
<jamto11>
i have tried that but havent been able to get the +0100 at the end to change the rest of the time
<apeiros>
man! I really should work on my sill automaton. procrastinating this for like forever :-S
cescalante is now known as ce_afk
<apeiros>
*silly
<benzrf>
it's owrking OK right now
<benzrf>
*working
Lewix has quit [Remote host closed the connection]
<benzrf>
but my current solution feels a tad messy o.o
mansi has quit [Read error: Connection reset by peer]
<benzrf>
anyway...
smathieu has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carraroj has quit [Quit: Konversation terminated!]
<toretore>
jamto11: explain "tried"
<toretore>
code pls
mansi has joined #ruby
smathieu has joined #ruby
Stalkr_ has joined #ruby
<jhass>
jamto11: also how are those two equivalent? is the second one supposed to be in UTC+2?
havenwood has joined #ruby
<toretore>
you have a cet time represented in a string and you want to create another string representing that time as utc without tz information
<toretore>
oh
x1337807x has quit [Ping timeout: 264 seconds]
<toretore>
it's not utc
x1337807_ has joined #ruby
<jhass>
not, that'd be 4:00
<benzrf>
i need some way to start a remote-pry-em client, but have it send a command or two before giving a prompt to a user
<toretore>
fuckin timezones
<benzrf>
anybody know if theres a hook for that?
<apeiros>
ruby Time + timezones = mess
Es0teric has quit [Ping timeout: 240 seconds]
<jamto11>
the thing is it used to be utc zulu then i changed it to non-utc, but i cant get rid of the fuken +400
<apeiros>
sadly, rubys time classes still suck.
<apeiros>
somebody should pay me to finish chronos :-p
<jamto11>
because redshift's convert_timezone thing ignores that
<toretore>
jamto11: you are not making any sense
Speed has joined #ruby
<jhass>
apeiros: do some crowdfunding! :P
<apeiros>
jhass: NO TIME!
michael_lee has quit [Ping timeout: 255 seconds]
<apeiros>
I hate time, really. I mean, my lack of it :(
<jamto11>
ill make a gist
jollyy has joined #ruby
<benzrf>
redshift ftw
newUser1234 has joined #ruby
bluenemo has quit [Ping timeout: 255 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
ianfleeton has joined #ruby
cover has joined #ruby
Es0teric has joined #ruby
jamesaanderson has joined #ruby
smathieu has quit [Remote host closed the connection]
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bricker>
jamto11: so, just to be clear, you want to convert the time to UTC and then add two hours to it?
<jamto11>
js autoconverts the frontend to zulu time and i need to handle it on the backend
wallerdev has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<toretore>
jamto11: so what is the *real* time?
<jhass>
jamto11: converts it from what?
<toretore>
you don't have your data in order
sambao21 has joined #ruby
macmartine has joined #ruby
<bricker>
omg is this fullcalender... if it is I had this problem like 6 years ago
<jhass>
jamto11: and by convert you mean overrides the timezone without adjusting the time or really converting it?
<jamto11>
it really converts it
mehlah has joined #ruby
<jamto11>
datepicker
<toretore>
jamto11: then why are you adding 2 hours to it?
<chichou>
I've done Time.parse time and it returned what you need
<jamto11>
sorry its supposed to be 4:00
<toretore>
i have no idea what it is you're doing here
<toretore>
you have an iso8601 formatted time
_riz_ has joined #ruby
<toretore>
and then?
Olipro has joined #ruby
echevemaster has quit [Quit: Leaving]
<toretore>
you want a string that says "2014-03-19 04:00:00 +0000" ?
<_riz_>
I'm not sure this is the right way to ask this question, but does anyone know the difference between $stdout.puts and puts ?
<toretore>
from one that says "2014-03-19T04:00:00.000Z" ?
greggroth has quit [Ping timeout: 265 seconds]
<chichou>
puts default to STDOUT
<shevy>
_riz_ I think these would seem the same
<shevy>
STDOUT is just assigned to $stdout
<_riz_>
I would think puts, by default, would use stdout, but I'm having a hard time grabbing it when overriding $stdout.write
<shevy>
aha
<jamto11>
the iso8601 worked lol..
<jamto11>
thanks
<_riz_>
shevy, chichou yeah, that's what I would have thought
<shevy>
well
<shevy>
.write seems to be like print
<toretore>
_riz_: what are you trying to achieve?
<_riz_>
what I'm doing is trying to split stdout
<_riz_>
like "tee"
<_riz_>
where it goes both to stdout and a file
<shevy>
hmm
<toretore>
_riz_: for what reason?
<_riz_>
what I've done works for $stdout.puts but not puts
<benzrf>
gah
<_riz_>
(also apparently not for stuff called with ``)
<benzrf>
how do =[
<toretore>
replace STDOUT with a proxy that forwards to both $stdout and your file
nisstyre has joined #ruby
jlast has quit [Remote host closed the connection]
<toretore>
it's a bad idea, but that's how you'd do it
<_riz_>
Where can I read more about STDOUT?
<toretore>
it's just a constant containing the same IO as $stdout
<Mon_Ouie>
$stdout is the one you have to change
<toretore>
yeah, might be the other way around
<Mon_Ouie>
STDOUT being a constant it should not be changed
toastynerd has joined #ruby
<benzrf>
<$ is a thing in haskell
<_riz_>
what I really want is a ruby implementation of dup2
<benzrf>
they dont have $> tho
<benzrf>
afaik
<_riz_>
but googling has come up empty
<_riz_>
(well, actually, with the technique I'm using)
banister has joined #ruby
<havenwood>
think of STDOUT as the placeholder, and $stdout as the thing to fiddle with. capturing output from subshells is tricky, good ways to do it with IO.pipe
bhaak has quit [Ping timeout: 252 seconds]
iliketurtles has quit [Quit: zzzzz…..]
<havenwood>
_riz_: RubyTapas episode 29 (which unfortunately is not one of the free ones) covers the issue really nicely.
Shidash has quit [Ping timeout: 265 seconds]
supermarin has joined #ruby
derek_c has quit [Ping timeout: 240 seconds]
greggroth has joined #ruby
iliketurtles has joined #ruby
<havenwood>
We should ask Avdi to add that one to the free list, because it does come up and I don't know of another good writeup on the subject.
sigurding has quit [Quit: sigurding]
patrick99e99 has joined #ruby
evenix has quit [Remote host closed the connection]
chris_thomson has joined #ruby
<havenwood>
Though if the $9 for all episodes is a hardship just send a postcard asking for it free. There's a nice Ruby tradition of "free if you send a postcard asking" that helps for those short on cash! :)
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monkegji_ has quit [Remote host closed the connection]
monkegjinni has joined #ruby
Killa has quit [Quit: Page closed]
wallerdev has quit [Quit: wallerdev]
snath has quit [Ping timeout: 265 seconds]
brianpWins has quit [Quit: brianpWins]
patrick99e99 has quit [Ping timeout: 255 seconds]
bthesorceror has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benzrf>
Mon_Ouie: you there?
axsuul has joined #ruby
benlieb has quit [Quit: benlieb]
brianpWins has joined #ruby
sigurding has joined #ruby
<xybre>
benzrf: What is <$ other than unggogleable?
greggroth has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
<benzrf>
v <$ f = fmap (const v) f
monkegjinni has quit [Ping timeout: 264 seconds]
<havenwood>
I was gunna say, in Ruby nothing.. :P
rahult has joined #ruby
zachallett has quit [Read error: Connection reset by peer]
<havenwood>
my brain transposed to $< initially though, AFGF!
zachallett has joined #ruby
<benzrf>
haha
<benzrf>
<$ can be handy
oneawayman has quit [Ping timeout: 240 seconds]
<benzrf>
it looks wrong to me though
<benzrf>
i feel like the arrow should be toward the functor
rahult_ has joined #ruby
<benzrf>
plus the unwrapped side is the side toward the functor
linojon has quit [Quit: linojon]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
jorts has quit [Ping timeout: 265 seconds]
jorts has joined #ruby
p4tuxx is now known as p4tux
snath has joined #ruby
mansi_ has joined #ruby
rahult has quit [Ping timeout: 240 seconds]
mansi has quit [Read error: Connection reset by peer]
<bricker>
<$ is an ice cream cone obviously
<shevy>
lol
<havenwood>
bricker: money flavored
<Mon_Ouie>
benzrf: Yes?
<havenwood>
benzrf: No!
<Mon_Ouie>
xybre: hoogle
<xybre>
Mon_Ouie: whoogle?
mansi_ has quit [Remote host closed the connection]
<Mon_Ouie>
hoogle!
<benzrf>
Mon_Ouie: hey, i dont suppose theres any way you could somehow fix pry-remote to be able to have multiple servers running at once?
<benzrf>
>->
wallerdev has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
<Mon_Ouie>
You can have multiple ones listening to different ports (not with a single call to pry_remote though)
<benzrf>
u sure?
<benzrf>
i think i tried that and it bugged out
<xybre>
Mon_Ouie: Interesting. I wonder what it says about a language that is so symbol ehavy that it requires a special search engine.
<benzrf>
xybre: it's really not
<benzrf>
xybre: the special search engine is so you can search types and stuff
f0ster has joined #ruby
<benzrf>
symbols are a bonus
<benzrf>
the majority of haskell code is no more symbolly than RubyPanther
<benzrf>
*ruby
<benzrf>
unless you're using lens with all the operators or something o=
<RubyPanther>
And I'm not very symbolly
derek_c has joined #ruby
maroloccio has quit [Ping timeout: 252 seconds]
maroloccio2 has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
<benzrf>
Mon_Ouie: yeah
workmad3 has joined #ruby
<Mon_Ouie>
benzrf: Maybe you created them all in the same thread and so you had to wait for one to finish before the other started? You'd need to run each call to pry remote in a separate thread
<xybre>
benzrf: I just see a lot of stuff like (a : t@(b:_)) = (a+b)
<benzrf>
if i start multiple concurrent pry-remotes
<benzrf>
the second connection fails to load properly
greggroth has joined #ruby
<RubyPanther>
In fact I cringe whenever I see symbol used as data and converted to a string and displayed to a user, "Aiiiiiieeeeeeeeeeeeeeee"
<benzrf>
and the 'connected' message shows up in the first one
<benzrf>
xybre: that's just pattern matching
<benzrf>
xybre: like destructuring assignment
juarlex has joined #ruby
<benzrf>
a:b matches a list where a is the first element and b is the rest
mansi has quit [Ping timeout: 265 seconds]
sdelmore has quit [Quit: Leaving.]
<benzrf>
the @ is for pulling part of a pattern into a var
<benzrf>
given:
<benzrf>
(a:t@(b:_)) = [1, 2, 3, 4]
<benzrf>
a == 1
<Mon_Ouie>
Hm, I don't know why it happens. I'm starting to feel like using DRb for that was a bad idea, makes it harder to understand those types of issues.
<benzrf>
t == [2, 3, 4]
<benzrf>
b == 2
<benzrf>
Mon_Ouie: hmmm
charliesome has joined #ruby
<xybre>
Ah okay, pattern matching syntax. Like Ocaml. It's so dense yet sparse on semantic content that it throws me off out of context.
<xybre>
I'm actually pretty fond of data destructuring, but it always feels weird to actually do.
<xybre>
I can never decide if I want more than Ruby has or not.
<benzrf>
xybre: do some haskell and you will find that the answer is you do
<benzrf>
=)
<benzrf>
haskell has general immutability and lack of side effects tho
jason__ has joined #ruby
<benzrf>
so destructuring is pretty damn important
<benzrf>
it's the only primitive way to take data out of something
petey has quit [Ping timeout: 268 seconds]
thesheff17 has quit [Quit: Leaving]
<xybre>
I also don't like how many operations it sometimes takes in Ruby to do something that I know is conceptually simple.
chipotle_ has joined #ruby
greggroth has quit [Ping timeout: 264 seconds]
<viscera>
11 "getting started" guides, and no way to distinguish which is best... i think i should probably use Why's for the lulz
brunoro has joined #ruby
<xybre>
There's a lot of invisible, but real temporary objects being created and immediately GC'd. It jsut sorta bugs me.
Fire-Dragon-DoL has joined #ruby
<benzrf>
viscera: what other langs do you know?
sigurding has quit [Quit: sigurding]
<xybre>
I like Why's guide personally. But some people like super format stuff.
<viscera>
benzrf: little bits of lots...
Fire-Dragon-DoL has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
<benzrf>
viscera: python?
<benzrf>
java?
<benzrf>
C?
<apeiros>
xybre: the moment you worry about such things is the moment you lost
<benzrf>
haskell?
workmad3 has quit [Ping timeout: 265 seconds]
Fire-Dragon-DoL has joined #ruby
<havenwood>
potion?
<benzrf>
xybre: haskell has some interesting abstractions
<benzrf>
like monads =D
<viscera>
python, java, C, bash, asm, perl
jorts has quit [Quit: jorts]
<benzrf>
neat.
chipotle_ has quit [Read error: Connection reset by peer]
<benzrf>
viscera: any lisp?
<apeiros>
xybre: focus on understandable, maintainable and readable code. care about performance when it's too slow.
<viscera>
a little
chipotle_ has joined #ruby
<benzrf>
viscera: ok, you probably already know most of the basic concepts in ruby
zxq9 has quit [Quit: Konversation terminated!]
teddyp1cker has joined #ruby
<benzrf>
viscera: ruby's OOP is more like java's than python's
jorts has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
<benzrf>
but it's still fairly different
jason__ has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 264 seconds]
<havenwood>
Ruby's OOP is more like OOP than Java's. :P
jason__ has joined #ruby
<benzrf>
viscera: ruby objects have an internal set of instance variables, like attributes on python objects, but you can only see them from inside methods
<benzrf>
viscera: foo.bar is ALWAYS a method call
<xybre>
apeiros: I understand. And most of those temp variables are small and have very little impact so I don't worry about them too much, but it lends itself to some seriously procedural code, or else dense and unreadable object diving. A specific example of this is dealing with large amounts of semistructured data, API responses or legacy databases, dump files, etc.
<benzrf>
viscera: syntax is fairly perlish; you can leave off parens on methods, there's 'unless', and there's postfix if/unless
<benzrf>
viscera: as in lisp, everything is an expression.
<benzrf>
for example:
<benzrf>
def foo(n)
<benzrf>
if n > 3
<benzrf>
true
<benzrf>
else
<benzrf>
false
<apeiros>
xybre: that's what I'm saying - focus on the code, not on its performance implications.
<benzrf>
end
funktor has quit [Remote host closed the connection]
<benzrf>
end
<benzrf>
obviously you'd just write n > 3
<benzrf>
but the point is that the if is an expression
<apeiros>
benzrf: >3 lines go to paste service
<benzrf>
apeiros: right sorry
<benzrf>
viscera: like in lisp, the result of a block of code is the last expr in it
zxq9 has joined #ruby
<benzrf>
viscera: also like in lisp, a lot of methods take functions, which you pass as 'blocks'
<benzrf>
which are basically similar to lambdas
chipotle has joined #ruby
toastynerd has quit [Remote host closed the connection]
chipotle has quit [Read error: Connection reset by peer]
<benzrf>
Mon_Ouie: since im having issues with multiple pry-remotes, and I kinda wanna not use EM, got any suggestions for what I should do?
<viscera>
benzrf: okay... thanks...
chipotle has joined #ruby
<benzrf>
viscera: ;p
<benzrf>
viscera: feel free to try _why's
teddyp1cker has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby
<benzrf>
viscera: it gives a fairly good general feel
<benzrf>
viscera: but it's a bit light on detailed explanations of how things work
<viscera>
benzrf: i started with it years ago, but then got sidetracked and/or lost interest, as i do
<havenwood>
viscera: be sure to read it along with the soundtrack
<benzrf>
havenwood: huh
chipotle_ has quit [Ping timeout: 265 seconds]
jason__ has quit [Ping timeout: 255 seconds]
<Mon_Ouie>
I'm not really sure, loading pry-remote-em probably is the only way without writing your own code but if you don't want to use EM then…
<xybre>
apeiros: I can honestly say I've never had an issue with invisible objects outside of an n++ scenario, but the resulting code doesn't end end looking clean or OO.
dapz has quit [Read error: Connection reset by peer]
<benzrf>
bugging more people to look @ quick
<benzrf>
:-D
<xybre>
apeiros: Hmm, perhaps. What I'm saying is that I don't like the data constructs Ruby gives me because they are both ugly and inefficient. If they were not ugly or not inefficient it wouldn't bug me so much.
<banister>
benzrf cool
CreativeEmbassy has quit [Quit: FO SHO]
<apeiros>
xybre: then make proper classes
<apeiros>
relying on just hashes and arrays is probably what makes your code ugly
chipotle has quit [Ping timeout: 268 seconds]
<benzrf>
Mon_Ouie: once you bundle install, you should be able to `require './service'; Quick::Service.run`
ce_afk is now known as cescalante
chipotle_ is now known as chipotle
<benzrf>
oh wait
<benzrf>
Mon_Ouie: gotta pass it a dirname to mount on my bad
<banister>
benzrf Mon_Ouie is a french magician
<banister>
the rimbaud of ruby (as he's known around the mean streets of brugges)
<benzrf>
!!!
<benzrf>
oops i mean <!DOCTYPE html>
<benzrf>
</haml_joke>
derek_c has quit [Quit: Leaving]
<xybre>
apeiros: Classes are porrly suited to semistructured data. Especially if the data changes a lot. Whats required then is to write a DSL which walks an AST of parsed information since Ruby's built in data types are not up to the task.
<Mon_Ouie>
Btw, I tried it with a directory that didn't exist (I thought it would create the directory itself too) and I can't ^C it
msmith_ has joined #ruby
brianpWins has quit [Quit: brianpWins]
<graft>
benzrf: there's no need for closing tags, just un-indent.
<apeiros>
xybre: instead of whining about lacking datatypes - why not go and build them?
<benzrf>
Mon_Ouie: oopsie
sailias has joined #ruby
<banister>
xybre what datatype are u looking for (that exists in another language)
<slash_nick>
graft: outdent you mean?
<benzrf>
Mon_Ouie: the correct way to shut it down is as follows:
<xybre>
I'm hardly whining. The problem is not the data types.
<benzrf>
Mon_Ouie: i am using brb atm because EM :\
<xybre>
It is possible to create a class per "node" and try to have that class understand itself, tokenize and associate a class with each node and then recusively call its nested nodes in the same fasion. I've done this, but its a lot of excessive overhead.
andy___ has joined #ruby
<benzrf>
xybre: use haskell :D :D :D
bilbo_swaggins has joined #ruby
<benzrf>
xybre: it is absolutely ideal for this
<benzrf>
parsec is fantastic for parsing, and ADTs sound like something youd want
andy___ is now known as Guest13621
<benzrf>
Mon_Ouie: got it running on an extant dir?
jhass is now known as jhass|off
axsuul has quit [Ping timeout: 268 seconds]
<Mon_Ouie>
Yes, I tried pry-remote-em to connect, doesn't seem to output correctly though
<Mon_Ouie>
undefined method `<<' for #<PryRemoteEm::Server::EM_CONNECTION_CLASS:0x00000004f0ed40>
TigerWolf has joined #ruby
Avahey_ has joined #ruby
<xybre>
benzrf: Right and for data structure exploration functional languages shine. Haskell and Ocaml are ones I've explored as being good tools for that job, and I'm currently writing a bit in Rebol which is quite nice if less well known.
<Mon_Ouie>
(when I try to eval anything)
danno1 has joined #ruby
<benzrf>
ive heard of rebol
<benzrf>
Mon_Ouie: huh
<benzrf>
Mon_Ouie: it works on my end o-o
cescalante is now known as ce_afk
<benzrf>
Mon_Ouie: wheres the error originating from?
<Mon_Ouie>
It does run the code though, if I try to use puts it will display it on the process that started the server
freezey has quit [Remote host closed the connection]
<bilbo_swaggins>
xybre, what do you mean by exploration?
<benzrf>
huh...
jobewan has quit [Quit: Leaving]
<bilbo_swaggins>
exploring new ideas?
<Mon_Ouie>
I can't easily tell, if I puts $! it's already gone
<benzrf>
Mon_Ouie: i have == 0.75
<benzrf>
*0.7.5
itadder has joined #ruby
<Mon_Ouie>
[pry-remote-em] remote is PryRemoteEm 0.7.5 pryem
<benzrf>
huh...
<benzrf>
Mon_Ouie: anyway.
nateberkopec has quit [Quit: Leaving...]
<benzrf>
Mon_Ouie: if you cd into the mount dir, you should see the module hierarchy as directories
parduse has quit [Ping timeout: 252 seconds]
<Mon_Ouie>
Oh! That's neat
<xybre>
bilbo_swaggins: given a large set of semistructured data, find the paths to the values you want, and then use thsoe paths to extract the values you need. An example of this would be some of the traditional web services that dump large data sets with no standard conventions. Pretty much any AST fits this specification as well. Old databases, proprietary file formats, all sorts of fun stuff.
<benzrf>
if you create any .rb file in a dir, all of the code in it will be evalled in that dir's corresponding module each time you save
<benzrf>
HOWEVER
<benzrf>
if the file is not named header.rb, the code will be rejected if it is not only method defs
cpruitt has quit [Quit: cpruitt]
<benzrf>
so that you dont accidentally do effectful stuff
nanoyak has quit [Quit: Computer has gone to sleep.]
<benzrf>
try making a new class in your pry, then editing methods in it live =D
<Mon_Ouie>
What about meta programming stuff?
<benzrf>
ill work something out later -.-
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
<benzrf>
ITF there will be support for things like opening up a pry in the current dir's module
<benzrf>
including onto a persistent instance
<benzrf>
and the big one is
* benzrf
drum rolls
<benzrf>
integration with dmtcp
<benzrf>
=]
pu22l3r has quit [Remote host closed the connection]
S0da has joined #ruby
r0nin has joined #ruby
Xeago has joined #ruby
binaryplease has joined #ruby
<benzrf>
Mon_Ouie: anyway, what kinda project will have significant amounts of code outside of method defs?
<benzrf>
Mon_Ouie: i guess something small in sinatra maybe?
pu22l3r has joined #ruby
<Mon_Ouie>
Well it could have helpers like attr_accessor that it defines and uses
<benzrf>
yeah, so put those in header.rb
<benzrf>
d:
<benzrf>
probably not a ton of em
bricker has quit [Quit: leaving]
<Mon_Ouie>
Oh, ok, I'd missed that bit
VTLob has quit [Quit: VTLob]
<benzrf>
kk
<benzrf>
also gonna be a thing:
<benzrf>
easy api for eval in the running process
nisstyre has quit [Quit: WeeChat 0.4.3]
<benzrf>
vim plugin?
SCommette has quit [Quit: SCommette]
pu22l3r has quit [Remote host closed the connection]
<benzrf>
Mon_Ouie: btw, you can see what version of each file was most recently evaled by looking at the autocreated foo.in_use.rb file for foo.rb
smathieu has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<benzrf>
it gets updated when code from foo.rb is loaded, stays the same when not
<benzrf>
potentially also useful for indicating whether changes are currently reflected in the process
crystal77 has joined #ruby
smathieu has joined #ruby
jorts has quit [Quit: jorts]
m0s^away is now known as m0s
<Mon_Ouie>
I don't know if it's related to fuse but if you try to ls a module that doesn't contain any classes it says 'no such file or directory'
Xeago has quit [Ping timeout: 265 seconds]
bilbo_swaggins has left #ruby ["Leaving"]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smathieu has quit [Remote host closed the connection]
<benzrf>
oh?
<benzrf>
example?
smathieu has joined #ruby
ahawkins has quit [Quit: leaving]
sputnik13net has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Mon_Ouie>
ls <that dir>/Object => ls: cannot access tmp/Object: No such file or directory
greggroth has joined #ruby
<benzrf>
o-O
<benzrf>
is it still running?
<Mon_Ouie>
Yes, it does have an error, not sure if it's related
northfurr has joined #ruby
funburn has joined #ruby
<Mon_Ouie>
ERROR: Exception #<NoMethodError: undefined method `[]' for nil:NilClass> not an Errno:: !respond_to?(:errno)
jorts has joined #ruby
<benzrf>
o_o
<benzrf>
line origin?
<Mon_Ouie>
Comes from getxattr in fuse, the call comes from quick/service.rb:22:in `block in run' in your code
<benzrf>
kk
freerobby has quit [Quit: Leaving.]
alexherbo2 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachallett has quit [Remote host closed the connection]
macmartine has quit [Remote host closed the connection]
<benzrf>
uh?
<benzrf>
hmm
crystal77 has quit [Client Quit]
<benzrf>
aha
<benzrf>
is your default ls different from just ls --color=auto
hfp has quit [Remote host closed the connection]
<Mon_Ouie>
ls: aliased to ls --color=aut
siwica has quit [Quit: siwica]
<benzrf>
hmm
<Mon_Ouie>
(well I didn't past the 'o' but you've probably guessed it's there)
nanoyak has joined #ruby
<benzrf>
haha
arubincloud has quit []
<benzrf>
yeah the issue is that i misimpl'd a method
<benzrf>
[i think!]
rainmanjam has quit [Remote host closed the connection]
tectonic has joined #ruby
michaeldeol has joined #ruby
<benzrf>
Mon_Ouie: it expects a hash from xattr but it got nil
<benzrf>
:{
Voodoofish430 has quit [Quit: Leaving.]
jrhe has quit [Quit: Connection closed for inactivity]
apeiros has quit [Remote host closed the connection]
Vovko has joined #ruby
msmith_ has quit [Remote host closed the connection]
apeiros has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
nbezzala has joined #ruby
crystal77 has joined #ruby
Guest13621 has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 240 seconds]
yasushi has joined #ruby
tjr9898 has joined #ruby
tjr9898_ has joined #ruby
kevind has quit [Quit: kevind]
_riz_ has left #ruby ["Leaving"]
nowthatsamatt has quit [Quit: nowthatsamatt]
r0nin has quit [Remote host closed the connection]
tjr9898__ has joined #ruby
<shevy>
hmm
<shevy>
in a client like irssi, how do you colourize something like yo
<benzrf>
yo
brianpWins has joined #ruby
<Mon_Ouie>
There's a mode in here that disables the colors, isn't there?
<benzrf>
hello brianpWins
<shevy>
hmm
<Mon_Ouie>
Yes, it's mode +c
tjr9898 has quit [Ping timeout: 265 seconds]
Xiti has quit [Ping timeout: 265 seconds]
<shevy>
I am working on a minimal ruby IRC client, I wonder if and how I should enable colour support
<xybre>
shevy: In a terminal?
mikepack_ has joined #ruby
<shevy>
no, only for IRC
<shevy>
got the terminals well covered already :)
lkba has quit [Ping timeout: 255 seconds]
sprocket has left #ruby [#ruby]
<shevy>
well; so that others on IRC can see the colours
mansi has joined #ruby
<xybre>
You mean so I can type [red]this text is red[\red] or something?
Xiti has joined #ruby
<benzrf>
Mon_Ouie: i fixed that thing btw
<benzrf>
not pushed yet
newUser1234 has quit [Remote host closed the connection]
ValicekB has joined #ruby
shlant has joined #ruby
<shevy>
xybre precisely!
<shevy>
though typing [red] is probably not so convenient?
flowerhack has quit [Quit: Connection closed for inactivity]
abra has quit [Ping timeout: 265 seconds]
mikepack has quit [Ping timeout: 255 seconds]
mikepack_ has quit [Ping timeout: 255 seconds]
<Mon_Ouie>
(I'm not sure the one for the color is that practical. I don't think many people use colors often enough they'd remember what they are). Allowing the first letter instead of the number could help.
abra has joined #ruby
Hobogrammer_ has joined #ruby
greggroth has joined #ruby
<xybre>
I'd say skip adding colors to messages.
newUser1234 has quit [Ping timeout: 240 seconds]
<xybre>
I used mIRC back in the day and everyone did it. Totally sucked. I wouldn't mind parsing a subset of markdown for bold and italics though, like how google does.