<fowlduck>
essentially if I delay reading the output it is lost when the program exits
gnufied has quit [Ping timeout: 255 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
Ruby_Rocks_007 has quit [Ping timeout: 248 seconds]
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
choke has joined #ruby
Ruby_Rocks_007 has joined #ruby
username_ has joined #ruby
markholmes has joined #ruby
username_ has quit [Ping timeout: 264 seconds]
CloCkWeRX has quit [Ping timeout: 256 seconds]
catenthusiast has joined #ruby
gnufied has joined #ruby
<eam>
fowlduck: why are you using PTY?
catenthusiast has quit [Client Quit]
<fowlduck>
eam: to get around pipe buffering. I've used unbuffer for this in the past but that complicates killing the process I'm starting so I'm trying to use PTY instead
<tlahtoani>
I am trying to make HTTParty have a cookie jar
<tlahtoani>
But it doesn't want to work
<eam>
gross!
<tlahtoani>
I just need to store cookies
<tlahtoani>
This shouldn't be complicated
<eam>
tlahtoani: sorry not you :)
ramfjord_ has quit [Ping timeout: 252 seconds]
<eam>
fowlduck: not sure why that's not working
<fowlduck>
yeah, it's really odd :/
<eam>
when in doubt, strace
Guest67217 is now known as ged
ged is now known as Guest45177
<fowlduck>
ha, well
CloCkWeRX has joined #ruby
<fowlduck>
I think this might be an osx issue...
<fowlduck>
just tried it on ubuntu and it worked right
<Nilium>
When in doubt, have a staredown with the transistors.
<fowlduck>
when in doubt, burn it all down
<tlahtoani>
Ha!
<tlahtoani>
HTTPClient handles cookies
<tlahtoani>
Something HTTParty can't do :P
Guest69 has joined #ruby
railswebdev has joined #ruby
nankyokusei has joined #ruby
redhedded1 has joined #ruby
<fowlduck>
works on centos and linux
<fowlduck>
ffs
<fowlduck>
err, centos and ubuntu
FastJack has quit [Ping timeout: 240 seconds]
pilne has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 245 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
pilne has joined #ruby
BackEndCoder has quit [Excess Flood]
duderonomy has quit [Ping timeout: 255 seconds]
<fowlduck>
so since I need to run this on both Linux and OSX, PTY is out. boooooooo
<eam>
what's the command you're actually running?
<fowlduck>
I run a number of commands, typically transfer tools
<fowlduck>
file transfer, I mean
BackEndCoder has joined #ruby
<eam>
if it's stuff like rsync, consider recompiling them without stdio buffering
<eam>
or just use a different libc that doesn't buffer
dc4 has joined #ruby
<fowlduck>
I'm not sure how to do that
<eam>
so let's say your command calls printf
montanonic has joined #ruby
<fowlduck>
oh, wait, I can't recompile one of them, it's a binary from a vendor
<eam>
by default, printf writes to an in memory buffer in the process and then only sometimes calls write(2) to send data out the descriptor
brent__ has joined #ruby
<eam>
well, is it dynamically linked?
<eam>
because what you do is shim in a new printf() function
govg has quit [Ping timeout: 255 seconds]
<eam>
and instead of it being printf(), it's printf(); fflush()
hahuang65 has joined #ruby
<fowlduck>
that's an interesting way to solve it
raul782 has joined #ruby
<fowlduck>
although, I think just using unbuffer and then shelling out to ps to get the pid of the process I started will work well enough for my purposes
<eam>
:)
<eam>
c stdio layer is a travesty
vshjxyz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<tlahtoani>
Do people here use CRuby or JRuby?
djbkd_ has joined #ruby
raul782 has quit [Remote host closed the connection]
<tlahtoani>
Or some other Ruby idk
<fowlduck>
I use cruby
raul782 has joined #ruby
tolerablyjake has joined #ruby
<fowlduck>
eam: I'll take your word on that
enterprisey has joined #ruby
msmith has quit [Remote host closed the connection]
<fowlduck>
eam: and if the buffering issue is any indication, you're totally right
msmith has joined #ruby
<eam>
the buffering layer basically is the sole feature of the c stdio layer
vshjxyz has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
<tlahtoani>
I use JRuby so that I can compile to JVM bytecode and maintain interoperability with other JVM languages
redhedded1 has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
msmith has quit [Ping timeout: 252 seconds]
<eam>
tlahtoani: we use a bit of both
montanonic has quit [Ping timeout: 240 seconds]
msmith has joined #ruby
<tlahtoani>
Ideally I am going to move from Ruby to Clojure
<tlahtoani>
But Ruby is also maybe too nice
msmith has quit [Client Quit]
AndBobsYourUncle has quit [Remote host closed the connection]
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
redhedded1 has joined #ruby
juomo has quit [Ping timeout: 264 seconds]
marcdel has quit [Ping timeout: 260 seconds]
fowlduck has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
montanonic has joined #ruby
optiz0r has quit [Quit: No Ping reply in 180 seconds.]
harai_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
optiz0r has joined #ruby
<baweaver>
If you want something in the middle, Scala is a good language
govg has joined #ruby
JoshS has quit [Quit: Leaving]
marcdel has joined #ruby
harai_ has quit [Ping timeout: 276 seconds]
KensoDev has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
<tlahtoani>
Looked at Scala
<tlahtoani>
I want Clojure more
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
KensoDev_ has joined #ruby
KensoDev_ has quit [Client Quit]
nofxx has quit [Remote host closed the connection]
KensoDev has quit []
nofxx has joined #ruby
KensoDev has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
benlieb has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
maleghast has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 248 seconds]
AndBobsYourUncle has joined #ruby
maleghast has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
catenthusiast has joined #ruby
yfeldblu_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
benzrf has joined #ruby
benzrf has left #ruby ["WeeChat 1.7"]
patarr has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
AndBobsYourUncle has quit [Remote host closed the connection]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 264 seconds]
AndBobsYourUncle has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
duckpupp1 has joined #ruby
Guest45177 is now known as ged
harfangk has joined #ruby
ged is now known as Guest85971
duckpupp1 has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
patarr has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has joined #ruby
dc4 has quit [Ping timeout: 245 seconds]
maleghast has joined #ruby
rprimus has quit [Read error: Connection reset by peer]
blowfish has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
SamMG has joined #ruby
<SamMG>
Hello
jameser has joined #ruby
djuber has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
gix has quit [Ping timeout: 240 seconds]
SamMG has quit [Quit: Page closed]
ReK2 has quit [Quit: Konversation terminated!]
<blowfish>
does anyone have experience
<blowfish>
w/ cinch
<blowfish>
?
skweek has joined #ruby
<blowfish>
im trying to make a regex parsing command for my ircbot with the cinch logplus plugin
ReK2 has joined #ruby
gix has joined #ruby
Emmanuel_Chanel has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ckib16 has joined #ruby
terens_ has joined #ruby
ckib16 has quit [Client Quit]
terens has quit [Ping timeout: 245 seconds]
choke has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
bocaneri has joined #ruby
choke has quit [Client Quit]
bkxd has joined #ruby
ledestin has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
Derperperd has quit [Ping timeout: 255 seconds]
raul782 has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
dc4 has joined #ruby
jameser has joined #ruby
jameser has quit [Client Quit]
ecuanaso has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 240 seconds]
tolerablyjake has joined #ruby
GGMethos has quit [Ping timeout: 248 seconds]
acalycine has joined #ruby
AndBobsYourUncle has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
tristanp has quit [Ping timeout: 240 seconds]
terens has joined #ruby
FManTropyx has quit [Quit: Leaving]
bkxd has joined #ruby
nankyokusei has joined #ruby
terens_ has quit [Ping timeout: 255 seconds]
cout has quit [Ping timeout: 246 seconds]
cout has joined #ruby
gusrub has joined #ruby
arescorpio has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
johnny56_ has quit [Ping timeout: 264 seconds]
markholmes has quit [Quit: Leaving]
GGMethos has joined #ruby
nofxx has quit [Remote host closed the connection]
choke has joined #ruby
nofxx has joined #ruby
choke has quit [Client Quit]
johnny56_ has joined #ruby
Anonymoose2 has joined #ruby
Guest85971 is now known as ged
pilne has quit [Quit: Quitting!]
ged is now known as Guest77229
bigkevmcd has quit [Ping timeout: 255 seconds]
valeth has quit [Ping timeout: 240 seconds]
reverberations has quit [Ping timeout: 245 seconds]
raul782 has joined #ruby
bigkevmcd has joined #ruby
valeth has joined #ruby
montanonic has quit [Ping timeout: 248 seconds]
hahuang65 has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
raul782 has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 259 seconds]
nofxx has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Remote host closed the connection]
JHan has joined #ruby
AndBobsYourUncle has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
AndBobsYourUncle has quit [Remote host closed the connection]
c355e3b has quit [Quit: Connection closed for inactivity]
nowz has joined #ruby
arescorpio has quit [Quit: Leaving.]
AndBobsYourUncle has joined #ruby
ltd has quit [Ping timeout: 248 seconds]
montanonic has joined #ruby
ltd has joined #ruby
Derperperd has joined #ruby
pragmatism has quit [Quit: Connection.close!]
bkxd has quit [Ping timeout: 240 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KensoDev has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
ammar has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 240 seconds]
ammar has joined #ruby
djbkd_ has quit [Quit: Leaving...]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vshjxyz has joined #ruby
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
tristanp has joined #ruby
Liothen has joined #ruby
maleghast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
tlahtoani has quit [Quit: Connection closed for inactivity]
raul782 has quit [Remote host closed the connection]
grh has joined #ruby
hanmac has quit [Ping timeout: 240 seconds]
vshjxyz has quit [Ping timeout: 240 seconds]
maleghast has joined #ruby
nickjj has quit [Ping timeout: 252 seconds]
Ruby_Rocks_007 has joined #ruby
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nickjj has joined #ruby
ifctj has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
catenthusiast has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
<RickHull>
ljarvis, does slop support options like -p5, as opposed to: -p 5
<RickHull>
I can't tell from the README
AndBobsYourUncle has joined #ruby
reverberations has joined #ruby
<RickHull>
it's a little surprising that there are no examples of command line calls
djbkd has quit [Remote host closed the connection]
<RickHull>
i guess it's because it's just based on ARGV?
LoneHerm_ has joined #ruby
djbkd has joined #ruby
hanmac has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pezra has quit [Read error: Connection reset by peer]
Anonymoose2 has quit [Ping timeout: 240 seconds]
warrshrike has joined #ruby
<warrshrike>
hiya fellas
<warrshrike>
anyone use rubymine here?
<RickHull>
with slop 4 looks like no, and the failure mode is kinda ugly
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
JoshS has joined #ruby
<warrshrike>
RickHull: you tellin me bruh?
creat has quit [Ping timeout: 240 seconds]
<RickHull>
warrshrike, nope :)
djbkd has quit [Ping timeout: 248 seconds]
AndBobsYourUncle has joined #ruby
<RickHull>
earlier discussion
aryaching has quit [Ping timeout: 248 seconds]
<warrshrike>
okie
<warrshrike>
so anyone use rubymine here
Cohedrin_ has joined #ruby
bigtawm has joined #ruby
hotpancakes has joined #ruby
ByronJohnson has quit [Ping timeout: 258 seconds]
<bigtawm>
If I have an abstract method in one of my base classes does the second or greater child have to implement a method for that or is it only the first child that must implement the abstract method?
<RickHull>
generally there are no must-implements
hotpancakes has quit [Remote host closed the connection]
<RickHull>
generally ruby goes by duck typing
<bigtawm>
Okay so using the abstractmethod :somesymbol syntax does not force you to declare a method in the child class?
<RickHull>
hmmm, not familiar with that
<RickHull>
would be good to see an example
<bigtawm>
One second
ByronJohnson has joined #ruby
<bigtawm>
Im trying to implement a hash table, but the book im using has the hashtable class inherit from a container class which inherits from a abstractobject class which both have abstract methods.
<bigtawm>
I would send you the website but I cant link to one specific page
<RickHull>
how much ruby experience do you have?
Guest77229 is now known as ged
<RickHull>
ruby does not follow java style OOP. more like smalltalk OOP
<RickHull>
java/C++
ged is now known as Guest51986
duderonomy has joined #ruby
<RickHull>
you can layer on interfaces and must-implements
JHan has quit [Quit: WeeChat 1.0.1]
<RickHull>
but ruby does not really come with them
<bigtawm>
Okay I took a java OPP class this last semester so thats what I am trying to dev the hash table like this
<RickHull>
you can still enforce the behavior yourself as the programmer
<bigtawm>
Should I just scrap the function if I dont want it
<RickHull>
yeah, you can just decide on a good Hash signature
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
<bigtawm>
This is what I am using and it develops a class heiarchy where everything inherits from the ::object class
<bigtawm>
Im guessing I should not be implementing data structures like this lol
<RickHull>
well, if you ask me, class hierarchies suck
<RickHull>
i mean, in ruby everything-is-an-object
<RickHull>
and the system includes a pretty nice class hierarchy
<RickHull>
but hierarchies lock you in
<RickHull>
composition over inheritance is more acceptable these days
<bigtawm>
Yeah I dont see why this book is making me do this because then it makes me define <=> for a hashtable
<bigtawm>
and I dont see why I would have to do that
<RickHull>
yeah, there are likely some serious antipatterns in there
AndBobsYourUncle has joined #ruby
grh has quit [Ping timeout: 240 seconds]
<bigtawm>
Should I just implement the hash table as a container that does not inherit from anything and put the functionality directly in the hash table class?
<RickHull>
there is a school and methodology dedicated to that craft
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
<RickHull>
eh, just start with the hash table
<RickHull>
class MyTable # inherits from diddly
lxsameer has joined #ruby
<RickHull>
so, yeah :)
<bigtawm>
Okay so the HashTable class should outline the concrete MyHash class?
<RickHull>
i would just write one class that does what needs to be done
<bigtawm>
And MyHash < HashTable?
<RickHull>
then you can split it out later if need be
<warrshrike>
so anyone use rubymine here
<RickHull>
don't inherit from core or stdlib. make those things ivars or call into them as needed
Flonk has quit [Ping timeout: 256 seconds]
<bigtawm>
Cool Im going to use an array of linkedlists and dynamically allocate hash buckets as necesarry does that sound about right?
hotpancakes has joined #ruby
<RickHull>
sure. ruby has some tricks you can use, but you may want to avoid if this is an exercise
<RickHull>
i mean, ruby is great at Hashes already ;)
hotpancakes has quit [Remote host closed the connection]
<bigtawm>
Yeah this is for a data structures class so I have to build it on my own unfortunately
<RickHull>
it's a good thing
<bigtawm>
What tricks does ruby offer though?
<bigtawm>
Besides the built in hash function {}
<RickHull>
everything is an object, and everything has a #hash method
<RickHull>
that #hash method is an integer-like value for possible use in a hash table
ur5us has quit [Ping timeout: 240 seconds]
<bigtawm>
Oh so I can define a hash method in any class that will hash the object?
<RickHull>
if you use built in hash structures
<RickHull>
if you are using your own hash structures
<RickHull>
you could cheat and call #hash on the objects you want to store
<RickHull>
to shortcut the hashing process, yada yada
<RickHull>
forget I mentioned it
<bigtawm>
What happens when you have two of the same keys using the built in hash structure?
<RickHull>
collision and linked list is the standard answer. ruby's hashes are more sophisticated i'm sure
<RickHull>
they do some amortization stuff, etc
<bigtawm>
Okay so they handle collision for you?
amclain has quit [Quit: Leaving]
<RickHull>
yeah, but this isn't helping you with your exercise :)
<RickHull>
don't want to get off track
<bigtawm>
True but its good to know that ruby does that so I can implement hash structures in the future in personal projects :)
<RickHull>
does your assignment have a signature/profile for the hash? like functions/methods/calls it supports?
saneax is now known as saneax-_-|AFK
A_Drone has joined #ruby
<RickHull>
you can sketch out a class in ruby pretty easily and just try to implement all the methods. figure out what structures you need internally
hotpancakes has joined #ruby
<bigtawm>
My teacher gave us a hash function we have to use but we have a few required methods like insert search ect...
<bigtawm>
Basically an array of 20 buckets with 3 slots for data key values
<bigtawm>
If you fill a bucket then linkedlist to another
tolerablyjake has joined #ruby
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
<RickHull>
looking at the webpage, I would stay to stick with the course and ignore what I said earlier
<RickHull>
it's true that ruby won't enforce must-implements, but you can enforce that yourself
<bigtawm>
Yeah that website is something that I found on my own it is not part of my class
<RickHull>
I would go ahead and build out the class hierarchy
<RickHull>
oh ok
<bigtawm>
Would it be easier to avoid that and just implement it straight up?
<RickHull>
yep
<bigtawm>
Thats the way my teacher is teaching it but its a community college course and I want to challenge myself
<bigtawm>
I am in a discrete math class and my teacher gives us a euler project every week
<RickHull>
nice
<bigtawm>
I want to start doing a bunch and pushing them to my github
<bigtawm>
all in a euler repository
<bigtawm>
Good idea?
<RickHull>
yep, and it's easy to push your latest once it's set up
benlieb has quit [Quit: benlieb]
jeyraof has quit [Quit: This computer has gone to sleep]
<bigtawm>
Cool I want to start looking for summer internships in northern california, so I want to get some more stuff on my github
<bigtawm>
Thanks for all the help you probably saved me a ton of fustration
<RickHull>
no prob, glad to help :)
LoneHerm_ has quit [Remote host closed the connection]
<apeiros>
RickHull, bigtawm: don't forget eql?, Hash needs both #hash and #eql? to be defined meaningfully.
<RickHull>
what's the semantics of #eql? is this for testing identity? (like storing object `a` twice?)
<bigtawm>
what is #eql? is to comparing two keys?
<bigtawm>
it*
<apeiros>
RickHull: it's used to determine whether two keys are considered equal
mostlybadfly has quit [Quit: Connection closed for inactivity]
<apeiros>
and #hash is for the bucket selection
* apeiros
afk for ~30min
<bigtawm>
Question how should I set up a hashtable class for the most reuse? What should I abstract to hashtable and what should I define in myhash?
nankyokusei has joined #ruby
<bigtawm>
Is eql? used to determine collision? Then creat a linkedlist to avoid it?
<bigtawm>
create?
gigetoo has quit [Ping timeout: 258 seconds]
KensoDev has joined #ruby
<RickHull>
apeiros, hmmm... i thought if :foo is the key and :bar is the value, that :foo.hash gives an integer, and we already know how to compare integers
nankyokusei has quit [Ping timeout: 255 seconds]
<RickHull>
and we store :bar at :foo.hash
djbkd has joined #ruby
<RickHull>
now if we want to store :quux at :baz, and :baz.hash happens to match :foo.hash
<RickHull>
er, hmm..
aganov has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<bigtawm>
Yeah cause every hash function has to have some collision. How does ruby handle it built in?
ur5us has joined #ruby
<bigtawm>
Also does anyone have any tips on getting an internship writing ruby code? Im located in Sacramento/Bay Area
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull>
go to software meetups
<RickHull>
there are tons near you
Hobbyboy has quit [Ping timeout: 252 seconds]
maleghast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull>
shake people's hands, talk to them, bring some business cards
<bigtawm>
I was going to the local ruby one until I had to take a night class this semester which falls when they have the meetup every month :(
<RickHull>
even if they just have your email and github or something
phr34k has joined #ruby
maleghast has joined #ruby
gigetoo has joined #ruby
<RickHull>
go to some meetups in SF or Sac, it will be good just to get a sense of the vibe, what people are talking about
facest has quit [Ping timeout: 256 seconds]
immune has quit [Read error: Connection reset by peer]
johnny56 has joined #ruby
<bigtawm>
I'll have to look into SF meetups im sure there are better turnouts than the ones ive been going to in sac
<RickHull>
pick one night a month, stick to it
nofxxxx has joined #ruby
<RickHull>
get a buddy to come along, split parking and gas :)
nofxx_ has joined #ruby
harai_ has joined #ruby
<phr34k>
question - i have this problem with phusion installation on a server, but i have no real clue what this is telling me: http://pastebin.com/DjF4DTzn. I know the server was working before, and it likely stopped as a result of a update of sorts.
<ruby[bot]>
phr34k: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
johnny56_ has quit [Ping timeout: 264 seconds]
nofxx has quit [Ping timeout: 240 seconds]
<RickHull>
there is a yaml file for the redmine config
<RickHull>
and psych barfed on it, complaining about tabs and scalars
hotpanca_ has joined #ruby
nofxxx has quit [Ping timeout: 240 seconds]
maleghast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull>
probably have to sort this out with the phusion folks. it's not clear what the problematic file is
maleghast has joined #ruby
<RickHull>
psych is the yaml parser
<RickHull>
so it looks like a bad config file for redmine
<RickHull>
could have originated from something as simple as someone opening a file and inserting an errant <tab> char and saving it
hotpancakes has quit [Ping timeout: 252 seconds]
<phr34k>
ah that could make some sense, i wasn't really getting why it was going mad inside ruby internal libraries, because i'm pretty sure this server is running unattended w/o anybody working on it.
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
<phr34k>
maybe a internal gem or such has been updated and the config file is not strictly compliant anymore according specs
<RickHull>
could be
gigetoo has joined #ruby
catenthusiast has joined #ruby
Gayathri_ has joined #ruby
alex-s-77_ has joined #ruby
alex-s-77_ is now known as alexs-77
<apeiros>
RickHull: #hash is supposed to return an integer within a range. since that range is finite, it follows that it's impossible to have a unique value for each key
<apeiros>
RickHull: hence you need a mechanism to figure whether two keys are considered to be the same key, or different. that's why we have #eql?
<apeiros>
or as bigtawm correctly put it: #eql? exists to avoid collisions
catenthusiast has quit [Client Quit]
<apeiros>
bigtawm: the way ruby handles collisions changed in ruby 2.4, there are some blogs which explain how it's doing it in 2.4. there exist a couple of strategies for handling collisions
terens has quit [Remote host closed the connection]
<alexs-77>
Hi. I've got an array of values: a=%w{a b c}. Now I'd like to add a fixed string to all of these elements and get a string. String to add: "--param=". I'd like to get as a result: "--param=a --param=b --param=c". What's the best way to do this?
<bigtawm>
Would that be correct? Kinda new to ruby haha
<Rich_Morin>
Binding#local_variable_set will set the value of an existing local variable in a specified binding. Is there a way to create and set a variable?
<alexs-77>
there's no easier way, though, is there? :) I need that, to construct parameters for invoking a program. I'd have: cmd = "command-name cmd1 #{values["ipaddress"].map{|ip| "--ip-address=#{ip}"}} some-more-stuff"… Seems "complicated" ;)
gigetoo has joined #ruby
djbkd has quit [Quit: Leaving...]
<alexs-77>
oh, and i already forgot the ".join(" ")" there ;)
<bigtawm>
My teacher wants a bucket with 3 slots held in a array and once 3 slots are filled then an overflow bucket would be instanced
last_staff has joined #ruby
phr34k has left #ruby [#ruby]
hutch34 has joined #ruby
grh has joined #ruby
squ has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
acalycine has quit [Quit: bye]
AndBobsYourUncle has joined #ruby
aufi has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
nofxxxx has quit [Ping timeout: 240 seconds]
biberu has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
montanonic has joined #ruby
A_Drone has quit []
Mortomes|Work has joined #ruby
ur5us has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
Hobbyboy has joined #ruby
gigetoo has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
ta has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 245 seconds]
blaxter has joined #ruby
johnny56_ has joined #ruby
c_nick has joined #ruby
LoneHermit has joined #ruby
jshjsh has joined #ruby
DaniG2k has quit [Quit: leaving]
johnny56 has quit [Ping timeout: 264 seconds]
aufi has quit [Ping timeout: 260 seconds]
JoshS has quit [Ping timeout: 258 seconds]
gusrub has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
<c_nick>
I was planning to take teamcity backup but using teamcity's maintaindb does not ensure that the running builds could be backed up.
TvL2386 has joined #ruby
maleghast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyLobo has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 248 seconds]
aupadhye has joined #ruby
catenthusiast has joined #ruby
SesMan has joined #ruby
acalycine has joined #ruby
duckpupp1 has joined #ruby
maleghast has joined #ruby
bigtawm has quit []
duckpupp1 has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
aufi has joined #ruby
c_nick has quit [Quit: ciaos]
elifoster has quit [Quit: sleep]
Hobbyboy has quit [Ping timeout: 252 seconds]
frozengeek__ has joined #ruby
mark_66 has joined #ruby
harai_ has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby
ta has joined #ruby
Hobbyboy has joined #ruby
antgel has joined #ruby
ta has quit [Read error: Connection reset by peer]
davezd has joined #ruby
bweston92 has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
frozengeek__ has quit [Quit: frozengeek__]
vuoto has quit [Quit: Lost terminal]
harai_ has joined #ruby
renchan has joined #ruby
ta has joined #ruby
nofxx_ has quit [Ping timeout: 248 seconds]
nofxx has joined #ruby
aufi has quit [Ping timeout: 255 seconds]
terens has joined #ruby
gigetoo has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
acalycine has quit [Quit: bye]
larcara has joined #ruby
astrobunny has joined #ruby
hotpancakes has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 240 seconds]
acalycine has joined #ruby
Silthias1 has joined #ruby
matp has quit [Remote host closed the connection]
matp has joined #ruby
Silthias has quit [Ping timeout: 245 seconds]
Burgestrand has joined #ruby
aufi has joined #ruby
xen0fon has joined #ruby
Silthias1 has quit [Read error: Connection reset by peer]
Guest25994 is now known as ged
ged is now known as Guest51489
gigetoo has quit [Ping timeout: 264 seconds]
xen0fon has quit [Client Quit]
gigetoo has joined #ruby
<ljarvis>
RickHull: I can't remember, but the old slop had a config option to remove ambiguity around short groups of flags (e.g. -qv being the same as -q -v) vs -qv where v is the argument. It looks like it's just not supported
<ljarvis>
thanks for opening the issue, i'll see what i can do
armyriad has quit [Read error: Connection reset by peer]
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vshjxyz has joined #ruby
Silthias has joined #ruby
cibs has joined #ruby
redhedded1 has joined #ruby
armyriad has joined #ruby
frozengeek__ has joined #ruby
SesMan has quit [Read error: Connection reset by peer]
catenthusiast has joined #ruby
SesMan has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
SesMan has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
CloCkWeRX has joined #ruby
gigetoo has joined #ruby
<ljarvis>
hmm now i remember this is a really annoying issue
SesMan_ has joined #ruby
<blackbom1>
slop v4s API is way better than 3s, though.
<blackbom1>
3s is a bit weird sometimes.
<ljarvis>
yeah I agree, I removed loads of ambiguity and lots of meta shit that really wasn't necessary
<ljarvis>
it's much more explicit now. I really want to try and avoid adding more config options though
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anisha has joined #ruby
<blackbom1>
yeah, ton of options is just confusing.
CloCkWeRX has quit [Ping timeout: 258 seconds]
<ljarvis>
maybe in -qfoo, if -f is a valid flag then process all of them as flags, otherwise process "foo" as the argument to "-q"
<ljarvis>
*shrug*
nankyokusei has quit [Ping timeout: 260 seconds]
anisha_ has joined #ruby
flying has joined #ruby
<ljarvis>
still seems bad if you actually want it to be processed as an argument and also want a separate -f boolean flag. *closes text editor and goes back to work*
<apeiros>
ljarvis: there are also CLI tools where -flags work like --flags, e.g. '-help'
<ljarvis>
yeah slop supports that
<apeiros>
and yes, rather annoying that we have like a dozen different cli option styles :(
renchan has quit [Ping timeout: 260 seconds]
<apeiros>
ljarvis: ah ok
<ljarvis>
aye
patarr has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
<apeiros>
loved the tweet re "try `tool -h` fails, try --help, fails, try help, fails, -help - works. wtf." (don't remember the precise wording, but felt very familiar :D)
<ljarvis>
yeah, I believe the Go standard option parser only supports a single prefix hyphen
<apeiros>
also always lovely: "tool -h -> please use `man tool`" - d'uh, why didn't you exec it for me?
<ljarvis>
exactly
blackwind_123 has joined #ruby
smswmedia has joined #ruby
<ljarvis>
also, I always saw -abc being parsed as -a -b -c more popular, perhaps because I use curl so much
<apeiros>
I've had more tools like that too
<apeiros>
iirc one of the big divides is GNU vs. BSD. not sure though.
<apeiros>
and many apple tools use the -single_flag style, no idea where that originated from.
<ljarvis>
yeah, i did my research when i built slop v3, but that was also the cause of it being a mess :)
<apeiros>
also that nice divide between `--flag=value` vs. `--flag value`
<ljarvis>
"support all the things!"
<ljarvis>
yep
<apeiros>
personally I prefer =, it's more explicit.
<apeiros>
easier to parse and raise
<ljarvis>
slop supports that because it's sort-of easy, but I always wonder which I should use when I use cl tools
gigetoo has quit [Ping timeout: 255 seconds]
<apeiros>
but I have seen more without
<ljarvis>
yep me too
<ljarvis>
--flag=value should just be a standard. Removes a *lot* of ambiguity
patarr has quit [Ping timeout: 240 seconds]
<apeiros>
agreed
gigetoo has joined #ruby
<apeiros>
my favorite standard: `--flag=value` + `-abc == -a -b -c` (no arguments allowed when combining)
<apeiros>
not sure about "multiple values for a flag". i.e. `-I lib -I../other/lib` vs. `-I=lib,../other/lib` vs. whatever I forgot
<ljarvis>
i have not had enough coffee for this
astrobunny has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
<apeiros>
:D
<apeiros>
not important anyway
<apeiros>
cli option parsing is a mess. glad that tools like slop bring at least a relative sanity to it ;-)
<ljarvis>
definitely at the expense of my own sanity :D
<apeiros>
I prefer you sacrificing yours than me mine :-p
jenrzzz has quit [Ping timeout: 276 seconds]
<ljarvis>
hah, if i can help even one person avoid sacrificing their sanity then i'm pleased
CloCkWeRX has joined #ruby
squ has quit [Ping timeout: 245 seconds]
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
AndBobsYourUncle has joined #ruby
ur5us has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
psychicist__ has joined #ruby
renchan has joined #ruby
blaxter has quit [Quit: foo]
Silthias1 has joined #ruby
harai_ has quit [Ping timeout: 276 seconds]
Silthias has quit [Ping timeout: 256 seconds]
gigetoo has quit [Ping timeout: 252 seconds]
despai has joined #ruby
gigetoo has joined #ruby
Beams has joined #ruby
JeanCarloMachado has joined #ruby
nofxx has quit [Ping timeout: 258 seconds]
nofxx has joined #ruby
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RickHull has quit [Ping timeout: 255 seconds]
DoubleMalt has joined #ruby
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 276 seconds]
catenthusiast has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
Gayathri_ has quit [Quit: Connection closed for inactivity]
Fernando-Basso has joined #ruby
mikecmpbll has joined #ruby
matp has quit [Remote host closed the connection]
anisha_ has quit [Quit: This computer has gone to sleep]
blackmesa has joined #ruby
matp has joined #ruby
blackmesa has quit [Client Quit]
Guest51489 is now known as ged
ged is now known as Guest50661
Snowy has joined #ruby
LoneHermit has joined #ruby
grh has quit [Ping timeout: 252 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
<Cymew>
I have a log file I want to start tailing, and pushing lines into a string. But if I do a "seek(-1, IO::SEEK_END)" I will end on a newline, which will make my "<<" fail as I try to push that into a string. As there could be multiple newlines in the end of the file, is there a smart way to handle this case?
gigetoo has joined #ruby
nowhereman has joined #ruby
mrwn has joined #ruby
larcara has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 240 seconds]
larcara has joined #ruby
LoneHermit has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
larcara has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 276 seconds]
pandaant has joined #ruby
csk157 has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
gigetoo has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
fergal has joined #ruby
grh has joined #ruby
<fergal>
hi guys, when i do JSON.dump, is there a way to ensure that the json is sorted?
gigetoo has joined #ruby
gix has joined #ruby
SesMan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
larcara has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
DrCode has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
jaiks has joined #ruby
<Mon_Ouie>
I'm guessing it just uses the iteration order of Hashes. If so, you can sort the key/value pairs and insert them in a new hash (the iteration order of hash tables since 1.9 is the insertion order)
gigetoo has quit [Ping timeout: 259 seconds]
<Mon_Ouie>
>> h = {"b" => 1, "a" => 1}; Hash[h.sort_by(&:first)]
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
catenthusiast has joined #ruby
xen0fon has joined #ruby
xen0fon has quit [Client Quit]
<Cymew>
Clarification: reading the whole bige file and counting the lines does not qualify as "smart".
marr has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
mrwn has quit [Remote host closed the connection]
despai has quit [Quit: This computer has gone to sleep]
gigetoo has joined #ruby
despai has joined #ruby
despai has quit [Client Quit]
<apeiros>
fergal: note that other than to a human, the ordering of a json is immaterial. many languages will read it back into a structure which will not retain order. javascript itself f.ex.
xen0fon has joined #ruby
<apeiros>
Cymew: "pushing a newline into a string" should not fail
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fergal>
apeiros: i want ordering because i want to hash the json strings to test for uniqueness. i.e. { a: 1, b: 2} {b:2, a:1} hashed should be equal
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
_joes__ has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
<ljarvis>
that's not how you test for equality
<ljarvis>
what language are you loading the json into?
gigetoo has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
<ljarvis>
hash maps should not care about ordering in any language, so your examples should be equal in every language. JavaScript objects are an exception
CloCkWeRX has quit [Ping timeout: 255 seconds]
catenthusiast has joined #ruby
vuoto has joined #ruby
<apeiros>
ljarvis: it's probably an optimization in checking for uniqueness, with hash values, you only have to compare values with the same hash.
<apeiros>
but the base problem remains - json does not guarantee ordering, so no implementing language will either.
grh has quit [Ping timeout: 248 seconds]
xen0fon has quit [Quit: xen0fon]
hutch34 has joined #ruby
faces has joined #ruby
binaryplease has joined #ruby
binaryplease has quit [Client Quit]
matp has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 252 seconds]
matp has joined #ruby
unshadow has joined #ruby
gigetoo has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
gigetoo has joined #ruby
Guest50661 is now known as ged
ged is now known as Guest47365
TomyWork has joined #ruby
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
nankyokusei has quit [Ping timeout: 258 seconds]
duckpupp1 has joined #ruby
grh has joined #ruby
jaruga_____ has joined #ruby
jaruga_____ is now known as jaruga______
CloCkWeRX has joined #ruby
anisha_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
Flonk has joined #ruby
duckpupp1 has quit [Ping timeout: 258 seconds]
ta has quit [Remote host closed the connection]
ta has joined #ruby
patarr has quit [Ping timeout: 256 seconds]
gigetoo has quit [Ping timeout: 245 seconds]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has joined #ruby
catenthusiast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus70 has joined #ruby
ta has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
dionysus70 is now known as dionysus69
_sfiguser has joined #ruby
GinoManWorks has joined #ruby
aryaching has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
gigetoo has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
psychicist__ has joined #ruby
<Cymew>
apeiros: Thanks. Maybe something other that what I thought goes on i nmy code then.
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
ta has joined #ruby
Xeago_ is now known as Xeago
jenrzzz has joined #ruby
gfawcett has joined #ruby
vuoto has quit [Quit: Lost terminal]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
c355e3b has joined #ruby
milardovich has joined #ruby
alextheger has joined #ruby
alextheger has quit [Client Quit]
CloCkWeRX has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
milardovich has joined #ruby
matp has quit [Remote host closed the connection]
ta has joined #ruby
wugy has joined #ruby
ta has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
wugy has quit [Client Quit]
matp has joined #ruby
UserJosh has joined #ruby
blackbombay has joined #ruby
jshjsh has quit [Ping timeout: 240 seconds]
_sfiguser has quit [Ping timeout: 252 seconds]
gigetoo has quit [Ping timeout: 276 seconds]
ta has joined #ruby
maleghast has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has joined #ruby
blackbom1 has quit [Ping timeout: 252 seconds]
anisha_ has quit [Quit: Leaving]
milardov_ has joined #ruby
milardovich has quit [Ping timeout: 276 seconds]
LoneHermit has joined #ruby
ta has quit [Remote host closed the connection]
csk157_ has joined #ruby
Burgestrand has quit [Quit: Closing time!]
catenthusiast has joined #ruby
Burgestrand has joined #ruby
larcara has quit [Remote host closed the connection]
csk157 has quit [Ping timeout: 255 seconds]
djellemah has quit [Remote host closed the connection]
nofxx has quit []
milardov_ has quit [Ping timeout: 255 seconds]
habitullence has joined #ruby
LoneHermit has quit [Ping timeout: 264 seconds]
CloCkWeRX has joined #ruby
gigetoo has quit [Ping timeout: 252 seconds]
_sfiguser has joined #ruby
tvw has joined #ruby
gigetoo has joined #ruby
sinanislekdemir has joined #ruby
duckpupp1 has joined #ruby
hobodave has joined #ruby
sinanislekdemir has quit [Remote host closed the connection]
xen0fon has joined #ruby
ifctj has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
xen0fon has quit [Client Quit]
gigetoo has quit [Ping timeout: 252 seconds]
Guest47365 is now known as ged
ged is now known as Guest25615
gigetoo has joined #ruby
fergal has quit [Quit: fergal]
fergal has joined #ruby
ifctj has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
jzigmund has quit [Remote host closed the connection]
jzigmund has joined #ruby
csk has joined #ruby
BackEndCoder has quit [Excess Flood]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
ta has joined #ruby
BackEndCoder has joined #ruby
minimalism has quit [Quit: WeeChat 1.4]
gregf__ has quit [Ping timeout: 260 seconds]
ta has quit [Remote host closed the connection]
yqt has joined #ruby
fergal has quit [Read error: Connection reset by peer]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has quit [Ping timeout: 245 seconds]
UserJosh has quit [Ping timeout: 256 seconds]
agent_white has joined #ruby
synthroid has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
SesMan has joined #ruby
duckpupp1 has joined #ruby
Burgestrand has quit [Quit: Closing time!]
patarr has joined #ruby
oblique has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
gigetoo has joined #ruby
duckpupp1 has quit [Ping timeout: 255 seconds]
kobain has joined #ruby
duckpupp1 has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
jshjsh has joined #ruby
insanedreamer has joined #ruby
mostlybadfly has joined #ruby
csk has quit [Ping timeout: 240 seconds]
JoshS has quit [Ping timeout: 245 seconds]
gigetoo has quit [Read error: Connection reset by peer]
ta has joined #ruby
Guest25615 is now known as ged
gigetoo has joined #ruby
ged is now known as Guest80092
<midacts>
Can you use ruby to make MSSQL queries with Windows Authentication?
reverberations has quit [Ping timeout: 240 seconds]
malconis has joined #ruby
pandaant has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 245 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
UserJosh has joined #ruby
jaffachief_ has joined #ruby
ta has joined #ruby
jaffachief_ is now known as jaffachief
jshjsh has quit [Ping timeout: 240 seconds]
Derperpe1 has quit [Ping timeout: 276 seconds]
frozengeek__ is now known as frozengeek
flyingX has joined #ruby
hotpanca_ has joined #ruby
flying has quit [Ping timeout: 255 seconds]
ddubs has joined #ruby
ta has quit [Ping timeout: 258 seconds]
insanedreamer has quit [Read error: Connection reset by peer]
gigetoo has quit [Ping timeout: 264 seconds]
<ddubs>
hey all I'm using extend to add additional functions to a class from a module so that I can do things like: client.something.get_somethings
gigetoo has joined #ruby
<ddubs>
what im running into is that I'd also like that first method that does the extend to also return something if I do : client.something
<ddubs>
not sure if thats possible or not
frozengeek has quit [Quit: frozengeek]
guardianJ has joined #ruby
vuoto has joined #ruby
Derperpe1 has joined #ruby
jessiepuls has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vuoto has quit [Client Quit]
frozengeek has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
rfoust has joined #ruby
AndBobsYourUncle has quit [Read error: Connection timed out]
unsymbol has quit [Ping timeout: 276 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
hotpanca_ has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 255 seconds]
rwb has joined #ruby
Derperpe1 has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
hutch34 has joined #ruby
unsymbol has joined #ruby
gigetoo has joined #ruby
msmith has joined #ruby
AndBobsYourUncle has joined #ruby
<alexs-77>
I've got a FQDN "some.long.example.fyi". Now I'd like to get the "hostname", ie. everything BEFORE the 1st "." (dot). What's the best way? Right now, I do: "some.long.example.fyi".partition(".").first
<ddubs>
alexs-77: i guess it depends if you ever want to do something with the domain, partition seems like a good choice because fqdn.partition('.').last will give you the domain and fqdn.partition('.').first will give you the hostname
ifctj has joined #ruby
<alexs-77>
manveru: thanks, that's nice and short ☺
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
terens has quit [Remote host closed the connection]
<alexs-77>
ddubs: you're right. easy access to both "parts", so to say. and then there would also be "split", which could also be used.
<ddubs>
esp if you want to specifically do hostname/domain name splitting
_geoff has joined #ruby
<alexs-77>
ddubs: why does it make a mess? "some.long.example.fyi".split(".") → ["some", "long", "example", "fyi"]. If it would be required/wanted to access all the different "parts" of the domain name, then this might be nice
insanedreamer has joined #ruby
<ddubs>
yea i was just thinking then you have to join it all back together based on how far into namespace you want to go - most of my use cases w/ hostnames is get the hostname apart from the domainname
<alexs-77>
true, same here ;)
guardianJ has quit []
hotpancakes has quit [Remote host closed the connection]
insanedreamer has quit [Client Quit]
grh has quit [Ping timeout: 255 seconds]
jessiepuls has joined #ruby
jessiepuls has quit [Remote host closed the connection]
millerti has joined #ruby
dionysus69 has joined #ruby
ocbtec has joined #ruby
pingpong has joined #ruby
govg has quit [Quit: leaving]
govg has joined #ruby
<ddubs>
anyone know if its possible to extend a module but have the method thats extended also return a value if called, not sure how to really word it, so here is an example: https://eval.in/724842
raul782 has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 256 seconds]
raul782 has joined #ruby
pingpong has left #ruby [#ruby]
Derperpe1 has joined #ruby
gigetoo has joined #ruby
<toretore>
ddubs: what is the actual problem you're dealing with?
<ddubs>
so im trying to write a gem around a terrible soap api so im trying to sort of follow along with the namespacing of objects
ta has joined #ruby
<ddubs>
so in the example i want that test.somethings to return a default method or response but also be able to have the extended methods like get_somethings
<toretore>
still doesn't make much sense to me
c_nick has joined #ruby
<c_nick>
Hi i am using teamcity in my project, I was wondering how i can automate teamcity backup, if i randomly do it there is always a possibility that some build is running or some are queued. I am not sure how i should go about it
<toretore>
ddubs: you want to decorate whatever is returned by the existing api with your own functionality?
<ddubs>
yea i guess thats a way to put it
<toretore>
ddubs: if so, you should probably consider has-a instead of is-a; that is: make something of your own that contains the other thing and delegates to it when necessary
DLSteve has joined #ruby
<toretore>
class MyResource; def initialize(other)@other=other; end; def my_stuff; transform(@other.some_stuff); end; end
pingpong has joined #ruby
<toretore>
you *could* delegate everything by default to @other, but i don't think that's a good idea
<toretore>
that's effectively the same as extending it
workmad3 has joined #ruby
DroidBurgundy has joined #ruby
hotpancakes has joined #ruby
saslam has joined #ruby
benlieb has joined #ruby
<ddubs>
hmmm yea, I probably need to rethink this a little bit - I started off trying to mimic the powershell behavior of some of the calls
<ddubs>
but this isnt panning out so well
gigetoo has quit [Ping timeout: 248 seconds]
<ddubs>
but i did pick up a little metaprogramming :P
gigetoo has joined #ruby
gautam has joined #ruby
Guest80092 is now known as ged
ged is now known as Guest24966
mim1k|work has quit [Read error: Connection reset by peer]
mim1k|work has joined #ruby
Synthbread has joined #ruby
alan_w has quit [Quit: WeeChat 1.4]
__Yiota has joined #ruby
benlieb has quit [Quit: benlieb]
Synthead has quit [Ping timeout: 246 seconds]
cdg has joined #ruby
crazyphil_c has joined #ruby
cdg has quit [Read error: Connection reset by peer]
sparch has joined #ruby
cdg has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
gautam has quit [Quit: Page closed]
gigetoo has joined #ruby
Gasher has joined #ruby
_geoff has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
Silthias1 has left #ruby [#ruby]
lmc has joined #ruby
Silthias has joined #ruby
<crazyphil_c>
I am working with Ruby in logstash and trying to break a json field (hash?) into multiple fields and having issues where it hangs when I try to set a variable to equal the hash, can someone make a suggestion as to what I am doing wrong: https://gist.github.com/anonymous/73939620897959f316dd3a18ae51d5c2
lxsameer has quit [Quit: WeeChat 1.6]
despai has joined #ruby
asperon has joined #ruby
GinoManWorks has quit [Quit: Leaving]
pingpong has quit []
madgen has joined #ruby
benlieb has joined #ruby
madgen has quit [Client Quit]
larcara has quit []
gigetoo has quit [Read error: Connection reset by peer]
madgen has joined #ruby
gigetoo has joined #ruby
madgen has quit [Client Quit]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
cdg_ has joined #ruby
ferr1 has quit [Quit: WeeChat 1.6]
cdg has quit [Read error: Connection reset by peer]
gigetoo has quit [Ping timeout: 245 seconds]
xen0fon has joined #ruby
gigetoo has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
choke has joined #ruby
polishdub has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Burgestrand has quit [Quit: Closing time!]
roger_rabbit has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
<Rich_Morin>
Binding#local_variable_set will set the value of an existing local variable in a specified binding. Is there a way to create and set a variable?
flyingX has quit []
gigetoo has joined #ruby
harai_ has joined #ruby
apeiros has quit [Ping timeout: 256 seconds]
sunya7a_ has quit [Ping timeout: 240 seconds]
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
<manveru>
i mean, it's a tiny little bit hacky, but who the hell wants to mess with local variables :P
TvL2386 has quit [Quit: Ex-Chat]
gigetoo has quit [Ping timeout: 252 seconds]
<Jamdaman>
Hey guys, quick question. Have you all used either the 'xbee-ruby' gem or the 'ruby-xbee' gem to control Digi's Zigbee units. I´m implementing a system using Ruby on rails, but not too sure how to send remote API commands using either of those gems.
gigetoo has joined #ruby
<Jamdaman>
My question is: could anybody direct me to a good tutorial or good project that exists using either of those gems?
jaffachief has left #ruby [#ruby]
brent__ has joined #ruby
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ddubs>
have you gotten the gem to work outside of rails?
Qommand0r has quit [Quit: WeeChat 1.6]
Xentil has joined #ruby
choke has joined #ruby
<Jamdaman>
kind of...in the rails console. however, the params i send to the XBeeRuby module dont seem to make sense with the documentation
Rich_Morin has left #ruby [#ruby]
<Jamdaman>
I'm a little new to ruby and ruby gems. However, I can get a packet sent, but I dont think its sending the packet i want.
<Jamdaman>
i have maybe 2 years working on and off with ruby gems, so I'm not totally clueless
SCHAAP137 has quit [Read error: Connection reset by peer]
AndBobsYourUncle has quit [Ping timeout: 255 seconds]
<RickHull>
it would help to paste some calls and output, and explain your suspicion
<RickHull>
(use a paste site)
<acalycine>
Which Ruby gem does "match?" belong to? For hashes.
AndBobsYourUncle has joined #ruby
<RickHull>
both String and Regex have #match?
<RickHull>
not gems, part of core
gigetoo has quit [Ping timeout: 240 seconds]
<RickHull>
er, Regexp
araujo has joined #ruby
aufi has quit [Quit: Leaving]
<acalycine>
I'm just getting "Exception: #<NoMethodError: undefined method `match?' for true:TrueClass>", so I'm wondering if I haven't required the gem for it
gigetoo has joined #ruby
maleghast has joined #ruby
<ddubs>
acalycine: a slimmed down example of how you are using it would be helpful
<baweaver>
If it's not we can shoot you where you need to go
<baweaver>
though be forewarned I'm not the best with cap.
tolerablyjake has joined #ruby
<jokke>
anyway, stop me if it is. I'm trying to run capistrano from my ci. the ci has an ssh key which is set as a deploy key on our gitlab instance. it pulls the repo, runs the tests and then runs capistrano. The server i'm deploying to has a deploy user with authorized keys containing the ci's ssh key. running mkdir and uploading files seems to work. however running git ls-remote --heads on the remote server from
<jokke>
capistrano doesn't. it failse with "Error reading response length from authentication socket"
<baweaver>
acalycine: you can, though you're going to find it easier if you work through how hashes work in Ruby.
<acalycine>
Found it as an emunerable method
<acalycine>
Very true.
Anonymoose2 has joined #ruby
<jokke>
my guess is, that agent forwarding isn't working
UserJosh has quit [Read error: Connection reset by peer]
<baweaver>
jokke: I'll see if I can find something, but I don't know immediately.
milardovich has quit [Ping timeout: 264 seconds]
<baweaver>
If it's an agent problem you could always check iptables or security settings
<baweaver>
possible that it got firewalled
reverberations has quit [Ping timeout: 240 seconds]
<baweaver>
well, rather to say is this new or just recently broke?
hotpancakes has quit [Read error: Connection reset by peer]
<baweaver>
yep, mentioned it a bit earlier :)
pawnbox has joined #ruby
choke has joined #ruby
blackbombay has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has quit []
Takumo has quit [Remote host closed the connection]
malconis has joined #ruby
AndBobsYourUncle has joined #ruby
<brent__>
i'm looking to add vim mode to irb/pry/rails console
<brent__>
along w/ a jk => <esc> mapping
csk157_ has joined #ruby
AndBobsYourUncle has quit [Client Quit]
hotpanca_ has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
<brent__>
ive seen things about getting vim to the console, but haven't been able to find anything about the :imap jk <esc>
gigetoo has joined #ruby
alan_w has joined #ruby
alan_w has left #ruby [#ruby]
hotpancakes has joined #ruby
Devalo has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
jshjsh has joined #ruby
pilne has joined #ruby
hotpancakes has quit [Remote host closed the connection]
JoshS has quit [Ping timeout: 255 seconds]
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
hotpancakes has quit [Client Quit]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
StoneCypher has quit [Ping timeout: 240 seconds]
Lord_of_Life has quit [Excess Flood]
TomyLobo has joined #ruby
blackbombay has joined #ruby
Lord_of_Life has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ianmethyst has quit [Quit: WeeChat 1.7]
ramortegui has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
gigetoo has joined #ruby
UserJosh has joined #ruby
antoniobeyah has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
jshjsh has quit [Ping timeout: 248 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
antgel has joined #ruby
jackjackdripper has joined #ruby
jessiepuls has joined #ruby
UnknownSoldier has joined #ruby
saslam has joined #ruby
AndrewIsHere has quit []
sneakers has joined #ruby
jessiepuls has quit [Client Quit]
gigetoo has quit [Ping timeout: 264 seconds]
Derperpe1 has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
jessiepuls has joined #ruby
xen0fon has joined #ruby
nankyokusei has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has quit [Ping timeout: 255 seconds]
harai_ has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
Julianee has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
milardovich has quit [Ping timeout: 248 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
zeroDi has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
Guest32347 is now known as ged
ged is now known as Guest92543
gigetoo has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has quit [Quit: Leaving.]
ramfjord has joined #ruby
gnufied has joined #ruby
nofxxxx has joined #ruby
AndrewIsHere has joined #ruby
skweek has joined #ruby
gix has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
al2o3-cr has joined #ruby
saneax is now known as saneax-_-|AFK
dc4 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
prestorium has quit [Quit: Leaving]
xen0fon has quit [Quit: xen0fon]
benlieb has quit [Quit: benlieb]
gix has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
sneakers has quit [Read error: Connection reset by peer]
wilbert has joined #ruby
csk157_ has quit [Ping timeout: 264 seconds]
UnknownSoldier has quit [Remote host closed the connection]
wilbert has quit [Client Quit]
facest has joined #ruby
Cohedrin_ has joined #ruby
sparch has quit [Quit: Leaving]
faces has quit [Ping timeout: 248 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
cdg_ has quit [Remote host closed the connection]
milardovich has joined #ruby
devon21 has joined #ruby
sepp2k has joined #ruby
gigetoo has joined #ruby
milardovich has quit [Remote host closed the connection]
tyang_ has joined #ruby
ocbtec has quit [Quit: leaving]
pawnbox has quit [Remote host closed the connection]
montanonic has joined #ruby
pawnbox has joined #ruby
Julianee has quit [Ping timeout: 255 seconds]
MrJoshua has quit [Quit: MrJoshua]
pawnbox has quit [Remote host closed the connection]
tyang has quit [Ping timeout: 255 seconds]
pawnbox has joined #ruby
Disavowed has joined #ruby
dionysus69 has joined #ruby
tlahtoani has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
<Disavowed>
I recognise that what I'm asking is horrific and I promise not to use it outside of my debug session: How do I patch the exception class to coerce whatever is passed to it via `raise` to string? I'm sick of having to remember to put .to_s on the end of whatever I'm trying to debug.
AndrewIsHere has quit []
gigetoo has joined #ruby
tyang_ has quit [Read error: Connection reset by peer]
tockitj has joined #ruby
marxarelli is now known as marxarelli|afk
harai_ has joined #ruby
Gasher has joined #ruby
despai has joined #ruby
tyang has joined #ruby
gfawcett has quit [Ping timeout: 252 seconds]
kirun has joined #ruby
despai has quit [Client Quit]
UserJosh has quit [Ping timeout: 240 seconds]
dc4 has joined #ruby
Renich has joined #ruby
byte512 has quit [Ping timeout: 260 seconds]
ecuanaso has joined #ruby
Derperpe1 has joined #ruby
_sfiguser has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
benlieb has joined #ruby
UserJosh has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
gigetoo has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
Gasher has quit [Quit: Leaving]
jenrzzz has joined #ruby
gigetoo has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
rfoust has quit [Read error: Connection reset by peer]
rfoust has joined #ruby
minimalism has joined #ruby
bmurt has joined #ruby
nofxxxx has quit [Ping timeout: 258 seconds]
ldnunes has quit [Quit: Leaving]
_sfiguser has joined #ruby
nofxxxx has joined #ruby
milardovich has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
gigetoo has joined #ruby
ur5us has joined #ruby
Jamdaman has quit [Quit: Ex-Chat]
vuoto has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 240 seconds]
whathappens has quit [Remote host closed the connection]
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xen0fon has joined #ruby
xen0fon has quit [Client Quit]
vuoto has joined #ruby
tomphp has joined #ruby
ben__ has quit [Remote host closed the connection]
[Butch]_ has joined #ruby
AndrewIsHere has joined #ruby
milardovich has joined #ruby
tomphp has quit [Client Quit]
maddmaxx has joined #ruby
milardovich has quit [Remote host closed the connection]
sneakers has joined #ruby
milardovich has joined #ruby
sneakers is now known as sneakernet
tomphp has joined #ruby
sneakernet is now known as sneakers
gigetoo has quit [Ping timeout: 255 seconds]
[Butch] has quit [Ping timeout: 245 seconds]
[Butch]_ is now known as [Butch]
dopamean_ has joined #ruby
milardovich has quit [Client Quit]
gigetoo has joined #ruby
Guest92543 is now known as ged
Synthbread has quit [Ping timeout: 246 seconds]
minimalism has quit [Quit: WeeChat 1.4]
ged is now known as Guest54566
mgorbach has quit [Remote host closed the connection]
mgorbach has joined #ruby
username_ has quit [Ping timeout: 240 seconds]
harai_ has quit [Ping timeout: 264 seconds]
ur5us has quit [Remote host closed the connection]
nofxxxx has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
tdy has quit [Quit: WeeChat 1.7]
gigetoo has quit [Ping timeout: 255 seconds]
gix has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
Synthbread has joined #ruby
brainslug has joined #ruby
markholmes has quit [Ping timeout: 255 seconds]
harai_ has joined #ruby
tercenya has quit []
ionte has quit [Ping timeout: 240 seconds]
gix has joined #ruby
ionte has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Julianee has joined #ruby
marxarelli|afk is now known as marxarelli
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cajone1 has joined #ruby
cajone has quit [Read error: Connection reset by peer]
duckpupp1 has quit [Ping timeout: 264 seconds]
gigetoo has quit [Ping timeout: 248 seconds]
UserJosh has quit [Quit: Leaving]
dc4 has quit [Ping timeout: 258 seconds]
gigetoo has joined #ruby
msmith has quit [Remote host closed the connection]
msmith has joined #ruby
despai has joined #ruby
tercenya has joined #ruby
esObe has joined #ruby
tomphp has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
RickHull has quit [Quit: Leaving]
StoneCypher has joined #ruby
msmith has quit [Ping timeout: 255 seconds]
nofxx has joined #ruby
RickHull has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
jessiepuls has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest69 has joined #ruby
railswebdev has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
StoneCypher has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
cajone1 has quit [Remote host closed the connection]
harai_ has quit [Ping timeout: 252 seconds]
username_ has joined #ruby
msmith has joined #ruby
ta has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AnoHito_ has quit [Read error: Connection reset by peer]
AnoHito_ has joined #ruby
cajone has joined #ruby
nankyokusei has joined #ruby
tvw has quit [Ping timeout: 245 seconds]
nofxx has quit [Read error: Connection reset by peer]
Derperpe1 has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
<esObe>
Hi guys! I am newbie in Ruby, could you help me with one exercise?
nankyokusei has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
jaruga______ has quit [Quit: jaruga______]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<esObe>
Write a script that takes a list of email addresses on STDIN and outputs the
despai has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
markholmes has joined #ruby
[Butch]_ has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
[Butch] has quit [Ping timeout: 240 seconds]
[Butch]_ is now known as [Butch]
gigetoo has joined #ruby
RickHull has joined #ruby
Eddi|zuHause has joined #ruby
Julianee has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Eddi|zuHause>
hi, total noob here, i just tried to run a script, and it throws me an error "/usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bindata (LoadError)" and find no real answer via google
<Eddi|zuHause>
i vaguely remember running this script a few years ago
<Eddi|zuHause>
and those are the only two times i ever used ruby...
gloscombe has joined #ruby
<Eddi|zuHause>
script starts with "require 'bindata'", which is obviously what fails here
<Eddi|zuHause>
if it's something missing from my installation, i don't know what
markholmes has quit [Ping timeout: 255 seconds]
JeanCarloMachado has joined #ruby
marxarelli is now known as marxarelli|afk
Julianee has quit [Ping timeout: 255 seconds]
<baweaver>
Eddi|zuHause: gem list bindata
<baweaver>
if nothing shows up the gem isn't installed and you need to: gem install bindata
govg has quit [Ping timeout: 240 seconds]
<Eddi|zuHause>
ah, thanks.
<baweaver>
basically require tries to load a file or a Ruby Gem (Library)
<Eddi|zuHause>
yes, is empty
<baweaver>
yep, gem install that and you should be good
<Eddi|zuHause>
yes, script seems to run
<baweaver>
Also you may want to upgrade your Ruby version later
<baweaver>
that one's pretty old
<baweaver>
but for now it works, so there's that
<baweaver>
See the channel topic for the latest versions and some links which might help ther
<baweaver>
e
gigetoo has quit [Ping timeout: 264 seconds]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<Eddi|zuHause>
probably not worth the effort, honestly. it'll upgrade with my next system upgrade i'm sure...
<Eddi|zuHause>
and then i wonder in two years again what's missing :p
harai_ has joined #ruby
gigetoo has joined #ruby
JeanCarloMachado has quit [Ping timeout: 252 seconds]
<baweaver>
You could always give Ruby a full run
<baweaver>
Try it out, learn a bit, it's a blast
rfoust has joined #ruby
<baweaver>
https://rubymonk.com is a good source, or tryruby.org if you want to poke at it a bit in your browser
physikoi has joined #ruby
tvon has joined #ruby
<physikoi>
Hello #ruby. What is the correct incantation for getting to install the most recent release of all installed gems? Simply running `gem update [gem]` does not do that. I guess it just updates to the latest "point" release(?).
centrx has quit [Remote host closed the connection]
<Eddi|zuHause>
baweaver: sorry, i hope you understand that i'm currently not in the mood for being converted to another religion.
<baweaver>
heathen :D
<baweaver>
Joking aside, we're here if you ever want to learn or shoot a few questions
psychicist__ has joined #ruby
jenrzzz has joined #ruby
<ytti_>
pretty sure 'gem update' works
<Eddi|zuHause>
anyway, thanks for the competent and quick help, bye.
Eddi|zuHause has left #ruby ["Konversation terminated!"]
<baweaver>
ytti_: probably, I just have a mass panic associated with gem upgrades of more than one at a time
<baweaver>
everything breaks D:
<baweaver>
so many minor version breaking changes, it makes me sad
<ytti_>
that shouldn't happen
kirun has quit [Quit: Konversation terminated!]
<ytti_>
yeah
<baweaver>
bundle update is banned wherever I have a stake
<ytti_>
but in these days, mostly 1 machine 1 application
<ytti_>
so only gotta guarantee one thing works post-upgrade
<baweaver>
update gem at a time, test prod, next
workmad3 has joined #ruby
<baweaver>
Yep, we do the same, but there are always some minor skiffy bugs in gem updates somewhere. Firefighting 50 at once is hell whereas 1-2 is manageable to isolate issues
gigetoo has quit [Ping timeout: 240 seconds]
<physikoi>
baweaver: windows? heavens no!
<baweaver>
never know
kht has quit [Ping timeout: 248 seconds]
<physikoi>
baweaver: ty for the kind words
fowlduck has joined #ruby
gigetoo has joined #ruby
DroidBurgundy has quit []
AndrewIsHere has joined #ruby
<physikoi>
baweaver: sorry, i haven't figured out scrolling on my client. Would you share that incantation again, please?
<physikoi>
baweaver: i think it needs to be `gem install...` as update doesn't necessarily update gem to latest release. I think this is a protection for project based usage of gems.
whathappens has joined #ruby
markholmes has joined #ruby
mikecmpbll has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
xen0fon has joined #ruby
duckpupp1 has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
psychicist__ has quit [Ping timeout: 276 seconds]
Guest41452 is now known as ged
pawnbox_ has quit [Quit: gotta go guys.]
ged is now known as Guest89553
millerti has joined #ruby
polishdub has quit [Quit: Leaving]
duckpupp1 has quit [Ping timeout: 258 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cibs has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: Lost terminal]
guacamole has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]