search for: get_connection

Displaying 20 results from an estimated 24 matches for "get_connection".

Did you mean: _get_connection
2011 Sep 19
7
how to get instance variables in another action in rails 3
In my controller show method i have two instance variables which have large amount of data and take much time to fetch from remote system. shown below def show @graph = Koala::Facebook::GraphAPI.new(session[:fbuser] ["credentials"]["token"]) @friends = @graph.get_connections("me", "friends") @friends =@friends.to_a end in the same controller I have another action which requires same data. shown below def list @graph ||= Koala::Facebook::GraphAPI.new(session[:fbuser] ["credentials"]["token"]) @friends ||= @graph.g...
2008 Aug 30
3
Updated version of patch
Attached is a patch against shout-python-0.2 which does two trivial but very useful things (1) The function "get_connected" is exported so that shout-python becomes usable in nonblocking mode. In the current version of shout-python "open" raises an exception in nonblocking mode. (2) The global interpreter lock is released in the potentially blocking functions
2004 Aug 06
2
icecast + irix
Yeah, alright, it configures fine, and here's what happens when i make. >make .....yadayadayada..just some warnings here..... (here is where it dies) gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -g -O2 -Wall -c connection.c connection.c: In function `get_connection': connection.c:191: `fd_set' undeclared (first use in this function) connection.c:191: (Each undeclared identifier is reported only once connection.c:191: for each function it appears in.) connection.c:191: parse error before "rfds" connection.c:192: storage size of `tv' isn...
2003 Jan 20
0
HP-UX 11.11 question
...HP-UX 11.11 box. Any time I use ssh (either locally or connecting from remote) I get a Memory fault. The backtrace in gdb looks something like this (from memory): Libc (free()) Libc (something else) Libnss (something related to DNS) Libc Ssh (get_connect()) I think it's the get_connect or get_connection in ssh where the called function is failing. This seems like a libc/libnss bug on HP-UX. I can try to get an actual backtrace later if necessary - I don't have access to the box at the moment. I was just hoping this would jog somebody's memory. I've changed around the nsswitch.conf...
2013 May 08
1
Using koala get facebook albums photos
Hi Folks, Good day, I need to display my facebook album photos in my application. I used *Koala *for facebook API. I used this query for getting my album photos, *current_user.facebook.get_connection("me","albums")* by using this i can get only the albums details. *"I need my photos which i upload in facebook "* * * Please advise. Thank you -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To uns...
2004 Aug 06
2
icecast + irix
...' connection.c:223: warning: implicit declaration of function `select' connection.c:225: warning: implicit declaration of function `FD_ISSET' but i'm still left with: gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -g -O2 -Wall -c connection.c connection.c: In function `get_connection': connection.c:193: storage size of `tv' isn't known connection.c:223: warning: implicit declaration of function `select' connection.c:193: warning: unused variable `tv' *** Error code 1 (bu21) *** Error code 1 (bu21) *** Error code 1 (bu21) *** Error code 1 (bu21) Here's t...
2012 May 01
1
uninitialized constant LoginController in Ruby
...ok_cookies @facebook_cookies = Koala::Facebook::OAuth.new.get_user_info_from_cookie(cookies) end end This is my login_controller.rb class LoginController < ApplicationController def index graph = Koala::Facebook::GraphAPI.new(@facebook_cookies["access_token"]) @likes = graph.get_connections("me", "likes") end I am using Rails 3 and the error I am getting is this: uninitialized constant LoginController in Ruby. I did rake routes and got this: home_index GET /home/index(.:format) home#index login_index GET /login/index(.:format) login#index -- You received t...
2009 Feb 09
9
virt-manager and virt-install can''t use with new built xvm 3.3
...r message==== Unable to open connection to hypervisor URI ''xen'': libvirt.libvirtError virNodeGetInfo() failed socket closed unexpectedly Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/engine.py", line 68, in _connect_to_uri conn = self.get_connection(uri, readOnly) File "/usr/share/virt-manager/virtManager/engine.py", line 320, in get_connection self.connections[uri]["connection"].tick() File "/usr/share/virt-manager/virtManager/connection.py", line 543, in tick self.hostinfo = self.vmm.getInfo() File...
2004 Aug 06
0
icecast + irix
...declaration of function `select' > connection.c:225: warning: implicit declaration of function `FD_ISSET' Great. :) > but i'm still left with: > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -g -O2 -Wall > -c connection.c > connection.c: In function `get_connection': > connection.c:193: storage size of `tv' isn't known > connection.c:223: warning: implicit declaration of function `select' > connection.c:193: warning: unused variable `tv' > *** Error code 1 (bu21) > *** Error code 1 (bu21) > *** Error code 1 (bu21) > **...
2013 May 30
0
Import friends
...id= params[:mail] logger.debug(''CURRENT'') logger.debug( current_user.authentications[0][''token''] ) if( access_token = current_user.authentications[0][''token''] ) @graph = Koala::Facebook::GraphAPI.new(access_token) *@graph.get_connections("me", "mutualfriends/#{friend_id}")* begin *@graph.put_object("me", "feed", :message => "hi, #{current_user.user_name} has sent you request to join my project.")* rescue flash[:alert] = "Already Posted"...
2008 Sep 10
2
Updated version of patch
>This is in subversion now. I'll try to get a new release out this >weekend. Thanks! Thanks! But I noticed that giving up the global interpretor lock in a few functions allows other threads to do something stupid (like deleting the shout object during a write). So for everything to be absolutely thread safe a python shout object should contain a mutex and there should be appropriate
2004 Aug 06
2
icecast + irix
Just wondering if anyone has tried to compile icecast on a SGI machine running irix 6.5.14 or the like. I tried w/ a bunch of differnet compiler options, (using gcc for the compiler) just to get a myriad of errors. Thanks, Jeff Utter <p><p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this
2004 Aug 06
3
icecast + irix
...t; connection.c:225: warning: implicit declaration of function `FD_ISSET' > > Great. :) > > > but i'm still left with: > > > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -g -O2 -Wall > > -c connection.c > > connection.c: In function `get_connection': > > connection.c:193: storage size of `tv' isn't known > > connection.c:223: warning: implicit declaration of function `select' > > connection.c:193: warning: unused variable `tv' > > *** Error code 1 (bu21) > > *** Error code 1 (bu21) > > *...
2006 Mar 28
74
Is this an elaborate hoax/troll?
I sure hope so: http://duckdown.blogspot.com/2006/03/additional-thoughts-on-why-ruby-isnt.html Seems like it''s getting genuine rebuttals, though. It''s actually kind of amusing.
2019 Feb 04
2
Installing libvirt and Xen on Red Hat 7.5
...libvirtError: no connection driver available for xen:/// 2019-02-01 15:13:30.023 5091 ERROR nova.virt.libvirt.host Traceback (most recent call last): 2019-02-01 15:13:30.023 5091 ERROR nova.virt.libvirt.host File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 460, in get_connection 2019-02-01 15:13:30.023 5091 ERROR nova.virt.libvirt.host conn = self._get_connection() 2019-02-01 15:13:30.023 5091 ERROR nova.virt.libvirt.host File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 443, in _get_connection 2019-02-01 15:13:30.023 5091 ERROR nova.v...
2019 May 23
2
[PATCH libnbd] api: Get rid of nbd_connection.
This isn't quite finished because not all of the tests or examples have been updated, but it demonstrates an idea: Should we forget about the concept of having multiple connections managed under a single handle? In this patch there is a single ‘struct nbd_handle *’ which manages a single state machine and connection (and therefore no nbd_connection). To connect to a multi-conn server you must
2009 Oct 27
1
Storage admin patches
This set of patches supercedes the previous set, and has been rebased with changes from upstream.
2009 Nov 09
1
Rebased again...
This patch again rebases on upstream and should apply on next as of right now.
2009 Oct 14
0
[PATCH node] Provides a new storage administration system to the managed node.
....py index ba07605..b2acabe 100644 --- a/nodeadmin/libvirtworker.py +++ b/nodeadmin/libvirtworker.py @@ -35,6 +35,10 @@ class LibvirtWorker: self.__net.setup(self.__conn) (self.__new_guest, self.__new_domain) = virtinst.CapabilitiesParser.guest_lookup(conn = self.__conn) + def get_connection(self): + '''Returns the underlying connection.''' + return self.__conn + def list_domains(self, defined = True, started = True): '''Lists all domains.''' result = [] @@ -134,9 +138,12 @@ class LibvirtWorker:...
2009 Oct 21
1
Storage administration and refactoring of domain admin
This pair of patches provide a new storage admin interface. Then, on top of that, it refactors the domain administration pieces to now properly use storage pools and volumes when defining a new VM.