Displaying 20 results from an estimated 70 matches for "user_age".
Did you mean:
user_page
2007 Feb 13
16
Error against latest trunk while testing via spec for model
Hi
I just did an update to lates trunk
=================
context "Given a generated venue_spec.rb with fixtures loaded" do
fixtures :venues
specify "fixtures should load two Venues" do
Venue.should have(2).records
end
end
==================
gives me
==========
1)
TypeError in ''Given a generated venue_spec.rb with fixtures loaded
fixtures should load two
2009 Feb 09
3
can't call request.remote_ip from object?
class User
def update_metadata
self.update_attributes({:last_login_at => Time.now,
:last_known_up => request.remote_ip,
:last_known_user_agent =>
request.user_agent})
end
This does not work. It bombs out with:
undefined local variable or method `request'' for #<User:0x1e146e0>
But the request calls work in a controller such as:
@ip = request.remote_ip
@agent = request.user_agent
What is the proper way to get this...
2008 Apr 29
1
Spec''ing controller macros
Hi,
(This is my first post after months of appreciative lurking...)
I''m trying to spec the following conditional controller macro:
class ApplicationController < ActionController::Base
# turn off session management for robots
session :off, :if => lambda {|req| req.user_agent =~ /(Google|Slurp)/i }
# ...
end
My current attempt seems to be quite unsuccessful:
1) when I include the controller.should_receive(:session) statement, the
index action no longer seems to be actually called (ie a breakpoint placed
in the index method is not triggered)
2) I receive the follo...
2015 Jun 18
1
error trying to get PJSIP working
...ter 1 ('id LIKE') = '812;@%'
[Jun 15 16:20:03] DEBUG[5116] res_odbc.c: odbc_release_obj2(0x7f3f1c4815d8) called (obj->txf = (nil))
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Skip: 0; SQL: INSERT INTO ps_contacts (id, outbound_proxy, expiration_time, path, qualify_frequency, user_agent, uri) VALUES (?, ?, ?, ?, ?, ?, ?)
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Parameter 1 ('id') = '812;@sip:812 at 10.1.80.112:5062'
[Jun 15 16:20:03] DEBUG[5116] res_config_odbc.c: Parameter 2 ('outbound_proxy') = ''
[Jun 15 16:20:03] DEBUG[5116] res_config...
2007 Jan 20
0
Best way to force a respond_to format
I am playing around with the idea of adding to the HTTP_ACCEPT header
method and trying to utilize WURFL for detecting mobile devices by
USER_AGENT instead. I''m thinking I will set up some kind of
before_filter in my controller, to intercept all requests and compare
the USER_AGENT to some data source.
If I detect that the USER_AGENT is a mobile device, then I''d like to
force a particular mime-type and format. If I can...
2012 Dec 11
2
Adding additional mount info to xsl stylesheet
...->mount, "listener_peak", "%lu",
source->peak_listeners);
stats_event_time (source->mount, "stream_start");
+ stats_event_args (source->mount, "max_listener_duration", "%lu",
source->max_listener_duration);
+
+ const char * user_agent = httpp_getvar (source->client->parser,
"user-agent");
+ stats_event_args (source->mount, "user-agent", "%s", user_agent);
DEBUG0("Source creation complete");
source->last_read = time (NULL);
@@ -947,6 +951,8 @@ static void source...
2020 May 14
2
can't stream Opus in CAF format
...s:
c:\apps\ffmpeg\bin\ffmpeg.exe -f dshow -i audio="Line In (Realtek
High Definition Audio)" -c:a libopus -ac 1 -b:a 32000^
-ice_name "live broadcast" -ice_description "desc"^
-ice_genre "genre" -ice_url "https://stream.example.org/live.caf"
-user_agent "agent" -content_type "audio/x-caf"^
icecast://source:hackme at localhost:8000/live.caf
[caf @ 00000204b419ac80] Muxing variable packet size not supported on
non seekable output
Could not write header for output file #0 (incorrect codec parameters
?): Invalid data found when...
2006 Apr 10
6
detecting browser type?
I''m wondering how i can detect the browser type for the client. I know this
is possible, but i cant seem to find how to do this, nor any example code
for this.
I would appreciate if someone could point me to some info or just give me an
explanation.
thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Aug 13
3
Render nothing; go nowhere
...t up
when I submit the data to the main form)
2. Indicate a success code - Success/ Failed.
The login action is also used by other parts of the web application
which requires it to redirect to:
1. Either the action saved in the session
2. the Administration index page
My C++ Client has a custom user_agent setting so that I know when the
request has come from it. Now, I''m trying to figure out how to return a
specific value to this client only - hence, the need to render nothing
(special) and go to no specific URL. Any ideas? This is what my
login/login action looks like.
def logi...
2019 Jul 11
2
Need help with streaming to Icecast
..._listeners unlimited
public 0
server_description Unspecified description
server_name Unspecified name
server_type audio/mpeg
slow_listeners 0
source_ip 192.168.11.61
stream_start Thu, 11 Jul 2019 15:56:46 +0100
stream_start_iso8601 2019-07-11T15:56:46+0100
total_bytes_read 877800
total_bytes_sent 0
user_agent Lavf/58.20.100
*Code:*
int ret;
_pOutputFormatContext = ffmpeg.avformat_alloc_context();
fixed (AVFormatContext** ppOutputFormatContext =
&_pOutputFormatContext)
{
ret =
ffmpeg.avformat_alloc_output_context2(ppOutputFormatConte...
2004 Aug 06
0
Parsing the icecast stats log
...[0] => 0
[1] => 0
[2] => 0
)
)
[clients] => Array
(
[0] => Array
(
[client_id] => 3262
[host] => zot
[user_agent] => Wget
[source_id] => 0
)
[1] => Array
(
[client_id] => 3305
[host] => frosty
[user_agent] => mpg123/0.59s-mh4
[source_id] => 0...
2006 Feb 07
2
Browser Detection
How can I detect the user''s browser in Rails?
Thanks.
2005 Jul 26
2
user agent...
i know there is gotta be a way to get it...
but i cant find it...
this is gonna end up like h( )
nonetheless, can someone point me in the write direction?
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2007 May 12
3
Setting form-values
Hi,
I''ve recently had some trouble setting form values in my code - for example:
require ''rubygems''
require ''mechanize''
def save(pagename, content, editsummary = '''')
agent = WWW::Mechanize.new
agent.user_agent = ''Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)''
page = agent.get(''http://en.wikipedia.org/w/index.php?title='' + pagename
+ ''&action=edit'')
form = page.forms.with.name("editform").first
form.wpTextbox1 = content...
2019 Aug 29
0
I broke "yum update" - C7
...rify_host': True,
'ssl_verify_peer': True,
'text' : None,
'throttle' : 1.0,
'timedhosts' : None,
'timeout' : 300,
'urlparser' : <urlgrabber.grabber.URLParser instance at 0x7effcd5bc518>,
'user_agent' : 'urlgrabber/3.10 yum/3.4.3',
'username' : None,
}
}
2019-08-29 16:27:08,392 attempt 1/None: file:///etc/yum.conf
* Closing connection 0
2019-08-29 16:27:08,392 success
[big snip]
2019-08-29 16:27:08,460 combined options: {
'delegate' : {...
2009 Sep 09
5
Newbie question: undefined method 'number_with_delimiter'(probably configuration problem)
Hi all:
i am using gem to insall rails 2.3.3 and using $rails myapp to
generate my application, but strangely i can''t use the number_helper
below is my env:
export RUBY_HOME=$HOME/ruby
export GEM_HOME=$HOME/gems
export RUBYLIB=$RUBY_HOME/lib:$RUBY_HOME/lib/ruby:$RUBY_HOME/lib/
site_ruby/1.8
export PATH=$HOME/gems/bin:$HOME/ruby/bin:
and:
$ locate number_helper.rb
2019 Aug 28
3
Anyone using ffmpeg as a source-client?
How are you capturing the audio-in?
Jack Elliott
On 8/27/2019 5:25 PM, webmaster at berean-biblechurch.org wrote:
> Yes, I'm using it to capture the audio-in and pushing to Icecast.
>
> On 2019-08-27 10:33, Jack Elliott wrote:
>> As described here in ffmpeg's documentation:
>>
>> http://ffmpeg.org/ffmpeg-all.html#Icecast
2007 Mar 10
2
upgrading rails to 1.2.2 giving me mongrel errors
...g gave me very little to work
with. This was the closest thing i found
http://dev.rubyonrails.org/ticket/6716
I''m running Ubuntu with mongrel 1.0.1 and fastthread 0.6.4.1. I also get
this on macosx
Thanks!
Dallas
Error calling Dispatcher.dispatch #<NameError: cannot remove
Object::USER_AGENT>
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:422:in
`remove_const''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:422:in
`remove_constant''
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_sup...
2019 Jul 11
1
Need help with streaming to Icecast
...name Unspecified name
> > server_type audio/mpeg
> > slow_listeners 0
> > source_ip 192.168.11.61
> > stream_start Thu, 11 Jul 2019 15:56:46 +0100
> > stream_start_iso8601 2019-07-11T15:56:46+0100
> > total_bytes_read 877800
> > total_bytes_sent 0
> > user_agent Lavf/58.20.100
> >
>
> Hi,
>
> how do you actually send the stream to Icecast? I can't find that in
> your
> code below? Do you use the ffmpeg icecast protocol?
>
> >
> > *Code:*
> > int ret;
> > _pOutputFormatContext...
2019 Aug 29
4
I broke "yum update" - C7
Am 2019-08-29 16:51, schrieb Gary Stainburn:
> On Thursday 29 August 2019 15:45:44 Gordon Messmer wrote:
>> On 8/29/19 3:03 AM, Gary Stainburn wrote:
>> > https://us-east.repo.webtatic.com/yum/el7/x86_64/repodata/repomd.xml: [Errno 14] curl#60 - "Peer's Certificate issuer is not recognized."
>>
>>
>> What do you see when you run:
>>