Displaying 20 results from an estimated 77 matches for "oldname".
2006 Jan 12
2
Can A Model Have Many belongs_to?
...m (represents a computer) table that
is linked to several other small tables. I want all the data in these
other tables to be available from the system object.
I have this:
class System < ActiveRecord::Base
belongs_to :department
belongs_to :address
belongs_to :operatingsystem
has_many :oldnames
end
class Department < ActiveRecord::Base
has_many :systems
has_many :people
end
class Address < ActiveRecord::Base
has_many :systems
has_many :people
end
class Oldname < ActiveRecord::Base
belongs_to :system
end
class Operatingsystem < ActiveRecord::Base
has_many :systems
en...
2010 Oct 13
4
Change global env variables from within a function
...nvironment in a simple manner.
Given:
tempdf <- data.frame("a" = 1:6, "b" = 7:12)
#I can rename a to g this way:
names(tempdf)[names(tempdf)=="a"] <- "g"
#Wanting to simplify this for the future, I have the function:
colrename <- function(dframe, oldname, newname) {
names(dframe)[names(dframe)==oldname] <- newname
}
colrename(tempdf, "a", "g")
#However of course the change to tempdf stays within colrename(). I
could add "return(names(dframe))" to the function and then call the
function like:
#names(te...
2019 Mar 29
0
[PATCH net v4] failover: allow name change on IFF_UP slave interfaces
...format string) must be at least IFNAMSIZ
1171 *
1172 * Change name of a device, can pass format strings "eth%d".
1173 * for wildcarding.
1174 */
1175 int dev_change_name(struct net_device *dev, const char *newname)
1176 {
1177 unsigned char old_assign_type;
1178 char oldname[IFNAMSIZ];
1179 int err = 0;
1180 int ret;
1181 struct net *net;
1182
1183 ASSERT_RTNL();
1184 BUG_ON(!dev_net(dev));
1185
1186 net = dev_net(dev);
1187
1188 /* Allow failover slave to rename even when
1189 * it is up and running.
1190 *
1191 * Failover sla...
2019 Mar 28
0
[PATCH net v3] failover: allow name change on IFF_UP slave interfaces
...MSIZ
1171 *
1172 * Change name of a device, can pass format strings "eth%d".
1173 * for wildcarding.
1174 */
1175 int dev_change_name(struct net_device *dev, const char *newname)
1176 {
1177 unsigned char old_assign_type;
1178 bool reopen_needed = false;
1179 char oldname[IFNAMSIZ];
1180 int err = 0;
1181 int ret;
1182 struct net *net;
1183
1184 ASSERT_RTNL();
1185 BUG_ON(!dev_net(dev));
1186
1187 net = dev_net(dev);
1188
1189 /* Allow failover slave to rename even when
1190 * it is up and running.
1191 *
1192 * Failover sla...
2007 Apr 23
0
Correction to PR #9631 (PR#9632)
...;- substring(string, 1:n, 1:n)
lastDot <- n + 1 - match(".", rev(chars), nomatch = n + 1)
substring(string, lastDot + 1, n)
}
sn <- sectionnames
if(any(nchar(sn) > 8)){
oldDir <- libname
libname <- tempdir()
allFiles <- list.files(oldDir)
oldNames <- character(0)
for(i in 1:length(sn)){
fName <- grep(sn[i], allFiles, value = T)
if(length(fName) == 0) stop(paste("sectionname", sn[i], "not found"))
oldNames <- c(oldNames, fName)
}
sectionnames <- linkNames <- character(length(ol...
2023 Jul 26
2
Rename Computer on Domain
...23$
... so a simple LDAP rename worked ...
ldbrename -H ldap://DC1 -UAdministrator 'CN=DT06,OU=Desktops,OU=Computers,DC=domain,DC=com' 'CN=WH23,OU=Desktops,OU=Computers,DC=domain,DC=com'
... and then for future full rename on the domain, we will use ...
net dom renamecomputer -S OLDNAME -U OLDNAME\\administrator%secret newname=NEWNAME account=DOMAIN\\administrator password=topsecret reboot
Thanks.
--
Paul Littlefield
2004 May 31
1
Old domain name an't delete record with tdbtool
...uot;Microsoft Windows Network" (together with the new name, which
works just fine). I want to remove the old domain name, and I assume it is
still showing because it is still present in secrets.tdb. A "tdbdump
secrets.tdb" shows (actual domain names changed):
key = "SECRETS/SID/OLDNAME"
data =
[deleted]
key = "SECRETS/SID/NEWNAME"
data =
[deleted]
So I tried to remove the old name with tdbtool:
$ tdbtool secrets.tdb
tdb> delete SECRETS/SID/OLDNAME
delete failed
tdb> delete "SECRETS/SID/OLDNAME"
delete failed
tdb>
Some questions:
1. Is the...
2005 May 06
1
msdfs not working on netbios aliases?
I encountered strange behaviour of "msdfs" when using together
with "netbios aliases".
E.g I have in smb.conf:
[global]
netbios name = server
netbios aliases = server-oldname
....
host msdfs = Yes
[share1]
path = /var/samba/share1
[share2]
msdfs root = Yes
msdfs proxy = \penguin\share2
....
From a windows (XP) machine I can now see:
\\server\share1
and
\\server\share2
where share2 is succesfully redirected as a DFS to \\penguin\share2.
But when trying to con...
2007 Aug 03
2
change the names of all listed objects
Dear list members,
I have created seven objects, from a to g, so that ls() gives me
[1] "a" "b" "c" "d" "e" "f" "g"
how can I automatically change their names in
"a1" "b1" "c1" "d1" "e1" "f1" "g1"
It seems simple, ut it is driving me mad.
Thank you very
2019 Mar 27
0
[PATCH net v3] failover: allow name change on IFF_UP slave interfaces
...>--- a/net/core/dev.c
>+++ b/net/core/dev.c
>@@ -1171,6 +1171,7 @@ int dev_get_valid_name(struct net *net, struct net_device *dev,
> int dev_change_name(struct net_device *dev, const char *newname)
> {
> unsigned char old_assign_type;
>+ bool reopen_needed = false;
> char oldname[IFNAMSIZ];
> int err = 0;
> int ret;
>@@ -1180,8 +1181,24 @@ int dev_change_name(struct net_device *dev, const char *newname)
> BUG_ON(!dev_net(dev));
>
> net = dev_net(dev);
>- if (dev->flags & IFF_UP)
>- return -EBUSY;
>+
>+ /* Allow failover slave to re...
2015 Aug 13
2
[lld] Alias in COFF short import library.
...quot;foo" and "__imp_foo",
> respectively, and add that object file to the import library. As a result,
> the import library file defines four symbols, {,__imp_}{foo,bar}.
>
> Do you know how to define symbol aliases in COFF? If you don't, take a
> look a member of oldnames.lib (which comes with MSVC). That library file
> defines bunch of aliases, and you can do the same thing.
>
Thanks for pointing me in the right direction :)
After looking at oldnames.lib I done a little more reading and I assume I
do it like this then for the alias.
The import table points...
2002 Jun 01
0
Testing a transfer-only rsync tool
..., then delete LOCAL_FILE
del FILE delete a remote file
ldel FILE delete a local file
md DIR create a remote directory
lmd DIR create a local directory
ln OLDNAME NEWNAME create a remote hard link
lln OLDNAME NEWNAME create a local hard link
sln OLDNAME NEWNAME create a remote symlink
lsln OLDNAME NEWNAME create a local symlink
mkdev NAME NUMBER...
2010 Apr 08
1
[PATCH] Move all interaction with the config file into Sys::VirtV2V::Config
...virt-v2v's configuration file
+
+=head1 SYNOPSIS
+
+ use Sys::VirtV2V::Config;
+
+ $eh = Sys::VirtV2V::Config->new($config_path);
+
+ my $isopath = $config->get_transfer_iso();
+ my ($path, $deps) = $config->match_app($desc, $name, $arch);
+ my ($name, $type) = $config->map_network($oldname, $oldtype);
+
+=head1 DESCRIPTION
+
+Sys::VirtV2V::Config parses and queries the virt-v2v config file.
+
+=head1 METHODS
+
+=over
+
+=item new(path)
+
+Create a new Sys::VirtV2V::Config object to operate on the config file at
+I<path>.
+
+=cut
+
+sub new
+{
+ my $class = shift;
+ my ($p...
2011 Sep 23
4
replace multiple string
Hi
I would like to use a bash script that searches files and
subdirectories name in a directory /var/ww/html/web
for a specific string, and when it finds the search string, replaces
the string (old1) with new string (new1), and so on
old2 with new2 ....oldn with newn.
replace_string.sh
#!/bin/bash
for db in $(find /var/www/html/web -name * -exec)
do
sed -e "s/old1/new1/" \
sed
2002 Oct 18
4
code to turn T into TRUE
Does anyone have code that will methodically process R sourcecode, turning
T's into TRUE and F's into FALSE? I got bored doing this by hand, after the
first 30-odd functions-- there are hundreds left to do. I don't want to
simply deparse everything, because that would destroy my beautiful
formatting.
The reason it's not trivial, is that comment lines, quotes, and split lines
need
2014 Jan 29
2
Rename computer, but still shows up as old name
...ter name, not the new computer
name. If I double click on the entity, I see on the General tab that the
Computer name and and DNS name ARE changed. It's just the common name that
isn't updated. On command line:
samba-tool spn list dompc-newname$
This gives me:
dompc-newname$
User CN=DOMPC-OLDNAME,OU=Desktops,OU=Domain Computers,DC=example,DC=com has
the following servicePrincipalName:
HOST/DOMPC-NEWNAME
...etc...
As you can see, it sees the new name everywhere except in the CN.
So, is this expected behavior? I'm not seeing an obvious way to rename CN
to new name, either via RSAT or vi...
2007 Mar 30
1
call file vs. originate
...01@from-sip2-3974,1
State: Up
CallerID: 201
CallerIDName: Fake Name
Uniqueid: 1175271459.2288
Event: Newexten
Privilege: call,all
Channel: Local/201@from-sip2-3974,1
Context: from-sip
Extension: s
Priority: 1
Application: Answer
AppData:
Uniqueid: 1175271459.2288
Event: Rename
Privilege: call,all
Oldname: SIP/201-08217eb0
Newname: SIP/201-08217eb0<MASQ>
Uniqueid: 1175271459.2290
Event: Rename
Privilege: call,all
Oldname: Local/201@from-sip2-3974,1
Newname: SIP/201-08217eb0
Uniqueid: 1175271459.2288
Event: Rename
Privilege: call,all
Oldname: SIP/201-08217eb0<MASQ>
Newname: Local/201@fr...
2015 Aug 13
2
[lld] Alias in COFF short import library.
>
> The header of libuser32b.a says that it defines MessageBoxB and
> __imp_MessageBoxB, but the import library file in the archive actually
> defines MessageBoxA (not B). So the archive file is broken. You may want to
> fix the header and try again.
Yes this is how I done the alias.
If you consider this invalid then look at libuser32.a
The header defines MessageBoxA and
2016 Oct 19
0
renaming mdadm name
...I have a disk which two of the partitions are part of a RAID1 setup. I'm
trying to rename the the second raided partition
mdadm -E /dev/sdc4
/dev/sdc4:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 83d7657b:ebfddcb7:36b0fa14:d29a350c
Name : oldname:2
Creation Time : Tue Aug 30 15:25:10 2016
Raid Level : raid1
Raid Devices : 2
Avail Dev Size : 486696960 (232.08 GiB 249.19 GB)
Array Size : 243348480 (232.08 GiB 249.19 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
Unused Space : before=262056 sectors, after...
2006 Apr 26
0
DB2 under Windows XP - "Missing DB2 Libraries or headers"
...ows command it was trying to execute:
cl -nologo -Feconftest
-IC:/Ruby & Rails/ruby-db2-0.4.4/ext/db2
-Ic:/ruby/lib/ruby/1.8/i386-mswin32
"-I"C:/Program Files/IBM/SQLLIB"/include"
-I. -I./.. -I./../missing
-MD -Zi -O2b2xg- -G6 conftest.c
msvcrt-ruby18-static.lib db2cli.lib oldnames.lib
user32.lib advapi32.lib wsock32.lib -link
-libpath:""C:/Program Files/IBM/SQLLIB"/lib"
-libpath:"c:/ruby/lib"
-stack:0x2000000
After much playing around, I finally got a version that works:
cl -nologo -Feconftest -I"C:/Ruby & Rails/ruby-db2-0.4.4/ext/...