dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.11
v0n has quit [Read error: Operation timed out]
[krisbulman] is now known as krisbulman
krisbulman is now known as krisbulman|afk
Dwarf has quit [Ping timeout: 272 seconds]
Dwarf has joined #cinch
krisbulman|afk is now known as [krisbulman|afk]
[krisbulman|afk] is now known as krisbulman
v0n has joined #cinch
postmodern has quit [Quit: Leaving]
krisbulman is now known as [krisbulman]
postmodern has joined #cinch
postmodern has quit [Client Quit]
postmodern has joined #cinch
Spami has joined #cinch
v0n has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
thews has quit [Ping timeout: 272 seconds]
thews has joined #cinch
thews has joined #cinch
thews has quit [Changing host]
kludge` has quit [Ping timeout: 272 seconds]
kludge` has joined #cinch
postmodern has quit [Quit: Leaving]
[krisbulman] is now known as krisbulman
v0n has joined #cinch
zipper has joined #cinch
<zipper> Uh has anyone got code on using cinch for a now playing command with last fm?
Azure has quit [Ping timeout: 260 seconds]
v0n has quit [Ping timeout: 245 seconds]
Azure has joined #cinch
v0n has joined #cinch
v0n has quit [Ping timeout: 245 seconds]
v0n has joined #cinch
Dwarf has quit [Remote host closed the connection]
<deb> hi, gem install yaml
<deb> ERROR: Could not find a valid gem 'yaml' (>= 0) in any repository
<deb> ERROR: Possible alternatives: aml, cyaml, haml, maml, raml
<deb> i need to read .yaml files, which one i have to use?
xeviox|afk is now known as xeviox
<mpapis> deb, yaml is part of ruby, just make sure libyaml is available when you install ruby (rvm does that for you)
<deb> how do i make sure? debian 7 amd64 here
<catepillar> run irb
<catepillar> require 'yaml'
<deb> require 'yaml' cool, i think is on
<deb> told me true
<catepillar> then it has already been installed
Dunke|Work is now known as Dunke|m
<catepillar> you can kill irb with "exit"
<deb> thanks
Spami has joined #cinch
Dwarf has joined #cinch
Dunke|m is now known as Dunke
zipper is now known as urbanslug
urbanslug has quit [Quit: leaving]
swapnasa has joined #cinch
swapnasa has quit [Ping timeout: 245 seconds]
<Rickmasta> Is there any way I can check if the user is identified?
<leftylink> check out authed? and authname
<Rickmasta> Thank you very much.
zipper has joined #cinch
<zipper> Hey could someone help me with this: https://gist.github.com/urbanslug/8848867
<Cinchy> [gist] np.rb (at gist.github.com, urbanslug on 2014-02-06 17:33)
<zipper> When I introduce an if to check whether parsed is null it again return nothing.
Spami has quit [Quit: This computer has gone to sleep]
<waxjar> zipper you haven't assigned anything to we
<waxjar> variables you set in a block are only visible in the block
<zipper> waxjar: I have in line 13
<zipper> waxjar: Oh man how do I make it visible outside the block? I did not know that it got garbage collected.
<CM-Punk> parsed = JSON.parse(we)
<CM-Punk> What is thi-
<CM-Punk> Oh
<CM-Punk> Go ahead waxjar
<waxjar> do something like we = open(url) { |f| JSON.parse f.read }, i think that should work
<waxjar> (as an aside, last.fm has a proper api and not everyone uses the same nick on irc and last.fm ;))
<zipper> waxjar: I asked about getting now playing from last fm for hours and got no reply
<dominikh> probably because this isn't a last fm channel ;)
<zipper> All I could find was for sending scrobblws
<CM-Punk> Waxjar, with this how do I pass a variable to the JSON for the geolookup into current_summary
<zipper> *scrobbles
<CM-Punk> Let me rephrase that and add my link
<CM-Punk> Sorry
<CM-Punk> With this: https://github.com/Namasteh/Eve-Bot/blob/master/lib/eve/plugins/weather.rb how do I pass a variable from the json in geolookup into current_summary
<waxjar> zipper, the api is documented here: http://www.last.fm/api/feeds. there's a gem that wraps it as well
<waxjar> CM-Punk: i don't understand the question.
<CM-Punk> In the JSON code for the Google Geo-Lookup there is a value I want to be included in the final result, which is current_summary. I'm trying to grab some info from the JSON API for Google Geo-Lookup and pass it into the final result, namely the full location like "London, United Kingdom"
<zipper> waxjar: Which gem? I swear I looked for it but could not find it.
<CM-Punk> Because the weather API doesn't include that information
<CM-Punk> ~part
Keli has left #cinch [#cinch]
<waxjar> pass it to current_summary?
<waxjar> zipper, i think its just called lastfm
<CM-Punk> Right, I don't know exactly how to do that, I have tried several ways but it breaks the plugin
<zipper> waxjar: https://gist.github.com/urbanslug/8848867 It still fails for some reason :(
<Cinchy> [gist] np.rb (at gist.github.com, urbanslug on 2014-02-06 17:58)
xeviox is now known as xeviox|afk
<zipper> No it works
zipper is now known as urbanslug
<onewheelskyward> CM-Punk You can pass the hash back from geolookup instead of just the gps coords.
<CM-Punk> onewheelskyward, I don't understand
swapnasa has joined #cinch
<onewheelskyward> You're passing back the extracted lat and long number. Just pass back the entire hash and then your other function can use the longname.
<CM-Punk> But if I do that, it won't find it on forcast.io
<CM-Punk> Because I'm putting all that has into the url as well
<CM-Punk> hash
<onewheelskyward> Yes, I know. So here's what you can do.
<onewheelskyward> return location from geolookup
<onewheelskyward> pass "#{location['lat'']},#{location['lng']}" to get_current
<onewheelskyward> and then you can use location['longname'] for display,.
<onewheelskyward> That's what I do.
<CM-Punk> Okay
<CM-Punk> I'll try that out
urbanslug has quit [Quit: Lost terminal]
newton has quit [Ping timeout: 250 seconds]
<Rickmasta> So how would I do a authen? check based on a username
<Rickmasta> a nick*
<Rickmasta> Search for a user based on a string
swapnasa has quit [Ping timeout: 265 seconds]
krisbulman is now known as [krisbulman]
newton has joined #cinch
<Rickmasta> Actually, what does authen? check for?
<Rickmasta> If the user is identified?
<Rickmasta> I wonder if it has to do with the server.
<Rickmasta> It was working fine and identifying those who are authed or not, but I just registered and identified a nick, and it's not showing as authed.
<dominikh> if you checked the same user perviously, the result will be cached. so User#refresh it
postmodern has joined #cinch
zipper has joined #cinch
swapnasa has joined #cinch
zipper has left #cinch [#cinch]
swapnasa has quit [Ping timeout: 260 seconds]
[krisbulman] is now known as krisbulman
v0n has quit [Ping timeout: 250 seconds]
ayonix_ is now known as ayonix
krisbulman is now known as [krisbulman]
Dunke is now known as Dunke|sleep