<chiel>
basically i'm doing this: "DB = Mongo::Connection.new['tinker']" inside a begin/rescue block, so if that fails, DB is not defined
<chiel>
what is the best way to check if a constant is defined?
ChampS666 has quit []
notwhoopseric has quit [Quit: Page closed]
Nisstyre-laptop has joined #ruby
<havenn>
chiel: defined? CONSTANT
<chiel>
ah, cheers
<Scriptonaut>
shevy: this just writes the file at the end, effectively writing the file twice
<shevy>
chiel: another way would be Object.const_defined? :Y # => false; Y = 'Now it is defined' # => "Now it is defined"; Object.const_defined? :Y # => true
gnarmis has joined #ruby
<shevy>
Scriptonaut you can use File.readlines, modify that array, then use that modification to store into the file
Fuzai has quit [Ping timeout: 260 seconds]
<shevy>
if you do want to only modify certain bytes, I am afraid you will have to use that .seek thingy
<Scriptonaut>
shevy: that's exactly what I'm doing, however the changes shrink the number of lines. So it overwrites just fine, however there is still some garbage on the end of the file
MattRb has quit [Quit: This computer has gone to sleep]
<Scriptonaut>
ha, I know. I'd love to get back into the groove of ruby, it's probably my favorite scripting language to write in
<Scriptonaut>
it's sexy as fuck compared to most other syntaxes
<Spooner>
The semi-colons are a dead give-away, I'm afraid.
<chiel>
hmm.. what's the best way to log errors somewhere?
reppard has joined #ruby
<chiel>
i realise these are really basic questions, just trying to tighten things up a bit,
bcx has joined #ruby
MattRb has joined #ruby
<bcx>
Hi there, has anyone successfully used ActiveRecord multi-threaded?
<Hanmac>
Scriptonaut: in line6 you use readlines wrong
Asher has quit [Ping timeout: 264 seconds]
malkomalko has quit [Remote host closed the connection]
<Scriptonaut>
should it be the path, rather than listFile?
<Spooner>
Scriptonaut, You can just File.readlines("thefile")
<bcx>
I have a service that uses active record, and the old mysqlplus driver. I was wondering if any progress has been made on using activerecord in a threaded environment (i.e. outside of rails)
<chiel>
hm.. anyone know how to write to stderr from sinatra apps?
emergion has quit [Quit: Computer has gone to sleep.]
main has quit [Ping timeout: 264 seconds]
<Spooner>
Scriptonaut, And I'd suggest using something like Nokogiri to parse XML rather than regexps.
yfeldblum has joined #ruby
<shevy>
Scriptonaut you are in control what is being written to the file
<shevy>
I do not know why you use IO.write however
nateberkopec has joined #ruby
nsr has joined #ruby
nsr has quit [Changing host]
nsr has joined #ruby
<shevy>
and why is .truncate used
<Spooner>
Yeah, you beat me to that shevy. Should be f.write (and the ...yeah that).
<shevy>
why don't you use file.write(where, data)
nateberkopec has quit [Client Quit]
<Scriptonaut>
I'm trying to erase the damn file, so then I can only write what I want
<shevy>
erase a file
<Scriptonaut>
empty it I guess
<Scriptonaut>
Hmm, maybe my array has the garbage
<Scriptonaut>
I'll have to check that
<Scriptonaut>
anyways, thanks guys, works over
nsr has quit [Client Quit]
<shevy>
FileUtils.rm '/foo/bla.txt'
<shevy>
but it is not needed in your case
<shevy>
Scriptonaut require 'pp'; pp your_array
<shevy>
then you know what content your array will have
<Spooner>
shevy, opening a file in "w" will truncate it.
<shevy>
Spooner he wanted to erase a file for some reason :D
<Spooner>
I'm not sure what Scriptonaut wanted really.
<shevy>
hehehe
<shevy>
I think he wants a beer
shtirlic has quit [Remote host closed the connection]
busybox42 has joined #ruby
<Scriptonaut>
I do want a beer
<Scriptonaut>
I wanted to modify a file
<Scriptonaut>
which involved erasing about 50 lines
<Scriptonaut>
and then adding 2
<Scriptonaut>
so since the new file contents is smaller than the old, when I write it leaves the lines that were there after I'm done
<Scriptonaut>
that's why I'm trying to truncate
deuterium has quit [Quit: zZZz]
CLUSTERfoo has quit [Ping timeout: 260 seconds]
<Spooner>
Yes, but you write with IO.write(filename, str) not f.puts(fileLines)
mrsolo has quit [Quit: This computer has gone to sleep]
spo0n- has joined #ruby
ben__ has joined #ruby
<Scriptonaut>
hmm. Well it was my array, which I thought I had tested
lele has joined #ruby
<Scriptonaut>
sorry for wasting your guy's time
<Scriptonaut>
cya
ninp0 has joined #ruby
telagraphic has joined #ruby
mneorr has quit [Remote host closed the connection]
aaronmacy has quit [Quit: Leaving.]
fred909 has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
<Spooner>
Scriptonaut, Sorry, didn't mean to be so down on you, but you look a lot like someone trying to run before walking. You need to brush up on more basic scripts, I think.
fred909 has joined #ruby
pewter_tao has left #ruby [#ruby]
cobragoa_ has quit [Ping timeout: 265 seconds]
<shevy>
Scriptonaut you should split up the things into components
ffranz has joined #ruby
ryanf has quit [Ping timeout: 264 seconds]
<shevy>
like (1) read in the data (2) modify the data until that data is how you want it to be, and only then (3) save it
blazes816 has quit [Ping timeout: 244 seconds]
timonv has quit [Ping timeout: 260 seconds]
<telagraphic>
so is using !tweets or unless tweets like saying "If its true that it is false, then move on to the truthy code branch" ???
mneorr has quit [Remote host closed the connection]
bcx has left #ruby [#ruby]
mneorr has joined #ruby
<Spooner>
"if !tweets" is the same as "unless tweets", yes.
<shevy>
Scriptonaut, for example right now at http://pastebin.com/LVnLWkzN you combine (2) and (3), O.write(realPath, fileLines.join("\n")); <-- I'd not do a .join there, I'd do it before
<davidcelis>
woah
<davidcelis>
is that java
sailias has quit [Quit: Leaving.]
<shevy>
telagraphic you can read "unless" like "if !", "if not"
<shevy>
x = true; puts 'hello world' if x
<telagraphic>
cool
<shevy>
x = false; puts 'hello world' unless x
jonahR has quit [Quit: jonahR]
<shevy>
^^^ outputs hello world too
<shevy>
x = false; puts 'hello world' if ! x
<shevy>
^^^ also outputs it
timonv has joined #ruby
Rym has joined #ruby
<Kovensky>
unless x is actually equivalent to if ! (x)
<Kovensky>
due to precedence
<Kovensky>
(assuming 'x' is an arbitrary expression and not just a var)
stevechiagozie has joined #ruby
segv- has quit [Quit: segv-]
<Kovensky>
unless is also easier to read
<telagraphic>
shevy: right on! one more for ya, when you write: x = false; puts 'hello world' unless x, the unless is checking if it it false>
<shevy>
just translate it into written english in your brain telagraphic
<chiel>
hm, shit.. completely blanking here since i haven't coded ruby in a few months, so here comes another noob question
jjbohn has joined #ruby
<shevy>
"puts hello world if x is not", and x is not if it is false. if x is, then it is true
* Kovensky
had to do all sorts of quickref'ing when returning to ruby after ~3 months away
aajjbb has joined #ruby
<shevy>
telagraphic, it really just is the reverse of "if condition". unless equals "if not condition"
dsdasdas has joined #ruby
<Spooner>
Kovensky, I forget stuff if I haven't coded for a weekend.
_alejandro has joined #ruby
<chiel>
how do you define a method like "Tinker.find" again on a class?
Playground has quit [Ping timeout: 248 seconds]
<shevy>
chiel, within class Tinker, def self.find
benlieb has quit [Quit: benlieb]
<telagraphic>
shevy: true
<chiel>
there's two ways i recall
<Spooner>
class Tinker; class << self; def find; end; end; end
<Kovensky>
what's class << self used for btw?
<shevy>
there are more than two ways
yxhuvud2 has joined #ruby
<chiel>
ah :p
<shevy>
I think you can even use some eval too, but since I hate eval, I dont use that
<dsdasdas>
can i call each on a zipped array and have the block have multiple parameters?
<chiel>
what's the difference between `class << self` and `def self.find` ?
bradhe has quit [Remote host closed the connection]
<Spooner>
Which is the preferred way. The more old-fashioned way is class Tinker; def self.find; end; end
sailias has joined #ruby
<havenn>
chiel: if you aren't going to to initialize the class it, use: module Tinker, class << self
<shevy>
Kovensky dunno... extends a Singleton perhaps? or... topscope object something something ... no idea... but I think it is somewhere different to def self.bla
<Spooner>
chiel Just one makes all the methods inside it on self and the other just affects a single method.
aajjbb_ has joined #ruby
<havenn>
**module Tinker; class << self
<chiel>
havenn: the class can be initialised
<shevy>
dsdasdas yeah but your array must have those parameters, otherwise they are nil.
<havenn>
chiel: ahh
<Spooner>
And also, class << self allows you to do stuff like use #attr_accessor inside it.
bradhe has joined #ruby
<danneu>
use def self.find. -- class << self is for when you actually need to access the class self context. like adding an attr_reader to class<<self`
<chiel>
but i guess def self.find would then return a new instance of the class
slainer68 has joined #ruby
jjbohn has quit [Client Quit]
yxhuvud has quit [Ping timeout: 264 seconds]
<shevy>
chiel perhaps. perhaps not. you can write anything inside that method
stopbit has quit [Quit: Leaving]
<dsdasdas>
shevy: so the array passed to the block is expanded automatically as though the block had been called with * in front of the argument?
jjbohn has joined #ruby
<chiel>
basically, i would want Tinker.find to return a new instance of Tinker
<shevy>
dsdasdas well you can do |*foo|
<Spooner>
chiel, In both cases, it just applies the method on the class, not the instances of that class.
<danneu>
you'll find that using `class << self; end` so you don't have to write `self.method_name` just makes things confusing when you have a bunch of methods and have to look at the indentation level just to see if it's a classmethod or instancemethod. -______-
gyre007 has joined #ruby
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<shevy>
dsdasdas it would be easier if you would have a small sample array, and then tell your desired end result
<dsdasdas>
shevy: wouldn't that coolect multiple arguments into a single array?
<Spooner>
(I know that it is _attaching_ the method to the class and the class's metaclass in these cases, but the method is _avaialble_ on instance and class).
<dsdasdas>
shevy: ok, i'm zipping an array with 2 other arrays, so the each block gets called with an array of 3 elements
xnm has quit [Ping timeout: 252 seconds]
<chiel>
Spooner: yeah, so inside the `self.find` i could then initialise a new instance of said class, passing it data, and then returning that, yeah?
kiyoura has quit [Read error: Connection reset by peer]
Playground has joined #ruby
awarner has quit [Remote host closed the connection]
<shevy>
dsdasdas no, can you pastie a small array example please. I can copy paste that.
<dsdasdas>
shevy: and i don't want to have to explicitly get the 3 elements out of the parameter in the block
kiyoura has joined #ruby
musl has quit [Quit: Terminal is F****'d]
<dsdasdas>
ok
<danneu>
chiel: `def self.find; new(args); end`
<chiel>
danneu: right yea, cool thank you :)
FlyingFoX has quit [Quit: No Ping reply in 180 seconds.]
<Spooner>
chiel, Yes, it is common to make factory methods like that, to allow you to build stuff outside of new (for example, if you want to return nil on a fail, rather than raise an exception which is the only way out of initialize).
nazty has quit [Quit: Leaving]
musl has joined #ruby
FlyingFoX has joined #ruby
<shevy>
there is also this dsdasdas: [1,2,3,4,5,6].each_slice(3) {|slice| p slice}
musl has quit [Client Quit]
nazty has joined #ruby
<chiel>
Spooner: yea, makes sense :)
<chiel>
thanks guys
jarred_ has joined #ruby
banisterfiend is now known as banister`sleep
<danneu>
chiel: that's pretty common when exposing an api. for instance your gem consumers can write MyGem.process(data) instead of MyGem.new.process(data)
<Spooner>
dsdasdas, They pretty much are, yes. It isn't quite as consistent as that though.
<dsdasdas>
awesome i save 1 line
<dsdasdas>
thanks guys
<Spooner>
dsdasdas, And you can always manually sort of splat them with the () operator in the block.
<dsdasdas>
usually i don't need ot use the splat?
slainer68 has quit [Ping timeout: 248 seconds]
<Spooner>
Mostly, no. But, e.g. you can do magic like [[1, [2, 3]], [4, [5, 6]]].each {|a, (b, c)| }
<dsdasdas>
thanks
otherj has joined #ruby
<shevy>
ahhh magic
ilyam has quit [Quit: ilyam]
<shevy>
harry potter magic
* Hanmac
thinks its more the other kind of magic ...
<Spooner>
dsdasdas, the bit that is confusing is when you just have one block var and it doesn't splat: [1, 2].zip([3, 4], [5, 6]) {|a| p a } # a will be an array of 3 values
bradhe has quit [Remote host closed the connection]
alejandro_ has joined #ruby
<Paradox>
who wants to know what i get to code
<Spooner>
But in [1, 2].zip([3, 4], [5, 6]) {|a, b| p [a, b] } the last of the three vales will be lost entirely.
<Paradox>
its a fun project of fun
jds_ has joined #ruby
* Spooner
gives up on block vars.
reppard has quit [Ping timeout: 276 seconds]
ner0x has joined #ruby
MrPunkin has quit [Quit: MrPunkin]
jblack has joined #ruby
<shevy>
hehehe
<Paradox>
i have to code something
<Paradox>
that
<Paradox>
scrapes the patent database
<Paradox>
D:
_alejandro has quit [Ping timeout: 265 seconds]
zeade has quit [Quit: Leaving.]
Guest29624 has quit [Quit: WeeChat 0.3.9.2]
<Spooner>
I'd kill to do that, Paradox! Sounds like more fun than I could handle though.
megha has joined #ruby
bradhe has joined #ruby
<Paradox>
its about as fun as eating peanutbutter with a kitchen knife
<Paradox>
there is NO patent API
decal has quit [Quit: leaving]
<Paradox>
and patents are typically just a gigantic text file
<Spooner>
Well, scraping isn't too exciting, but if it pays the bills...?
twoism_ has quit [Remote host closed the connection]
<Paradox>
so
<Paradox>
no nokogiri
<Paradox>
just tremendously complex regex
jds_ has quit [Ping timeout: 265 seconds]
aaronmacy has joined #ruby
Russell^^ has joined #ruby
tbrock has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
fred909 has quit [Ping timeout: 248 seconds]
Scriptonaut has quit [Ping timeout: 265 seconds]
megha has quit [Quit: WeeChat 0.3.9.2]
<reactormonk>
Paradox, wtf are you parsing?
<Paradox>
reactormonk, patent files
<Paradox>
patents
dankest is now known as dankest|away
<Spooner>
Paradox, can you link one of the pages, so we can imaging your horror?
<Spooner>
*imagine
johnmilton has quit [Remote host closed the connection]
<chiel>
Spooner: oh cool, so i can just call HTTParty.default_timeout
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
bradhe has quit [Remote host closed the connection]
nsr has left #ruby [#ruby]
<Spooner>
Not sure. I'd try it if I was you. You may have to include it in a class to get that method; haven't a clue.
<chiel>
hmm doesn't seem to work ^^
joeycarmello has quit [Remote host closed the connection]
macmartine has joined #ruby
alejandro_ has quit [Ping timeout: 252 seconds]
<Spooner>
" You may have to include it in a class to get that method"
adeponte has quit [Remote host closed the connection]
reppard has joined #ruby
bigmac has joined #ruby
<chiel>
yea :)
<chiel>
which is what i am doing now :)
malkomalko has quit [Ping timeout: 256 seconds]
ngoldman has quit [Remote host closed the connection]
Pip has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
the_jeebster has quit [Quit: Leaving.]
dmerrick has quit [Quit: dmerrick]
sn0wb1rd has quit [Quit: I will be right back]
cableray has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
artOfWar has quit [Remote host closed the connection]
ryannielson has joined #ruby
dwu1 has joined #ruby
megha has joined #ruby
<ryannielson>
I"m writing an app that renders .erb templates. Also, I'd like it to compile and combine js into one js file. Sprockets seems to do the former, it mentions erb but I don't think it can render erb templates. Any gem recommendations for these tasks?
megha has quit [Client Quit]
gnarmis has joined #ruby
arpegius has joined #ruby
<atmosx>
ryannielson: you're written another web framework?
awaage has quit [Quit: awaage]
<ryannielson>
atmosx: Static site generator as a learning exercise basically.
<atmosx>
ah nice
<atmosx>
sorry, I can't help you. I don't know any gems, that do what you want.
<atmosx>
you could take a look at sinatra's internals though
<ryannielson>
atmosx: Ya, I found tilt to render erbs. Was just hoping there was something that did erb and javascript stuff. haha. I'll probably just have to use sprockets and tilt
megha has joined #ruby
<atmosx>
no idea, I never actually used js
daniel_- has quit [Quit: WeeChat 0.3.9.2]
<atmosx>
not directly I mean :-)
<kiyoura>
missin out
yxhuvud2 has quit [Ping timeout: 265 seconds]
toekutr has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
dmerrick has joined #ruby
reppard has quit [Ping timeout: 264 seconds]
<chiel>
hmm.. feels like i cannot include HTTParty in a Sinatra::Base class :/
spo0n- has quit [Ping timeout: 252 seconds]
rwilcox has quit []
bradhe has joined #ruby
<atmosx>
chiel: what do you want to do exactly?
joofsh has quit [Remote host closed the connection]
zph has joined #ruby
<chiel>
atmosx: i wanted to set the timeout to something a bit lower
<chiel>
now it hangs at times
malkomalko has joined #ruby
stevechiagozie has joined #ruby
jduan1981 has quit [Quit: jduan1981]
dsdasdas has left #ruby [#ruby]
aaronmacy has quit [Quit: Leaving.]
<shevy>
hmmm is Dir.glob() the same as Dir[] ?
ryanf has joined #ruby
megha has quit [Read error: Connection reset by peer]
<shufflebot>
so just clone it into another directory
<rking>
shufflebot: So the server is running somewhere, but do you have another machine that is running the code that you can toy with?
otherj has quit [Quit: otherj]
<rismoney>
rking not entirely sure just yet. maybe - like i said 1 day w/ this type of function. i plan to rspec it to understand it better but no clue yet
macmartine has joined #ruby
<shufflebot>
no I don't have it, heh honestly git should be setup for this kind of thing I've just never been the guy whos used it
<reppard>
shufflebot: you should definitely consider developing locally
h4mz1d has joined #ruby
<reppard>
it does wonderful things for you
<rismoney>
I will change it to a hash, then that should allow the to_a work
<rking>
rismoney: OK, well, the key thing is to find some other code that makes a C call that involves passing a pointer-to-struct.
<shufflebot>
reppard: yeah I nkow heh
joshsmith has quit [Quit: joshsmith]
<reppard>
shufflebot: is your code not under version control?
<rking>
shufflebot: Well, do you want to just viciously hack it?
<shufflebot>
rking: nope heh
Fuzai has joined #ruby
<rking>
shufflebot: OK, then the only sane thing to do is set up a dev env separate from the live service.
<reppard>
cause if its not, do yourself a favor and go to root of the app and 'git init'
<shufflebot>
yeah
<Fuzai>
is there something like perl's var_dump for Ruby?
<rking>
shufflebot: Which, this is often quite a pain. We can walk you through it, but you might want to do a basic Rails tutorial first.
nooodl_ has quit [Ping timeout: 248 seconds]
<shufflebot>
rking: I've done rails and the like for a bit and I'm somewhat familiar with the ruby syntax its just the grudinglyyy learn by doing phase
sailias has quit [Quit: Leaving.]
toekutr has quit [Remote host closed the connection]
JarJar has quit [Quit: Leaving]
<rking>
shufflebot: And BTW since this is going to be a Rails-specific set of questions, it should probably go to #RubyOnRails
<shufflebot>
rking: plus I've build other webapps in other languages / and whatnot
<rking>
shufflebot: OK, that's good.
<shufflebot>
rking: well its not so much rails specific its building hte custom gem / using git
<rking>
shufflebot: It's just kind of a cluster of steps to get a dev env set up.
malkomalko has quit [Ping timeout: 252 seconds]
<shufflebot>
and I've read about it I just mentally haven't figured out
stevechiagozie has joined #ruby
<rking>
shufflebot: OK, I'll go ahead and summarize what I was going to say and you can ask other questions about the details of getting there.
<rking>
shufflebot: Let's say your dev tree is in ~/src/happy-flutes/. cd ~/src && git clone git@github.com:shufflebot/breadcrumbs_on_rails
<rking>
So now you have a ~/src/bradcrumbs_on_rails
<rking>
Then go into ~/src/happy-flutes/Gemfile and change the previous reference to 'breadcrumbs_on_rails'
<rking>
That will cause the next server start to actually use the local clone
<shufflebot>
makes sense
<rking>
Then you can hack around on it, get it how you want, then cd ../breadcrumbs_on_rails && git add . && git commit -v && git push
<reppard>
shufflebot: you can use the vendor directory in your app as well for things like that
Antiarc has quit [Read error: Operation timed out]
crackfu has quit [Ping timeout: 265 seconds]
<rking>
*Then* you go back into ~/src/happy-flutes/Gemfile and make it say: gem 'breadcrumbs_on_rails', github: 'shufflebot/breadcrumbs_on_rails '
<rking>
Oops, trailing space in there, my bad.
<rking>
After you get that to work, you can consider a Pull Request on the original.
<rking>
But if you do that, be sure to think about how general the change is (it shouldn't break anyone else's stuff), and make sure you update the tests plus add any for your new changes.
<rking>
*Then*, one shining day, they 'gem push' with your changes in it, and you can just go back to: gem 'breadcrumbs_on_rails'
w|t is now known as w|t[not_nice]
<shufflebot>
well whats annoyuing is I just need to update the styling / delimiters and he could have made it assignable
<shufflebot>
in fact he does, but if you make it null it just assigns the default delimter
Antiarc has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<rking>
shufflebot: Yeah, so you can always just use your own fork forever, but the Community Participation achievement is unlocked if you actually generalize the weppos one, configure it so the default is no change for other users, but then reconfigure it to your needs on your end.
ananthakumaran has joined #ruby
<aytch>
wait, github has achievements?
toekutr has joined #ruby
<rking>
aytch: Yes. They're kept on the leaderboard of your heart.
<aytch>
haha
<aytch>
I was actually hoping they did - Achievements can go a long way toward teaching proper gameplay concepts.
<rking>
shufflebot: You sure you can't just say separator: '/' and be done with it?
<rking>
No mods look necessary.
<shufflebot>
rking: my css adds an > for ater
<shufflebot>
I mean I could retool it but thats annoying
<shufflebot>
heh
<rking>
shufflebot: Ok, so you want this?: options: ''
<rking>
Ur
h4mz1d has joined #ruby
<rking>
separator: ''
zph has joined #ruby
<shufflebot>
rking: I did that, it just thinks separator isn't set or just ovverides with the default
jeffreybaird has joined #ruby
<shufflebot>
brb need to give someone a ride. Ill bbl
SCommette has joined #ruby
MattRb has quit [Quit: This computer has gone to sleep]
yacks has joined #ruby
lateau has quit [Ping timeout: 252 seconds]
kil0byte has quit [Read error: Connection reset by peer]
tommyvyo has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
MattRb has joined #ruby
baphled has quit [Ping timeout: 260 seconds]
malkomalko has joined #ruby
<reppard>
nite everyone
AndChat| has quit [Ping timeout: 248 seconds]
Banistergalaxy has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
macmartine has quit [Quit: Computer has gone to sleep.]
eka has joined #ruby
reppard has quit [Ping timeout: 248 seconds]
macmartine has joined #ruby
malkomalko has quit [Ping timeout: 265 seconds]
SCommette has quit [Quit: SCommette]
zodiak has quit [Quit: Leaving]
Umren has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
alejandro_ has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
_knitetemplar has quit [Remote host closed the connection]
w|t[not_nice] is now known as w|t
tk_ has joined #ruby
ebobby has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
_alejandro has quit [Ping timeout: 276 seconds]
mrbtie has quit [Quit: Leaving]
danieldocki has joined #ruby
yakko has joined #ruby
tbrock has joined #ruby
nomenkun has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
skaczor has quit [Remote host closed the connection]
savage- has joined #ruby
<shufflebot>
rking: so options '' didn't do anything, it seems to just keep using the >> delimitor even if I set it to
heyitsdave has quit [Ping timeout: 244 seconds]
hbpoison has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
danieldocki has quit [Quit: Leaving...]
nomenkun has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
huoxito has quit [Quit: Leaving]
yxhuvud2 has joined #ruby
danieldocki has joined #ruby
yxhuvud has quit [Ping timeout: 256 seconds]
<rking>
shufflebot: gist as much code as you can.
<rking>
shufflebot: Sumn' ain't right.
otters has quit [Quit: WeeChat 0.3.9.2]
otters has joined #ruby
danieldocki has quit [Client Quit]
havenn has quit [Remote host closed the connection]
jduan1981 has joined #ruby
<JohnTeddy>
I did 'sudo gem install gist', and it worked.. though pry still tells me I need to install-command gist
<ryanf>
JohnTeddy: are you in a rails app?
jeffreybaird has joined #ruby
<ryanf>
oh also you need the jist gem, not gist
<ryanf>
I think
imperator has joined #ruby
malkomalko has joined #ruby
<rking>
JohnTeddy: Are you under the watchful hate of Bundler?
n1x has quit [Ping timeout: 255 seconds]
<JohnTeddy>
rking: What is bundler?
<rking>
"bundle exec something"
<JohnTeddy>
ryanf: No, I was in gnome-terminal($BASH), and I execute 'pry'
<JohnTeddy>
I want to practice pasting methods that I loaded, or files, like file.rb
savage- has quit [Quit: savage-]
<rking>
JohnTeddy: It's a (quite nice) tool that limits the visibility of gems. So you can't say 'require "happy-time"' in your project that expects happy-time 0.0.9 and end up getting happy-time 0.1.2 just because some *other* project installe dthat.
<ryanf>
JohnTeddy: yeah, try "sudo gem install jist" and see if that works for you
<ryanf>
JohnTeddy: the gist gem was broken for a long time, so pry uses jist instead
<JohnTeddy>
ryanf: That is already installed.
d2dchat has quit [Remote host closed the connection]
<JohnTeddy>
ryanf: Should I apt-get remove --purge gist?
<ryanf>
hmm
<JohnTeddy>
both of them are installed
<ryanf>
no, that shouldn't matter
<ryanf>
what is the output of gem list?
<JohnTeddy>
er, not apt-get
<ryanf>
also are you in a directory that contains a file called "Gemfile"?
<JohnTeddy>
gem remove, or whatever the gem remove command is
<ryanf>
sorry, ignore the question about the output of gem list
<ryanf>
it doesn't matter
<JohnTeddy>
ryanf: No, there is no GemFile
<JohnTeddy>
er, Gemfile
<ryanf>
what if you run pry and then type "require 'jist'" ?
kenneth has quit [Quit: kenneth]
<JohnTeddy>
ryanf: LoadError: cannot load such file -- jist
Edward_ has quit [Ping timeout: 248 seconds]
<JohnTeddy>
hmm
<JohnTeddy>
ryanf: I think I'm confused about my environment.
savage- has joined #ruby
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<JohnTeddy>
If I already did 'sudo gem install just' (and gist), do I need to also do 'gem-install gist' in pry?
<ryanf>
JohnTeddy: can you run "sudo gem remove gist" and "sudo gem remove jist" from your shell, run "gem env" and paste the output from that, and then run "sudo gem install jist" and paste the output from that?
anirudh24seven has joined #ruby
<rking>
Wait, I'm being silly. I say 'sudo ___ install ___' and read it as an OS thing. I forgot people globally install gems. ☺
<JohnTeddy>
ryanf: Is remoev an option for gem?
<JohnTeddy>
rking: yea, I think that might be the problem.
<JohnTeddy>
I might have accidentally installed pry with apt-get
<JohnTeddy>
So it's not storing in .gem
<rking>
Hehe
<JohnTeddy>
hmm, I don't see pry in 'dpkg -al|grep -i pry' though
<rking>
I'd only use OS gems for OS packages that depended on them, but otherwise it's 100% ~/.gem
<JohnTeddy>
yea, I should make sure I do that too.
<JohnTeddy>
I can't figure out how pry is install though
<JohnTeddy>
Weird
<rking>
JohnTeddy: From within pry, do: $:.grep /pry/
<ryanf>
oh sorry, it's probably gem uninstall or something
<ryanf>
anyway tbh it seems like your env is probably messed up, which is what pretty much always happens when people use apt to install ruby-related things
<rking>
$:.grep(/pry/).grep /^(?!\/home)/ # if you want to be fancier
<ryanf>
your life will be a lot easier if you just use rvm or rbenv instead
<rking>
s/rvm or//
<JohnTeddy>
Should I sudo apt-get install rvm?
<JohnTeddy>
I don't want to think about my environment too much, I want to code. heh
<postmodern>
JohnTeddy, are you on Ubuntu 12?
<rking>
No one should ever install rvm ever, with one exception: people from the future installing it as a museum piece to see how tangled a simple problem can get.
<JohnTeddy>
I wish there was something to just automaticaly setup my environment in a sane way.
SCommette has joined #ruby
<JohnTeddy>
postmodern: yes, the latest ubuntu, 32bit
<postmodern>
JohnTeddy, alright, just install pry using `gem install`
<JohnTeddy>
You don't have write permissions into the /var/lib/gems/1.9.1 directory.
<JohnTeddy>
o weird, sudo gem uninstall pry was ignoring me
<JohnTeddy>
Since other things depend on pry
<JohnTeddy>
So I had to uninstall though.
Fretta has quit [Quit: Fretta]
<JohnTeddy>
I felt like I was in rpm hell in 2002 with Redhat or something.
mockra has joined #ruby
mockra_ has quit [Ping timeout: 240 seconds]
IceDragon has quit [Quit: Space~~~]
sailias has joined #ruby
<macmartine>
postmodern: ! i was just introduced to chruby. looking fwd to checking it out
<postmodern>
macmartine, awesome
squidBits has joined #ruby
<postmodern>
macmartine, i should probably release 0.3.2 tonight
<macmartine>
postmodern: what's new? earlier i was reading an old post about how auto-switching wasn't in, and that was a deal breaker. Someone then pointed out that it's now in and that post is outdated. Wanting to check it
luckyruby has quit [Remote host closed the connection]
<postmodern>
macmartine, two minor bug fixes
<postmodern>
macmartine, auto-switching and chruby-exec were added in 0.3.0
nomenkun has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
<postmodern>
macmartine, 0.4.0 will export a RUBY_PATCHLEVEL variable for people with custom prompts
malkomalko has quit [Ping timeout: 244 seconds]
rramsden has quit [Quit: Lost terminal]
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
_bart has quit [Quit: _bart]
macmartine has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
LouisGB has quit [Ping timeout: 260 seconds]
yxhuvud has joined #ruby
SCommette has quit [Quit: SCommette]
cableray has quit [Ping timeout: 276 seconds]
yxhuvud2 has quit [Ping timeout: 248 seconds]
tjbiddle has joined #ruby
dankest has joined #ruby
Rym has quit [Read error: Connection reset by peer]
Rym has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
Playground has quit [Ping timeout: 255 seconds]
havenn has joined #ruby
Chryson has quit [Quit: Leaving]
<JohnTeddy>
ryanf / rking / postmodern , I have pry install locally, though it still won't let me execute gist from pry.
<JohnTeddy>
All my gems were installed locally without sudo, doing 'gem install blah', I can even see the pry binary in a .gem directory.
<JohnTeddy>
Gem::FilePermissionError: You don't have write permissions into the /var/lib/gems/1.9.1 directory.
<JohnTeddy>
When i do install-command jist, it dumps that out.
havenn has quit [Ping timeout: 248 seconds]
guns has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
<JohnTeddy>
rbenv install 1.9.3-p194; is that the latest I should install?
_alejandro has joined #ruby
mneorr_ has joined #ruby
mneorr has quit [Ping timeout: 264 seconds]
alejandro_ has quit [Ping timeout: 255 seconds]
<macmartine>
JohnTeddy: That's sufficient
mahmoudimus has joined #ruby
mahmoudimus has quit [Client Quit]
malkomalko has joined #ruby
Nisstyre-laptop has quit [Read error: Connection reset by peer]
fjfish has joined #ruby
Nisstyre-laptop has joined #ruby
pnkbst has joined #ruby
mockra has quit [Ping timeout: 256 seconds]
francisfish has quit [Ping timeout: 248 seconds]
Playground has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
imperator has quit [Quit: Leaving]
pkrnj has quit [Quit: Computer has gone to sleep.]
mrdtt has joined #ruby
ebobby has quit [Ping timeout: 256 seconds]
mockra has joined #ruby
ner0x has quit [Quit: Leaving]
dankest is now known as dankest|away
tps_ has joined #ruby
malkomalko has quit [Ping timeout: 264 seconds]
slyride has joined #ruby
jblack has quit [Ping timeout: 264 seconds]
pkrnj has joined #ruby
tps_ has quit [Client Quit]
mockra has quit [Ping timeout: 256 seconds]
pkrnj has quit [Client Quit]
Rym has quit [Quit: Rym]
alejandro_ has joined #ruby
MattRb has quit [Quit: This computer has gone to sleep]
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
cableray has joined #ruby
Playground has joined #ruby
_alejandro has quit [Ping timeout: 264 seconds]
opettaja has joined #ruby
SiegeX has quit [Quit: Insert generic quit message here]
dmiller1 has joined #ruby
ryanf_ has joined #ruby
uris has quit [Quit: Leaving]
<postmodern>
JohnTeddy, it looks like GEM_HOME is pointing to /var/lib/gems/1.9.1
guns has quit [Quit: guns]
<postmodern>
JohnTeddy, to gist is trying to install into that
<postmodern>
JohnTeddy, you can override GEM_HOME in ~/.bashrc or ~/.bash_profile
<postmodern>
JohnTeddy, or install rbenv/chruby + 1.9.3
savage- has joined #ruby
virtuose has quit [Ping timeout: 276 seconds]
ryanf has quit [Ping timeout: 255 seconds]
dmiller1 has quit [Ping timeout: 276 seconds]
sailias has quit [Read error: Connection reset by peer]
<JohnTeddy>
postmodern: I got it all fixed.
<JohnTeddy>
My environment is really shiny now.
<JohnTeddy>
I'm happy.
<JohnTeddy>
I purged all global packages related to ruby.
SCommette has joined #ruby
<JohnTeddy>
Everything is in my ~
ryanf_ has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
yasu has quit [Quit: Tiarra 0.1+svn-38663: SIGTERM received; exit]
<shevy>
u purger u!
<TTilus>
\o/ polishing ftw!
danneu has quit [Ping timeout: 252 seconds]
malkomalko has joined #ruby
<TTilus>
JohnTeddy: got rbenv?
SCommette has quit [Client Quit]
yxhuvud2 has joined #ruby
osaut has joined #ruby
yxhuvud has quit [Ping timeout: 246 seconds]
adamdecaf has joined #ruby
x82_nicole has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
becom33 has joined #ruby
mjbamford has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Quit: Leaving.]
hackerdude has quit [Remote host closed the connection]
cableray has quit [Ping timeout: 252 seconds]
ryanf has quit [Quit: broken pipes |||]
malkomalko has quit [Ping timeout: 252 seconds]
adamdecaf has quit [Ping timeout: 248 seconds]
osaut has quit [Quit: osaut]
georgeisbusting has joined #ruby
stkowski has quit [Quit: stkowski]
DrShoggoth has joined #ruby
ryanf has joined #ruby
tommyvyo_ has joined #ruby
tps_ has joined #ruby
yasu has joined #ruby
bigmac has quit [Ping timeout: 240 seconds]
<Solnse>
can I convert Process.times into seconds?
jgrevich has quit [Quit: jgrevich]
tjbiddle has quit [Read error: Connection reset by peer]
georgeisbusting has quit [Quit: Leaving]
tjbiddle has joined #ruby
robustus has quit [Ping timeout: 276 seconds]
osaut has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
robustus has joined #ruby
timonv has joined #ruby
viuo_ has quit [Read error: Connection reset by peer]
viuo has joined #ruby
tjbiddle has quit [Client Quit]
maxamillion has joined #ruby
<maxamillion>
are there clever tricks for tracking down where I picked up an extra 'end' that lacks a 'do'? ... the error is throwing the last line of the file but according to the git log, the last 600 lines of this code haven't been changed in over a month, but this change happened sometime today
fyolnish has quit [Remote host closed the connection]
timonv has quit [Read error: Connection reset by peer]
<maxamillion>
Boohbah: well, that'll help in this instance because the code is checked into git ... I was just curious if there was some clever tactic that's more ruby-specific
r3nrut has quit [Read error: Connection reset by peer]
x82_nicole has quit [Quit: Computer has gone to sleep.]
noyb has joined #ruby
CLUSTERfoo has quit [Quit: Leaving]
yxhuvud2 has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby
Guest25886 has joined #ruby
maletor has joined #ruby
woolite64 has joined #ruby
Solnse has quit [Ping timeout: 264 seconds]
megha has joined #ruby
megha is now known as security
security is now known as firewall
jeffreybaird has quit [Quit: jeffreybaird]
karupanerura has quit [Excess Flood]
hemanth has joined #ruby
slainer68 has joined #ruby
becom33 has quit [Ping timeout: 260 seconds]
karupanerura has joined #ruby
becom33 has joined #ruby
becom33 has joined #ruby
becom33 has quit [Changing host]
fyolnish has quit [Ping timeout: 244 seconds]
malkomalko has joined #ruby
eldariof-office has joined #ruby
slainer68 has quit [Ping timeout: 246 seconds]
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
Neomex has quit [Client Quit]
Playground has quit [Ping timeout: 240 seconds]
Playground has joined #ruby
yasu has quit [Quit: Tiarra 0.1+svn-38663: SIGTERM received; exit]
Solnse has joined #ruby
hemanth has quit [Quit: This computer has gone to sleep]
aaronmacy has joined #ruby
toekutr has quit [Remote host closed the connection]
kumarat9pm has joined #ruby
yasu has joined #ruby
pcarrier has quit [Ping timeout: 264 seconds]
aaronmacy has quit [Client Quit]
malkomalko has quit [Ping timeout: 276 seconds]
kumarat9pm has left #ruby [#ruby]
maletor has quit [Quit: Computer has gone to sleep.]
toekutr has joined #ruby
alejandro_ has quit [Ping timeout: 248 seconds]
lobak_ has quit [Ping timeout: 260 seconds]
lobak has joined #ruby
JeanMertz has joined #ruby
roadt has joined #ruby
mibitzi has joined #ruby
savage- has quit [Quit: savage-]
<becom33>
Im kinda confused . everytime I made a chance in the sinatra app I have to stop the server from the terminal and start it again to see the chance . is there a better way to do it ?
<becom33>
change *
knirhs has quit [Ping timeout: 260 seconds]
joshsmith has joined #ruby
Axsuul has quit [Ping timeout: 256 seconds]
pnkbst has quit [Ping timeout: 276 seconds]
goganchic has joined #ruby
knirhs has joined #ruby
goganchic has quit [Remote host closed the connection]
serhart has quit [Quit: Leaving.]
hbpoison has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
Spami has joined #ruby
c3vin has quit [Read error: Connection reset by peer]
* becom33
anypne ?
<becom33>
damn it !
<becom33>
anyone *
fyolnish has joined #ruby
verma has quit [Ping timeout: 240 seconds]
russfrank has quit [Ping timeout: 260 seconds]
mahmoudimus has joined #ruby
razibog has joined #ruby
mahr_123 has joined #ruby
verma has joined #ruby
emmanuelux has joined #ruby
firewall has quit [Quit: WeeChat 0.3.9.2]
smspillaz has quit [Remote host closed the connection]
megha has joined #ruby
megha is now known as firewall
ananthakumaran has joined #ruby
verma has quit [Ping timeout: 260 seconds]
verma has joined #ruby
russfrank has joined #ruby
malkomalko has joined #ruby
Playground is now known as lolcathost
greg5green has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
jondot` has joined #ruby
reinaldob has joined #ruby
jimeh has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
danneu has quit [Ping timeout: 252 seconds]
mneorr has quit [Remote host closed the connection]
rakuN has quit [Quit: rakuN]
bluOxigen has quit [Ping timeout: 246 seconds]
Umren has joined #ruby
fyolnish has quit [Ping timeout: 255 seconds]
_46bit has joined #ruby
_46bit has left #ruby [#ruby]
Solnse has quit [Ping timeout: 240 seconds]
pedrosnk has quit [Quit: pedrosnk]
Astral_ has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
wermel has joined #ruby
rezzack has quit [Read error: Operation timed out]
RagingDave has joined #ruby
reinaldob has quit [Remote host closed the connection]
hemanth has quit [Quit: Leaving]
dwu1 has quit [Quit: Leaving.]
emergion has quit [Quit: Computer has gone to sleep.]
baphled has joined #ruby
pattersonc has joined #ruby
pattersonc has quit [Client Quit]
lockweel has joined #ruby
niklasb has joined #ruby
ejnahc has quit [Quit: leaving]
ejnahc has joined #ruby
freeayu has joined #ruby
nomenkun has joined #ruby
Pip has joined #ruby
Abhijit has joined #ruby
<Abhijit>
hi
atmosx has joined #ruby
razibog has quit [Ping timeout: 244 seconds]
<atmosx>
hello
<atmosx>
anyone doing coffescript in his spare time?
fyolnish has joined #ruby
<Abhijit>
i am trying to access https://www.libavg.de/site/ and getting error Ruby on Rails application could not be started and phusion passenger error
danguita has quit [Quit: WeeChat 0.3.7]
<Abhijit>
but its up for everyone else
<Abhijit>
help please
roadt has quit [Read error: Connection reset by peer]
<atmosx>
Abhijit: it's not up for everyone else
<atmosx>
Ruby on Rails application could not be started <-- it's down for me too
<atmosx>
Abhijit: try #rubyonrails
<Abhijit>
ok good
<Abhijit>
atmosx, its not my site
<Abhijit>
i just want to view pages on that site.
<atmosx>
ah k
<atmosx>
contact the admin
<Abhijit>
atmosx, is there anythix i can do to fix or should just wait owner to fix it?
<atmosx>
google cache
<atmosx>
omnipotent google knows everything
<Abhijit>
:-)
browndawg has quit [Quit: Leaving.]
onibox has joined #ruby
banister`sleep has quit [Remote host closed the connection]
lockweel has quit [Remote host closed the connection]
anirudh24seven has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121010144125]]
arturaz has quit [Remote host closed the connection]
Proshot has joined #ruby
Virunga has quit [Remote host closed the connection]
shtirlic has quit [Remote host closed the connection]
shtirlic has joined #ruby
fyolnish has quit [Ping timeout: 244 seconds]
hbpoison has joined #ruby
timonv_ has joined #ruby
shtirlic has quit [Ping timeout: 246 seconds]
timonv has quit [Read error: Connection reset by peer]
Zolo has joined #ruby
woolite64 has quit [Ping timeout: 255 seconds]
timonv_ has quit [Read error: Connection reset by peer]
firewall has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
ViPi has joined #ruby
atmosx has quit [Quit: And so the story goes…]
serhart has joined #ruby
TheFuzzball has joined #ruby
Proshot has quit [Quit: Leaving]
<sn0wb1rd>
Anybody know how to print "loading" graphics/animation on the terminal?
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<Spooner>
sn0wb1rd, Not sure what you are asking. You just use "puts 'Loading...'"?
spacemud has quit [Ping timeout: 248 seconds]
<sn0wb1rd>
Spooner: I'm not sure how to explain. Something with characters '-', '|', '/', '-'
<Spooner>
Oh right, sorry. You can manage the control codes yourself, but there are libraries for that sort of thing. e.g. curses
<sn0wb1rd>
I was just looking at that.
<Spooner>
Basically, you print '-', then move the cursor left, then print '|', etc.
mercwithamouth has quit [Ping timeout: 240 seconds]
braoru has quit [Remote host closed the connection]
Donkeycoder has joined #ruby
Abhijit has quit [Quit: Leaving]
mercwithamouth has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
nomenkun_ has joined #ruby
banister`sleep has joined #ruby
clooth has joined #ruby
atno has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
Astral_ has quit [Ping timeout: 252 seconds]
reinaldob has quit [Remote host closed the connection]
jds_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
Astralum has joined #ruby
SeySayux has quit [Ping timeout: 240 seconds]
<Blue_Ice>
is there a string method to get the UTF-16 codepoints ? I found "each_codepoint", but that returns decimal code points, I need the UTF-16 code units (see http://home.comcast.net/~caetools/unicode/unicode.html )
villadelfia has quit [Ping timeout: 276 seconds]
emocakes has joined #ruby
postmodern has quit [Quit: Leaving]
villadelfia has joined #ruby
SeySayux has joined #ruby
<heftig>
Blue_Ice: just convert decimal to hex
tps_ has joined #ruby
<heftig>
"foo".codepoints.map { |c| "%04x" % c }
<heftig>
or %04X, if you prefer
<Spooner>
53.to_s(16) #=> "35"
hrr has joined #ruby
moshee has quit [Ping timeout: 255 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
nyuszika7h has quit [Read error: Connection reset by peer]
<Blue_Ice>
thanks heftig ! I must have done something wrong previously (wat trying with hex/to_hex yesterday but that yielded incorrect results)
<Blue_Ice>
idna ... such a pain
reinaldob has joined #ruby
willob has joined #ruby
RagingDave_ has quit [Quit: Ex-Chat]
browndawg has joined #ruby
reinaldob has quit [Remote host closed the connection]
mengu has joined #ruby
danieldocki has joined #ruby
jonahR has joined #ruby
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
pavilionXP has joined #ruby
nyuszika7h has joined #ruby
LouisGB has quit [Ping timeout: 246 seconds]
nooodl has joined #ruby
slainer68 has quit [Remote host closed the connection]
sie has joined #ruby
wermel has quit [Remote host closed the connection]
banister`sleep has quit [Remote host closed the connection]
LouisGB has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
cortez has joined #ruby
sie has quit [Read error: Connection reset by peer]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
sie has quit [Read error: Connection reset by peer]
nomenkun_ is now known as nomenkun
whowantstolivefo has quit [Ping timeout: 256 seconds]
sie has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
sie has quit [Read error: Connection reset by peer]
danieldocki has quit [Quit: Leaving...]
sepp2k has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby
Daman has quit [Ping timeout: 256 seconds]
sie has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
goganchic has joined #ruby
nooodl has quit [Read error: Connection reset by peer]
percival__ has quit [Quit: Planned maintenance, back soon]
Guest85414 has quit [Quit: Planned maintenance, back soon]
kapowaz has quit [Quit: Planned maintenance, back soon]
pkondzior__ has quit [Quit: Planned maintenance, back soon]
moeSeth_ has quit [Quit: Planned maintenance, back soon]
dekz__ has quit [Quit: Planned maintenance, back soon]
dotemacs has quit [Quit: Planned maintenance, back soon]
spanx___ has quit [Quit: Planned maintenance, back soon]
fcoury_ has quit [Quit: Planned maintenance, back soon]
NimeshNeema has quit [Quit: Planned maintenance, back soon]
bluehavana has quit [Quit: Planned maintenance, back soon]
davidboy has quit [Quit: Planned maintenance, back soon]
octarine has quit [Quit: Planned maintenance, back soon]
rcsheets has quit [Quit: Planned maintenance, back soon]
patricksroberts_ has quit [Quit: Planned maintenance, back soon]
thejefflarson_ has quit [Quit: Planned maintenance, back soon]
xerxas has quit [Quit: Planned maintenance, back soon]
lectrick has quit [Quit: Planned maintenance, back soon]
jhowarth__ has quit [Quit: Planned maintenance, back soon]
Spaceghost|cloud has quit [Quit: Planned maintenance, back soon]
tommyvyo[cloud]_ has quit [Quit: Planned maintenance, back soon]
robotmay_ has joined #ruby
sepp2k has joined #ruby
hbpoison has joined #ruby
otherj has joined #ruby
karasawa has joined #ruby
robotmay has quit [Ping timeout: 264 seconds]
hybris has joined #ruby
y^dolce has quit [Ping timeout: 276 seconds]
pskosinski has joined #ruby
hybris has left #ruby [#ruby]
ebouchut has joined #ruby
hybris has joined #ruby
banister`sleep has joined #ruby
hbpoison has quit [Ping timeout: 248 seconds]
sie has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
statarb3 has quit [Ping timeout: 248 seconds]
spo0n- has quit [Quit: Leaving]
freeayu has quit [Remote host closed the connection]
sie has quit [Read error: Connection reset by peer]
eldariof-office has quit [Ping timeout: 276 seconds]
otherj has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 264 seconds]
sie has joined #ruby
nari has quit [Ping timeout: 248 seconds]
hbpoison has joined #ruby
subbyyy has joined #ruby
skaczor has joined #ruby
slainer68 has joined #ruby
clooth has quit [Quit: clooth]
goganchic has quit [Quit: Leaving.]
hbpoison has quit [Ping timeout: 265 seconds]
hbpoison has joined #ruby
goganchic has joined #ruby
robotmay_ has quit [Ping timeout: 260 seconds]
jonahR_ has joined #ruby
jonahR has quit [Ping timeout: 252 seconds]
jonahR_ is now known as jonahR
jacktrick has joined #ruby
danieldocki has joined #ruby
slainer68 has quit [Ping timeout: 276 seconds]
hybris has left #ruby [#ruby]
bluOxigen has joined #ruby
reinaldob has joined #ruby
goganchic has quit [Quit: Leaving.]
hbpoison has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
joofsh has joined #ruby
kjellski has joined #ruby
kjellski has quit [Client Quit]
crackfu has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
jaywastaken has joined #ruby
jaywastaken has quit [Changing host]
jaywastaken has joined #ruby
Apic has joined #ruby
<Apic>
Hi. I get: /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- md5 (LoadError)
timonv has joined #ruby
<Apic>
What do I need to install so md5 will be available?
<emocakes>
lol
<apeiros_>
that's probably because it is digest/md5, not md5
<emocakes>
you need to rtfm :o
<apeiros_>
also md5 is too weak and thus deprecated. don't use it, except if you have to interface with some legacy system.
<apeiros_>
"I've never been hacked" != "my security is good"
<emocakes>
have you heard of norton apeiros_?
niklasb has quit [Read error: Connection reset by peer]
<emocakes>
thats what I;m running, impossible to penetrate
<apeiros_>
oh my
<apeiros_>
why do you md5 your pw's at all then?
Apic has left #ruby ["Fnord"]
<emocakes>
let the client feel safe
aapzak has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 248 seconds]
<apeiros_>
anyway, not willing to even start that discussion. md5 has been broken. don't use it. your own fault if you still do. there's enough security advisories online to google.
hbpoison has quit [Ping timeout: 246 seconds]
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
niklasb has joined #ruby
reinaldob has quit [Remote host closed the connection]
<emocakes>
This MD5 hash generator is useful for encoding passwords, credit cards numbers and other sensitive date into MySQL
<apeiros_>
with regards to that filewatcher lib - using crypto-hashing for change-detection isn't exactly a good idea to start with. crypto-hashes are not built for performance.
<emocakes>
"However, it is a one-way transaction and as such it is almost impossible to reverse engineer an MD5 hash to retrieve the original string."
hbpoison has quit [Read error: Connection reset by peer]
Rym has joined #ruby
hbpoison has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
vegeek-ng has quit [Quit: Leaving]
sie has quit [Read error: Connection reset by peer]
ebouchut has quit [Quit: This computer has gone to sleep]
sie has joined #ruby
bigmac has joined #ruby
sie has quit [Read error: Connection reset by peer]
<bigmac>
http%3A%2F%2Famazon how can i decode this properly... i could use gsub but this is lame
<bigmac>
://
<apeiros_>
CGI.unescape
sie has joined #ruby
gyre007_ has joined #ruby
gyre008_ has joined #ruby
irkaclient has joined #ruby
TheFuzzball has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
sie has quit [Read error: Connection reset by peer]
jacktrick has joined #ruby
gyre008 has quit [Ping timeout: 276 seconds]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
hbpoison has joined #ruby
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby
cortez has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 276 seconds]
shtirlic has joined #ruby
maxmanders has joined #ruby
goganchic has quit [Quit: Leaving.]
Spami has joined #ruby
<bigmac>
thanks
sie has quit [Read error: Connection reset by peer]
Pip has quit [Ping timeout: 244 seconds]
cortez has joined #ruby
yshh has joined #ruby
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
Neomex has quit [Quit: Neomex]
Goles has joined #ruby
Goles_ has joined #ruby
sie has quit [Read error: Connection reset by peer]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
cortez has quit [Ping timeout: 276 seconds]
neersighted has joined #ruby
otters has joined #ruby
Goles_ has quit [Client Quit]
robotmay_ has joined #ruby
hotovson has joined #ruby
banister`sleep has joined #ruby
hackerdude has joined #ruby
robotmay has quit [Ping timeout: 264 seconds]
squidBits has quit [Quit: squidBits]
vlad_starkov has quit [Remote host closed the connection]
MattRb has joined #ruby
sie has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
irkaclient has left #ruby [#ruby]
gabebug has quit [Quit: gabebug]
hadees has joined #ruby
hydrozen has joined #ruby
pedrosnk has joined #ruby
_bart has quit [Ping timeout: 264 seconds]
<hydrozen>
I was hit by the segmentation fault in 1.9.3-p362 last night. Is it still worth it to report? I'm guessing the devs are aware of the problem by now.
<banister`sleep>
hydrozen: do u have a backtrace?
banister`sleep is now known as banisterfiend
verto|off is now known as verto
verto is now known as Guest50244
<hydrozen>
banisterfiend: yes
jonathanwallace has quit [Ping timeout: 248 seconds]
Goles has quit [Quit: Computer has gone to sleep.]
viario has quit [Remote host closed the connection]
banisterfiend has joined #ruby
_br_ has joined #ruby
wf2f has quit []
osaut has quit [Quit: osaut]
razibog has joined #ruby
kil0byte has quit [Remote host closed the connection]
Goles_ has quit [Quit: Out.]
Goles has joined #ruby
reppard has quit [Ping timeout: 252 seconds]
berserkr has joined #ruby
vlad_starkov has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
viario has joined #ruby
MattRb has quit [Quit: This computer has gone to sleep]
samphippen has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
savage- has joined #ruby
heyitsdave has joined #ruby
samuelj has joined #ruby
JohnTeddy has joined #ruby
<samuelj>
Hey, does anyone know if it's possible to dynamically change my Gemfile and rerun bundle install from within an app?
<samuelj>
*a heroku app, that is
hbpoison has joined #ruby
<JohnTeddy>
If I have a hash table with keys "a".."z", each with a value of some integer, how can I pick the key with the highest value integer that isn't in the picked_keys array?
<JohnTeddy>
How can I pick the letter from the hash table with the highest integer value that isn't in picked_keys?
robotmay_ has quit [Ping timeout: 264 seconds]
<apeiros_>
JohnTeddy: uuuuuh, are you sure that's the way you want to structure your data to solve that problem? o0
swingha has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<JohnTeddy>
apeiros_: What is a better way?
<apeiros_>
with that datastructure, you'd probably use Hash#keys, Array#- and Array#max_by
<apeiros_>
JohnTeddy: well, one which doesn't involve having to test all keys…
<ViPi>
get the sorted set of keys (by value), substract your picked-Key values, take the last element of the set
tbrock has joined #ruby
tbrock has quit [Max SendQ exceeded]
Spami has joined #ruby
tbrock has joined #ruby
tbrock has quit [Max SendQ exceeded]
ananthakumaran1 has joined #ruby
tps_ has joined #ruby
tbrock has joined #ruby
mahmoudimus has joined #ruby
<ViPi>
not sure its the most performance effective way though
robotmay has quit [Ping timeout: 264 seconds]
<JohnTeddy>
apeiros_: Are you saying my data structure should be an array, or that I should manipulate my datastructure on the fly, to say remove picked_keys from the data structure, each time a key gets added to it. ?
delphaber has joined #ruby
Monie has quit [Read error: Connection reset by peer]
_knitetemplar has quit [Remote host closed the connection]
<apeiros_>
JohnTeddy: I'm not proposing a different way to structure your data (hint: I'm not the one who should have thought about how to solve your problem). All I'm saying is that your current datastructure isn't well suited for the problem you asked about.
ananthakumaran has quit [Ping timeout: 252 seconds]
greenarrow has quit [Quit: IRC is just multiplayer notepad]
<apeiros_>
apa: please, for the love of irc, don't metaquestions.
<apeiros_>
+ask
SCommette has quit [Quit: SCommette]
<apa>
apeiros: don't undertand what you mean with metaquestions
<apeiros_>
let me reply with a metaquestion: how does answering your question help you solve your problem?
mackintosh has joined #ruby
<apa>
apeiros_: ok, let's formulate better my question
<apa>
apeiros_: I'm experimenting with IPC (inter process communication) in ruby
shevy has quit [Ping timeout: 246 seconds]
<apa>
apeiros_: different processes communicate with the master process through a pipe
billy_ran_away has joined #ruby
danneu has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<apa>
apeiros_: I just wanted to know how can I read a variable length string from a pipe and convert it to a Struct
<apeiros_>
apa: you to either know the length or have a terminator
<apeiros_>
if you know the length: IO#read(len), if you have a terminator: IO#gets(term)
<apa>
apeiros_: there is where I would like some help with
<apa>
apeiros_: the workers send information: <process-no><heart-bit time>
<canton7>
he's just answered :P
<apa>
apeiros_: now, process-no can be 1 or 10
dhruvasagar has joined #ruby
<apa>
apeiros_: and that is a different length
pu22l3r has joined #ruby
<apa>
apeiros_: now, I don't know if "pipes" is the right way to do that
bradhe has joined #ruby
<apeiros_>
pipes or other method is mostly irrelevant
browndawg has quit [Quit: Leaving.]
dhruvasagar has quit [Read error: Connection reset by peer]
<apa>
apeiros_: tried to search for posix messages queues on OS X but not supported
<apeiros_>
do you write the worker?
ben__ has joined #ruby
<apa>
apeiros_: yep
<apeiros_>
then you can change the protocol
<apeiros_>
I'm sure you can come up with a non-variable-length way to express "1 out of 2 values"
<apa>
hmm, ok, will continue thinking about a nice way to do it. Now it is very naive what I did: just write process-no and Time.now.to_i to the pipe
bigmac has quit [Remote host closed the connection]
<apa>
and on the master I know the first char is the process-no and the rest is the heart-bit
<apa>
and I read nonblocking, 11 chars
<Mon_Ouie>
If you didn't put anything in between, your protocol isn't really ambiguous but still confusing
<apa>
because I know I have less than 10 workers (just 4)
<apeiros_>
apa: as said, you can either know the length (by having a fixed length message or by sending the length)
<apeiros_>
apa: or you send a terminator after each message
<apeiros_>
and what Mon_Ouie said
<apa>
aha
stevechiagozie has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie>
You could for example write a line with the two numbers separated by a space, or using a binary format with pack/unpack
maxmanders has joined #ruby
Spooner has quit [Remote host closed the connection]
brianpWins has joined #ruby
<apa>
second suggestion seems better
browndawg has joined #ruby
Spooner has joined #ruby
workmad3 has joined #ruby
<Mon_Ouie>
Binary protocols have the advantage of being very space efficient, text-based protocols have the advantage of being human readable (which can help debugging)
<apa>
I can give a separator to self defined separator to IO.write, right?
dnyy has quit [Remote host closed the connection]
<Mon_Ouie>
(for something that simple, it's no big deal either way)
<apa>
indeed
<apa>
probably I will continue with text based for simplicity
thorncp has quit [Ping timeout: 260 seconds]
shevy has joined #ruby
dwu1 has joined #ruby
SCommette has joined #ruby
thorncp has joined #ruby
<canton7>
please, whatever you do, don't go with some "magic" separator that's just a normal string you're assuming, but not ensuring, won't be used in normal operation :P
<apeiros_>
canton7: I love "<thisismyseparatoranditwontoccuranywhere>"
<apeiros_>
canton7: also, you're aware of mime-multipart? :D
hbpoison has joined #ruby
<canton7>
apeiros_, I love it when it's some learning project. I hate it when people try and defend it :P
<apa>
canton7: nice separator
hotovson has quit [Remote host closed the connection]
Guest50244 is now known as verto
Hanmac has joined #ruby
shtirlic has joined #ruby
maxmanders has quit [Ping timeout: 248 seconds]
apa has quit [Remote host closed the connection]
m104 has joined #ruby
jaygen has quit [Remote host closed the connection]
maxmanders has joined #ruby
* apeiros_
bets most mail clients just use a really long PRN
danneu has joined #ruby
hadees has quit [Quit: hadees]
atno has joined #ruby
<shevy>
I find myself often rewriting old code
<shevy>
sometimes even starting from scratch, rather than going through the old code and changing things to a new model
<aytch>
That's refactoring, and it's a good thing
pu22l3r has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
yshh has joined #ruby
viario has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
karakedi has left #ruby [#ruby]
ananthakumaran has quit [Quit: Leaving.]
Playground has joined #ruby
stevechiagozie has joined #ruby
SCommette has quit [Quit: SCommette]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
sokrates has quit [Quit: Page closed]
speakingcode has quit [Disconnected by services]
weeb1e has quit [Remote host closed the connection]
yshh has quit [Ping timeout: 248 seconds]
shtirlic has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
weeb1e has joined #ruby
bluOxigen has joined #ruby
SCommette has joined #ruby
generalissimo has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
kjellski has joined #ruby
buibex has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
JohnBat26 has joined #ruby
SCommette has quit [Client Quit]
zodiak has joined #ruby
<danneu>
wouldnt that be rewriting?
mneorr has joined #ruby
aaronmacy has joined #ruby
ebouchut has joined #ruby
goganchic has quit [Quit: Leaving.]
Asym has joined #ruby
bricker_ has joined #ruby
Asym has left #ruby [#ruby]
buibex has quit [Ping timeout: 276 seconds]
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
bricker_ has quit [Client Quit]
bricker_ has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
_bart has quit [Quit: _bart]
Hanmac has quit [Ping timeout: 276 seconds]
browndawg has quit [Quit: Leaving.]
AsgardBSD has quit [Remote host closed the connection]
bricker_ has quit [Client Quit]
bricker_ has joined #ruby
squidBits has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ebouchut has quit [Quit: This computer has gone to sleep]
<shevy>
yeah
sepp2k has quit [Remote host closed the connection]
Spami has joined #ruby
<shevy>
the problem I have is that, it seems much simpler to think from zero and rewrite from zero, than jump into a large project and try to fix its shortcomings
dr_neek has quit [Quit: dr_neek]
bluOxigen has quit [Ping timeout: 276 seconds]
aaronmacy has quit [Quit: Leaving.]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
BizarreCake has quit [Ping timeout: 256 seconds]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
Spami has quit [Client Quit]
_alejandro has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
NullByte is now known as Gliner
Gliner is now known as FEWONA
SCommette has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
nomenkun has quit [Remote host closed the connection]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
dmiller1 has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ebouchut has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
bluOxigen has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ben__ has quit [Quit: ben__]
ViPi has quit [Max SendQ exceeded]
bradhe has joined #ruby
ViPi has joined #ruby
browndawg has joined #ruby
graft_ has quit [Ping timeout: 244 seconds]
Spooner has quit [Read error: Connection reset by peer]
s1n4 has joined #ruby
alejandro_ has joined #ruby
dankest has joined #ruby
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
andrewhl has joined #ruby
_alejandro has quit [Ping timeout: 248 seconds]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
s1n4 has quit [Quit: peace out]
pacbard is now known as zz_pacbard
objectivemo has joined #ruby
gyre007_ has quit [Remote host closed the connection]
Alenah has joined #ruby
Alenah has quit [Excess Flood]
statarb3 has quit [Ping timeout: 240 seconds]
red|dye has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
_alejand_ has joined #ruby
SCommette has quit [Quit: SCommette]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
red|dye has left #ruby [#ruby]
DrShoggoth has quit [Ping timeout: 248 seconds]
zph has quit [Quit: Computer has gone to sleep.]
alejandro_ has quit [Ping timeout: 276 seconds]
generalissimo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
lolcathost has joined #ruby
Playground has quit [Read error: Connection reset by peer]
browndawg has left #ruby [#ruby]
nkr has quit [Read error: Connection reset by peer]
dankest has quit [Quit: Leaving...]
nkr has joined #ruby
DrShoggoth has joined #ruby
tarsolya has quit [Quit: Lost terminal]
jds_ has joined #ruby
Zolo has quit [Remote host closed the connection]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
weddingcakes has joined #ruby
zeade has quit [Ping timeout: 260 seconds]
FEWONA is now known as Rix
solidoodlesuppo has joined #ruby
solidoodlesuppor has quit [Ping timeout: 248 seconds]
graft_ has quit [Ping timeout: 248 seconds]
davidokner has quit [Quit: leaving]
jds_ has quit [Remote host closed the connection]
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
solidoodlesuppo is now known as solidoodlesuppor
yacks has quit [Remote host closed the connection]
<wting>
I'm using multiple threads to read/write to a MongoDB. Should I have one db connection per thread or one total?
<bigmac>
how can i use....
sgupta has quit [Ping timeout: 240 seconds]
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
<yfeldblum>
wting, the mongo driver from 10gen coordinates a thread-safe connection pool for you
<wting>
yfeldblum: Thanks!
bigmac has quit [Client Quit]
Playground has joined #ruby
<yfeldblum>
wting, so you just need to instantiate a single Mongo::MongoClient (or Mongo::MongoReplicaSetClient or whatever) and the thread-safe connection-pool is handled behind the scenes
<yfeldblum>
wting, make sure you configure it, though, to have as many connections as you will end up needing per pool ...
m104 has quit [Quit: Be back later]
_alejandro has joined #ruby
objectivemo has quit [Quit: objectivemo]
alejandro_ has joined #ruby
rippa has quit [Ping timeout: 260 seconds]
Targen has quit [Ping timeout: 240 seconds]
_alejand_ has quit [Ping timeout: 256 seconds]
ryanf has joined #ruby
<wting>
I've been using a single Mongo::Connection.new, looking into Mongo::MongoClient
zz_pacbard is now known as pacbard
zph has joined #ruby
<wting>
hmm, looks like Mongo::Connection is deprecated
<wting>
guess I need to update my code, thanks for the help
_alejandro has quit [Ping timeout: 272 seconds]
v0n has joined #ruby
SeanTAllen has quit [Remote host closed the connection]
nomenkun has joined #ruby
notbrent has quit [Remote host closed the connection]
cableray has joined #ruby
mneorr has joined #ruby
im0b has quit [Remote host closed the connection]
Targen has joined #ruby
s1n4 has joined #ruby
nathancahill has quit [Quit: nathancahill]
heftig has quit [Quit: leaving]
jacktrick has quit [Quit: Leaving]
toekutr has joined #ruby
jaygen has joined #ruby
nomenkun has quit [Ping timeout: 272 seconds]
s0ber_ has joined #ruby
Dann1 has joined #ruby
s0ber has quit [Ping timeout: 255 seconds]
s0ber_ is now known as s0ber
SeanTAllen has joined #ruby
notbrent has joined #ruby
macmartine has joined #ruby
im0b has joined #ruby
stevechiagozie has joined #ruby
Zolo has joined #ruby
bradhe has joined #ruby
kjellski has quit [Quit: Leaving]
subbyyy has quit [Ping timeout: 264 seconds]
daguco has joined #ruby
ossareh has joined #ruby
karasawa has quit [Ping timeout: 248 seconds]
gyre007 has joined #ruby
stevechiagozie has quit [Ping timeout: 252 seconds]
karasawa has joined #ruby
ViPi_ has joined #ruby
Dann1 has quit [Ping timeout: 255 seconds]
ViPi has quit [Ping timeout: 265 seconds]
Edward_ has quit [Ping timeout: 248 seconds]
Dann1 has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
Dann1 has joined #ruby
jondot` has quit [Read error: Connection reset by peer]
joofsh has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 252 seconds]
daguco has left #ruby ["Saliendo"]
karasawa has quit [Remote host closed the connection]
Dann1 has quit [Client Quit]
gnarmis has quit [Remote host closed the connection]
gnarmis has joined #ruby
stevechiagozie has joined #ruby
cableray has quit [Quit: cableray]
m104 has joined #ruby
karasawa has joined #ruby
havenn has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
gnarmis has quit [Ping timeout: 248 seconds]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
allsystemsarego has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
Dann1 has joined #ruby
zeade has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
<ryanf>
wting: in the current gem, Mongo::Connection is almost just a subclass of MongoClient
Dann1 has joined #ruby
Dann1 has quit [Read error: Connection reset by peer]
ossareh has quit [Read error: Connection reset by peer]
x82_nicole has joined #ruby
perlsyntax has joined #ruby
zeade has quit [Quit: Leaving.]
slainer68 has joined #ruby
nathancahill has quit [Quit: nathancahill]
mrbtie has quit [Remote host closed the connection]
solidoodlesuppor has quit [Remote host closed the connection]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
mrbtie has joined #ruby
DrShoggoth has joined #ruby
akl_ has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
aytch has quit [Remote host closed the connection]
aytch has joined #ruby
rakl has joined #ruby
v0n has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
pmros has quit [Quit: Konversation terminated!]
osaut has quit [Read error: Connection reset by peer]
osaut has joined #ruby
DrShoggoth has quit [Ping timeout: 272 seconds]
havenn has joined #ruby
matthewrobbins has joined #ruby
m104 has quit [Quit: Bye!]
linoj has joined #ruby
aytch has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 264 seconds]
nathancahill has joined #ruby
AlbireoX has joined #ruby
bradhe has joined #ruby
rburton- has joined #ruby
<oblio>
i have some json with a list of elements that have name and parent attributes (which match other names), anyone know a quick way to generate & print a hierarchy from the list?
matthewrobbins has quit [Quit: matthewrobbins]
f03lipe has joined #ruby
s1n4 has quit [Quit: leaving]
andrewhl has quit [Remote host closed the connection]
AlbireoX has quit [Ping timeout: 246 seconds]
thone has joined #ruby
dnyy has joined #ruby
nathancahill_ has joined #ruby
AlbireoX has joined #ruby
thufir_ has joined #ruby
<apeiros_>
oblio: what have you tried so far?
mercwithamouth has quit [Ping timeout: 272 seconds]
dmiller1 has quit [Quit: WeeChat 0.3.9.2]
thone_ has quit [Ping timeout: 240 seconds]
macmarti_ has joined #ruby
mercwithamouth has joined #ruby
mrbtie has quit [Quit: Leaving]
f03lipe has quit [Quit: Leaving]
nathancahill has quit [Ping timeout: 264 seconds]
nathancahill_ is now known as nathancahill
macmartine has quit [Ping timeout: 276 seconds]
f03lipe has joined #ruby
snearch has quit [Quit: Verlassend]
alanp_ has joined #ruby
f03lipe has quit [Max SendQ exceeded]
Nisstyre-laptop has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
alanp has quit [Ping timeout: 264 seconds]
nesoi has left #ruby ["I'm a happy Miranda IM user! Get it here: http://miranda-im.org"]
albakry has quit [Quit: Leaving]
h4mz1d has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
osaut has quit [Quit: osaut]
<pskosinski>
number.chr is has range 0-255. but char.ord is returning codes from much bigger range… is it using utf-8?
<pskosinski>
or what is it...
akl_ has quit [Ping timeout: 265 seconds]
hbpoison has quit [Ping timeout: 276 seconds]
vlad_sta_ has quit [Remote host closed the connection]
hbpoison has joined #ruby
_knitetemplar has joined #ruby
clooth has joined #ruby
aytch has joined #ruby
<pskosinski>
nvm
perlsyntax has quit [Quit: Leaving]
allsystemsarego_ has quit [Quit: Leaving]
_hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has quit [Read error: Connection reset by peer]
Playground has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
_hemanth_ has joined #ruby
hbpoison has quit [Remote host closed the connection]
butblack has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
<butblack>
can a when in a case statement have an if statement?
<danneu>
butblack: like what
<butblack>
sec i'll throw it in a gist
<danneu>
butblack: nesting conditional checks is a code smell imo
<butblack>
what's a code smell
<danneu>
like, signs that youre going down a dark route that will make you sad if you don't heed the warnings
<danneu>
and refactor today
<butblack>
danneu: ha and ok ill throw it into a method
<danneu>
butblack: gist it
<danneu>
i havent seen your code man, maybe what you have in mind is perfect. who knows
h4mz1d has quit [Ping timeout: 264 seconds]
_knitetemplar has quit [Remote host closed the connection]
aytch has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 276 seconds]
aytch has joined #ruby
hbpoison has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
<apeiros_>
butblack: a when statement consists of normal code again. there are no restrictions.
bentglasstube has left #ruby [#ruby]
jondot` has quit [Ping timeout: 256 seconds]
clooth has quit [Quit: clooth]
gnarmis has joined #ruby
aytch has quit [Ping timeout: 265 seconds]
h4mz1d has joined #ruby
Beoran_ has joined #ruby
apeiros has joined #ruby
ossareh has joined #ruby
LouisGB has joined #ruby
aytch has joined #ruby
apeiros_ has quit [Ping timeout: 264 seconds]
robert__ has joined #ruby
dreinull has quit [Remote host closed the connection]
Beoran__ has quit [Ping timeout: 248 seconds]
noyb has joined #ruby
aytch has quit [Remote host closed the connection]