How to create local collections?
If we can't get on the network, and want to install locally downloaded patches, how do he build a local "collection"?
I've got a patch in /opt/patches, (in jar format), but how to I build a local collection out of it?
TIA
If you have a patch already downloaded then just install it from the command line with smpatch or patchadd. You cannot currently create your own collections. For clients that don't have internet acess you may want to look at installing a Sun Update Connection Proxy which can then cache a collection of downloaded patches. Your clients could then be config'd to get their updates for the local Sun Update Connection Proxy inside of your firewall.
-Dave
Similar Messages
-
How to create local virtual web host ex. myserver.local?
Hi
I'm sorry but following steps in Yosemite Server help led me to nowhere.
Could you please explain how to create local virtual web host ex. myserver.local?
ThanksHi Sergey,
I assume that you mean virtual desktop storage location, which I don’t think that we can change this setting for an existing collection.
You can create a new collection, during the creation process, you will be able to select a different storage location for new VMs.
More information for you:
Single Image Management for Virtual Desktop Collections in Windows Server 2012
http://blogs.msdn.com/b/rds/archive/2012/10/29/single-image-management-for-virtual-desktop-collections-in-windows-server-2012.aspx
Geek of All Trades: VM-Hosted RemoteApps - New Best Practice for Virtual Desktops?
https://technet.microsoft.com/en-us/magazine/jj554307.aspx
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
HOW TO CREATE LOCAL USER PROFILE
SIR,
OS - WINDOWS SERVER 2008 R2
SYSTEM - IBM MACHINE X3400 SERIES
1. HOW TO CREATE A USER IN WINDOWS SERVER 2008 R2 WITHOUT ACTIVE DIRECTORY
2. AFTER CREATE USER IN WINDOWS SERVER 2008 R2 BUT USER PROFILE NOT CREATE .Hi,
>>1. HOW TO CREATE A USER IN WINDOWS SERVER 2008 R2 WITHOUT ACTIVE DIRECTORY
>>2. AFTER CREATE USER IN WINDOWS SERVER 2008 R2 BUT USER PROFILE NOT CREATE
Creating an user account on the computer doesn't create a profile for that user. The profile is created the first time the user interactively logs on at the computer. After the user logs onto the computer for the first time, the user's local profile
will be created in a folder with the name of the user under the systemroot/Users folder.
Best regards,
Frank Shen -
How to create locale independent masked JFormattedTextField for date?
I need to create formatted text field with mask for entering date. Mask must be deduced from current locale setting.
For example US locale has this: "06/28/2005", but czech has "28.6.2005".
Attention: czech hasn't zero before 6, so day or month length may vary from 1 to 2 characters, not only 2 characters as US, and month and day positions are swapped.
How to create date parsing from JFormattedTextField locale independent, including mask generating?
Thank you,
TonyE.g.
JFormattedTextField tf = new JFormattedTextField();
tf.setValue(new Date());/Kaj -
How to create a collection using the Reader for PC or Reader for Mac software.
Solved!
Go to Solution.A collection is a custom set of books and other items that you create from items on the Reader or the library of the Reader™ for PC or Mac® software. It is a unique and convenient way to organize your items. You can organize and personalize your content by creating collections by subject matter, date, genre or anything that best suits your purpose.
Create a collection:
Click the My Library tab.
On the category bar, click Collections.
Click the Create New Collectionbutton.
Enter a collection name and then press Enter on your keyboard. A new collection will be added to the Collections list.
Add books to the collection:
Once you have created the collection, click the My Librarytab.
On the category bar, click to select the book you want to add to the collection. Multiple books can be selected by holding down the Ctrlkey while clicking on the books.
With the book(s) selected, at the bottom of the screen, click the Add to Collectionbutton.
From the menu that pops up, click to select the collection you want to add the book(s) to.
NOTE: The next time you sync your Reader Digital Book, the collection and its contents will be added to your Reader device. -
HOW TO CREATE LOCAL INDEX ON BIG PARTITION TABLE
Dear All,
I have one big table 450GB stored on 9 partitions and same partitions I have created for the index. Now the problem is when i am trying to create local index it took one and half day and is still going on...
is there any shortest way to create local index on this table easily.
Database version is 11.2.0.1.0
INDEX SCRIPT IS
CREATE INDEX INDEX_SPACE0_IX_LOCAL ON FINANCE (END_TIME)
INITRANS 2 MAXTRANS
255
LOCAL ( PARTITION INDEX_SPACE01
LOGGING
NOCOMPRESS
TABLESPACE INDEX_SPACE01
PCTFREE 5 INITRANS 2 MAXTRANS 255 STORAGE (INITIAL 1M MINEXTENTS 1 MAXEXTENTS
2147483645 BUFFER_POOL
DEFAULT), PARTITION INDEX_SPACE02
LOGGING
NOCOMPRESS
TABLESPACE INDEX_SPACE02 PCTFREE
5 INITRANS 2 MAXTRANS 255 STORAGE (INITIAL 1M MINEXTENTS 1 MAXEXTENTS
2147483645 BUFFER_POOL DEFAULT),
PARTITION INDEX_SPACE03
LOGGING
NOCOMPRESS
TABLESPACE
INDEX_SPACE03
PCTFREE 5 INITRANS 2 MAXTRANS 255 STORAGE (INITIAL 1M MINEXTENTS 1 MAXEXTENTS
2147483645 BUFFER_POOL DEFAULT),
PARTITION INDEX_SPACE04
LOGGING
NOCOMPRESS
TABLESPACE
INDEX_SPACE04 PCTFREE 5 INITRANS 2 MAXTRANS 255 STORAGE (INITIAL 1M MINEXTENTS
1 MAXEXTENTS
2147483645 BUFFER_POOL DEFAULT),
PARTITION INDEX_SPACE05
LOGGING
NOCOMPRESS
TABLESPACE
INDEX_SPACE05 PCTFREE 5 INITRANS 2 MAXTRANS 255 STORAGE (INITIAL 1M MINEXTENTS
1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT),
PARTITION INDEX_SPACE06
LOGGING
NOCOMPRESS
TABLESPACE INDEX_SPACE06 PCTFREE 5 INITRANS 2
MAXTRANS 255 STORAGE (INITIAL 1M MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL
DEFAULT),
PARTITION INDEX_SPACE07
LOGGING
NOCOMPRESS
TABLESPACE INDEX_SPACE07 PCTFREE
5 INITRANS 2
MAXTRANS 255 STORAGE (INITIAL 1M MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL
DEFAULT),
PARTITION INDEX_SPACE08
LOGGING
NOCOMPRESS
TABLESPACE INDEX_SPACE08 PCTFREE
5 INITRANS 2 MAXTRANS 255 STORAGE (INITIAL 1M MINEXTENTS 1 MAXEXTENTS
2147483645
BUFFER_POOL DEFAULT),
PARTITION INDEX_SPACE09
LOGGING
NOCOMPRESS
TABLESPACE
INDEX_SPACE09 PCTFREE 5 INITRANS 2 MAXTRANS 255 STORAGE (INITIAL 1M MINEXTENTS
1 MAXEXTENTS 2147483645 BUFFER_POOL
DEFAULT))
NOPARALLEL;
Thanks in advance......
Thanks,
Edited by: sherkhan on Aug 24, 2011 3:36 AM
Edited by: sherkhan on Aug 24, 2011 3:49 AMHave you verified that 'n' Index partition segments have got created so far ? (they would apepar as TEMPORARY segments only till the full index creation is completed). Have you monitored the session statistics and waits and confirmed that it is not waiting on something horrible ?
A CREATE INDEX can well be NOLOGGING instead of LOGGING. It could also use PARALLEL but I always recommend setting it back to NOPARALLEL immediately after the CREATE is completed.
You can also "quickly" build an empty index and then gradually create (i.e. build) each partition
CREATE INDEX INDEX_SPACE0_IX_LOCAL ......... UNUSABLE ;
ALTER INDEX INDEX_SPACE0_IX_LOCAL REBUILD PARTITION PARTITION INDEX_SPACE01;
ALTER INDEX INDEX_SPACE0_IX_LOCAL REBUILD PARTITION PARTITION INDEX_SPACE02;
...Hemant K Chitale -
How to create local calendar?
At times of Snow Leopard I had a local calendar and several calendars from my Exchange account.
At that time I created Automator-based processes and entered them to my local calendar to be executed at specific intervals.
After first syncing with MobileMe and then migrating to iCloud, my local calendar dissappeared and the "process" schedules have been moved to MobileMe and then iCloud.
However, those process schedules can only be executed on my iMac and I DONT WANT them to be synced to my other devices (MacBook, iPhone).
So I need my local calendar back.
How can I create a local calendar on my iMac?
Thanks for all hints...
MattRoger, you made my day!
I did miss the command "New Calendar" in the "File" menu (or however those menus are called in english. have a german OS).
Instead, I always tried to create a new local calendar via the "Account" settings - which was absolutely stupid!
However, when exporting those Automator based entries and trying to re-import them into my local calendar, the "possibly dangerous" Automator actions have been removed.
But I could open those (recurring) entry in edit mode and just "switch" it to my local calendar without losing any information.
Thank you so much for your hint, which lead me to the right way!
Matt -
This is a follow-up to an earlier post (How
to output a bunch of variables into a table.) Now that I can ouput data for a single computer I need to to do the same for a list of computers into a CSV. In more general terms how do I get a bunch of $Computer objects into a single collection/array/object/thingy
with a clever name like $Computers?
# http://ss64.com/ps/get-wmiobject-win32.html
# http://social.technet.microsoft.com/Forums/en-US/da54b6ab-6941-4e45-8697-1d3236ba2154/powershell-number-of-cpu-sockets-wmi-query?forum=winserverpowershell
# http://serverfault.com/questions/10328/determine-cpu-processors-vs-sockets-though-wmi
# http://social.technet.microsoft.com/Forums/windowsserver/en-US/8443fcfd-5a0b-4c3d-bda7-26df83d2ee92/how-to-output-a-bunch-of-variables-into-a-table?forum=winserverpowershell
Param(
[Parameter(Mandatory=$false,ValueFromPipeline=$true)]
[string]$ComputerName = $env:COMPUTERNAME,
[Parameter(Mandatory=$false,ValueFromPipeline=$false)]
[ValidateScript(
If ( $_ -ne $null ) { Test-Path $_ }
[String]$ComputerListFile
Function Get-Computer
Param(
[string]$ComputerName
$Win32_PingStatus = $null
$Win32_PingStatus_Result = $null
$Win32_OperatingSystem = $null
$Win32_Processor = $null
$Win32_PhysicalMemory = $null
$Win32_ComputerSystem = $null
$Win32_BIOS = $null
$Computer = $null
$Win32_PingStatus = "select * from Win32_PingStatus where address = '$ComputerName'"
$Win32_PingStatus_Result = Get-WmiObject -query $Win32_PingStatus
If ( $Win32_PingStatus_Result.protocoladdress )
"$ComputerName ping succeeded."
$Win32_OperatingSystem = Get-WmiObject Win32_OperatingSystem -computer $ComputerName -ErrorAction SilentlyContinue
If ( $Win32_OperatingSystem -eq $null)
"$ComputerName WMI failed."
} Else {
"$ComputerName WMI succeeded."
$Win32_Processor = [object[]]$(Get-WmiObject Win32_Processor -computer $ComputerName)
$Win32_PhysicalMemory = [object[]]$(Get-WmiObject Win32_PhysicalMemory -computer $ComputerName)
$Win32_ComputerSystem = Get-WmiObject Win32_ComputerSystem -computer $ComputerName
$Win32_BIOS = Get-WmiObject Win32_BIOS -computer $ComputerName
$Computer = New-Object -Type PSObject -Property @{
Name = $Win32_OperatingSystem.CSName
Win32_BIOS_SerialNumber = [string]$Win32_BIOS.SerialNumber
Win32_ComputerSystem_Manufacturer = [string]$Win32_ComputerSystem.Manufacturer
Win32_ComputerSystem_Model = [string]$Win32_ComputerSystem.Model
#Win32_ComputerSystem_NumberOfLogicalProcessors = [int32]$Win32_ComputerSystem.NumberOfLogicalProcessors
#Win32_ComputerSystem_NumberOfProcessors = [int32]$Win32_ComputerSystem.NumberOfProcessors
Win32_ComputerSystem_TotalPhysicalMemory = [long]$Win32_ComputerSystem.TotalPhysicalMemory
Win32_ComputerSystem_TotalPhysicalMemory_GB = [float]($Win32_ComputerSystem.TotalPhysicalMemory / (1024*1024*1024))
Win32_OperatingSystem_Caption = [string]$Win32_OperatingSystem.Caption
Win32_OperatingSystem_CSName = [string]$Win32_OperatingSystem.CSName
#Win32_OperatingSystem_OSArchitecture = [string]$Win32_OperatingSystem.OSArchitecture
#Win32_OperatingSystem_SerialNumber = [string]$Win32_OperatingSystem.SerialNumber
Win32_OperatingSystem_ServicePackVersion = [string]$Win32_OperatingSystem.ServicePackMajorVersion + "." + [string]$Win32_OperatingSystem.ServicePackMinorVersion
Win32_PhysicalMemory_Capacity = ($Win32_PhysicalMemory | ForEach-Object { $_.Capacity } | Measure-Object -Sum).sum
Win32_PhysicalMemory_Capacity_GB = (($Win32_PhysicalMemory | ForEach-Object { $_.Capacity } | Measure-Object -Sum).sum / (1024*1024*1024))
Win32_Processor_Count = [int]$Win32_Processor.Count
Win32_Processor_NumberOfCores = [string]$Win32_Processor[0].NumberOfCores
Win32_Processor_NumberOfLogicalProcessors = [string]$Win32_Processor[0].NumberOfLogicalProcessors
#Win32_Processor_Description = [string]$Win32_Processor[0].Description
Win32_Processor_Manufacturer = [string]$Win32_Processor[0].Manufacturer
Win32_Processor_Name = [string]$Win32_Processor[0].Name
} ## end new-object
$Computer
} Else {
"$ComputerName ping failed."
$ComputerNameMgmt = $ComputerName + "-mgmt"
$Win32_PingStatus = "select * from Win32_PingStatus where address = '$ComputerNameMgmt'"
$Win32_PingStatus_Result = Get-WmiObject -query $Win32_PingStatus
If ( $Win32_PingStatus_Result.protocoladdress )
"$ComputerNameMgmt ping succeded."
} Else {
"$ComputerNameMgmt ping failed."
"$(Get-Date -Format o) Starting script $($MyInvocation.MyCommand.Name)"
If ( $ComputerListFile -eq $null -or $ComputerListFile.Length -eq 0 )
"Processing computer $ComputerName"
Get-Computer( $ComputerName )
} Else {
"Processing computer list $ComputerList"
$ComputerList = Get-Content $ComputerListFile
$Computers = @{}
$Results = @()
ForEach( $ComputerListMember in $ComputerList )
"$(Get-Date -Format o) $ComputerListMember"
# Get-Computer( $ComputerListMember ) | Add-Member -InputObject $Computers -MemberType NoteProperty -Name $_
# http://social.technet.microsoft.com/Forums/windowsserver/en-US/e7d602a9-a808-4bbc-b6d6-dc78079aafc9/powershell-to-ping-computers
# $Compuers += New-Object PSObject -Property $Props
# $Computers += New-Object PSObject -Property Get-Computer( $ComputerListMember )
Get-Computer( $ComputerListMember )
"$(Get-Date -Format o) Ending script $($MyInvocation.MyCommand.Name)"
If I try something like this:
Get-Computer( $ComputerListMember ) | Add-Member -InputObject $Computers -MemberType NoteProperty -Name $_
I get the following, even though $_.Name is not null.
Add-Member : Cannot bind argument to parameter 'Name' because it is null.
At <path to my script>Get-Hardware_Memory_OSVersion_CPU_Cores_ver04_sanitized.ps1:111 char:107
+ Get-Computer( $ComputerListMember ) | Add-Member -InputObject $Computers -MemberType NoteProperty -Name <<<< $_
+ CategoryInfo : InvalidData: (:) [Add-Member], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.AddMemberCommand
Or if I try this:
$Computers += New-Object PSObject -Property Get-Computer( $ComputerListMember )
I get this:
New-Object : Cannot bind parameter 'Property'. Cannot convert the "Get-Computer" value of type "System.String" to type "System.Collections.Hashtable".
At <path to my script>Get-Hardware_Memory_OSVersion_CPU_Cores_ver04_sanitized.ps1:114 char:47
+ $Computers += New-Object PSObject -Property <<<< Get-Computer( $ComputerListMember )
+ CategoryInfo : InvalidArgument: (:) [New-Object], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.NewObjectCommandHi Aenagy,
If you want to combine all the computers' information to a single array, and add the property computername in the output, please also try the script below, which I make a little modification of the function Get-Computer, pleaese make sure the account running
the script has the admin permission of the remote computers, or you need to privide cridentials in get-wmiobject, also note I haven't tested:
$output = @()#to output information of the all the computers
ForEach( $ComputerName in $ComputerList ){#loop all the computers
$Win32_PingStatus = "select * from Win32_PingStatus where address = '$ComputerName'"
$Win32_PingStatus_Result = Get-WmiObject -query $Win32_PingStatus
If ( $Win32_PingStatus_Result.protocoladdress )
"$ComputerName ping succeeded."
$Win32_OperatingSystem = Get-WmiObject Win32_OperatingSystem -computer $ComputerName -ErrorAction SilentlyContinue
If ( $Win32_OperatingSystem -eq $null)
"$ComputerName WMI failed."
Else {
"$ComputerName WMI succeeded."
$Win32_Processor = [object[]]$(Get-WmiObject Win32_Processor -computer $ComputerName)
$Win32_PhysicalMemory = [object[]]$(Get-WmiObject Win32_PhysicalMemory -computer $ComputerName)
$Win32_ComputerSystem = Get-WmiObject Win32_ComputerSystem -computer $ComputerName
$Win32_BIOS = Get-WmiObject Win32_BIOS -computer $ComputerName
$Computer = New-Object -Type PSObject -Property @{
Computername = $ComputerName #add the property computername
Name = $Win32_OperatingSystem.CSName
Win32_BIOS_SerialNumber = [string]$Win32_BIOS.SerialNumber
Win32_ComputerSystem_Manufacturer = [string]$Win32_ComputerSystem.Manufacturer
Win32_ComputerSystem_Model = [string]$Win32_ComputerSystem.Model
#Win32_ComputerSystem_NumberOfLogicalProcessors = [int32]$Win32_ComputerSystem.NumberOfLogicalProcessors
#Win32_ComputerSystem_NumberOfProcessors = [int32]$Win32_ComputerSystem.NumberOfProcessors
Win32_ComputerSystem_TotalPhysicalMemory = [long]$Win32_ComputerSystem.TotalPhysicalMemory
Win32_ComputerSystem_TotalPhysicalMemory_GB = [float]($Win32_ComputerSystem.TotalPhysicalMemory / (1024*1024*1024))
Win32_OperatingSystem_Caption = [string]$Win32_OperatingSystem.Caption
Win32_OperatingSystem_CSName = [string]$Win32_OperatingSystem.CSName
#Win32_OperatingSystem_OSArchitecture = [string]$Win32_OperatingSystem.OSArchitecture
#Win32_OperatingSystem_SerialNumber = [string]$Win32_OperatingSystem.SerialNumber
Win32_OperatingSystem_ServicePackVersion = [string]$Win32_OperatingSystem.ServicePackMajorVersion + "." + [string]$Win32_OperatingSystem.ServicePackMinorVersion
Win32_PhysicalMemory_Capacity = ($Win32_PhysicalMemory | ForEach-Object { $_.Capacity } | Measure-Object -Sum).sum
Win32_PhysicalMemory_Capacity_GB = (($Win32_PhysicalMemory | ForEach-Object { $_.Capacity } | Measure-Object -Sum).sum / (1024*1024*1024))
Win32_Processor_Count = [int]$Win32_Processor.Count
Win32_Processor_NumberOfCores = [string]$Win32_Processor[0].NumberOfCores
Win32_Processor_NumberOfLogicalProcessors = [string]$Win32_Processor[0].NumberOfLogicalProcessors
#Win32_Processor_Description = [string]$Win32_Processor[0].Description
Win32_Processor_Manufacturer = [string]$Win32_Processor[0].Manufacturer
Win32_Processor_Name = [string]$Win32_Processor[0].Name
} ## end new-object
$output+=$Computer #combine all the "$computer" to "$output"
Else {
"$ComputerName ping failed."
$output
If you have any feedback on our support, please click here.
Best Regards,
Anna
TechNet Community Support -
How to create local store adapters in bulk without using ODSM in OVD
Hello,
Our requirement is to create 62 local store adapters in OVD
Hence, it can not be done using manual effort
I have tried to do this using below approach:
Create an ldif containing 62 groups
Update adapters.os_xml to have the 62 nodes of "standard" per adapter
restart OVD
import ldif file in data browser in ODSM
However, this approach is not working
I am not able to search these groups in my configured OAM and getting "No profile configured for such kind of group" error in identity console of OAM (10g)
Please help
Thanks,
PurvaYou cannot create a APPdomain without DNS manager.
You can install DNS role on a machine and update your sharepoint server's DNS to consume from this DNS server. APPdomain cannot work without DNS -
Create a Collection that populate with machines that failed on a TS deployment.
Hi Everyone,
I would like to create a Device Collection containing all machines that failed on a TS deployment. Is there a way? What would be the WQL for this?
Thank you in advance.You can do something like this:
http://myitforum.com/cs2/blogs/gramsey/archive/2006/10/20/How-To_3A00_-Create-a-Collection-Based-on-an-Advertisement-Status.aspx
Both classes SMS_R_System and SMS_ClientAdvertisementStatus
still exist in the same form and format.
My Blog: http://www.petervanderwoude.nl/
Follow me on twitter: pvanderwoude -
Create a collection from Shuttle or Multiple Select List items
Hi all, this may be a dumb question, but I cannot find how to create a collection using the values stored shuttle item? I just want to assign the values of the shuttle which are usually delimited by a colon (ex. 11:22:33:44:55) into a collection that stores each of these values separately so later I can select * from table where id IN(select * from collectionname) --- is this possible?
I am running into a problem where users want to select more than 1000 items in a shuttle to do a search.... and the IN operator cannot handle more than 1000 instances. I was told to try to use a temporary table to house the values of the shuttle, but temporary tables pose a problem with APEX. I read on the forums to try using a collection instead. Any thoughts?
Thanks.Would this be a good start?? I found this here... Re: Search on a typed in list of values
Not sure how the View would work though??
A much easier way of doing all this is to create a collection, create a view off that collection and then do your select from the view. No custom functions or types involved. An example is:
DECLARE
l_vc_arr2 HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
BEGIN
l_vc_arr2 := HTMLDB_UTIL.STRING_TO_TABLE(:P13_MULTISELECT);
htmldb_collection.create_or_truncate_collection( p_collection_name => 'MULTISELECTCOL');
FOR i IN 1..l_vc_arr2.count LOOP
htmldb_collection.add_member(
p_collection_name => 'MULTISELECTCOL',
p_c001 => l_vc_arr2(i));
END LOOP;
END;
where your view looks something like:
CREATE OR REPLACE FORCE VIEW "WS"."TEMP_MULTISELECT_VIEW" ("MULTISELECTID") AS
(SELECT c001 FROM htmldb_collections WHERE collection_name = 'MULTISELECTCOL');
and finally for your report you use something like:
SELECT t.a
FROM tablea t
WHERE t.b IN
(SELECT roleid FROM temp_multiselect_view)
This way is simple and works... so by KISS standards its good.
Hope this helps some other unfortunate.... -
Hi, good day, Does anyone here knows and willingly to teach me how to create a collection and adding members to it.. A step by step guide for a newbie like me.. I really don't know how to make it.
thank you so much,
-joseHi,
Refer
http://download.oracle.com/docs/cd/B10500_01/java.920/a96654/oraarr.htm
http://docstore.mik.ua/orelly/oracle/prog2/ch19_02.htm
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1 -
How to create a window with its own window border other than the local system window border?
How to create a window with its own window border other than the local system window border?
For example, a border: a black line with a width 1 and then a transparent line with a width 5. Further inner, it is the content pane.
In JavaSE, there seems to have the paintComponent() method for the JFrame to realize the effect.Not sure why your code is doing that. I usually use an ObjectProperty<Point2D> to hold the initial coordinates of the mouse press, and set it to null on a mouse release. That seems to avoid the dragging being confused by mouse interaction with other nodes.
import javafx.application.Application;
import javafx.application.Platform;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.collections.FXCollections;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Point2D;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ChoiceBox;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import javafx.stage.Window;
public class CustomBorderExample extends Application {
@Override
public void start(Stage primaryStage) {
AnchorPane root = new AnchorPane();
root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
enableDragging(root);
StackPane mainContainer = new StackPane();
AnchorPane.setTopAnchor(mainContainer, 5.0);
AnchorPane.setLeftAnchor(mainContainer, 5.0);
AnchorPane.setRightAnchor(mainContainer, 5.0);
AnchorPane.setBottomAnchor(mainContainer, 5.0);
mainContainer.setStyle("-fx-background-color: aliceblue;");
root.getChildren().add(mainContainer);
primaryStage.initStyle(StageStyle.TRANSPARENT);
final ChoiceBox<String> choiceBox = new ChoiceBox<>(FXCollections.observableArrayList("Item 1", "Item 2", "Item 3"));
final Button closeButton = new Button("Close");
VBox vbox = new VBox(10);
vbox.setAlignment(Pos.CENTER);
vbox.getChildren().addAll(choiceBox, closeButton);
mainContainer.getChildren().add(vbox);
closeButton.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
Platform.exit();
primaryStage.setScene(new Scene(root, 300, 200, Color.TRANSPARENT));
primaryStage.show();
private void enableDragging(final Node n) {
final ObjectProperty<Point2D> mouseAnchor = new SimpleObjectProperty<>(null);
n.addEventHandler(MouseEvent.MOUSE_PRESSED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
mouseAnchor.set(new Point2D(event.getX(), event.getY()));
n.addEventHandler(MouseEvent.MOUSE_RELEASED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
mouseAnchor.set(null);
n.addEventHandler(MouseEvent.MOUSE_DRAGGED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
Point2D anchor = mouseAnchor.get();
Scene scene = n.getScene();
Window window = null ;
if (scene != null) {
window = scene.getWindow();
if (anchor != null && window != null) {
double deltaX = event.getX()-anchor.getX();
double deltaY = event.getY()-anchor.getY();
window.setX(window.getX()+deltaX);
window.setY(window.getY()+deltaY);
public static void main(String[] args) {
launch(args); -
How do I create Local Network Home Folders for Users from an Active Directory binding?
My situation is this... I run an iMac lab at my school. I have a server set up to manage the network user accounts in the lab. Currently, I can sucessfully create Local Network Users and log in to them from any of the iMacs. My school has an Active Directory set up for all the students on campus. What I'd like to be able to do is configure the server to allow the students to use their user names and passwords from their school accounts to log in to the iMacs and have it automatically build a network user folder on the server for them to use during the lab.
So far, I have been able to configure access for the Active Directory accounts to use the services on the server, mainly File Sharing, but I cannot figure out how to allow them to log into a user account on the client's machines using their same Active Directory credentials. I have even attempted to allow the user accounts to create mobile accounts, but that's not working out either. Entering indivual network user accounts into the server for every student every semester will be a nightmare. I'm sure there's a way to do it automatically using the exisitng Active Directory structure.
The live server is running 10.8.5 Server still, but I've also got a clone running OS X Server in case it matters. Please help!ok reinstalled everything dns seems to be working have done sudo changeip -checkhostname and it says that both names match but then i started open directory and can't seem to get Kerberos started, i've tried changing it to stand alone then back again but it does nothing. I'm wondering why this would happen? i've tried adding a kerberos record but it doesn't do it just does nothing so i don't know what i'm doing wrong. I wondered if it might be a problem with the two network cards and dns as on ethernet one it is getting the dns name xserve.xxxx.ac.uk (which matches what the college server wants to call us) but on ethernet 2 gets xserve-2.local because it tells me that it already exists on ethernet one and renames it to this. I need to set up NAT so have ethernet coming in on port one and out again on port two. I wonder if my dns is backwards as its got the 192. address the NAT uses but its linked to the ethernet port one dns maybe this is the problem. would this cause open directory not to start kerberos?
-
How to configure local disk on OVM Server as storage space to create VMs
Hello,
We have installed OVM Server 3.1.1 on a machine that has 250 GB of Hard disk space [Single disk].
While installing used an option - Remove all partitions and create a new default partition layout.
Around 4GB has been used and remaining 246 GB is left as free space.
From OVM Manager - the server is discovered but didn't discovered the physical disk [i.e. remaining 246 GB raw disk space].
Can someone help me to understand how to use local disk as storage space for creating and running VM's.
Thanks
SrinivasYou can? You've used every conceivable BIOS out there? You must really be full of yourself. There is absolutely no BIOS that I know of that gives this basic function. BIOSs do not "hard partition" anything. A "BIOS" is not made for such things. Do you even know what "BIOS" stands for?
I wonder why there is some many wanting to do this and are having problems.... I mean if it is such a straight forward thing to do..... It must be down right "intuitive".
You maybe speaking of a RAID "BIOS" but you obviously think you're not. Some motherboards have integrated RAID abilities. Intel RST comes to mind... BUT this isn't a feature of a MOTHERBOARD BIOS.
I've got some $50,000 servers that will not break a single hard drive up into multiple logical drives..... Now, I haven't worked on a "Stinkpad" for many years. Don't want to. However, I have never seen one that would do what you're saying you're doing.
You maybe trying to help.... but you're leading people down a wrong path.
Its just as easy to run virtual box and use the virtual box templates for Oracle VM. In fact, its more practical if you want to run Oracle VM on a laptop for testing purposes than blowing everything away and attempting to setup different LUNS on a single hard drive.
For your review...
http://www.oracle.com/technetwork/articles/servers-storage-admin/configure-vm-templates-1656261.html
Although it's more reliable to use a separate location (such as an NFS share) for a storage repository, you can use a local disk of your Oracle VM Server instead, thus taking advantage of the local storage option. Beware, though: Oracle VM Server 3.0 doesn't allow you to utilize the unused space on the physical disk it's installed on. For local storage, you'll need at least one more physical disk. In other words, you'll need a total of two disks at minimum on your Oracle VM Server host if you want to use local storage. In practice, though, local storage is not a primary use case. The major downside to this approach is that local storage, by definition, cannot be shared between different servers.
Edited by: user12273962 on Dec 10, 2012 10:40 AM
Maybe you are looking for
-
Is there a way to save state of shift register for initializing next time vi is started?
Hello all, I've a quick question. I have right now....a numeric constant...starts with "1" intially when starting the vi. I use this as a shift register on my main while loop....as the counter to use when the user clicks various items on my vi. This
-
So, almost a year ago, like right after my Apple warrenty expired, the home button on my Ipod Touch stopped working. Naturally, right? You know, since my warrenty just had to expire... I know its been almost a year know, but does anyone have any sugg
-
Using my MacBook Pro and iPhoto and Apple TV I have always been able to navigate on the TV to Photos and then to either Events, or Photos, or Albums. I always choose albums for my "shows" but after updating Apple TV I no longer see Albums as a choice
-
Windows 2003 x64 on a X220?
Just wondering if anybody has tried to install Windows 2k3 x64 on a X220. It's still my favorite OS of all time, and I'd love to have that option if at all possible. I've never tried 2008 server, if the Win7 drivers cross over (like XPx64 and 2003x64
-
I purchased a Macbook Pro in July 2014 so my computer is still new. There is no damage to it (it has never been dropped and kept in case). My issue started about a month to month and half ago. When watching netflix the show will stop and when I tr