Create triangle with scripting
Hi,
does someone know how to create a triangle with (x1,y1)(x2,y2) and (x3,y3) positions?
For a rectangle i found this:
app.activeDocument.rectangles.add({geometricBounds:[0, 144 , 214, 500] } )
But this is not working for a triangle?
Please Help
Or:
create a rectangle and convert it to a triangle with:
myRectangle.convertShape(ConvertShapeOptions.CONVERT_TO_TRIANGLE);
Uwe
Similar Messages
-
Can any body guide me how to create DB with scripts, Here is the scripts
ls -ltrtotal 6952
-rw-r----- 1 oracle oinstall 7061504 Dec 4 11:17 tempControl.ctl
-rw-r----- 1 oracle oinstall 2057 Dec 4 11:17 rmanRestoreDatafiles.sql
-rwxr-xr-x 1 oracle oinstall 948 Dec 4 11:17 PSC01P1.sql
-rwxr-xr-x 1 oracle oinstall 645 Dec 4 11:17 PSC01P1.sh
-rw-r----- 1 oracle oinstall 682 Dec 4 11:17 postScripts.sql
-rw-r----- 1 oracle oinstall 2634 Dec 4 11:17 initPSC01PTemp.ora
-rw-r----- 1 oracle oinstall 2719 Dec 4 11:17 initPSC01PTempOMF.ora
-rw-r----- 1 oracle oinstall 2621 Dec 4 11:17 init.ora
-rw-r----- 1 oracle oinstall 185 Dec 4 11:17 CreateClustDBViews.sql
-rw-r----- 1 oracle oinstall 915 Dec 4 11:17 CloneRmanRestore.sql
-rw-r----- 1 oracle oinstall 1756 Dec 4 11:17 cloneDBCreation.sql
-rw-r----- 1 oracle oinstall 954 Dec 4 11:18 postDBCreation.sqlNone of any script will help u. Followings are the steps to create manually database
Assume you have selected f drive for the same -
1. Choose drive with sufficient disk space
2. create folder (folder_name)
3. create bdump,cdump,oradata,pfile folder in (folder_name) folder
4. open notepad and create pfile as named "init_sidname.ora" with required parameters (check parameters in sample pfile or ask to resend
5. go to os prompt
6. type commands
oradim -new -sid init_sidname.ora -startmode m -pfile (path of init_sidname.ora file with filename)
orapwd file=f:\oracle\ora92\database\pwd_nameoffile.ora password=sysdba entries=3
create a sql script to create database with extention .sql
set oracle_sid=sid_name
sqlplus /nologsql>connect sys as sysdba
password : sysdba
sql> create spfile from pfile=(path of pfile)
(it will create spfile in database folder of ora92 folder)
sql> startup nomount
sql> execute catalog.sql and catproc.sql scripts
your database will be create and can be checked with select commands like
select * from dba_datafiles;
Rajesh thakur -
Creating triangles with different angles
Is there a plug-in for creating triangles with different angles? eg. 70-30-80
I got a lot of math stuff to work on and it would be great if I could put in two angles and voila my triangle appears for me to resize as need be.
Or if any one has good suggestions to create these triangles quickly and easily that would be appreciated to.Hi,
It is not possible,
In PLD u can do it by picking first 3 digit of itemcode from database and assign that database label with different code...
But here u want different color for different group right ?
then u have work more on PLD coding....
If group are fixed/static then it almost possible ...if dynamic then update yr PLD
Thanks
Kevin -
Is there any way to dynamically create a class in a Flex application with a script? Basically what I want to do is loop over data from a database that defines the classes I need, and create them on-the-fly instead of creating them in .as files and recompiling.
Class I doubt, but its attributes indeed u can create dynamically by making
public dynamic class TestClass
public function TestClass()
this.attribute_1 = value... -
Manually creating DB with scripts question
As mentioned in admin guide, these are the steps to manually creating DB
Step 1: Decide on Your Instance Identifier (SID)
Step 2: Establish the Database Administrator Authentication Method
Step 3: Create the Initialization Parameter File
Step 4: Connect to the Instance
Step 5: Create a Server Parameter File (Recommended)
Step 6: Start the Instance
Step 7: Issue the CREATE DATABASE Statement
I am not sure about step2, can somebody send me quick command what to do here, which are mentioned in
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#i1008823C:\Documents and Settings\Ar>set ORACLE_SID=test1
C:\Documents and Settings\Ar>orapwd FILE=test1.pwd
PASSWORD=test ENTRIES=30
= your password file should be named
= %ORACLE_HOME%\database\orapwORACLE_SID.ora
C:\Documents and Settings\Ar>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on Wed May 2
10:59:01 2007
Copyright (c) 1982, 2002, Oracle Corporation. All
rights reserved.
SQL> connect sys/test as sysdba;
ERROR:
ORA-12560: TNS:protocol adapter error
= First, point to your instance, set the ORACLE_SID environment
= variable from the OS:
= set ORACLE_SID=YourInstanceName
= Next, make sure you use proper authentication method.
Now how can i run creat database scripts here???= Just before creating your database, in windows, you must first create the service, with the oradim command, this command creates the password file automatically:
oradim -new -sid YourInstanceName -intpwd YourSYSDBAPassword -startmode A
= Once you have been properly authenticated, and you had made sure everything is OK, issue your CREATE DATABASE command.
= I suggest you to use the dbca to create the scripts, this is the easiest way to create the create database scripts, and the least prone to human error. -
Help with Script created to check log files.
Hi,
I have a program we use in our organization on multiple workstations that connect to a MS SQL 2005 database on a Virtual Microsoft 2008 r2 Server. The program is quite old and programmed around the days when serial connections were the most efficient means
of connection to a device. If for any reason the network, virtual server or the SAN which the virtual server runs off have roughly 25% utilization or higher on its resources the program on the workstations timeout from the SQL database and drop the program
from the database completely rendering it useless. The program does not have the smarts to resync itself to the SQL database and it just sits there with "connection failed" until human interaction. A simple restart of the program reconnects itself
to the SQL database without any issues. This is fine when staff are onsite but the program runs on systems out of hours when the site is unmanned.
The utilization of the server environment is more than sufficient if not it has double the recommended resources needed for the program. I am in regular contact with the support for the program and it is a known issue for them which i believe they do not
have any desire to fix in the near future.
I wish to create a simple script that checks the log files on each workstation or server the program runs on and emails me if a specific word comes up in that log file. The word will only show when a connection failure has occurred.
After the email is sent i wish for the script to close the program and reopen it to resync the connection.
I will schedule the script to run ever 15 minutes.
I have posted this up in a previous post about a month ago but i went on holidays over xmas and the post died from my lack or response.
Below is what i have so far as my script. I have only completed the monitoring of the log file and the email portion of it. I had some help from a guy on this forum to get the script to where it is now. I know basic to intermediate scripting so sorry for my
crudity if any.
The program is called "wasteman2G" and the log file is located in \\servername\WasteMan2G\Config\DCS\DCS_IN\alert.txt
I would like to get the email side of this script working first and then move on to getting the restart of the program running after.
At the moment i am not receiving an error from the script. It runs and doesn't complete what it should.
Could someone please help?
Const strMailto = "[email protected]"
Const strMailFrom = "[email protected]"
Const strSMTPServer = "mrc1tpv002.XXXX.local"
Const FileToRead = "\\Mrctpv005\WasteMan2G\Config\DCS\DCS_IN\alert.txt"
arrTextToScanFor = Array("SVR2006","SVR2008")
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = WScript.CreateObject("Scripting.FileSystemObject")
Set oFile = objFSO.GetFile(FileToRead)
dLastCreateDate = CDate(WshShell.RegRead("HKLM\Software\RDScripts\CheckTXTFile\CreateDate"))
If oFile.DateCreated = dLastCreateDate Then
intStartAtLine = CInt(WshShell.RegRead("HKLM\Software\RDScripts\CheckTXTFile\LastLineChecked"))
Else
intStartAtLine = 0
End If
i = 0
Set objTextFile = oFile.OpenAsTextStream()
Do While Not objTextFile.AtEndOfStream
If i < intStartAtLine Then
objTextFile.SkipLine
Else
strNextLine = objTextFile.Readline()
For each strItem in arrTextToScanFor
If InStr(LCase(strNextLine),LCase(strItem)) Then
strResults = strNextLine & vbcrlf & strResults
End If
Next
End If
i = i + 1
Loop
objTextFile.close
WshShell.RegWrite "HKLM\Software\RDScripts\CheckTXTFile\FileChecked", FileToRead, "REG_SZ"
WshShell.RegWrite "HKLM\Software\RDScripts\CheckTXTFile\CreateDate", oFile.DateCreated, "REG_SZ"
WshShell.RegWrite "HKLM\Software\RDScripts\CheckTXTFile\LastLineChecked", i, "REG_DWORD"
WshShell.RegWrite "HKLM\Software\RDScripts\CheckTXTFile\LastScanned", Now, "REG_SZ"
If strResults <> "" Then
SendCDOMail strMailFrom,strMailto,"VPN Logfile scan alert",strResults,"","",strSMTPServer
End If
Function SendCDOMail( strFrom, strSendTo, strSubject, strMessage , strUser, strPassword, strSMTP )
With CreateObject("CDO.Message")
.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSMTP
.Configuration.Fields.item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic
.Configuration.Fields.item("http://schemas.microsoft.com/cdo/configuration/sendusername") = strUser
.Configuration.Fields.item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = strPassword
.Configuration.Fields.Update
.From = strFrom
.To = strSendTo
.Subject = strSubject
.TextBody = strMessage
On Error Resume Next
.Send
If Err.Number <> 0 Then
WScript.Echo "SendMail Failed:" & Err.Description
End If
End With
End FunctionThankyou for that link, it did help quite a bit. What i wanted was to move it to csript so i could run the wscript.echo in commandline. It all took to long and found a way to complete it via Batch. I do have a problem with my script though and you might
be able to help.
What i am doing is searching the log file. Finding the specific words then outputting them to an email. I havent used bmail before so thats probably my problem but then im using bmail to send me the results.
Then im clearing the log file so the next day it is empty so that when i search it every 15 minutes its clean and only when an error occurs it will email me.
Could you help me send the output via email using bmail or blat?
@echo off
echo Wasteman Logfile checker
echo Created by: Reece Vellios
echo Date: 08/01/2014
findstr "SRV2006 & SRV2008" \\Mrctpv005\WasteMan2G\Config\DCS\DCS_IN\Alert.Txt > c:\log4mail.txt
if %errorlevel%==0 C:\Documents and Settings\rvellios\Desktop\DCS Checker\bmail.exe -s mrc1tpv002.xxx.local -t [email protected] -f [email protected] -h -a "Process Dump" -m c:\log4mail.txt -c
for %%G in (\\Mrctpv005\WasteMan2G\Config\DCS\DCS_IN\Alert.Txt) do (copy /Y nul "%%G")
This the working script without bmail
@echo off
echo Wasteman Logfile checker
echo Created by: Reece Vellios
echo Date: 08/01/2014
findstr "SRV2006 & SRV2008" \\Mrctpv005\WasteMan2G\Config\DCS\DCS_IN\Alert.Txt > C:\log4mail.txt
if %errorlevel%==0 (echo Connection error)
for %%G in (\\Mrctpv005\WasteMan2G\Config\DCS\DCS_IN\Alert.Txt) do (copy /Y nul "%%G")
I need to make this happen:
If error occurs at "%errorlevel%=0" then it will output the c:\log4mail.txt via smtp email using bmail. -
How to create a new Oracle OSB project automaticaly with script without IDE
Hello,
I want to create automatically an "Oracle service bus project" and an "Oracle service bus configuration project" with scripts (ANT or Maven or ...) without using IDE, without using workshop or Eclipse. I want to create automatically (ANT or Maven) just a skeleton of an OSB project witch i can use after in workshop.
I want to create 1 "Oracle service bus configuration project" with many "Oracle service bus project" automatically (ANT or Maven or scripts) witch i can use after in workshop. How to create a new Oracle OSB project automaticaly with script without IDE ? How can i do this ?
I'm using Oracle service bus 10.3.1
Thank you for your help.Thank you for your response,
I do not want to just create the services (proxy services and business services) but I want to create a template for 40 OSB project with the same scripts ANT/Maven.
Template="Oracle service bus configuration project" + "Oracle service bus project" + services of 40 OSB projects
The goal is that I have more than 40 projects to create and just the name of the projects that changes (when I say the name of the project ie the name of the OSB project, the name of proxy services and the name of business services ).
So I want to give my script (ANT/Maven) the name of 40 OSB project and the script must generate the skeleton of the 40 projects at once time and after generation of skeleton of the 40 project, I will import them in the workshop to add manually mapping and routing and other things that differs from one project to another.
So i want to generate automatically a skeletons of 40 OSB projects using a script (ANT / Maven) and I give to the script juste the names of the 40 projects.
I want to create a "Oracle service bus configuration project" and "Oracle service bus project" automatically of 40 OSB projects (ANT or Maven or scripts) witch i can use after in workshop.
I want to create one 'template' of all 40 projects in the same time, with the same directory structure (Transforlation, Business services, proxy services, WSDL .....) and all 40 project have the same transport, just the names of projects and services witch changes and i can give to the script all names of projects and services and i can give also all WSDL.
Regards,
Tarik -
Split filename and create folders with Powershell script ( --newbie user)
I have a folder with 1000's of files. Each file varies in length; typically between 9-14 characters. Example:
C:\workpics\1238955678.1
C:\workpics\744556224.1
C:\workpics\744556224.2
C:\workpics\8445655996.1
I would like to run a script to split the filename and separate into folders. The filename would then consist of 5 characters, the foldername would be the first characters remaining.
C:\workpics\12389\55678.1
C:\workpics\7445\56224.1
C:\workpics\7445\56224.2
C:\workpics\84456\55996.1
Any assistance to create this Powershell script would be awesome. Thank you!!I have a folder with 1000's of files. Each file varies in length; typically between 9-14 characters. Example:
C:\workpics\1238955678.1
C:\workpics\744556224.1
C:\workpics\744556224.2
C:\workpics\8445655996.1
I would like to run a script to split the filename and separate into folders. The filename would then consist of 5 characters, the foldername would be the first characters remaining.
C:\workpics\12389\55678.1
C:\workpics\7445\56224.1
C:\workpics\7445\56224.2
C:\workpics\84456\55996.1
Any assistance to create this Powershell script would be awesome. Thank you!!
Please reread your request. It makes no sense. Read each statement carefully and notice that the statements are in conflict.
Start your scrip in PowerShell. Look up things like how to list files and how to manage strings. All of the information you need is here:
http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
¯\_(ツ)_/¯ -
Creating User Table, User Field ... with Script SQL in C#
Hi every body,
I wonder if we could create a user table, user field ... with script SQL in C#.
Should I use the reference Microsoft.SqlServer.ScriptTask ??
Thank you for your HelpHaifa,
I am not sure where your question is directed. The forum that you have posted your question in is for questions related to the SAP Business One SDK. Are you looking to create new user tables/fields in SAP Business One? If so you can do this either through the SAP Business One SDK interface using Tools > User Defined Fields and/or Tools > User Defined tables.
You can also create metadata objects in Business One programatically using the UserTablesMD and/or UserFields objects.
SAP does not support direct SQL writes to the SAP Business One Db.
HTH,
Eddy -
Script to Create databases with params to support dir location for data or log files
Script to Create databases with params to support dir location for data or log files
DECLARE @Query VARCHAR(MAX)=''
DECLARE @DbName VARCHAR(400) = '<DBNAME>'
DECLARE @DbFilePath VARCHAR(400) = '<Valid DataFilePath>'
DECLARE @DBLogFilePath VARCHAR(400)='<Valid LogFile Path>'
SET @Query = @Query + 'CREATE DATABASE '+@DbName +' ON PRIMARY '
SET @Query = @Query + '( NAME = '''+@DbName +''', FILENAME = '''+@DbFilePath+@DbName +'.mdf'' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) '
SET @Query = @Query + ' LOG ON '
SET @Query = @Query + '( NAME = '''+@DbName +'_log'', FILENAME = '''+@DblogFilePath+@DbName +'_log.ldf'' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)'
print @query
exec(@query)
--Prashanth -
Home directories not fully created - AD with OSX server
Hope this makes sense.
I'm setting up a network in a school. We've an Xserve running Mac OS X Server 10.6.4. So that students can move seamlessly between our windows network and this, we've extended the AD schema and have the Server bound to AD. Clients are running 10.6.4, bound in a triangle with the Mac Open Directory and AD. So far, so good, all works fine.
I've been able to set preferences and network home paths with no major issues and scripted to get around problems with using iMovie. However as we've been awaiting some replacement hard drives to set up a new RAID, the home paths have been set to the share automatically created for Users - so afp://SERVER/Users
Now our new hard drives have turned up. The RAID is setup and working. I've created a new folder to store home paths - just to test with one user initially. I shared this path 'StaffData', enabled it for automount via afp, in protocol I've enabled guest access for afp. I copied the permissions set for the original /Users directory we were using. In WGM I've changed the home path for this user to afp://SERVER/StaffData, saved, then rebooted the client.
When I then login with this user it created the top level home directory - afp://SERVER/StaffData/USERNAME - and then a subfolder for /Library and /Desktop. No other folders are created (Music, Movies, Photos, Documents are all missing). I'm able to get it to generate Music when I load iTunes, but the same doesn't happen for iMovie or iPhoto.
I'm guessing its a permissions issue? When I switch the home folder back to the server's /User directory it creates all the home folders without any issues. Can anyone point me in the direction of a solution to this?Yep, I always get an error "The home directory could not be created because an error occurred". Always had that, even on the original /Users share that worked.
Kind of found a way around, have written a script to run at login that checks to see if Pictures, Movies, etc folders are present, and if it doesn't it just makes a new directory with that name. It's a bit of a bodge, but seems to still work. Would still love to have another proper fix eventually, but for the time being it's solved the immediate problem I had!
Thanks for your advice. -
Creating SQL-Loader script for more than one table at a time
Hi,
I am using OMWB 2.0.2.0.0 with Oracle 8.1.7 and Sybase 11.9.
It looks like I can create SQL-Loader scripts for all the tables
or for one table at a time. If I want to create SQL-Loader
scripts for 5-6 tables, I have to either create script for all
the tables and then delete the unwanted tables or create the
scripts for one table at a time and then merge them.
Is there a simple way to create migration scripts for more than
one but not all tables at a time?
Thanks,
Prashant RaneNo there is no multi-select for creating SQL-Loader scripts.
You can either create them separately or create them all and
then discard the one you do not need. -
I have an imac and am using iphoto. Currently I am having a problem with one particular album which shows in the main part of the window a triangle with an exclamation point. The two photos are at the bottom of the main window in the same area where the "info" "edit" "create" area is. I can see the two photos but I can not get them back into the main part of the window. I can't drag them anywhere either. I can't double click or right click on either of the two photos either. All I can do is click on either one and they get a little bigger. Before I saw the exclamation point in the main body of the window all I get is two squares with nothing in them and the entire border is made up of dashes. Can someone help me?
Make a temporary, backup copy of your library if you don't already have one (Control-click on the library and select Duplicate from the contextual menu) and apply the two fixes below in order as needed:
Fix #1
Launch iPhoto with the Command+Option keys held down and rebuild the library.
Screenshot is for iPhoto 9
Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
Fix #2
Using iPhoto Library Manager to Rebuild Your iPhoto Library
1 - download iPhoto Library Manager and launch.
2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
4 - In the next window name the new library and select the location you want it to be placed.
5 - Click on the Create button.
Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments. However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory. -
in iMovie:
I open a project that has been finalized. source fragment is missing. I see a yellow triangle with exclamation mark. Why is that and how do I solve the problem?
please help.
J. AalbersShouldn't really be the MPE at fault here ... what is the codec of the footage/sequence/project?
Second, can you create a new project in PrPro, then in the media browser, import that sequence from the other project? -
I have done something terrible! now some of my photos will not open up, I can see them in the 'event' but if I click on some of them I get a gray triangle with an exclamation point. What have I done and how do I rectify it?
The exclamation shows when the file path/link to the original file has been broken. Apply the two fixes below in order as needed:
Fix #1
Launch iPhoto with the Command+Option keys held down and rebuild the library.
Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
Fix #2
Using iPhoto Library Manager to Rebuild Your iPhoto Library
1 - download iPhoto Library Manager and launch.
2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
4 - In the next window name the new library and select the location you want it to be placed.
5 - Click on the Create button.
Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments. However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
OT
Maybe you are looking for
-
Looking for HP printer App/Icon to save on desktop
Hi - I am presently using Windows 8.1 operating system. In a previous version of Windows, I had installed a HP app/icon for printing photos and saved it on my desktop screen, the app looked like a picture of a "small HP printer" and it was very conve
-
Is there any way to update operating system in a 40GB iPod Classic?
Is there any way to upgrade the software in a 40gb iPod Classic? It is circa 2004/2005.
-
Are not mutually convertible in a Unicode program
Hi guys, I'm getting error: "LS_EDIDD-SDATA and LS_STRUCTURE are not mutually convertible in Unicode Program" I have PRKST which is Amount field in LS_STRUCTURE, which causes this problem. But if I change type of PRKST to CHAR15, then it doesn't give
-
Default BP (Vendor) GL Expense accounts
How do you set up a default GL- Expense account for a particular BP (Vendor) ???
-
PRIME LMS 4.2 + High Availabilty
Hi all, Does LMS 4.2 support Microsoft cluster solution for High Availabilty ? I understand from Cisco Documentations that they use Veritas Cluster solution as well as Vmware Vmotion/HA for high available configuration of LMS. But i would like to k