Duplicate text files being created with ~ appended
Whenever I edit a text file with TextEditor and save it, a duplicate file is created with a ~ appended to the end of the name.
Example:
After editing and saving my_file.txt my_file~.txt is also created.
The result is I get two files with exactly the same contents.
my_file.txt
my_file~.txt
I would really like to stop it from doing this. It clutters up everything. It has done this since I first installed the OS. My file system format is Mac OS Extended (Journaled). Any suggestions?
I looked through the preferences for TextEditor. I had "Delete the automatic backup file unchecked". I think checking this option will fix the problem.
Similar Messages
-
Duplicate photo files being created in Bridge
I have a Mac Book pro with sno leopard and use CS5 and am having weird issues with photos from my canon 5d mk II and 7 d. Bridge is creating duplicate photo files after I download them. Sure adobe told me to purge my cache , ok, that works but it just starts re creating them again?
You can set up a scan when you create a new device in System Preferences:
go to System Preferences --> FCSVR Pref pane --> Devices Pane and then choose create new device ("+" sign and the Device Assistant will appear. You choose the type and then you can set up a Full or Add only Scan here.)
Other option is to set up a Scan via the Administration window in the Java Client:
This is not as easy since there is no Device Assistant.
go to Admin window in Java Client --> Response and then create a new 'Scan' response on the device you want to scan. 'Scan Productions' is something different, maybe you want that instead, I don't know. Depending on how you set it up, it can create a Production in FCSVR catalogue for each folder or subfolder and that media will be scanned and placed into that Production in FCSVR catalogue.
Anyways, once you create the Scan Response, go to Admin pane --> Schedule. Create a new schedule and add the 'Scan' response you just created to the "Response List" section. Don't forget to check "Enabled"...can't tell you how many times I created the response but then forgot to enable it.
Once you scan the assets, they are in the FCSVR catalogue with clip proxies, thumbnails and posterframes. If you have existing FCP projects that use this media, you will want to make sure the media in the FCP project is connected to that same media that was scanned. When you upload the FCP project, it will not dup the assets, just add the FCP project to it, unless you didn't set the EIP device correctly. If you look in Search All Jobs, the only thing that should be generated at this point it Edit Proxies (if you enabled them) and Elements.
Now my question to you is the same as Chris' question here http://discussions.apple.com/thread.jspa?messageID=9147105#9147105. How did you set things up so far? What is your workflow? Where is your media? -
Why is my Zip file being created with size of O KB?
I have the following code
public static int createZip (String directory)
throws IOException {
File path = new File( directory );
File outZip = new File("c:\\wip\\sams9dbExport.zip");
boolean boo = outZip.createNewFile();
FilenameFilter filter = new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.endsWith(".xml");
if ( outZip.exists() ) System.out.println("File exists");
System.out.println(" Files and filters made");
// These are the files to include in the ZIP file
String[] fileList = path.list(filter);
// Create a buffer for reading the files
byte[] buf = new byte[1024];
try {
// Create the ZIP file
String outFilename = "sams9dbExport.zip";
ZipOutputStream out = new ZipOutputStream( new FileOutputStream( outFilename ) );
// Compress the files
for ( int i=0; i < fileList.length; i++ ) {
FileInputStream in = new FileInputStream( "c:\\wip\\"+fileList[i] );
System.out.println( fileList[i] );
// Add ZIP entry to output stream.
out.putNextEntry( new ZipEntry( "c:\\wip\\"+fileList[i] ) );
System.out.println("Added an entry");
// Transfer bytes from the file to the ZIP file
int len;
while ( ( len = in.read( buf ) ) > 0 ) {
out.write( buf, 0, len );
// Complete the entry
out.closeEntry();
in.close();
// Complete the ZIP file
out.close();
} catch (IOException e) {
System.out.println( e.toString() );
return 0;
return 1;
}And I get the following output
SQL> @ziptest
File exists
Files and filters made
AH_QUERY.xml
Added an entry
myclob.xml
Added an entry
myclob1.xml
Added an entry
myclob2.xml
Added an entry
PERSONNEL.xml
Added an entry
PERS_ALG.xml
Added an entry
sampledoc.xml
Added an entry
ut_ah_query1.xml
Added an entry
ut_provider.xml
Added an entry
PL/SQL procedure successfully completed.
SQL>
But my file is created empty. I previously added a println statement in the while loop to see if it was reading and writing bytes and it was.
Any ideas?I have the following code
public static int createZip (String directory)
throws IOException {
File path = new File( directory );
File outZip = new
= new File("c:\\wip\\sams9dbExport.zip");
boolean boo = outZip.createNewFile();So these two lines will create sams9dbExport.zip with size 0 bytes, if file didn't exist.
No need to do that....
try {
// Create the ZIP file
String outFilename = "sams9dbExport.zip";
ZipOutputStream out = new ZipOutputStream(
tStream( new FileOutputStream( outFilename ) );Probably you are looking a wrong "sams9dbExport.zip" -file. Your application will create two "sams9dbExport.zip"-files, one into wip-folder with 0 bytes, and other into default directory.
>
But my file is created empty. I previously added a
println statement in the while loop to see if it was
reading and writing bytes and it was.
Any ideas? -
LCK files being created with PAK files when processed through ODDC
I'm encountering a problem where after commit of a batch in ODDC the files are transferred to the server, but the PAK files are accompanied by a LCK file that is preventing the Distributed Document Capture service from picking them up and processing them. This started occurring after ODDC Patch 4 (14538424) was applied. I'd blame the patch, but not all users encounter the problem. Users encountering the problem are using Win7 and IE9. That said, users that don't encounter the problem are using the same OS and browser. Has anyone encountered this before? What was the resolution? I suspect it's a browser setting, but haven't identified it yet.
ThanksI stumbled on a link in the oracle forum which says that the "create or replace package XXX" at the start of the PL/SQL procedure when run seems to intermittently cause the ORA-04068: existing state of packages has been discarded problem.
As per the solution suggested an “alter package XXX compile" can be executed after the changes are made and then we would no longer get the error in BPEL/ESB and dont have to bounce the server too.
__http://forums.oracle.com/forums/thread.jspa?threadID=185762_
However the above solution does not seem to resolve the issue.
Any help in this regard would be highly appreciated.
Thanks,
Deepthi -
I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel.
When it was explained to me it didn't sound to hard of a task, I have no LabVIEW experience and the tutortial sucks.StevenD: FYI, I did NOT give you the one star rating. I would never do that!
StevenD wrote:
Ow. Someone is grumpy today.
Well, this is an assignment, so it is probably homework.
Why else would anyone give HIM such an assigment, after all he has no LabVIEW experience and the tutorials are too hard for him?
This would make no sense unless all of it was just covered in class!
This is not a free homework service with instant gratification.
OK! Let's do it step by step. I assume you already have a VI with the digital indicators.
"...but have no idea where to begin".
open notepad.
decide on a format, possibly one line per indicator.
type the document.
close notepad.
open LabVIEW.
Open the existing VI with all the indicators.
(are you still following?)
look at the diagram.
Who made the program?
Does the code make sense so far?
Is it a statemachine or just a bunch of crisscrossed wires?
Where do you want to add the file read?
How should the file be read (after pressing a read button, at the start of the program ,etc.)
See how far you get!
Message Edited by altenbach on 06-24-2008 11:23 AM
LabVIEW Champion . Do more with less code and in less time . -
Mysterious files being created in pages. Unable to unlock or delete them.
Mysterious files being created in pages. Unable to unlock or delete.
It turns out that you cannot update or delete a Syndication Map that is currently assigned to a Port in the Repository. You must remove the map from the Port in the Repository and then you can change and/or delete them.
1) bring up the MDM Console
2) Unload the repository
3) drill into Admin ~ Port
4) Remove or change the map associated to the port
5) Load the repository
6) Then you go into Syndicator and either Update the Map or Delete it
It had nothing to do with security.
Thank you for your help. -
Exiting program after text file is created
i want to close labview using the exit.vi after the text file is created....also i am using c++ to execute the labview application is there anyway to make sure labview finishes its routine in c++ before i send the text file to a motion controler
the c++ routine to open the exe is
int main()
system("start C:\\greg\\g.exe");
return 0;
then the digital i/o command woudl execute
anyone know what i can do before sending a digital line to tell the motion control software to pick up the text file?
thanks
Attachments:
program to exe.vi 113 KBGiven the amount of time it takes for LV to launch, you would probibly get better response time if you let the LV code run in a loop watching a predefined "input" directory for new files to process, and writing its results to a predefined "output" directory. The code that uses the text files would likewise sit in a loop waiting for a new text file to appear. (BTW: what will that other piece of code be written in?)
Alternately, if you don't like the idea of polling a directory, make the main LV application event-driven with a user event that performs the processing. Then create a small VI that you run from your C++ code that simply fires that user event.
Finally, given all the limitations of C++ perhaps the most straightforward solution might be to write the whole application in LV?
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Duplicate Inspection lots being created
Hi all,
I have a problem with duplicate Inspection Lots being created in PRD system after a MB_CREATE_GOODS_MOVEMENT and a MB_POST_GOODS_MOVEMENT are called (from handheld scanner transaction).
This is only happening very rarely and we can not replicate the issue in QA system.
Anybody have any ideas on why duplicates might be created?
My own idea is:
There is a COMMIT WORK AND WAIT line in the code after the MB_POST_GOODS_MOVEMENT call.
When I debug in QA, I can see that the QALS table (Inspection lots) is only updated after the COMMIT WORK line.
Could it be a timing issue in PRD? - if I add another COMMIT WORK after the MB_CREATE_GOODS_MOVEMENT,
would this have any effect?
As the issue is not happening in DV or QA, I can't test.
Any suggestions would be appreciated!
Thanks.Just to update this, incase helpful to anyone else, what actually fixed this issue
was that I set two flags on the MB_CREATE_GOODS_ISSUE function module.
This is necessary if you are calling the FM multiple times.
What we were doing is calling it initially, looking at the returned table, kicking out any entries
that caused an error, and then calling the FM again with the updated (corrected) list.
The flag XALLR needs to be set to avoid duplicate inspection lots being created, and the
XALLP flag needs to be set to keep the sequence of Material Documents correct (with no
gaps in the sequence).
CALL FUNCTION 'MB_CREATE_GOODS_MOVEMENT'
EXPORTING
imkpf = ls_imkpf
XALLR = 'X' " EDIT 08.06.2011
XALLP = 'X' " EDIT 08.06.2011
IMPORTING
emkpf = ls_emkpf
TABLES
emseg = lt_emseg
imseg = lt_imseg. -
Accounts being created with administrative group rights
Hello,
The server is a Windows 2003 R2 Enterprise fully patched used for Shared Hosting purposes. It runs Hsphere control panel. I am trying to identify how the following hack is happening.
1) There are users being created with Administrative group rights. Below is the EventViewer log for the user creation:
User Account Created:
New Account Name: username
New Domain: PCNAME
New Account ID: PCNAME\username
Caller User Name: PCNAME$
Caller Domain: DOMAINNAME
Caller Logon ID: (0x0,0x3E7)
Privileges -
Attributes:
Sam Account Name: username
Display Name: <value not set>
User Principal Name: -
Home Directory: <value not set>
Home Drive: <value not set>
Script Path: <value not set>
Profile Path: <value not set>
User Workstations: <value not set>
Password Last Set: <never>
Account Expires: <never>
Primary Group ID: 513
AllowedToDelegateTo: -
Old UAC Value: 0x2DAB2B0
New UAC Value: 0x2DAB2B0
User Account Control: -
User Parameters: <value not set>
Sid History: -
Logon Hours: <value changed, but not displayed>
There exists entries as well where the primary group ID is changed to the Administrative group, but I am omitting such.
2) I tried to identify what Caller Logon ID: (0x0,0x3E7) means. I found out from here:
http://blog.joeware.net/2013/01/14/2667/ that I can use LogonSessions.exe to identify it.
Output from LogonSessions.exe is pasted below (snippet):
[0] Logon session 00000000:000003e7:
User name: DOMAINNAME\PCNAME$
Auth package: NTLM
Logon type: (none)
Session: 0
Sid: S-1-5-18
Logon time: 9/11/2014 12:41:53 PM
Logon server:
DNS Domain:
UPN:
4: System
316: smss.exe
364: csrss.exe
392: winlogon.exe
440: services.exe
452: lsass.exe
628: svchost.exe
756: LMAgent.exe
840: svchost.exe
1000: spoolsv.exe
1252: avagent.exe
1268: camWMIAgent.exe
1324: cissesrv.exe
1380: cpqrcmc.exe
1404: vcagent.exe
1440: svchost.exe
1480: HsQuotas.exe
1740: inetinfo.exe
1780: EmailAgent.exe
1856: snmp.exe
1884: sysdown.exe
1920: smhstart.exe
2192: svchost.exe
2388: cmd.exe
2396: hpsmhd.exe
2444: cqmgserv.exe
2464: cqmgstor.exe
2484: HSphere.exe
2596: wmiprvse.exe
2676: cmd.exe
2684: rotatelogs.exe
2692: cmd.exe
2700: rotatelogs.exe
2732: searchindexer.exe
2812: hpsmhd.exe
2824: cqmghost.exe
2852: svchost.exe
3044: cmd.exe
3052: rotatelogs.exe
3080: cmd.exe
3088: rotatelogs.exe
5452: svchost.exe
5596: GravitixService.exe
7392: csrss.exe
7232: winlogon.exe
6888: csrss.exe
9832: winlogon.exe
10388: wawrapper.exe
10352: cpqnimgt.exe
9496: msiexec.exe
6068: w3wp.exe
4748: webalizer.exe
3) I also learned from http://support.microsoft.com/kb/243330/en-us that Sid: S-1-5-18 means:
SID: S-1-5-18
Name: Local System
Description: A service account that is used by the operating system
That is all great info, but I am not sure I can put together what I have learned to attempt and get closer towards identifying how in the world users are being created and then being assigned administrative group rights.
I am a Linux person mostly, but I am comfortable following a properly explained thread regarding windows 2003 R2 Enterprise issues.
The server is fully patched and it is running Lumension security product. What's more, Norman Malware tracker, tdskiller.exe (Kaspersky) and McAfee rootkitremover.exe have been run without any apparent Malware/Virus infection
Hope someone with advanced admin skills can advise.
Thank youHi,
You mentioned that, “I am trying to identify how the following hack is happening”, would you please tell us that why did you think the event represent a hacking behavior?
In a Shared Server Hosting environment, the underlying hosting control panel tool (Hsphere in this case) should be creating only virtual FTP users with a specific group. So no users with Administrative group should be ever created. If this happens,
it constitutes a breach of server security=positive hacking attempt.
>how in the world users are being created and then being assigned administrative group rights.
In addition, would you please be more specific about this question? Did you find the event message on a domain joined machine?
I want to be able to understand in full how/what process is allowing users to be created with Admin rights. In other words, I want to know what IP was used to issue the command, if ASP.net was used (abused in this case), or anything else related to
it so that we can patch this particular hole.
Best Regards,
Amy -
How to modify the contents of a text file stored along with a midlet
Hi,
I have been developing a application in j2me wherein i need to first read the contents of the text file stored along with the midlet and later erase the existing content and update it with some text.
I was able to read the file in the following manner
InputStream is = getClass().getResourceAsStream("myfile.txt");
Now i need to erase the contents and then update it the new content, how do i do it. Kinldy please help me out. It is very urgent.
ThanksDidn't you hear me the first time?
http://forum.java.sun.com/thread.jspa?threadID=701360&messageID=4068435#4068435 -
I am facing issue when opening flash files in Flash CC. (error:- This file was created with a later release of Flash Professional and might contain new features that would be lost when saved in the current format.)
Wow. Okay...
I'll let the real veterans in this forum tackle your issues one after the other. But, I can tell you, all will be well.
My only comment would be re: your computer specs:
BJReis wrote:
. This may be due to somewhat older equipment:
GHz Intel Core Duo MacBook Pro with a 4GB memory computer with Ddr3 running OSX 10.8.4
To be completely honest, FCPX is a RAM hog. It just is. But, RAM is relatively cheap, and the pay-off is good.
4GB is right on the edge, IMHO. 16G is ideal.
I wish you luck, hang in there, and standby for more help. -
Files/projetc created with PRemiere 6.5. Supported by PRemiere Element 9 ?
Hi all,
I think to change my old powerbook G4 for an Imac intel core duo.
What about my files/project created with Premiere 6.5 if I want to open them with Adobe Premiere Element 9 ?
Is it possible ? Can i still work/modify them ?
Regards,
A.I would recommend contacting Adobe for that answer, your question is about their software so I would think they would be the best people to ask.
Roger -
Are cp file extensions created with Captivate 4 compatable with Captivate 8?
Are cp file extensions created with Captivate 4 compatable with Captivate 8?
Hi there
I believe you will need a copy of version 5 or 6 to open the CP with and convert to a CPTX. Then you can open using 8.
Additionally, you may discover that things become a bit mangled during the upgrades. Many have not gone smoothly and have forced a rebuild of the project.
Cheers... Rick -
XMP files not being created with DNGs...
I'm used to using Bridge with ACR to process Nikon NEFs. But a recent camera update has me experimenting with converting the D3's NEFs to DNG files and editing them with CS2 and Bridge 1.04 which works better on my system. I've also experimented with CS3 and Bridge 2.1.1.9 with the same DNG files.
In both cases XMP files are not being created when working with DNG files. I have enabled "Save image settings in : Sidecar ".xmp" files" turned ON. But they do not seem to be generated and I assume the ACR adjustments are being embedded in the DNG file. Meanwhile doing edits on NEF files continues to create .xmp files as expected.
I find .xmp files to be very useful and I'm wondering why they're missing with DNG files? Are they hiding somewhere other than in the same folder that the images reside in?
Thanks.
Russell> The information contained in the XMP file is stored in the DNG file so there is no need for a separate file.
Aww, yuck!! That's a real drag...
When editing lots of files (yesterday's shoot produced 8GB) I back everything up to off-line storage and then, after doing all my edits and crops in ACR, I only have to copy over the small XMP files which takes no time at all.
So if I re-edit the DNG with ACR I have to re-copy ALL the files again to the off-line storage.
I used to sometimes even save 2 versions of the xmp files when I needed 2 different crops of the same images, such as doing a wide screen 'cinema' crop for a corporate client's Intranet presentation of their event, as well as more standard crops to be used for their newsletters.
Guess I won't be using DNG any more..
Thanks for the help Kees :-)
Russell -
Can I combine two text files into ine with ZEN
I have to append a really long character string onto an existing txt file.
I tried to modify the file in ZEN but the app blows up when it runs. Is
there a way I could concatenate these two txt files together with ZEN
instead?Another option would be to create two environment variables each holding
1/2 the string. Then use the Text file section to write the two strings
to the one file.
Robin Witkop-Staub wrote:
> oh - good idea...
>
> "Anders Gustafsson" <[email protected]> wrote in message
> news:[email protected]..
>> Robin Witkop-Staub,
>>> I have to append a really long character string onto an existing txt
>>> file.
>>> I tried to modify the file in ZEN but the app blows up when it runs. Is
>>> there a way I could concatenate these two txt files together with ZEN
>>> instead?
>>>
>> Spawn a batchfile that concatenates the files, ie copy file1+file2 file3
>>
>> - Anders Gustafsson, Engineer, CNE6, ASE
>> NSC Volunteer Sysop
>> Pedago, The Aaland Islands (N60 E20)
>>
>> Novell does not monitor these forums officially.
>> Enhancement requests for all Novell products may be made at
>> http://support.novell.com/enhancement
>>
>> Using VA 5.51 build 315 on Windows 2000 build 2195
>>
>
>
Craig Wilson
Novell Product Support Forum Sysop
Master CNE, MCSE 2003, CCN
Maybe you are looking for
-
Is it possible to change the priority of emails in my income folder?
Hey everyone?! I want to change the priority of mails in my income folder.
-
IDOC-XI-Proxy(CRM) scenario
Hi Xi experts.. I am new in XI with ABAP background. I have give a project in XI to design and implement a scenaio. The scenarion is this one: ECC5 to XI then XI to Proxy(CRM). In functional specs of this following diagram is mention : ECC5(ALE)-->I
-
Lots of frustrations with iTunes...please help?
I've had my iPod for forever[it's a mini..i'm not sure how many GBs...maybe 2? 4? It holds 1,000 songs ;)], and just recently I got it working again. I reset it, because I wanted to completely start over with adding songs to it. I updated everything
-
Hello, We have a customer that has installed a kms host key on 6 servers, so now they have 6 KMS hosts running. They have contacted us because they realize they have done something wrong. I am new to kms and have been reading on technet for servera
-
Hello Everyone, I am creating a day planner for a customer. The day planner includes pictures for the month and then another for the individual weeks. Each set of pictures( four small weekly pictures and one large monthly picture) have a color bar on