Displaying 14 results from an estimated 14 matches for "tag2".
Did you mean:
tag
2008 Jun 19
2
Pattern Matching Replacement
I would like to replace "\r\n" with "" in a character string, where "\r\n"
exists only between < and >, how could I do that?
Initial:
characterString = "<XML><tag1
id=\"F\r\n2\"></t\r\nag1>\r\n<tag\r\n2></tag2></XML>"
Result:
characterString = "<XML><tag1 id=\"F2\"></tag1>\r\n<tag2></tag2></XML>"
Tried with sub(below) but it only replaces the first instance and I am not
sure how to pattern match so that it only replaces \r\n that exi...
2011 Sep 18
2
troubles with a for loop
...bles. I read
previous posts on similar topics in the R help archive, but I did not find a
solution.
Here is my case:
I run a simple bivariate linear regression saving the output in objects
called: pd.memb.0, pd.memb.1, pd.memb.2, pd.memb.3
pd.memb.0 <- lm(E.fs.memb ~ M.fs.memb, data, subset = (tag2 == 1))
pd.memb.1 <- lm(E.fs.memb ~ M.fs.memb, data, subset = (M.fs.memb <=
quantile(M.fs.memb, .25) & tag2 == 1))
pd.memb.2 <- lm(E.fs.memb ~ M.fs.memb, data, subset = (M.fs.memb >
quantile(M.fs.memb, .25) & M.fs.memb <= quantile(M.fs.memb, .75) & tag2 ==
1))
pd.memb.3 &l...
2006 Aug 10
2
search acts_as_taggable for multiple tags
Hey...I''m trying to search a Model that uses acts_as_taggable for multiple tags. I''d like to pass in a search string containing a space delimited tags names (i.e. "tag1 tag2") and return the objects that have been tagged by either one of those. Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060810/a419dbb0/attachment.html
2006 Nov 14
4
Catching a list of variables with a Controller
...bility to tag entries with 1 or more tags.
I wanted to offer the possibility to narrow the view of expenses by adding
tags to a filter (this works) and I also wanted this filter to be reflected
in the URL. Like so:
normal URL: http://localhost:3301/
filtered URL: http://localhost:3301/filter/tag1/tag2/tag3
However, I can''t get this to work since I require a variable number of
regexp groups (like say an array) and I could not find a routing syntax that
would allow this (something like class Filter < R ''/filter/(\w/)*'' ).
I currently use a route which looks like:
c...
2010 Oct 05
1
Broken support for Smart Card Logon in Windows 2003 and XP
Hello.
As I can see this post: https://jira.it.su.se/jira/browse/HEIMDAL-241,
at least? Samba 4.0.0alpha5 supported Smart Card logon for Windows XP
workstations.
Current version (Version 4.0.0alpha14-GIT-77d959f+) does not support
smart card logon on Windows XP workstation (but Windows 7 works well).
I tried to compare Kerberos traffic examples from genuine domain
controller and Samba's
2006 Jan 23
2
del.icio.us-like output
...LEFT JOIN bookmarks b ON jt.bookmark_id = b.id
WHERE jt.user_id = #{uid}"
GROUP BY tag_id
ORDER BY #{sort}"
That returns data in this format:
tag_id, bid, tag, bookmark, created_on
2, 23, Tag1, This is a bookmark, 12/25/06
3, 23, Tag2, This is a bookmark, 12/26/06
7, 25, Tag5, Different bookmark, 12/26/05
Problem 1: If I print out those results using a collection, "This is a
bookmark" would be shown twice - once tagged with Tag1 and again tagged with
Tag2. I want to list to look like:
1. This is a bookmark
&l...
2006 Feb 26
5
Help On Associations Extension.
...ation.
i have a table locations that has a many-to-many association with a
tags tabel using a locations_tags table.
i want to add a method to the Location has_and_belongs_to_many
association so that i can do something like this on the location
model:
myLocation.tags.add_by_names ''tag1 tag2 tag3''
On the extension i want to do something like this:
class Location < ActiveRecord::Base
has_and_belongs_to_many :tags do
def add_by_names tag_names
tag_names.split(" ").each do |tag_name|
tag = Tag.find_by_name(tag_name) || Tag.create(:name => tag...
2012 Jul 17
2
puppet host tagging
...erver with a group tagging .
for example .
let say i am running apache with a unique configuration and network
architecture and want to tag in with "tag1"
and a i have few more apache installation with the a new unique
configuration and architecture that i want to tag them with "tag2" .
and so on and so on .
lets say i have would like to perform some action (run service -insure =>
latest ) only on tag1 .
is there a way to perform this action within foreman ?
i know i can do do group actions with "Hostgroup" but a host can belong to
only one hostgroup . what...
2010 Mar 19
0
Setting Caller ID for attended transfer
...tended way, that is, *1.* the original
call is put on hold, *2.* a second line is open to call the queue,
*3.*after an agent is connected the original call is transfered to its
final
destination.
1. Zap/1-1 <--> SIP/agentA-tag1
2. SIP/agentA-tag2 <-->
SIP/agentB-tag
3. Zap/1-1 <--> SIP/agentB-tag
What I want to do is to overwrite the CallerID of the call entering the
Queue to add the Callerid number of the original call to the agent's number
and get it at the ENTERQUEUE event of the queue_log.
I've tried with inh...
2008 May 22
9
building a many-to-many structure in javascript
hi,
for some purpose, I need a "in-javascript database", maybe built with
some Prototype $H function calls for creating "tables"
but what about junction tables, I mean those which express many-to-
many relations between two entity tables ?
I though using concatenation of strings with a separator, for example
"key1 key2"
"1234-56"
or "ABC \n 789"
2006 Feb 12
7
ROR Recipes Beta: Why use taggings instead of tags_contacts? NoMethodError tag_with?
...uot;, "portal_id"=>0, "member_id"=>0, "id"=>12, "url"=>"http://home.com", "desc"=>"My note about this favorite", "created_at"=>Sun Feb 12 15:30:38 CST 2006}>
>> f.tag_with("home tag1 tag2")
NoMethodError: undefined method `tag_with'' for #<Favorite:0xb6f5d594>
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1501:in `method_missing''
from (irb):2
>> f.tag("home tag1 tag2")
=>...
2014 Jul 25
1
Error after Upgrade
...<53D21B91.2070109 at fh-landshut.de>,
mail_id: AE71HPGl9ZR5, Hits: -5, size: 13518, queued_as: 20773D10003,
2771 ms
Jul 25 11:03:01 server2 amavis[25541]: (25541-01) Passed CLEAN,
<postfixbuch-users-bounces at listen.jpberlin.de> -> <jk at jkart.de>, Hits:
-5, tag=-9999.9, tag2=2.5, kill=3, queued_as: 20773D10003,
L/Y/0/0
Jul 25 11:03:01 server2 postfix/lmtp[25607]: 62B8BD10001:
to=<jk at jkart.de>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.9,
delays=1.2/0/0.01/2.8, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[
127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2077...
2016 Feb 15
1
[PATCH] Start adding return values tests for bindings
...uot;pv_free"]=>
+ int(2)
+ ["pv_used"]=>
+ int(2)
+ ["pv_attr"]=>
+ string(5) "attr2"
+ ["pv_pe_count"]=>
+ int(2)
+ ["pv_pe_alloc_count"]=>
+ int(2)
+ ["pv_tags"]=>
+ string(4) "tag2"
+ ["pe_start"]=>
+ int(2)
+ ["pv_mda_count"]=>
+ int(2)
+ ["pv_mda_free"]=>
+ int(2)
+ }
+ [3]=>
+ array(14) {
+ ["pv_name"]=>
+ string(3) "pv3"
+ ["pv_uuid"]=>
+ string(32) "12...
2010 Nov 25
13
VLAN martians
I''m playing around with VLAN''s and I have a VLAN capable (layer 2) smart
switch. I see a steady stream of martians in the logfile if I have the
routefilter option set on the loc zone interfaces in
/etc/shorewall/interfaces. I have two interfaces in the loc zone, eth1
and vlan2 respectively. vlan2 is an 802.1q trunk going towards the switch.
Is this the expected behavior in